LayerTrim compresses reasoning models while preserving their depth
Unlocking Structured Pruning for Reasoning Language Models via Attention-Preserving MLP Trimming · arXiv:2610.19121
In plain words
Making a reasoning model smaller can hurt its ability to solve problems that need long chains of thought. This paper introduces LayerTrim, a method that uses examples of the model’s reasoning to choose which internal features to remove. It keeps the attention parts and the model’s depth, and does not train the model again.
Across three models, LayerTrim had the highest average accuracy among the pruning methods tested at both size cuts. That finding applies to the five math, science, and coding tests in the study.
The research
When a reasoning model is compressed, can it keep answering tasks that depend on long chains of thought? Existing pruning methods built for non-reasoning models can sharply damage this performance, leaving a research question: which parts of a model can be reduced while preserving those abilities?
LayerTrim measures redundancy and feature contribution on a model’s reasoning traces, then trims selected MLPs while keeping attention and depth.
The researchers compared LayerTrim with six pruning methods on three reasoning models, using five tests for math, science, and code. Each test score measures accuracy on its task; LayerTrim had the highest average among the compared methods for all three models at both tested size cuts.
On Qwen3-14B at the larger cut, its average across five tests was 65.1%, versus 58.3% for RESP. This supports better measured accuracy in these comparisons.
The evaluation covers three reasoning models, five tests, and fixed pruning budgets and layer-allocation settings. It does not establish that the same results hold for other architectures, model sizes, or reasoning tasks.
What the evidence shows
- A risk in model pruning
LayerTrim is a training-free method for compressing reasoning language models. It addresses a specific risk: pruning methods developed for non-reasoning models can sharply damage performance on tasks that require long chains of thought.
The method’s central choice is to reduce selected MLP features while preserving attention and decoder depth.
- Choosing what to trim
To choose what to remove, LayerTrim gathers statistics from reasoning traces produced by the corresponding full-size model. It estimates which decoder layers change their inputs least, then ranks features inside selected MLPs by their expected output contribution. The method removes lower-ranked features without updating model weights or using recovery training.
- Testing the pruning target
A Qwen3-14B ablation compared MLP trimming with attention pruning and module removal. On AIME25, which tests exact-answer math, and GPQA-Diamond, which tests science through multiple-choice questions, the researchers averaged accuracy across the two tests and three seeds.
MLP trimming scored 58.8%, versus 48.3% for joint trimming and 8.8% for MLP removal, supporting that target among the tested choices.
- Checking layer selection
A separate Qwen3-14B control tested how to distribute the removal budget. Selecting 14 MLPs by Block Influence produced a 57.1% average across the same two tests, compared with 54.0% when selection measured only the MLP update, 48.2% for random selection, and 51.8% when the budget was spread across all 40 MLPs. This supports the whole-block selection rule within that control’s scope.
- Comparing methods and scope
Across three reasoning models, five tests covering math, science, and code, and two pruning budgets, LayerTrim had the highest average accuracy among the compared pruning methods. At the larger budget on Qwen3-14B, its five-test average was 65.1%, compared with 58.3% for RESP.
The evidence supports better accuracy retention in these comparisons, while the tested models and settings bound the conclusion.
Deep
- Original paper authors
- Woosang Lim, Haneul Yoo, Vincent-Daniel Yun, Sungjoo Yoo
- Submitted to arXiv
- License
- CC BY 4.0