论文精选

当剪枝遇到可解释性:在LLMs中保持稀疏自动编码器鲁棒性

When Pruning Meets Interpretability: Preserving Sparse Autoencoder Robustness in LLMs

精选理由

这篇论文探讨了剪枝对稀疏自动编码器在LLMs中鲁棒性的影响,提出了新的剪枝策略,值得AI领域研究者关注。

AI 摘要

稀疏自动编码器(SAEs)广泛用于解释大型语言模型(LLMs)的内部表示,但其后置模型压缩下的可靠性理解不足。本研究系统地研究了剪枝如何影响SAE行为,并从理论上证明了对于固定的SAE,其影响受扰动能量(协方差加权的范数)控制。这一观点揭示了幅度剪枝的关键局限性:通过忽略激活几何形状,它扭曲了学习到的表示空间并降低了SAE功能。相比之下,Wanda和SparseGPT等激活感知方法隐式地控制扰动能量,因此在保留SAE行为方面具有更高的鲁棒性。此外,我们还揭示了所有剪枝方法中的一致性结构漏洞:中间层比早期或晚期层对剪枝更敏感。基于这一洞察,我们提出了一种分层稀疏分配策略,在相同的平均剪枝稀疏度下实现了更低的困惑度。在四个模型架构上的实验验证了我们的理论发现。代码在https://github.com/osu-srml/sae-robustness-under-pruning/tree/main上公开。

原文 · arXiv cs.LG

When Pruning Meets Interpretability: Preserving Sparse Autoencoder Robustness in LLMs

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.