When Pruning Meets Interpretability: Preserving Sparse Autoencoder Robustness in LLMs

Suchit Gupte, Xueru Zhang, Mohammad Mahdi Khalili
8/26/2026
cs.LG

Official code: osu-srml/sae-robustness-under-pruning (0 stars, MIT, last commit 2026-08-07).

Abstract

Sparse autoencoders (SAEs) are widely used to interpret the internal representations of large language models (LLMs), yet their reliability under post-hoc model compression remains poorly understood. We present a systematic study of how pruning affects SAE behavior and theoretically show that, for a fixed SAE, its impact is governed by perturbation energy, a covariance-weighted norm. This perspective exposes a key limitation of magnitude pruning: by ignoring activation geometry, it distorts the learned representation space and degrades SAE functionality. Activation-aware methods such as Wanda and SparseGPT, in contrast, implicitly control perturbation energy and are therefore substantially more robust at preserving SAE behavior. We further reveal a consistent structural vulnerability across all pruning methods: middle layers are significantly more sensitive to pruning than early or late layers. Guided by this insight, we propose a layer-wise sparsity allocation strategy, achieving lower perplexity under the same average pruning sparsity. Experiments across four model architectures validate our theoretical findings. Code is publicly available at https://github.com/osu-srml/sae-robustness-under-pruning/tree/main.

View on arXivView PDF

Code Implementations(1)

MIT
00TeX, ShellAug 7, 20262 months agoMIT

Similar Papers

Cite this paper

@article{gupte2026when,
  title  = {When Pruning Meets Interpretability: Preserving Sparse Autoencoder Robustness in LLMs},
  author = {Suchit Gupte and Xueru Zhang and Mohammad Mahdi Khalili},
  year   = {2026},
  eprint = {2608.25941},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.25941v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.25941.svg)](https://codeofpaper.com/paper/2608.25941)

Discussion