基于几何适应的解释器:在分布偏移下字典基础可解释性的忠实性
Geometry-Adaptive Explainer for Faithful Dictionary-Based Interpretability under Distribution Shift
AI总结:
本文提出了一种几何适应解释器(GAE),用于在分布偏移下提高基于字典的可解释性。通过重新对齐解释器的字典与偏移活跃子空间,同时保持原始特征结构,GAE在无监督的情况下减少了分布偏移下的忠实性差距。
摘要:
机制可解释性旨在通过识别因果负责的内部结构来解释模型的行为。基于字典的解释器如稀疏自编码器和转码器是主要工具,但其在分布外(OOD)偏移下的忠实性却很少受到系统性关注。我们证明分布偏移会旋转模型所使用的子空间,导致解释器的字典在训练分布(ID)激活上训练时出现对齐偏差。我们将这种偏差正式化为忠实性差距,即ID字典与OOD活跃子空间之间的几何距离,并证明其控制OOD忠实性退化。为了减少这种差距,我们提出了几何适应解释器(GAE),它在保持原始特征结构的同时,重新对齐解释器的字典与OOD活跃子空间。这只需要未标记的OOD激活,并且不需要梯度更新。我们证明GAE在无适应ID解释器上有所改进,其额外损失被二次限制于二阶矩偏移。经验上,GAE在多个模型和OOD设置中甚至匹配或超过了所有基于训练的基线在因果忠实性上的表现。
英文摘要:
Mechanistic interpretability aims to explain a model's behavior by identifying causally responsible internal structures. Dictionary-based explainers such as sparse autoencoders and transcoders are a primary tool, but their faithfulness under out-of-distribution (OOD) shift has received little systematic attention. We show that distribution shift rotates the subspace that the model actively uses, misaligning the explainer's dictionary trained on in-distribution (ID) activations. We formalize this misalignment as the faithfulness gap, a geometric distance between the ID dictionary and the OOD-active subspace, and show that it bounds excess OOD projection loss. To reduce this gap, we propose the Geometry-Adaptive Explainer (GAE), which realigns the dictionary with the OOD-active subspace while preserving the original sparse feature activations. This requires only unlabeled OOD activations and no gradient updates. For the adapted dictionary, we also bound the excess projection loss caused by any remaining faithfulness gap. Empirically, GAE even matches or surpasses all training-based baselines in causal faithfulness across multiple models and OOD settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。