atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

The LLM Surgeon

ICLR 2024 · Architectures and efficiency › Pruning and efficient tuning · approach: Layer-wise pruning of LLMs · 0 citations (OpenAlex)

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.

Proposes LLM Surgeon, a Kronecker-factored curvature (K-FAC-style) pruning framework that computes global-threshold masks and correlated weight updates for unstructured, semi-structured, and structured pruning of pretrained LLMs (OPT, Llama-v2) without retraining from scratch.

Problem

Pruning large pretrained language models is hard to do well: existing post-training methods ignore gradient information and mostly handle only unstructured or semi-structured sparsity, and none gave practically usable structured (row/column) pruning of LLMs.

Approach

Scales Kronecker-factored Fisher approximations (G ⊗ A) to LLMs to derive OBS-like removal costs for elements, rows and columns, uses a global threshold for dynamic sparsity allocation, applies correlated closed-form weight updates, prunes in multiple shots with curvature re-estimation, and optionally interleaves low-rank (LoRA) first-order corrections.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use full correlations between rows and columns instead of correlations limited within rows/columns (ablation)LLM Surgeon structured pruning · WikiText-2, OPT and Llama-v2 modelsPPL: Llama-v2 (7b), 90%: 5.43 -> 5.25; 50%: 25.62 -> 15.38Helped
Use full correlations between rows and columns instead of correlations limited within rows/columns (ablation)LLM Surgeon structured pruning · WikiText-2, OPT modelsPPL: OPT (125m), 90%: 28.29 -> 28.01; OPT (2.7b), 90%: 12.00 -> 12.02Mixed
Add interleaved LoRA updates between pruning shots (ablation)LLM Surgeon structured pruning on OPT-125m · WikiText-2, 50% target sizePPL: 49.78 -> 36.50Helped
Add interleaved LoRA updates between pruning shots (ablation)LLM Surgeon structured pruning · WikiText-2, larger modelsPPLNo clear effect
Use LLM Surgeon instead of K-OBD for structured pruningOPT and Llama-v2 models · WikiText-2, structured compressionPPL: Llama-v2 (7b), 50%: 46.64 -> 15.38; OPT (6.7b), 90%: 10.53 -> 10.77Mixed
Use LLM Surgeon instead of SparseGPTOPT models · WikiText-2, semi-structured 2:4PPL: OPT (125m): 45.51 -> 44.64; OPT (1.3b): 29.44 -> 25.10; OPT (2.7b): 14.92 -> 14.64; OPT (6.7b): 13.01 -> 12.10Helped
Use LLM Surgeon instead of SparseGPTOPT and Llama-v2 models · WikiText-2, unstructured 50% targetPPL: OPT (125m): 33.17 -> 30.30; OPT (1.3b): 26.77 -> 15.47; OPT (2.7b): 12.88 -> 12.68; OPT (6.7b): 11.92 -> 10.97; Llama-v2Helped
Use LLM Surgeon instead of K-OBDLlama-v2-13B · Structured pruning, 90% target sizePPL: 4.908 -> 4.692Helped
Use LLM Surgeon instead of K-OBDLlama-v2-13B · Structured pruning, 50% target sizePPL: 16.06 -> 9.428Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-2 C4 French Wikipedia German Wikipedia Italian Wikipedia

Benchmarks: WikiText-2 perplexity wikitext word perplexity BoolQ PIQA HellaSwag WinoGrande ARC-easy ARC-challenge OpenBookQA COPA LAMBADA WSC273

Metrics: test perplexity zero-shot accuracy

Baselines: Magnitude pruning L-OBD K-OBD SparseGPT

Builds on: Optimal Brain Surgeon Optimal Brain Damage Eigendamage KFAC Optimal Brain Compression

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