Skip to main content
Training & Optimization

Model Pruning

Model pruning is the technique of removing unnecessary weights, neurons, or structures from a trained neural network to reduce model size and inference cost — often with minimal quality loss when done carefully.

AIDOLS Research Team · Editorial standards

Full definition

Pruning splits into unstructured (zero out individual weights) and structured (remove entire heads, neurons, or layers). The "lottery ticket hypothesis" (Frankle & Carbin, MIT, 2019) showed that small sub-networks within larger trained networks can match full-network accuracy when retrained alone. Pruning often combines with quantization and distillation for compounding compression. Hardware support determines real-world speedup — unstructured sparsity needs sparse-aware kernels, while NVIDIA's 2:4 pattern (two of every four weights zero) is a fine-grained structured sparsity that Sparse Tensor Cores on Ampere and later GPUs accelerate.

Why it matters

Pruning is a real inference-cost lever, but sparsity alone usually brings modest LLM speedups: Neural Magic's 2:4-sparse Llama 3.1 8B kept 98.4% of baseline accuracy with up to 30% higher throughput. Combined with quantization and distillation, the gains compound. For high-volume workloads, the engineering investment pays back within months.

Example

A search company prunes 35% of attention heads in its query-rewriting model and quantizes to int8, cutting inference cost 4.1x with measured zero precision regression on the production eval set.

Next steps

More training & optimization terms

Source & further reading

Primary source: Frankle & Carbin — "The Lottery Ticket Hypothesis" (ICLR Best Paper) (2019).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/en/glossary/pruning/.