Manuscript Offprint

arXiv:2609.35579

Output-aware Residual Stream Pruning for Large Language Models

Chayne Thrash, Kevin Chen, Soheil Kolouri

ABSTRACT

Residual stream pruning methods reduce inference cost by shrinking the model's hidden dimension, but existing approaches typically choose these dimensions by minimizing activation reconstruction error. This criterion implicitly treats all perturbation directions as equally important, ignoring the sensitivity of downstream layers. We introduce a sensitivity-aware approach to residual-stream pruning that directly accounts for this direction-dependent sensitivity. Using a second-order approximation to the output KL divergence, we characterize the effect of a residual-stream perturbation through both its activation covariance and the local sensitivity of the model output. The resulting subspace selection objective couples these two quantities, but is difficult to optimize directly. We derive a tractable spectral upper bound that reduces subspace selection to an eigendecomposition of a sensitivity-weighted covariance matrix, retaining the efficiency and structural simplicity of rotation-based pruning methods. Across several instruction-tuned language model families, our method consistently reduces calibration KL divergence relative to activation-only pruning and improves perplexity and downstream task performance over a range of compression levels. Our results show that preserving activation energy alone is insufficient for residual-stream pruning, and that explicitly accounting for how perturbations propagate to the model output provides a more effective criterion for selecting dimensions to remove.

1 INTRODUCTION

The recent advancements in large language models (LLMs) (Brown et al., 2020; Grattafiori et al., 2024; Jiang et al., 2023; Abdin et al., 2024) have led to widespread adoption across a growing range of applications. At the same time, the increasing size of these models has made deployment increasingly expensive, motivating the development of smaller and more efficient models that retain strong performance on complex tasks.

A variety of techniques have been proposed to reduce the computational and memory requirements of LLMs. Quantization (Frantar et al., 2023; Lin et al., 2024) decreases memory requirements by reducing the number of bits used to represent model weights and activations. Low-rank approximation methods (Wang et al., 2025; Yuan et al., 2025) compress weight matrices using low-rank factorizations, while knowledge distillation (Gu et al., 2024) trains a smaller student model to mimic the behavior of a larger teacher. Structured pruning has also received considerable attention because it can directly reduce both model size and inference cost without requiring customized kernels or costly retraining.

Most structured pruning methods remove neurons, attention heads, or other structures within the self-attention and MLP blocks while leaving the residual-stream dimension unchanged. Residual-stream pruning (Ashkboos et al., 2024), in contrast, directly reduces the input and output dimensions of these blocks. By exploiting the invariance of transformer layers to orthogonal changes of basis in the residual stream, such methods can identify and remove entire residual-stream directions while absorbing the corresponding rotations into adjacent linear layers. Ashkboos et al. (2024) selects these directions to minimize reconstruction error in the residual-stream activations. However, minimizing activation error alone does not account for how strongly downstream computations depend on the removed directions: two perturbations of similar magnitude can have substantially different effects on the model's output distribution.

In this work, we introduce a sensitivity-aware approach to residual-stream pruning that balances the magnitude of the induced activation error with the sensitivity of the model's output to that error. We derive our objective from a second-order approximation to the KL divergence between the output distributions of the original and pruned models, yielding a curvature-weighted measure of residual-stream importance. Although directly optimizing this objective is difficult, we derive a tractable upper bound whose solution requires only a small number of eigendecompositions and can therefore be incorporated into existing residual-stream pruning pipelines. Across multiple model families and compression rates, our approach more effectively preserves the output distribution of the original model and consistently improves downstream performance over activation-only residual-stream pruning.

