Output-aware Residual Stream Pruning for Large Language Models
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.
Create a lesson
Related papers
RADA: Residual-Aware Dual Adaptation for Online Traffic Allocation in E-Commerce
Shared title terminologycs.LGKaiyuan Liu, Ying Song, Haiyang Dou et al.
UnlearningSoup: Is Repeated Tuning Necessary for Large Language Model Unlearning?
Shared title terminologycs.LGPuning Yang, Qizhou Wang, Junchi Yu et al.
Harnessing Large Language Models to Compile Task-Relevant Context into Bayesian Optimisation
Shared title terminologycs.LGZhongwei Yu, Sourabh Roy, Bin Cao et al.
Replay the Curvature: Accurate and Scalable NVFP4 Quantization for Large Language Model Inference
Shared title terminologycs.LGRuiyi Ding, Jie Li, Kang He et al.
Dyad: Extending Large Language Models with Native Typed Decision-Making
Shared title terminologycs.LGYundaichuan Zhan, Weishi Wang, Wenbiao Liu et al.
SOLO: Pretraining Billion-Parameter Language Models with Shared-Output Local Learning
Shared title terminologycs.LGBojian Yin, Shurong Wang, Yuqi Pan et al.