Output-aware Residual Stream Pruning for Large Language Models

Chayne Thrash, Kevin Chen, Soheil KolouriarXiv 2026

TL;DR

This paper introduces a sensitivity-aware method for pruning the residual stream of Large Language Models (LLMs). By moving beyond simple activation reconstruction and accounting for how perturbations propagate to the final output, the authors achieve significantly better performance—lower perplexity and higher task accuracy—at the same compression levels compared to existing state-of-the-art methods like SliceGPT.

What Problem Does This Paper Address?

As LLMs grow, so does the cost of running them. Structured pruning aims to solve this by removing entire components (like neurons or attention heads) to reduce model size and inference latency. A particularly effective form is residual stream pruning, which shrinks the model's hidden dimension ($d_{model}$).

The current gold standard for this, SliceGPT, uses Principal Component Analysis (PCA) to identify and remove directions in the residual stream that have the lowest activation variance. However, the authors argue this is "output-blind." Just because a direction has low variance doesn't mean it's unimportant for the final prediction. Conversely, a high-variance direction might just be noise that the model's downstream layers are trained to ignore. The gap addressed here is the lack of output sensitivity in selecting which dimensions to prune.

Methods

The authors propose a sensitivity-aware objective. Instead of just minimizing activation reconstruction error, they aim to minimize the KL divergence between the output distributions of the original and pruned models.

  1. Second-Order Approximation: Since calculating the exact KL divergence for every possible pruning configuration is impossible, they use a second-order Taylor expansion. This characterizes the impact of a perturbation using the Fisher Information Matrix (the Hessian of the KL divergence) with respect to the activations.
  2. The Objective: They define a new objective that couples the activation covariance matrix ($C$) with a shared layerwise sensitivity matrix ($H$).
  3. Tractable Optimization: Directly optimizing this is computationally expensive. The authors derive a spectral upper bound that simplifies the problem. By solving for the eigenvectors of a weighted sum $M_\tau = \tau C + \tau^{-1}H$, they can identify a pruning basis that balances reconstruction error and output sensitivity.
  4. Structural Integration: Like SliceGPT, this method exploits the rotational invariance of Transformers. They rotate the "unimportant" directions into specific coordinates and then simply delete those rows and columns from the weight matrices.
Figure 1: Overview of our structured residual-stream pruning method. (a) We remove residual- stream dimensions by rotating unimportant directions into removable coordinates, allowing corre- sponding columns and rows of the attention and MLP weight matrices to be deleted. (b) Directions are selected using both activation variance and output sensitivity. (c) Our objective balances activa- tion reconstruction and output sensitivity through τ, interpolating between the two extremes.

Datasets

The method was evaluated across three major model families: Llama-3.x, Mistral, and Phi-3.

  • Calibration: 1,024 sequences from FineWeb-Edu (for general tasks) and Tulu3 (for generative tasks).
  • Evaluation:
    • Language Modeling: WikiText-2.
  • Common-sense Reasoning: WinoGrande, MMLU, ARC-Easy/Challenge, HellaSwag, OpenBookQA, and PIQA.
  • Generative/Reasoning: GSM8K (math) and IFEval (instruction following).
  • Validation: Additional tests were performed using RedPajama for calibration to ensure the method wasn't overfit to a specific dataset.

Key Insights and Ideas

  • Activation Energy $\neq$ Importance: The core "aha" moment is that preserving activation energy alone is insufficient. Figure 2a in the paper shows a strong correlation between their sensitivity approximation and actual KL divergence, proving that the model's output is much more sensitive to some directions than others, regardless of their variance.
  • Curvature Matters: By incorporating the Hessian ($H$), the method effectively "weights" the PCA. It protects dimensions that the downstream layers are highly sensitive to, even if they don't contain much "energy" (variance).
  • Efficiency via Spectral Bounds: The derivation of the spectral upper bound is a key technical contribution. It allows the sensitivity-aware approach to remain nearly as fast as PCA-based methods, requiring only a few extra eigendecompositions.

Key Results

The proposed method consistently outperforms SliceGPT across all models and sparsity levels (10% to 30%).

  • Perplexity Gains: On Llama-3.2 3B at 30% sparsity, the perplexity was slashed from 57.17 (SliceGPT) to 30.14 (Ours).
  • Downstream Accuracy: Average common-sense reasoning accuracy improved significantly. For example, at 25% sparsity on Llama-3.1 8B, the method achieved 59.02% accuracy compared to SliceGPT's 57.97%.
  • Instruction Following: The method showed a wider lead in complex tasks like IFEval and GSM8K, suggesting that output-aware pruning is better at preserving the "reasoning" capabilities of instruction-tuned models.
  • Data Efficiency: The method is robust to calibration set size, showing strong performance with as few as 512–1,024 samples.
Comparison of accuracy vs. calibration samples, showing the proposed method consistently outperforming SliceGPT.

Limitations and Future Work

  • Rotation Overhead: While the method reduces the hidden dimension, the orthogonal rotations themselves introduce new parameters. At very high sparsity, the cost of these rotation matrices might offset some of the memory savings. The authors suggest exploring parameter-sharing or more efficient transformations in the future.
  • Dataset-Averaged Sensitivity: The method uses a single sensitivity matrix $H$ averaged over the whole calibration set. While the authors validated that this works well (see Figure 4), token-specific sensitivity might offer even finer-grained pruning if the computational hurdles can be cleared.
  • Static Pruning: This is a post-training, one-shot pruning method. Combining it with brief recovery fine-tuning could potentially push the sparsity limits even further.

Summary updated

BibTeX
@misc{thrash2026output,
  author = {Chayne Thrash and Kevin Chen and Soheil Kolouri},
  title = {{Output-aware Residual Stream Pruning for Large Language Models}},
  year = {2026},
  eprint = {2609.35579},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.35579},
}
Figure