atlas

Research map / Large language models / Reasoning and chain of thought

Compact Language Models via Pruning and Knowledge Distillation

NeurIPS 2024 · Large language models › Reasoning and chain of thought · approach: Routing, pruning and distillation for reasoning

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that structured pruning of Nemotron-4 15B (width, depth, with activation-based importance) followed by knowledge-distillation retraining on ~94B tokens yields compact 8B and 4B LLMs (Minitron) that match community models at 40x fewer tokens, and distills best-practice guidelines.

Problem

Training each LLM size in a deployment family from scratch is extremely compute- and data-intensive; it is unclear how to prune an existing LLM along multiple axes and recover accuracy with little retraining data.

Approach

A purely activation-based (forward-pass only) importance estimation across depth, neuron, attention head, and embedding axes, combined with lightweight search over pruned architectures and logit-based knowledge distillation from the unpruned teacher as the retraining method, with iterative prune-and-distill across model sizes.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use width-only pruning rather than depth-only pruning (ablation)Nemotron-4 15B compressed to about 8B · 8T validationLM loss: 2.155 -> 2.049Helped
Combine depth pruning with width pruning instead of width-only pruning (ablation)Nemotron-4 15B compressed to about 8B · 8T validationLM loss: 2.049 -> 2.062Hurt
Use iterative embedding-dimension pruning rather than one-shot pruning (ablation)Nemotron-4 15B · LM validationLM loss: 1.92 -> 1.92No clear effect
Use logits-only KLD rather than CLM plus logits KLD (ablation)Nemotron-3 8B retraining · Nemotron-3 8B validationLM loss: 2.117 -> 2.107Helped
Use forward KLD rather than reverse KLD (ablation)Minitron 8B depth-pruned · 8T validationLM loss: 2.665 -> 2.155Helped
Add intermediate-state loss to logits-only distillation (ablation)Minitron 8B · Minitron 8BMMLU: 58.3 -> 58.0No clear effect
Prune Nemotron-4 15B and distill rather than conventionally retraining the pruned model (ablation)4B model · MMLUaccuracy: 24.57 -> 37.81Helped
Prune Nemotron-4 15B and distill rather than training from random initialization (ablation)4B model · HellaSwagaccuracy: 46.22 -> 51.04Helped
Distill a 4B model from Minitron 8B rather than directly from Nemotron-4 15B (ablation)4B model · MMLUaccuracy: 37.81 -> 42.45Helped
Distill with logits-only loss rather than logits plus intermediate-state loss (ablation)Minitron 8B · HellaSwagaccuracy: 73.6 -> 73.8No clear effect
Retrain from the Phase 2 checkpoint using Phase 2 data only rather than Phase 1 plus Phase 2 data (ablation)Minitron 8B width-pruned · MMLUaccuracy: 54.7 -> 61.9Helped
Use Minitron 8B rather than one-shot pruning Nemotron-4 15B as the starting point for 4B distillation (ablation)4B model · HellaSwagaccuracy: 51.04 -> 52.04Helped

Surprising findings

Limitations

Experimental setup

Datasets: Nemotron-4 8T pretraining blend Nemotron-4 continued training (CT) data blend WikiText2

Benchmarks: MMLU HumanEval MBPP ARC-Challenge HellaSwag TruthfulQA WinoGrande XL-Sum GSM8K MT-Bench IFEval ChatRAG-Bench

Metrics: accuracy pass@1 rougeL LM validation loss MT-Bench score prompt-level accuracy

Baselines: LLM-Pruner SliceGPT LaCo ShortGPT Sheared LLaMa Llama-3 8B Mistral 7B Gemma 7B Llama-2 7B Nemotron-3 8B Phi-2 Gemma2

Builds on: Nemotron-4 15B Megatron-LM ShortGPT block importance Gromov et al. depth pruning Sheared LLaMA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy