How Does Reasoning Flow? Tracing Attention-Induced Information Flow for Targeted RL in LLMs
本文提出了一种名为FlowTracer的强化学习框架,通过追踪注意力诱导的信息流来优化大型语言模型中的目标强化学习。
更新于 2026-08-14。作者:Zhichen Dong、Yang Li、Yuhan Sun、Weixun Wang、Yijia Luo、Zinian Peng、Taiheng Ye、Chao Yang、Wenbo Su、Yu Cheng、Bo Zheng、Junchi Yan。
中文摘要
在大型语言模型(LLMs)中,基于强化学习(RL)的信用分配在分词级别上仍然是一个关键障碍。通常,RL方法对待所有分词一视同仁,无法区分关键的推理步骤与常规的格式化或流畅的填充内容。最近的研究尝试利用模型内部的信号来分配更细粒度的信用,但这些方法通常只是点状的启发式算法,忽略了信息传播的全球结构。我们提出了FlowTracer,这是一个RL框架,它在一个由注意力诱导的有向无环图上追踪针对答案的推理流程,图中节点对应于分词,边容量来自聚合的注意力权重,并从这种全局结构中推导出分词信用。边容量被重新加权,仅保留能够到达答案区域的影响,同时强制执行局部流量守恒,以确保中间分词不会因为路径长度或不相关的分支而损失或获得有效质量。在这个图上,FlowTracer提取了一条信息流主干,将问题与答案连接起来,并通过流量吞吐量对分词进行评分,揭示了具有高影响力的中心节点和调节长距离依赖的聚合检查点。这些推导出的重要性被用来塑造分词级别的奖励,使学习信号能够精确地集中在将信息路由到(或远离)正确答案的分词上,并在各种推理任务上实现一致的性能提升。
英文摘要
Token-level credit assignment remains a key obstacle for reinforcement learning (RL) in large language models (LLMs), where RL recipes typically treat all tokens equally, failing to distinguish decisive reasoning steps from routine formatting or fluent filler. Recent attempts leverage model-internal signals to assign finer-grained credit, but these are often point-wise heuristics that ignore the global structure of information propagation. We propose FlowTracer, an RL framework that traces answer-targeted reasoning flow on an attention-induced directed acyclic graph in which nodes correspond to tokens and edge capacities come from aggregated attention weights and derives token credit from this global structure. The edge capacities are reweighted to retain only the influence that can reach the answer region, while enforcing local flow conservation so intermediate tokens neither lose nor gain effective mass due to path length or irrelevant branches. On this graph, FlowTracer extracts an information-flow backbone connecting the question to the answer and scores tokens by flow throughput, revealing high-impact hubs and aggregation checkpoints that mediate long-range dependencies. These derived importances are used to shape token-level rewards, enabling learning signals to focus precisely on the tokens that route information toward (or away from) correct answers and delivering consistent performance gains across a range of reasoning tasks.
解读
一句话总结
本文提出了一种名为FlowTracer的强化学习框架,通过追踪注意力诱导的信息流来优化大型语言模型中的目标强化学习。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:在大型语言模型(LLMs)中,强化学习(RL)的token级信用分配仍然是一个关键障碍,因为RL方法通常平等地对待所有tokens,无法区分决定性的推理步骤和常规格式或流畅的填充词。
- 现有方案不足:现有的尝试利用模型内部信号进行更细粒度的信用分配,但这些通常是点状的启发式方法,忽略了信息传播的全局结构。
- 研究目标:提出FlowTracer,一个RL框架,它在注意力诱导的有向无环图上追踪答案目标的推理流,其中节点对应于tokens,边容量来自聚合的注意力权重,并从全局结构中推导出token信用。
问题2:论文的核心创新点是什么?
- 技术创新:提出FlowTracer,一个基于图的信用分配方法,从模型的注意力结构中提取答案目标的推理骨干,并使用它来指导RL更新。
- 方法改进:通过引入显式的答案条件化步骤,FlowTracer保留只有可以到达答案区域的影响,同时执行局部流量守恒,确保中间tokens不会因为路径长度或不相关分支而失去或增加有效质量。
- 优势:FlowTracer能够更准确地识别和奖励导致正确解决方案的关键推理步骤,从而提高学习效率和推理性能。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在数学推理、多领域问答和特定领域谜题解决等任务上进行的实验。
- 性能提升:FlowTracer在所有基准测试中均优于基线方法,特别是在长上下文推理场景中,其性能优势更为明显。
- 对比结果:与标准的GRPO基线和其他token级信用分配启发式方法相比,FlowTracer在数学推理任务上实现了显著的性能提升。
问题4:这个研究的实际应用价值是什么?
- 应用场景:数学推理、多领域问答、特定领域谜题解决等。
- 实施建议:将FlowTracer集成到现有的LLMs中,以改善其推理能力和学习效率。
- 局限与展望:FlowTracer目前假设一个局部的答案区域,未来研究可以扩展到开放式生成或工具调用轨迹。此外,对于非常长的上下文,可能需要引入自适应流量提取。
来源
机器可读索引:llms.txt