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

层序倒置:重新思考大语言模型中的潜在多跳推理

Layer-Order Inversion: Rethinking Latent Multi-Hop Reasoning in Large Language Models

State Key Laboratory of Cognitive Intelligence(认知智能国家重点实验室);University of Science and Technology of China(中国科学技术大学);The Hong Kong University of Science and Technology(香港科技大学)

Xukai Liu, Ye Liu, Jipeng Zhang, Yanghai Zhang, Kai Zhang, Qi Liu

AI总结:

本文提出"层序倒置"现象,通过概率性回忆与提取框架解释大语言模型中多跳推理的机制,揭示了层序倒置与总跳步数的关系,并提供了多跳失败的诊断方法。

摘要:

大型语言模型(LLMs)在多跳推理任务上表现良好,但它们如何内部组合多个事实仍不清楚。最近的研究提出了"跳步对齐电路假说",认为桥接实体是在多层中按顺序计算后再进行后跳步答案的计算。通过系统分析现实中的多跳查询,我们发现这种跳步对齐的假设并不普遍:后跳步答案实体可以在桥接实体之前被解码,这种现象我们称之为"层序倒置",其强度随着总跳步数增加而增强。为了解释这种行为,我们提出了一种"概率性回忆与提取"框架,将多跳推理建模为浅层MLP层中的广泛概率性回忆,随后在更深的注意力层中进行选择性提取。该框架通过系统性探测分析得到实证验证,重新解释了先前层间解码的证据,解释了链式思维收益,并在正确单跳知识的情况下提供了多跳失败的机制诊断。代码可在https://github.com/laquabe/Layer-Order-Inversion上获得。

英文摘要:

Large language models (LLMs) perform well on multi-hop reasoning, yet how they internally compose multiple facts remains unclear. Recent work proposes \emph{hop-aligned circuit hypothesis}, suggesting that bridge entities are computed sequentially across layers before later-hop answers. Through systematic analyses on real-world multi-hop queries, we show that this hop-aligned assumption does not generalize: later-hop answer entities can become decodable earlier than bridge entities, a phenomenon we call \emph{layer-order inversion}, which strengthens with total hops. To explain this behavior, we propose a \emph{probabilistic recall-and-extract} framework that models multi-hop reasoning as broad probabilistic recall in shallow MLP layers followed by selective extraction in deeper attention layers. This framework is empirically validated through systematic probing analyses, reinterpreting prior layer-wise decoding evidence, explaining chain-of-thought gains, and providing a mechanistic diagnosis of multi-hop failures despite correct single-hop knowledge. Code is available at https://github.com/laquabe/Layer-Order-Inversion.

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

↑