References (60)

  • Fluctuation-based adaptive structured pruning for large language models (opens the publisher in a new tab)
  • SliceGPT: Compress large language models by deleting rows and columns
  • Piqa: Reasoning about physical commonsense in natural language (opens the publisher in a new tab)
  • A systematic classification of knowledge, reasoning, and context within the ARC dataset (opens the publisher in a new tab)
  • Language models are few-shot learners
  • Scalable kronecker-factored fisher approximation for neural network parameter sensitivity
  • Training Verifiers to Solve Math Word Problems
  • Linear mode connectivity and the lottery ticket hypothesis
  • Sparsegpt: massive language models can be accurately pruned in one-shot
  • OPTQ: Accurate quantization for generative pre-trained transformers
  • A framework for few-shot language model evaluation, 12 2023
  • The Llama 3 Herd of Models
  • MiniLLM: Knowledge distillation of large language models
  • Learning both weights and connections for efficient neural networks
  • Second order derivatives for network pruning: Optimal brain surgeon
  • Measuring massive multitask language understanding
  • Mistral 7B
  • ZipLM: Inference-aware structured pruning of language models
  • Tulu 3: Pushing frontiers in open language model post-training
  • Tyr-the-pruner: Structural pruning LLMs via global sparsity distribution optimization
  • Awq: Activation-aware weight quantization for llm compression and acceleration
  • LLM-pruner: On the structural pruning of large language models
  • OSSCAR: One-shot structured pruning in vision and language models with combinatorial optimization
  • Pointer sentinel mixture models
  • Can a suit of armor conduct electricity? a new dataset for open book question answering
  • Association for Computational Linguistics (opens the publisher in a new tab)
  • The fineweb datasets: Decanting the web for the finest text data at scale
  • Winogrande: an adversarial winograd schema challenge at scale (opens the publisher in a new tab)
  • Movement pruning: Adaptive sparsity by fine-tuning
  • Evopress: Accurate dynamic model compression via evolutionary search
  • A simple and effective pruning approach for large language models
  • Llama 2: Open Foundation and Fine-Tuned Chat Models
  • Model-preserving adaptive rounding, 2026
  • The LLM surgeon
  • SVD-LLM: Truncation-aware singular value decomposition for large language model compression
  • Redpajama: an open dataset for training large language models, 2024 (opens arXiv in a new tab)
  • Chain-of-thought prompting elicits reasoning in large language models
  • ASVD: Activation-aware singular value decomposition for compressing large language models, 2025
  • HellaSwag: Can a machine really finish your sentence? In Anna Korhonen, David Traum, and Lluís Márquez (eds.), Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 4791–4800, Florence, Italy, July 2019 (opens the publisher in a new tab)
  • Instruction-Following Evaluation for Large Language Models
  • Since the retained and removed subspaces are orthogonal complements, the reconstruction error induced by pruning is
  • Dividing by four proves equation 5
  • Consequently
  • Moreover, for any minimizer $U$ of the regularized objective, choosing
  • Let $x \in \mathbb{R}^d$ denote a hidden representation and consider a transformer block
  • Let $Q \in \mathbb{R}^{d \times d}$ be orthogonal, so that $Q^\top Q = Q Q^\top = I_d$, and define
  • The residual update is preserved in the rotated basis because
  • LayerNorm, in contrast, is not equivariant under arbitrary orthogonal transformations because its mean-centering operation distinguishes the all-ones direction
  • After pruning each site, activations are propagated through the partially pruned model before computing the basis for the next site
  • For our method, we frobenius normalize both C and H prior to performing the sweep over $\tau$
  • Common-sense reasoning tasks are evaluated zero-shot and normalized accuracy is used for all tasks when available
  • Tables 6–10 show these results per model
  • >10%</td><td>SliceGPT</td><td>65.59</td><td>68.90</td><td>42.06</td><td>65.49</td><td>37.00</td><td>73.67</td><td>54.09</td><td>58.11</td></tr><tr><td>Ours</td><td>67.17</td><td>67.98</td><td>42.58</td><td>65.54</td><td>37.40</td><td>73.61</td><td>55.42</td><td>58.53</td></tr><tr><td rowspan=
  • >10%</td><td>SliceGPT</td><td>73.16</td><td>77.90</td><td>51.96</td><td>74.66</td><td>42.60</td><td>78.67</td><td>61.52</td><td>65.78</td></tr><tr><td>Ours</td><td>72.77</td><td>78.32</td><td>52.82</td><td>75.27</td><td>42.00</td><td>79.00</td><td>63.70</td><td>66.27</td></tr><tr><td rowspan=
  • >10%</td><td>SliceGPT</td><td>74.43</td><td>81.31</td><td>55.80</td><td>78.93</td><td>46.40</td><td>80.36</td><td>58.17</td><td>67.91</td></tr><tr><td>Ours</td><td>74.51</td><td>81.23</td><td>56.23</td><td>78.80</td><td>46.00</td><td>81.18</td><td>58.18</td><td>68.02</td></tr><tr><td rowspan=
  • >10%</td><td>SliceGPT</td><td>71.03</td><td>77.19</td><td>56.83</td><td>77.08</td><td>43.80</td><td>80.69</td><td>62.78</td><td>67.06</td></tr><tr><td>Ours</td><td>74.19</td><td>77.02</td><td>56.66</td><td>77.01</td><td>45.40</td><td>80.85</td><td>63.22</td><td>67.76</td></tr><tr><td rowspan=
  • >10%</td><td>SliceGPT</td><td>76.56</td><td>85.98</td><td>63.74</td><td>80.37</td><td>49.60</td><td>81.83</td><td>71.79</td><td>72.84</td></tr><tr><td>Ours</td><td>77.43</td><td>84.34</td><td>61.77</td><td>80.38</td><td>48.60</td><td>81.18</td><td>74.21</td><td>72.56</td></tr><tr><td rowspan=
  • ><tr><td rowspan=
  • Because individual estimates are substantially noisier than the dataset-level estimate used by our method, we use 64 Monte Carlo samples from the output distribution for each $H_{i}(s)$
  • For each basis, we rescale its induced perturbations by a single scalar such that all bases have equal total reconstruction error, isolating differences in output sensitivity from differences in perturbation magnitude