arXiv · 2610.30552
Repair Changes Which Layers to Remove: Exact Optima for Depth Pruning of Language Models
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Jianchang Su, Dawei Xiang, Yifan Zhang, Wei Zhang. 2026-10-22. Repair Changes Which Layers to Remove: Exact Optima for Depth Pruning of Language Models. https://arxiv.org/abs/2610.30552
Cite the original work for its findings. Save a collection to share your selection of sources.