arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.11791cs.LGcs.AI
收藏

循环推理语言模型的机理分析

A Mechanistic Analysis of Looped Reasoning Language Models

University of Oxford(牛津大学);Mila – Quebec AI Institute(魁北克AI研究所)

Hugh Blayney, Álvaro Arroyo, Johan Obando-Ceron, Pablo Samuel Castro, Aaron Courville, Michael M. Bronstein, Xiaowen Dong

AI总结:

本文分析了循环推理语言模型中潜在状态的机理,揭示了循环块在潜在空间中的稳定轨迹及注意力头行为的稳定特性。

摘要:

推理能力已成为大语言模型的核心能力。最近的研究表明,通过在潜在维度中循环LLM的层可以提升推理性能,从而产生循环推理语言模型。尽管结果有希望,但很少有研究探讨其内部动态与标准前馈模型的区别。本文对循环语言模型的潜在状态进行了机理分析,特别关注前馈模型中观察到的推理阶段与循环模型中观察到的阶段的比较。为此,我们分析了循环递归,并证明对于许多研究模型,每个循环层都收敛到不同的固定点;因此,递归块在潜在空间中遵循一致的循环轨迹。我们提供证据表明,当这些固定点被达到时,注意力头行为会稳定下来,导致在递归中行为恒定。实证上,我们发现递归块学习的推理阶段与前馈模型的阶段非常相似,每经过一次迭代就重复这些阶段。我们研究了递归块大小、输入注入和归一化如何影响这些循环固定点的出现和稳定性。我们相信这些发现有助于将机理洞察转化为实际的架构设计指导。

英文摘要:

Reasoning has become a central capability in large language models. Recent research has shown that reasoning performance can be improved by looping an LLM's layers in the latent dimension, resulting in looped reasoning language models. Despite promising results, few works have investigated how the internal dynamics and computation of looped models differ from that of standard feedforward models. In this paper, we conduct a mechanistic analysis of latent states and layer behavior in looped language models. We analyze cyclic recurrence and show that for many of the studied models each layer in the cycle converges to a distinct fixed point; consequently, the recurrent block follows a consistent cyclic trajectory in the latent space. We provide evidence that as these fixed points are reached, attention-head behavior stabilizes, leading to constant behavior - stages of inference - across recurrences. Empirically, we discover that recurrent blocks tend to organize their computation such that it closely mirrors that of feedforward models, repeating this behavior in depth with each iteration. We study how architectural choices influence the emergence and stability of these cyclic fixed points and stages of inference, providing practical guidance for looped language model design.

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

↑