2025-01-15 · 进阶 · 机器学习 · 自然语言处理

Enhancing Automated Interpretability with Output-Centric Feature Descriptions

该论文提出了一种基于输出的特征描述方法,以改进自动可解释性管道,更好地捕捉特征对模型输出的因果效应。

更新于 2025-01-15。作者:Yoav Gur-Arieh、Roy Mayan、Chen Agassy、Atticus Geiger、Mor Geva。

中文摘要

自动可解释性管道为大型语言模型(LLMs)中由特征表示的概念生成自然语言描述,例如植物或句子中的第一个单词。这些描述是通过激活特征的输入得到的,这些输入可能是模型表示空间中的一个维度或方向。然而,识别激活输入的成本很高,而一个特征在模型行为中的机制作用既取决于输入如何导致特征激活,也取决于特征激活如何影响输出。通过使用引导评估,我们发现当前的管道提供的描述未能捕捉到特征对输出的因果效应。为了解决这个问题,我们提出了高效的、以输出为中心的方法来自动生成特征描述。这些方法使用特征刺激后权重更高的标记或直接应用词汇“unembedding”头到特征后的最高权重标记。我们的以输出为中心的描述比以输入为中心的描述更好地捕捉了特征对模型输出的因果效应,但将两者结合可以同时在输入和输出评估中获得最佳性能。最后,我们展示了以输出为中心的描述可以用来找到之前被认为“无效”的特征的激活输入。

英文摘要

Automated interpretability pipelines generate natural language descriptions for the concepts represented by features in large language models (LLMs), such as plants or the first word in a sentence. These descriptions are derived using inputs that activate the feature, which may be a dimension or a direction in the model's representation space. However, identifying activating inputs is costly, and the mechanistic role of a feature in model behavior is determined both by how inputs cause a feature to activate and by how feature activation affects outputs. Using steering evaluations, we reveal that current pipelines provide descriptions that fail to capture the causal effect of the feature on outputs. To fix this, we propose efficient, output-centric methods for automatically generating feature descriptions. These methods use the tokens weighted higher after feature stimulation or the highest weight tokens after applying the vocabulary "unembedding" head directly to the feature. Our output-centric descriptions better capture the causal effect of a feature on model outputs than input-centric descriptions, but combining the two leads to the best performance on both input and output evaluations. Lastly, we show that output-centric descriptions can be used to find inputs that activate features previously thought to be "dead".

解读

一句话总结

该论文提出了一种基于输出的特征描述方法,以改进自动可解释性管道,更好地捕捉特征对模型输出的因果效应。

问题1:这篇论文想要解决什么具体问题?

• 问题背景:当前自动可解释性管道依赖激活输入来描述特征,这种方法存在计算成本高、可能遗漏重要信息等问题。 • 现有方案不足:仅依赖激活输入的描述方法无法全面反映特征的因果作用,可能导致特征描述不准确或错误分类。 • 研究目标:提出基于输出的特征描述方法,以更准确地捕捉特征的因果效应,并提高模型的可解释性。

问题2:论文的核心创新点是什么?

• 技术创新:提出了两种基于输出的特征描述方法,VocabProj和TokenChange,分别通过词汇投影和词素变化来描述特征。 • 方法改进:与传统的基于激活输入的方法相比,VocabProj和TokenChange具有更高的计算效率,并且能够更好地捕捉特征的因果效应。 • 优势:基于输出的特征描述方法在捕捉特征对模型输出的因果效应方面优于基于输入的方法,结合两者可进一步提高性能。

问题3:实验结果如何验证了方法的有效性?

• 关键实验:在多个大型语言模型上进行了实验,包括Gemma-2、Llama-3.1和GPT-2等,并使用输入和输出两种评估方法。 • 性能提升:与基于激活输入的方法相比,基于输出的方法在输出评估中表现更佳,而在输入评估中性能相近或略低。 • 对比结果:实验结果表明,结合输入和输出的方法在两种评估中均取得了最佳性能。

问题4:这个研究的实际应用价值是什么?

• 应用场景:该方法可用于提高大型语言模型的可解释性,帮助用户理解模型的行为和决策过程。 • 实施建议:将基于输出的特征描述方法集成到现有的自动可解释性管道中,以提高其性能和准确性。 • 局限与展望:该方法依赖于模型词汇,可能难以描述无法用词汇表达的特征。未来研究可以探索更通用的特征描述方法。

来源