arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.15801cs.LGcs.AIcs.CL
收藏

一种用于组合泛化的可解释Transformer电路

An explainable transformer circuit for compositional generalization

Massachusetts Institute of Technology(麻省理工学院);McGovern Institute(麦戈文研究所);New York University(纽约大学);Howard Hughes Medical Institute(霍华德·休斯医学研究所)

Cheng Tang, Brenden Lake, Mehrdad Jazayeri

AI总结:

本研究识别并机制性解释了紧凑Transformer中负责组合归纳的电路,通过因果消融验证并以类程序描述其运作,证明该理解可实现精确激活编辑以可控引导模型行为,推进了Transformer可解释性与模型控制研究。

摘要:

组合泛化——即将已知组件系统地组合成新结构的能力——仍是认知科学和机器学习领域的核心挑战。尽管基于Transformer的大语言模型在特定组合任务上表现出色,但驱动这些能力的底层机制仍不透明,其可解释性存疑。本研究在一个紧凑Transformer中识别出负责组合归纳的电路并对其进行机制层面的解释。我们通过因果消融验证了该电路,并用类程序描述形式化了其运作方式。我们进一步证明,这种机制层面的理解可实现精确的激活编辑,从而可预测地引导模型行为。研究结果推进了对Transformer复杂行为的理解,并表明这类洞见可为模型控制提供直接路径。

英文摘要:

Compositional generalization-the systematic combination of known components into novel structures-remains a core challenge in cognitive science and machine learning. Although transformer-based large language models can exhibit strong performance on certain compositional tasks, the underlying mechanisms driving these abilities remain opaque, calling into question their interpretability. In this work, we identify and mechanistically interpret the circuit responsible for compositional induction in a compact transformer. Using causal ablations, we validate the circuit and formalize its operation using a program-like description. We further demonstrate that this mechanistic understanding enables precise activation edits to steer the model's behavior predictably. Our findings advance the understanding of complex behaviors in transformers and highlight such insights can provide a direct pathway for model control.

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

↑