arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.19121

Unlocking Structured Pruning for Reasoning Language Models via Attention-Preserving MLP Trimming

Woosang Lim, Haneul Yoo, Vincent-Daniel Yun, Sungjoo Yoo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Structured pruning reduces LLM inference costs by removing model components to produce smaller dense models. However, existing methods can cause reasoning performance to collapse on long-form reasoning tasks such as AIME. We propose LayerTrim, a training-free structured pruning method that identifies redundant decoder layers and selectively trims their MLP features while preserving attention and decoder depth. LayerTrim is the first training-free structured pruning method designed to preserve long-form reasoning without gradients or recovery training. Across three reasoning language models and five benchmarks, LayerTrim outperforms existing structured pruning methods in most evaluated settings, improving average accuracy by up to 21.4 percentage points over RESP. On Qwen3-14B, LayerTrim achieves 1.24×1.24\times faster prefill and 19.7% lower peak GPU memory than the dense model, while better preserving reasoning ability. It also achieves the shortest average generation length among evaluated pruned models, while retaining the highest average accuracy. These results demonstrate that LayerTrim improves reasoning efficiency through both structural compression and reduced token generation.

1 Introduction

Reasoning language models (RLMs) achieve strong performance on complex tasks through chain-of-thought (CoT) reasoning (DeepSeek-AI et al., 2025; Yang et al., 2025). However, generating long reasoning sequences incurs high inference costs, motivating more efficient inference. Structured pruning reduces LLM inference costs by removing model components to produce smaller dense models (Ma et al., 2023; An et al., 2024). However, applying pruning methods developed for

Figure

Figure 1: Accuracy versus generated tokens per response on Qwen3-14B with a pruning budget equivalent to 9 of its 40 decoder layers. Both metrics are averaged across five benchmarks, with a maximum generation length of 32K tokens.

non-reasoning LLMs to RLMs can cause performance to collapse on tasks requiring long chains of thought, such as AIME (Ding et al., 2026).

Figure 1 illustrates this failure, where existing structured pruning methods lead to longer reasoning traces and lower accuracy. To investigate this degradation, we analyze pruning strategies on Qwen3-14B (Yang et al., 2025). Our analysis reveals three observations (Figure 2). First, MLP trimming causes less representation error than attention pruning or entire module removal. Second, MLP feature importance is concentrated in a subset of features. Third, concentrating MLP trimming in redundant layers produces less error than distributing the same budget across all layers. These findings motivate selective MLP compression while preserving attention and decoder depth.

Based on these findings, we propose LayerTrim, a training-free structured pruning method that identifies redundant decoder layers and selectively trims their MLP features while preserving attention and decoder depth. LayerTrim is the first training-free structured pruning method designed to preserve long-form reasoning and code genera-

†^{\dagger}Corresponding author: sungjoo.yoo@gmail.com.

∗^{*}These authors contributed equally.

Figure

(a) Memory & Latency

(b) Pruning Damage

(c) Importance Concentration

(d) Layer Allocation

Figure 2: Observations motivating LayerTrim on Qwen3-14B. (a) LayerTrim reduces memory usage and inference latency with a pruning budget equivalent to 9 of 40 decoder layers. (b) MLP trimming causes less representation error than attention pruning, module removal, or joint pruning. (c) MLP feature importance is concentrated in a subset of features. (d) Block Influence (BI) (Men et al., 2025)-based layer selection reduces error compared with random or all-layer pruning. Diagnostic settings are given in Appendix D.

tion performance without recovery training. It uses dense-model reasoning traces (Lucas et al., 2026; Wang et al., 2025) to select layers using Block Influence (Men et al., 2025) and retain MLP features with the largest expected squared output contributions.

Across three RLMs and five benchmarks, LayerTrim outperforms existing structured pruning methods in most evaluated settings, improving average accuracy by up to 21.4 percentage points over RESP (Wang et al., 2025) under matched parameter budgets. On Qwen3-14B, LayerTrim achieves higher accuracy while generating fewer tokens on average than the other evaluated pruning methods (Figure 1). It also reduces peak GPU memory, pre-fill latency, and decode latency by approximately 20%, 19%, and 17%, respectively, relative to the dense model at a pruning budget equivalent to 9 of 40 decoder layers (Figure 2(a)).

Our contributions are as follows:

• We identify attention preservation and selective MLP trimming as strategies for reducing representation error compared with attention pruning or entire module removal.

• We introduce LayerTrim, a training-free structured pruning method for long-form reasoning without gradients or recovery training.

• We demonstrate improved reasoning efficiency, achieving higher accuracy with fewer generated tokens and better preserving reasoning completion.

References (9)