Sparse Inference
A language model runs every one of its weights for every token it produces, and for any given token most of them contribute almost nothing. Sparse inference is the practice of not paying for those.
Two kinds of skippingStatic sparsity is decided once: pruning sets a fraction of the weights to zero permanently, and the pruned model is shipped that way — SparseGPT and Wanda do this to a trained model in one pass, without retraining. Dynamic sparsity is decided per token: in a feed-forward block most activations come out near zero after the non-linearity, and which ones is predictable from the input, so the matching weight rows need never be loaded. Mixture-of-Experts routing is the same idea built into the architecture rather than discovered afterwards.
Where the saving actually comes from- Generating one token at a time is bound by memory bandwidth, not arithmetic — the GPU is waiting on weights. Skipping a weight means not fetching it, which is exactly the bottleneck relieved.
- Only structured sparsity cashes in. Scattered zeros leave the tile a GPU multiplies unchanged in size; 2:4 patterns, whole rows or whole blocks are what the hardware can skip.
- Accuracy is the currency. Moderate pruning is close to free, aggressive pruning shows up first on reasoning benchmarks rather than perplexity.
Set beside its neighbours, each does something different: quantization makes every weight smaller, distillation trains a smaller model from scratch, sparsity keeps the model and uses less of it. They compose, which is how a 70B model ends up serving usefully on hardware its full-precision dense form would never fit.
Sparse inference serves a model while skipping weights that contribute nothing to the current token — either zeros left by pruning, or activations predicted to be near zero for this particular input. Since generating a token is bound by memory bandwidth, a weight that is never fetched is latency saved. The sparsity must be structured in rows or blocks for hardware to exploit it, and it composes with quantization and distillation to fit large models onto smaller machines.
A huge hardware shop has a hundred thousand items, but the plumber who walks in needs about six of them. Fetching all hundred thousand to serve him would be absurd.
An AI language system is built from billions of internal settings, and for any one word it writes, the vast majority contribute nothing at all. Sparse inference is the practice of leaving those alone. Some are switched off permanently, because testing showed they were never pulling their weight; others are skipped on the fly, for this word only. The payoff is speed, because the slowest part of the job is hauling those numbers out of memory — and what you never fetch costs nothing.