Manuscript Offprint

arXiv:2608.25941

When Pruning Meets Interpretability: Preserving Sparse Autoencoder Robustness in LLMs

Suchit Gupte, Xueru Zhang, Mohammad Mahdi Khalili

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

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. The code is publicly available at sae-robustness-under-pruning.

1 Introduction

The superposition hypothesis (Elhage et al., 2022) posits that neural networks represent more features than they have neurons, giving rise to polysemanticity where individual neurons respond to multiple unrelated concepts. Sparse autoencoders (SAEs) (Cunningham et al., 2023) have emerged as the leading method for resolving this: by training an overcomplete sparse dictionary on a model's activations, they recover monosemantic, interpretable features (Bricken et al., 2023; Zhu et al., 2026), an approach that scales to frontier models (Templeton et al., 2024; Lieberum et al., 2024). SAE-based analysis has consequently become a core workflow in mechanistic interpretability (Shu et al., 2025; Sharkey et al., 2025). SAEs are used to identify circuits (Conmy et al., 2023; Wang et al., 2023; Chanin et al., 2025), erase spurious correlations (Karvonen et al., 2024), and test causal hypotheses about model behavior. All of these applications rely on the implicit assumption that any SAE provides a faithful and reliable decomposition of the underlying activations to which it is applied.

Independently, weight pruning has become a standard post-hoc technique for reducing the computational cost of deploying large language models. Methods ranging from classical MAGNITUDE pruning (Han et al., 2016) to modern one-shot approaches such as SPARSEGPT (Frantar & Alistarh, 2023) and WANDA (Sun et al., 2024) can remove a substantial fraction of model weights with only modest degradation in downstream task performance. Given the prohibitive cost of deploying large dense models, compression techniques including pruning, quantization, and distillation are standard tools in the open-weight deployment pipeline (Muralidharan et al., 2024; Ma et al., 2023; Guo et al., 2025; Cai et al., 2024; Zhu et al., 2025), often applied after interpretability analysis has been conducted on the dense checkpoint and any associated SAEs have been trained. Crucially, the criteria by which these methods select weights to prune: whether by magnitude alone, by activation statistics, or by second-order Hessian, differ substantially in how they perturb the model's internal activation distribution, a distinction that has received little attention outside of predictive performance evaluations.

These two workflows are inherently in tension. An SAE is trained on the activation distribution of a specific dense model, whereas pruning alters that model's weight matrices, perturbing all downstream activations. When these perturbations remain small relative to the SAE's training distribution, the SAE may continue to function approximately as intended. Otherwise, its latents can fail silently (Chanin et al., 2025; Karvonen et al., 2024; Gupte et al., 2025), and importantly, such failures may not be detected by standard language modeling benchmarks (Egashira et al., 2026; Sharkey et al., 2025). Despite this, there is currently no theoretical framework that characterizes when pruning preserves SAE validity, nor an explanation for why different pruning methods lead to varying degrees of degradation.

A natural response to a changed model is to retrain the interpretability tooling itself. Cross-coders (Lindsey, 2024), for instance, train a joint dictionary across two model states (e.g., base and fine-tuned) to discover what changed between them. This is effective, but it requires training a new dictionary for each pair of model variants, precisely the retraining cost we aim to avoid. Our work instead asks: given an SAE already trained on a dense model, under what conditions does it remain valid after pruning, without retraining? This is the more common deployment scenario, since organizations that have invested resources in SAE training need to know whether existing analysis transfers to a compressed model rather than needing to characterize what changed. The two approaches are thus complementary: crosscoders are the right tool for understanding a specific change, whereas answering the transfer question requires a theoretical account of when pruning leaves an existing SAE intact, which is exactly what is missing. This paper provides that account.

We begin by theoretically examining the impact of MAGNITUDE, SPARSEGPT, and WANDA pruning, and show that SAE degradation is governed by perturbation energy ( ε2\varepsilon^{2}), a covariance-weighted norm that weights perturbations more heavily along high-variance input directions. This perspective establishes a formal separation among the three pruning methods: each method can be seen as minimizing a mathematically distinct approximation of ε2\varepsilon^{2}. MAGNITUDE pruning, which ignores activation geometry, induces the largest perturbation energy and the most severe SAE degradation, whereas activation-aware methods such as WANDA and SPARSEGPT implicitly control this quantity and are substantially more robust at preserving SAE behavior.

We validate our theory using four SAEBench (Karvonen et al., 2025) metric categories: Core (Karvonen et al., 2025), Feature Absorption (Chanin et al., 2025), SCR, and TPP (Karvonen et al., 2024), which together capture the full range of qualitative SAE failure modes. Beyond comparing methods, our experiments reveal a consistent structural vulnerability: middle layers are significantly more sensitive to pruning than early or late layers, across all methods and sparsity levels. Building on this insight, we explore a layer-wise sparsity allocation strategy that preserves SAE quality and achieves lower perplexity while maintaining the same average sparsity level.

The remainder of the paper is organized as follows. Sec. 2 presents background on sparse autoencoders and formulates pruning as activation perturbation. Sec. 3 develops the perturbation-theoretic framework and derives the formal separation among pruning methods. Sec. 4 argues for the sufficiency of the SAEBench evaluation suite in capturing all relevant SAE failure modes. Sec. 5 describes the experimental setup, and Sec. 6 presents the results. Sec 7 concludes the paper and discusses limitations and future directions.

References (28)