arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.11917cs.LG
收藏

对在符号化多步推理任务上训练的Transformer的机制性分析

A Mechanistic Analysis of a Transformer Trained on a Symbolic Multi-Step Reasoning Task

University of Mannheim(曼海姆大学);Heinrich-Heine University Düsseldorf(杜塞尔多夫海因里希·海涅大学);Georgia Institute of Technology(佐治亚理工学院)

Jannik Brinkmann, Abhay Sheshadri, Victor Levoso, Paul Swoboda, Christian Bartelt

AI总结:

本文通过机制性分析揭示在符号化多步推理任务上训练的Transformer采用深度有界的并行循环机制,并在特定token位置存储中间结果,为理解更复杂模型提供基础。

摘要:

Transformer在一系列推理基准上表现出令人印象深刻的性能。为了评估这些能力在多大程度上源于真正的推理,现有工作侧重于开发用于行为研究的复杂基准。然而,这些研究并未提供对驱动所观察能力的内部机制的深入认识。为了增进我们对Transformer内部机制的理解,我们提出了对在一个合成推理任务上训练的Transformer的全面机制性分析。我们识别出一组模型用于解决该任务的可解释机制,并使用相关性和因果性证据验证了我们的发现。我们的结果表明,它实现了一种深度有界的循环机制,该机制并行运行,并将中间结果存储在选定的token位置上。我们预期,我们在合成环境中识别出的这些模式可以为Transformer更广泛的运行原理提供有价值的见解,从而为理解更复杂的模型奠定基础。

英文摘要:

Transformers demonstrate impressive performance on a range of reasoning benchmarks. To evaluate the degree to which these abilities are a result of actual reasoning, existing work has focused on developing sophisticated benchmarks for behavioral studies. However, these studies do not provide insights into the internal mechanisms driving the observed capabilities. To improve our understanding of the internal mechanisms of transformers, we present a comprehensive mechanistic analysis of a transformer trained on a synthetic reasoning task. We identify a set of interpretable mechanisms the model uses to solve the task, and validate our findings using correlational and causal evidence. Our results suggest that it implements a depth-bounded recurrent mechanisms that operates in parallel and stores intermediate results in selected token positions. We anticipate that the motifs we identified in our synthetic setting can provide valuable insights into the broader operating principles of transformers and thus provide a basis for understanding more complex models.

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

↑