atlas

Research map / Large language models / Instruction and fine-tuning

Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning

ICLR 2024 · Large language models › Instruction and fine-tuning · approach: Calibration and knowledge in LLM tuning · 20 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.

Prunes LLaMA2-7B into 1.3B and 2.7B models via learned targeted structured pruning, then continues pre-training on 50B RedPajama tokens with dynamic batch loading that reweights domains by loss reduction rate.

Problem

Training small competitive LLMs from scratch is prohibitively expensive; structured pruning of general-purpose LLMs typically degrades performance and yields non-uniform architectures that are slow at inference.

Approach

Learn pruning masks (layers, heads, intermediate and hidden dims) with hard-concrete parameterization and Lagrange-constrained optimization to hit a specified uniform target architecture, then continue pre-training with dynamic batch loading that adjusts domain sampling weights so each domain's loss reaches its scaling-law reference loss at similar times.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use dynamic batch loading instead of the original RedPajama domain proportions (ablation)Sheared-LLaMA-1.3B · Downstream tasksdownstream performanceHelped
use scaling reference rather than source reference for dynamic batch loading (ablation)Sheared-LLaMA-1.3B · Downstream tasks, especially math and codingdownstream performanceHelped
allocate more of a fixed 5B-token budget to pruning (ablation)Sheared-LLaMA · Pruning and continued pre-trainingperplexity: 12.99; 10.29; 9.01; 8.04Helped
use targeted structured pruning rather than CoFiPruning (ablation)Sheared-LLaMA pruning · 1.3B and 2.7B pruning comparisongeneration speed: 51 -> 58; 37 -> 43Helped
use targeted structured pruning rather than CoFiPruning (ablation)Sheared-LLaMA pruning · 1.3B and 2.7B pruning comparisonvalidation perplexity: 9.1 -> 10.3; 7.0 -> 7.7Hurt
use targeted structured pruning rather than LLM-Pruner at similar parameter scale (ablation)Sheared-LLaMA · LLM pruning comparisonperplexity: 7.09 -> 6.85Helped
use targeted structured pruning rather than LLM-Pruner at similar parameter scale (ablation)Sheared-LLaMA · LLM pruning comparisongeneration speed: 43 tokens/s -> 58 tokens/sHelped
use targeted structured pruning rather than LLM-Pruner at similar parameter scale (ablation)Sheared-LLaMA · LLM pruning comparisontraining throughput: 83K tokens/s -> 139K tokens/sHelped
prune Pythia-440M to 160M and continue with 10B tokens (ablation)Sheared-Pythia · Pythia-160M zero-shotperformance: 43.56 -> 43.51No clear effect
prune Pythia-440M to 160M and continue with 33B tokens (ablation)Sheared-Pythia · Pythia-160M zero-shotperformance: 43.56 -> 45.78Helped
exclude GitHub, StackExchange, and ArXiv data during pruning (ablation)Pruned LLaMA1-13B to 7B · Domain loss after continued pre-trainingloss disparity across domainsNo clear effect
prune LLaMA1-13B to 7B rather than use LLaMA1-7B directly (ablation)Pruned LLaMA1-13B · RedPajama domain lossesloss disparity across domainsMixed

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama ShareGPT

Benchmarks: SciQ PIQA WinoGrande ARC-E ARC-C HellaSwag LogiQA BoolQ LAMBADA NQ MMLU GSM8K

Metrics: accuracy exact match pass@1 win rate perplexity

Baselines: OPT-1.3B Pythia-1.4B TinyLlama-1.1B OPT-2.7B Pythia-2.8B INCITE-Base-3B OpenLLaMA-3B-v1 OpenLLaMA-3B-v2 CoFiPruning LLM-Pruner

Builds on: CoFiPruning LLaMA2 RedPajama Pythia DoReMi

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