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

Transformer 通过线性方式表示高度结构化的世界模型

Transformers Linearly Represent Highly Structured World Models

LaBRI, CNRS University of Bordeaux(LaBRI、CNRS 波尔多大学)

Roman Kniazev, Nathanaël Fijalkow

AI总结:

研究探讨了Transformer在训练过程中是否能构建任务的内部模型,并发现其内部表示结构与领域结构相匹配,通过Sudoku求解轨迹训练的Transformer展示了其内部计算机制和稀疏可解释的决策电路。

摘要:

当Transformer被训练于顺序推理轨迹时,它们是否会构建底层任务的内部模型?如果是的话,这些内部表示的结构是否与领域结构相匹配?我们训练了一个8层的Transformer模型来解决数独问题,并对其内部计算进行了机理分析。我们得出两个结论。第一,该模型构建了一个子结构世界模型:它不按人分析员所期望的那样逐个单元格表示棋盘状态,而是围绕数独约束所作用的行、列和盒子来组织信息。第二,我们识别出一个裸单电路:在最终的MLP层中,一组专用神经元,每个神经元单独检测特定单元格中恰好只剩一个可能的数字,并可靠地促进该数字。这些发现表明,涌现世界模型的几何结构由领域约束代数决定,而非其表面表现,且所得到的决策电路是稀疏的、单义的且完全可解释的。更广泛地说,这些发现展示了机理可解释性工具能够恢复Transformer如何解决组合推理任务的端到端算法账户。

英文摘要:

Do transformers, when trained on sequential reasoning traces, build internal models of the underlying task? And if so, does the structure of those internal representations mirror the structure of the domain? We train an 8-layer transformer on Sudoku solving traces and perform a mechanistic analysis of its internal computation. We establish two results. First, the model builds a substructure world model: it does not represent the board state cell by cell, as a human analyst would expect, but organizes information around the rows, columns, and boxes that Sudoku's constraints act on. Second, we identify a naked-single circuit: a small set of dedicated neurons in the final MLP layer, each individually detecting when exactly one digit remains possible for a specific cell, and reliably promoting that digit. These findings show that the geometry of an emergent world model is shaped by the constraint algebra of the domain, not its surface presentation, and that the resulting decision circuit is sparse, monosemantic, and fully interpretable. More broadly, they demonstrate that mechanistic interpretability tools can recover an end-to-end algorithmic account of how a transformer solves a combinatorial reasoning task.

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

↑