[Paper Review] Compact Language Models via Pruning and Knowledge Distillation
The paper shows that large LLMs can be compressed by structured pruning of width and depth axes followed by knowledge-distillation-based retraining, yielding Minitron models (8B and 4B) that rival or surpass similarly-sized models while using far fewer training tokens.
Large language models (LLMs) targeting different deployment scales and sizes are currently produced by training each variant from scratch; this is extremely compute-intensive. In this paper, we investigate if pruning an existing LLM and then re-training it with a fraction (<3%) of the original training data can be a suitable alternative to repeated, full retraining. To this end, we develop a set of practical and effective compression best practices for LLMs that combine depth, width, attention and MLP pruning with knowledge distillation-based retraining; we arrive at these best practices through a detailed empirical exploration of pruning strategies for each axis, methods to combine axes, distillation strategies, and search techniques for arriving at optimal compressed architectures. We use this guide to compress the Nemotron-4 family of LLMs by a factor of 2-4x, and compare their performance to similarly-sized models on a variety of language modeling tasks. Deriving 8B and 4B models from an already pretrained 15B model using our approach requires up to 40x fewer training tokens per model compared to training from scratch; this results in compute cost savings of 1.8x for training the full model family (15B, 8B, and 4B). Minitron models exhibit up to a 16% improvement in MMLU scores compared to training from scratch, perform comparably to other community models such as Mistral 7B, Gemma 7B and Llama-3 8B, and outperform state-of-the-art compression techniques from the literature. We have open-sourced Minitron model weights on Huggingface, with corresponding supplementary material including example code available on GitHub.
Motivation & Objective
- Assess whether pruning an existing LLM and retraining with a small data fraction can replace full retraining for smaller variants.
- Develop practical compression best practices across depth, width, attention, and MLP pruning combined with knowledge distillation.
- Demonstrate the approach by deriving Minitron models (8B and 4B) from Nemotron-4 15B and compare to community models on language tasks.
Proposed method
- Perform structured pruning across axes: depth (layers), width (attention heads, MLP hidden channels), and embedding channels, with activation-based importance scoring.
- Use a lightweight retraining phase (~1.8B tokens) with knowledge distillation from the unpruned teacher model to recover accuracy.
- Employ a lightweight neural architecture search over a constrained candidate space to select pruned architectures under a parameter budget.
- Train distillation-based losses combining logits and intermediate states, with dynamic weighting between logits loss and intermediate-state losses.
- Prune in iterative steps (two-stage) to improve final performance and maintain capabilities.
- Compare pruned-and-retrained models to training-from-scratch baselines and to other compressed models on a suite of downstream tasks.

Experimental results
Research questions
- RQ1Can one large LLM be pruned and retrained with a small data fraction to produce smaller, high-performing variants?
- RQ2What are the most effective axes (depth, width, embedding) to prune first, and how should they be combined?
- RQ3How effective is knowledge distillation in recovering accuracy after pruning compared to conventional retraining?
- RQ4What practical best-practices maximize compression efficiency while preserving or improving performance?
Key findings
- Pruning width-related components (heads, MLP channels, embeddings) typically yields better post-retrain performance than depth pruning alone, with retraining boosting results.
- Width pruning generally outperforms depth pruning for models up to 15B parameters, especially after lightweight retraining.
- Knowledge distillation from the unpruned teacher during retraining significantly improves downstream task performance versus conventional training.
- Deriving Minitron 8B and 4B from Nemotron-4 15B requires up to 40x fewer training tokens, achieving about 1.8x training-cost savings for the full family.
- Minitron 8B outperforms Nemotron-3 8B and LLaMa-2 7B, and is competitive with Mistral-7B, Gemma-7B, and Llama-3-8B on several benchmarks, while using far fewer tokens (40x fewer than Nemotron-3 8B).
- Minitron-4B surpasses Gemma2 and compares favorably to various depth/width-pruned baselines, with instruction-tuned variants showing strong instruction-following and RAG capabilities.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.