arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.29735cs.AI
收藏

揭示大型语言模型的推理过程

Unveiling the Reasoning Process of Large Language Models

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Junjie Zhang, Zhen Shen, Xisong Dong, Gang Xiong

AI总结:

本文通过分析Transformer层中注意力头和层的信息转换,揭示了大型语言模型在数学和符号推理任务中,中间层将token级信息转化为可重用的关联结构的核心机制。

摘要:

大型语言模型往往能够超越表层token进行推理,但token级信息转变为抽象关系结构的内部阶段仍不明确。我们通过分析自回归推理过程中注意力头和层如何转换信息来探讨这一问题。在数学和符号推理任务中,我们观察到一种一致的分层分工:外层主要保留和路由输入相关特征,而中层将它们重新组织为更具转移性的规则级表示。这种解释得到了表示几何的支持:中层状态占据较低维的流形,并在不同词汇库中表现出更强的对齐性,这些词汇库实现了相同的符号规则。此外,因果干预进一步支持了这一结论:移除通过我们基于交互的标准识别出的中层组件,会比移除其他区域或随机移除的组件产生更大的下游变化和准确率下降。共同,这些结果表明,抽象推理并非均匀分布在Transformer层中,而是优先在中层计算阶段形成,该阶段将token级信息转化为可重用的关联结构。

英文摘要:

Large language models often reason beyond surface tokens, but the internal stage at which token-level information becomes abstract relational structure remains unclear. We investigate this question by analyzing how attention heads and layers transform information during autoregressive reasoning. Across mathematical and symbolic reasoning tasks, we observe a consistent layer-wise division of labor: outer layers mainly preserve and route input-related features, whereas middle layers reorganize them into more transferable rule-level representations. This interpretation is supported by representation geometry: middle-layer states occupy lower-dimensional manifolds and show stronger alignment across disjoint vocabularies that instantiate the same symbolic rules. It is further supported by causal interventions: removing middle-layer components identified by our interaction-based criterion produces substantially larger downstream changes and accuracy drops than removing components from other regions or at random. Together, these results suggest that abstract reasoning is not uniformly distributed across transformer layers, but is preferentially formed in a middle-layer computation stage that converts token-level information into reusable relational structure.

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

↑