arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.08600cs.LGcs.CL
收藏

稀疏自编码器在语言模型中发现高度可解释的特征

Sparse Autoencoders Find Highly Interpretable Features in Language Models

EleutherAI;MATS;Bristol AI Safety Centre(布里斯托尔人工智能安全中心);Apollo Research(阿波罗研究)

Hoagy Cunningham, Aidan Ewart, Logan Riggs, Robert Huben, Lee Sharkey

AI总结:

针对语言模型中神经元多语义性的叠加成因假设,提出用稀疏自编码器重构内部激活以识别可解释单语义特征,验证了其可解释性与因果定位精度,为机制可解释性研究提供基础。

摘要:

更好地理解神经网络内部机制的障碍之一是多语义性(polysemanticity),即神经元似乎会在多个语义不同的语境中被激活。多语义性导致我们无法针对神经网络的内部运行机制,找到简洁且人类可理解的解释。多语义性的一个假设性成因是叠加(superposition):神经网络通过将特征分配到激活空间中一组过完备的方向上,而非对应单个神经元,以此表征比神经元数量更多的特征。本文中,我们尝试识别这些方向,使用稀疏自编码器(sparse autoencoders)重构语言模型的内部激活。这些自编码器学习到的稀疏激活特征集,比通过其他方法识别出的方向更具可解释性且更符合单语义性,其中可解释性通过自动化方法进行衡量。此外,我们证明,借助我们学习到的特征集,我们能够比以往的分解方法更精细地定位出间接宾语识别任务中反事实行为的因果性特征。这项研究表明,使用可扩展的无监督方法解决语言模型中的叠加问题是可行的。我们的方法可作为未来机制可解释性研究的基础,我们希望这能提升模型的透明度与可操控性。

英文摘要:

One of the roadblocks to a better understanding of neural networks' internals is \textit{polysemanticity}, where neurons appear to activate in multiple, semantically distinct contexts. Polysemanticity prevents us from identifying concise, human-understandable explanations for what neural networks are doing internally. One hypothesised cause of polysemanticity is \textit{superposition}, where neural networks represent more features than they have neurons by assigning features to an overcomplete set of directions in activation space, rather than to individual neurons. Here, we attempt to identify those directions, using sparse autoencoders to reconstruct the internal activations of a language model. These autoencoders learn sets of sparsely activating features that are more interpretable and monosemantic than directions identified by alternative approaches, where interpretability is measured by automated methods. Moreover, we show that with our learned set of features, we can pinpoint the features that are causally responsible for counterfactual behaviour on the indirect object identification task \citep{wang2022interpretability} to a finer degree than previous decompositions. This work indicates that it is possible to resolve superposition in language models using a scalable, unsupervised method. Our method may serve as a foundation for future mechanistic interpretability work, which we hope will enable greater model transparency and steerability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