Weight Sharing
A model compression technique where the same weights are used in multiple places within the network. Memory is saved by avoiding parameter duplication.
Classic Example
In language models, the embedding matrix at the input and the output layer are sometimes tied: these are the same weights. This allows the model to save an entire layer of parameters for tens of thousands of tokens.
Pros and Cons
- Pros: less memory, faster training.
- Cons: less flexibility — tied parts cannot specialize independently.
Where It Occurs
- input and output embeddings in LLM;
- specific architectures where layers reuse the same set of weights.