[论文解读] How Pruning Reshapes Features: Sparse Autoencoder Analysis of Weight-Pruned Language Models
本论文使用稀疏自编码器研究在三大模型族、两种剪枝方法和多种稀疏度下,非结构化权重剪枝如何重塑语言模型特征;结果显示少量特征在剪枝后比频繁特征更易存活,且特征存活与因果重要性并不等同。
Weight pruning is a standard technique for compressing large language models, yet its effect on learned internal representations remains poorly understood. We present the first systematic study of how unstructured pruning reshapes the feature geometry of language models, using Sparse Autoencoders (SAEs) as interpretability probes. Across three model families (Gemma 3 1B, Gemma 2 2B, Llama 3.2 1B), two pruning methods (magnitude and Wanda), and six sparsity levels (0--60%), we investigate five research questions spanning seed stability, feature survival, SAE transferability, feature fragility, and causal relevance. Our most striking finding is that rare SAE features--those with low firing rates--survive pruning far better than frequent ones, with within-condition Spearman correlations of rho = -1.0 in 11 of 17 experimental conditions. This counter-intuitive result suggests that pruning acts as implicit feature selection, preferentially destroying high-frequency generic features while preserving specialized rare ones. We further show that Wanda pruning preserves feature structure up to 3.7x better than magnitude pruning, that pre-trained SAEs remain viable on Wanda-pruned models up to 50% sparsity, and that geometric feature survival does not predict causal importance--a dissociation with implications for interpretability under compression.
研究动机与目标
- 在任务指标之外,激发对权重剪枝下内部表示变化的理解。
- 将稀疏自编码器作为可解释探针,比较密集模型与剪枝模型的激活。
- 在多模型、多种剪枝方法和多种稀疏度下,量化特征存活、迁移性和脆弱性。
- 评估几何存活的特征是否在因果上对输出比被破坏的特征更重要。
- 为从业者在剪枝与可解释性之间取得平衡提供实用建议。
提出的方法
- 在密集和剪枝模型的残差激活上训练TopK稀疏自编码器,以提取可解释的特征字典。
- 使用余弦相似度和三种匹配度量(单向、互最近邻、贪婪1对1)在多阈值下比较SAE特征字典。
- 在Gemma 3 1B、Gemma 2 2B和Llama 3.2 1B上,对全局幅度剪枝和Wanda(激活感知)剪枝,在稀疏度水平{0.0, 0.2, 0.3, 0.4, 0.5, 0.6}进行剪枝。
- 通过在每种条件下训练多个SAE来评估种子稳定性,并测量跨种子特征匹配。
- 通过将预训练的官方Gemma SAE应用于剪枝激活来评估迁移性,并报告未解释方差份额(FVU)。
- 通过对鲁棒特征与脆弱特征进行消融,测量对最终输出的KL散度来进行因果消融。
实验结果
研究问题
- RQ1RQ1 种子稳定性:SAE特征在不同随机种子下是否可重复,剪枝如何影响可重复性?
- RQ2RQ2 特征存活:在不同方法和稀疏度下,剪枝模型的SAE能恢复多少密集模型特征?
- RQ3RQ3 迁移性:预训练的SAE是否能从剪枝模型中重构激活?
- RQ4RQ4 脆弱性分类:稀有特征是否比频繁特征更可能在剪枝中存活?
- RQ5RQ5 因果相关性:几何存活的特征是否对输出具有更大因果影响?
主要发现
- 在所有模型族和剪枝方法中,稀有的SAE特征在剪枝后存活远超频繁特征(例如 Q1 的 Gemma 3 在30%稀疏度时为76.0%对比14.6%)。
- Wanda剪枝在匹配稀疏度时对特征结构的保留比幅度剪枝高出约3.7倍。
- 预训练的官方Gemma SAE在Wanda剪枝激活上仍然有效,稀疏度高达50%时FVU较低(如 Gemma 3 1B Wanda 50% FVU 0.024)。
- 种子稳定性在绝对意义上较低(MNN ~2–4% 当 tau=0.7),但下降模式在各种种子间是一致的;dense→pruned 的跨条件MNN率比种子变异基线高出18–29倍。
- 几何特征存活并不预测因果重要性;在所有条件下,鲁棒特征与脆弱特征在消融后得到的平均KL散度几乎相同。
- 使用对数 firing rate 与稀疏度的逻辑回归模型能在tau=0.8时达到AUC>0.79、准确率高达83.2%。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。