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:论文的核心创新点是什么?
- 技术创新:采用电路分析来识别和表征推理模型中负责特定行为的子图。
- 方法改进:通过比较不同后训练方法(蒸馏、SFT、GRPO)对模型内部机制的影响,揭示了不同方法在激活新注意力头和影响模型推理能力方面的差异。
- 优势:提供了对后训练方法如何改变模型内部机制的新见解,有助于设计更有效的推理策略。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:通过电路分析识别和验证了后训练过程中出现的新的推理注意力头。
- 性能提升:实验结果表明,后训练方法确实通过激活新的注意力头来增强模型的推理能力。
- 对比结果:与基线模型相比,后训练模型在推理任务上的性能有所提升。
问题4:这个研究的实际应用价值是什么?
- 应用场景:该研究有助于设计更有效的推理策略,提高推理模型的性能和可靠性。
- 实施建议:建议在训练策略中考虑平衡推理策略的发展与执行可靠性。
- 局限与展望:该研究主要关注数学推理任务,未来可以扩展到其他类型的推理任务,并进一步探索如何优化训练策略以实现更好的性能。