稀疏自编码器表示的行为组合性
研究论文 · 2026/10/17
稀疏自编码器(SAE)以稀疏、线性解码的特征表示模型激活,但这些特征的下游效应未必可加性组合。我们引入SAE可加性残差(SAR),用于衡量在选定交互阶数之上未被解释的行为变异。在独立特征子集采样下,总体SAR恰好等于该阶数以上交互的归一化能量,并为最优低阶近似界定了联盟排序误差。为了区分与SAE表示相关的组合性与下游计算诱导的组合性,我们比较了学习到的SAE坐标与同一选定子空间的保和随机旋转,发现在所有18种模型和行为设置中,学习到的坐标具有更低的一阶残差。然而,这些坐标并非完全可加:成对项在每个设置中都改善了留出联盟排序,并且优于使用随机选择的第三阶项的参数量匹配模型。在联合引导实验中,成对建模将排序保真度从0.5874提升至0.7790,并将排序误差从0.1444降低至0.0606。总之,这些结果表明,SAE坐标支持相对组合性的行为描述,而忠实的联合解释和干预仍然需要超越单个特征效应的交互。代码见https://github.com/OpenSAE/SAE-Behavioral-Compositionality。
该研究为理解稀疏自编码器特征是否以及如何组合性地影响模型行为提供了严格的度量框架和实证分析,对机制可解释性和模型编辑具有重要价值。
Sparse autoencoders (SAEs) represent model activations with sparse, linearly decoded features, but the downstream effects of those features need not compose additively. We introduce SAE Additivity Residuals (SAR), which measure the behavioral variation left unexplained above a chosen interaction order. Under independent feature subset sampling, population SAR is exactly the normalized energy of interactions above that order and bounds coalition ordering error for the optimal low order approximation. To distinguish compositionality associated with the SAE representation from that induced by downstream computation, we compare learned SAE coordinates with sum preserving random rotations of the same selected subspace and find lower first order residuals for the learned coordinates across all 18 model and behavior settings. The coordinates are nevertheless not fully additive: pairwise terms improve held out coalition ordering in every setting and outperform parameter matched models using randomly selected third order terms. In a combined steering experiment, pairwise modeling raises rank fidelity from 0.5874 to 0.7790 and reduces ordering error from 0.1444 to 0.0606. Together, these results show that SAE coordinates support comparatively compositional behavioral descriptions while faithful joint explanations and interventions still require interactions beyond individual feature effects. Code is available at https://github.com/OpenSAE/SAE-Behavioral-Compositionality.