atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

ReplaceMe: Network Simplification via Depth Pruning and Transformer Block Linearization

NeurIPS 2025 · Architectures and efficiency › Pruning and efficient tuning · approach: Structured network pruning

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 ReplaceMe, a training-free depth pruning method that replaces a contiguous block of transformer layers with a linear transform estimated on a small calibration set and fused into the MLP down-projection.

Problem

Depth pruning of large transformers usually requires costly post-pruning healing/retraining to recover performance; the paper targets pruning transformer blocks without any training while retaining most accuracy.

Approach

Select a contiguous block of layers by cosine distance between hidden states before and after the cut, then estimate a single linear transform (closed-form least squares or numerically optimized cosine objective) mapping the MLP output of the cut block to the output of the block after the removed span, merged into the MLP down-projection so no parameters are added.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace selected blocks with a cosine-estimated linear transform rather than UIDL pruningLlama 2 7B · 25% pruning, benchmark averageAVG accuracy: 40.9 -> 41.9Helped
Use cosine estimation rather than least-squares estimation (ablation)ReplaceMe on Llama 2 7B · 25% pruning, benchmark averageAVG accuracy: 40.7 -> 41.9Helped
Use non-consecutive multiple linear transforms instead of one cosine-estimated transform (ablation)ReplaceMe on Llama 3 8B Instruct · 25% pruningLambada OpenAI perplexity: 15.88 -> 13.95Helped
Use non-consecutive multiple linear transforms instead of one cosine-estimated transform (ablation)ReplaceMe on Llama 3 8B Instruct · 25% pruningAvg-acc: 0.63 -> 0.63No clear effect
Use instruction-style SlimOrca calibration instead of plain-text FineWeb calibration (ablation)ReplaceMe (LS) on Llama 3 8B · 25% pruningAvg-acc: 0.56 -> 0.62Helped
Use instruction-style SlimOrca calibration instead of plain-text FineWeb calibration (ablation)ReplaceMe (Cosine) on Llama 3 8B · 25% pruningAvg-acc: 0.58 -> 0.63Helped
Use self-generated calibration data instead of SlimOrca (ablation)ReplaceMe (Cosine) on Llama 3 8B · 25% pruningPerplexity: 15.90 -> 13.24Helped
Use self-generated calibration data instead of SlimOrca (ablation)ReplaceMe (Cosine) on Llama 3 8B · 25% pruningAvg-acc: 0.63 -> 0.61Hurt
Add L2 regularization with alpha 1000 to the LS objective (ablation)ReplaceMe on Llama 3 8B · 25% pruningPerplexity: 21.2 -> 20.8Helped
Add L2 regularization with alpha 10000 to the LS objective (ablation)ReplaceMe on Llama 3 8B · 25% pruningAvg-acc: 0.624 -> 0.626Helped
Add L1 regularization with alpha 1×10^-4 to the cosine objective (ablation)ReplaceMe on Llama 3 8B · 25% pruningAvg-acc: 0.634 -> 0.638Helped
Add L1 regularization with alpha 1×10^-4 to the cosine objective (ablation)ReplaceMe on Llama 3 8B · 25% pruningPerplexity: 15.9 -> 22.1Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SlimOrca FineWeb Arcee Aya MIMIC

Benchmarks: C3 CMNLI CHID WSC HellaSwag PIQA Race-M Race-H MMLU CMMLU Winogrande BoolQ

Metrics: accuracy average accuracy perplexity relative performance (RP) CO2 emissions

Baselines: LLM-Streamline LLM-Pruner SliceGPT LaCo UIDL SVD-LLM

Builds on: ShortGPT UIDL LLM-Streamline SliceGPT

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