What is Sparse model?
In Turkish: Seyrek model · Topic: Models and training
An AI model in which most parameters are zero, or which activates only a small fraction of its parameters for each input.
How does it work?
Sparsity comes in two ways. In the first, methods such as pruning set most of the weights to zero, and only the remaining ones are used in computation. In the second, the model is built from many sub-blocks, or experts, from the start; for each input a router picks just a few experts and the rest stay idle for that step. Mixture-of-experts (MoE) architectures are the typical example of this second kind. The total parameter count can be huge, yet the work done per token stays close to that of a smaller dense model.
Why does it matter?
Sparsity lets a model's capacity grow without running costs growing at the same rate, which is why it comes up often in large language model news. All the parameters still have to be held in memory, though, and the speed gain depends on how well hardware and software support sparsity.
Example
Mixture-of-experts architectures such as Mistral's Mixtral models are examples of sparse models: only a portion of the experts is used for each token.
FAQ
What is the difference between a sparse and a dense model?
In a dense model every parameter is used for every input. In a sparse model only a part of them is used, which makes it possible to build a larger model on the same compute budget.
Is a sparse model always faster?
No. Memory needs often do not shrink, and the speed gain depends on hardware support, so the practical benefit varies from case to case.