atlas

Research map / Large language models / Language, safety and interpretability

A Simple and Effective Pruning Approach for Large Language Models

ICLR 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 53 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 Wanda, a training-free one-shot LLM pruning method that scores each weight by its magnitude times the input activation norm and prunes per output row, without any weight update.

Problem

Pruning large language models without retraining or expensive second-order weight reconstruction, since magnitude pruning fails badly on LLMs and SparseGPT requires costly weight updates.

Approach

Score each weight as |W_ij| times the L2 norm of the corresponding input feature over calibration data, and compare weights per output row rather than per layer; no weight update is applied, so the pruned model is used as is.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Wanda instead of magnitude pruningLLaMA-7B · WikiText validation, unstructured 50%perplexity: 17.29 -> 7.26Helped
Use Wanda instead of SparseGPTLLaMA-7B · WikiText validation, unstructured 50%perplexity: 7.22 -> 7.26No clear effect
Use Wanda instead of magnitude pruningLLaMA-7B · 7 zero-shot tasks, unstructured 50%mean accuracy: 46.94 -> 54.21Helped
Use Wanda instead of SparseGPTLLaMA-7B · 7 zero-shot tasks, unstructured 50%mean accuracy: 54.94 -> 54.21Hurt
Compare weights per-output rather than layer-wise (ablation)Wanda on LLaMA-7B · WikiText validation, unstructured 50%perplexity: 7.95 -> 7.26Helped
Use the Wanda weight-and-activation metric instead of magnitude with per-output comparison (ablation)LLaMA-7B · WikiText validation, unstructured 50%perplexity: 13.41 -> 7.26Helped
Add sequential weight update (ablation)Wanda on LLaMA-7B · WikiText validation, unstructured 50%perplexity: 7.26 -> 7.32No clear effect
Add sequential weight update (ablation)Wanda on LLaMA-7B · WikiText validation, 2:4perplexity: 11.53 -> 10.89Helped
Reduce calibration samples from 128 to 1 (ablation)Wanda on LLaMA-7B · WikiText validation, unstructured 50%perplexity: 7.26 -> 7.46No clear effect
Increase unstructured sparsity from 50% to 80% (ablation)Wanda on LLaMA-7B · WikiText validationperplexity: 7.26 -> 5e3Hurt

Surprising findings

Limitations

Experimental setup

Datasets: C4 WikiText BoolQ RTE HellaSwag WinoGrande ARC-e ARC-c OpenbookQA MMLU ImageNet-1K

Benchmarks: WikiText perplexity BoolQ RTE HellaSwag WinoGrande ARC-e ARC-c OpenbookQA MMLU

Metrics: perplexity mean zero-shot accuracy 5-shot accuracy pruning time inference latency

Baselines: Magnitude pruning SparseGPT SNIP BERT-LTH Movement pruning Platon PINS

Builds on: Optimal Brain Surgeon Optimal Brain Damage SparseGPT magnitude pruning

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