2025-10-01 · 进阶 · 自然语言处理 · 机器学习

Thinking Sparks!: Emergent Attention Heads in Reasoning Models During Post Training

该论文通过电路分析揭示了推理模型在训练后出现的新型、功能专化的注意力头,并探讨了这些注意力头如何影响模型的推理能力和性能。

更新于 2025-10-01。作者:Yein Park、Minbyul Jeong、Jaewoo Kang。

中文摘要

现代大型推理模型的卓越能力在很大程度上是通过后训练技术,如监督微调和强化学习来实现的。然而,这些改进背后的架构机制仍然在很大程度上不透明。在本工作中,我们利用电路分析来证明,针对复杂推理的后训练引发了新型、功能专用注意力头的出现。这些头部共同支持结构化推理和计算。我们跨越Qwen系列和DeepSeek蒸馏模型的比较分析揭示,这些新兴头部在不同训练机制下呈现出不同的演化。蒸馏和SFT(监督微调)促进稳定推理头部的累积增加。相比之下,组相对策略优化以动态搜索模式运行:相对较少的注意力头部被迭代激活、评估和修剪,其存活状态与任务奖励信号的波动紧密相关。此外,我们发现可控的开关模型不具有专用的思考头部。相反,关闭显式推理会触发一组更广泛但效率较低的补偿头部。通过消融和定性分析,我们将这些电路级别的动态与关键性能权衡联系起来:强化头部为困难问题提供了复杂的解决问题策略,但也可能引入过度思考的失败模式,如简单任务中的计算错误或逻辑循环。这些发现将电路级别的动态与宏观级别的性能联系起来,识别出一个固有的紧张关系,即复杂推理是以基本计算为代价的。更广泛地说,我们的工作指出了训练策略设计的未来方向,强调了在确保可靠、无瑕疵执行的同时,平衡有效推理策略发展的必要性。

英文摘要

The remarkable capabilities of modern large reasoning models are largely unlocked through post-training techniques such as supervised fine-tuning and reinforcement learning. However, the architectural mechanisms behind such improvements remain largely opaque. In this work, we use circuit analysis to demonstrate that post-training for complex reasoning sparks the emergence of novel, functionally specialized attention heads. These heads collectively support structured reasoning and computation. Our comparative analysis across Qwen families and DeepSeek-distilled model reveals that these emergent heads evolve differently under different training regimes. Distillation and SFT foster a cumulative addition of stable reasoning heads. In contrast, group relative policy optimization operates in a dynamic search mode: relatively few attention heads are iteratively activated, evaluated, and pruned, with their survival closely tracking fluctuations in the task reward signal. Furthermore, we find that controllable think on/off models do not possess dedicated thinking heads. Instead, turning off explicit reasoning triggers a broader-but less efficient-set of compensatory heads. Through ablation and qualitative analyses, we connect these circuit-level dynamics to a crucial performance trade-off: strengthened heads enable sophisticated problem-solving strategies for difficult problems but can also introduce over-thinking failure modes, such as calculation errors or logical loops on simpler tasks. These findings connect circuit-level dynamics to macro-level performance, identifying an inherent tension where complex reasoning comes at the cost of elementary computations. More broadly, our work points to future directions for training policy design, emphasizing the need to balance the development of effective reasoning strategies with the assurance of reliable, flawless execution.

解读

一句话总结

该论文通过电路分析揭示了推理模型在训练后出现的新型、功能专化的注意力头,并探讨了这些注意力头如何影响模型的推理能力和性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源