Model Pruning (LLM)
A trained language model is not an efficient object. Plenty of its weights contribute almost nothing to any particular output, and model pruning is the practice of finding them and taking them out — shrinking the model without changing how its remaining numbers are stored.
Three shapes of sparsity- Unstructured — drop individual weights wherever they are least useful. Best accuracy at a given sparsity, but it leaves a scattered lattice of zeros that most hardware cannot skip, so the model gets smaller without getting faster.
- Structured — remove whole attention heads, feed-forward channels or entire layers. Costs more accuracy and actually delivers speed, because what remains is a smaller dense model.
- Semi-structured — the 2:4 pattern, two zeros in every group of four, which modern tensor cores do accelerate.
Classical pruning assumed you could retrain afterwards, which nobody can afford for a 70B model. One-shot methods solved that. SparseGPT prunes layer by layer and adjusts the surviving weights to compensate, reaching roughly half sparsity on very large models with little measured loss. Wanda gets close using a far cheaper criterion: weight magnitude multiplied by the typical size of the activation it multiplies.
How it is used in practicePruning is stacked with other compression rather than used alone — prune, then quantize, then close the gap with a short run of continued training or distillation from the original model. That combination is how vendors ship small models derived from large ones. The risk to watch is uneven damage: aggregate perplexity can look fine while one specific capability, often arithmetic or a less-represented language, has been cut away.
Model pruning removes weights or whole structures from a trained model to make it smaller. Unstructured pruning drops individual weights and preserves accuracy best but rarely speeds inference up; structured pruning removes heads, channels or layers and does. One-shot methods such as SparseGPT and Wanda prune models far too large to retrain, compensating the surviving weights instead. In practice pruning is combined with quantization and a short recovery-training run.
Think of trimming a hedge that has grown wild. Most of the plant does nothing for its shape, and cutting it back carefully leaves something smaller that still looks the same. Model pruning does this to an AI model: it finds the internal connections that barely affect the answers and deletes them. The reward is a model that takes less memory and runs on cheaper hardware. The danger is cutting the wrong branch — the model still sounds just as fluent, but one specific ability, such as arithmetic or a less common language, has quietly been removed.