Repair Changes Which Layers to Remove: Exact Optima for Depth Pruning of Language Models
Jianchang Su, Dawei Xiang, Yifan Zhang, Wei Zhang
Key points
From the paper's conclusion- We evaluate every subset of layer groups exactly (about 53,000 pruned models across four families, with and without repair) and find that the best layers to remove depend on the repair: linear repair absorbs the interaction among nearby layers and turns the optimum from a split layout into a contiguous block, so methods that choose layers without the repair miss the repaired optimum by up to 189%.
Abstract
Depth pruning removes entire transformer layers to make large language models faster, and recent methods recover quality by replacing the removed layers with a training-free linear map. Which layers to remove, however, is chosen with heuristic scores whose distance from the best choice is unknown. We evaluate every subset of layer groups exactly (about 53,000 pruned models across four families, with and without repair) and find that the best layers to remove depend on the repair: linear repair absorbs the interaction among nearby layers and turns the optimum from a split layout into a contiguous block, so methods that choose layers without the repair miss the repaired optimum by up to 189%. We therefore select layers under the repair that will be applied. A greedy search at the cost of SLEB lowers perplexity by 20% to 66% relative to ReplaceMe on five models up to 27B parameters, and with a task objective it is up to 25 points more accurate given the same data. A second-order expansion of the loss yields a score that selects the repaired block from one forward and one backward pass of the intact model.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Forward-Free LLM Depth Pruning via Weight RedundancyarXiv · 2026
- What Breaks and What Comes Back: Capability Damage and Recovery in Depth-Pruned Small Language ModelsarXiv · 2026
- SliMOO: Interpretable Multi-Objective Evolutionary Search for LLM Depth PruningarXiv · 2026
- Rethinking LLM Pruning via Test-Time ScalingarXiv · 2026
- Unlocking Structured Pruning for Reasoning Language Models via Attention-Preserving MLP TrimmingarXiv · 2026
- LOOP: Recovery-Aligned Iterative Layer Pruning via On-Policy DistillationarXiv · 2026