How Does Reasoning Flow? Tracing Attention-Induced Information Flow for Targeted RL in LLMs

Zhichen Dong, Yang Li, Yuhan Sun, Weixun Wang, Yijia Luo, Zinian Peng, Wenbo Su, Cheng Yu, Bo Zheng, Junchi Yan

Reinforcement Learning with Verifiable Rewards (RLVR) has become a standard method for improving the reasoning capabilities of Large Language Models (LLMs). The premise is simple: give the model a complex problem, let it generate a chain of thought, and reward it if the final answer is correct. However, this approach suffers from a major bottleneck known as the token-level credit assignment problem.

In standard RL recipes, every token in a successful generation is treated equally. The critical logical deduction "x = 5" receives the exact same reward as a fluent filler word like "therefore." This uniform approach dilutes the learning signal, making training unstable and inefficient. While some researchers have attempted to use point-wise heuristics—such as rewarding tokens with high entropy—these methods ignore the global structure of how a model actually constructs an argument.

To address this, researchers have introduced FlowTracer, a novel reinforcement learning framework that identifies the "reasoning backbone" of a response. By modeling attention weights as a directed flow of information toward the final answer, FlowTracer pinpoints which specific tokens are pivotal to the logic and amplifies their weight during training.

Mapping the Reasoning Backbone

FlowTracer treats the LLM's internal attention mechanism like a plumbing system for information, tracing how context routes from the initial prompt to the final output. The methodology relies on four key steps:

  1. Attention-Induced DAG: The generated sequence is represented as a Directed Acyclic Graph (DAG). Tokens act as nodes, and the edges between them are derived from aggregated attention weights.
  2. Doob-h-like Transform: Raw attention is noisy and does not naturally "conserve" flow; information can easily disappear into irrelevant subtrees. To fix this, FlowTracer applies a mathematical transform that reweights the edges to ensure local flow conservation. This guarantees that all "information mass" entering a reasoning step must eventually exit toward the final answer.
  3. Targeted Flow Analysis: The system injects a "unit flow" at the question tokens and collects it at the answer tokens. This process reveals a reasoning backbone—a set of high-throughput tokens that act as critical transit hubs for the model's logic.
  4. Reward Shaping: During the RL update (specifically using the GRPO algorithm), FlowTracer applies a non-uniform scaling factor. Tokens in the top 40% of flow throughput receive 1.5x the credit (or penalty) compared to standard filler tokens, focusing the learning signal exactly where it matters most.

Key Insights into LLM Reasoning

By analyzing the flow of information, the researchers uncovered several fascinating insights into how LLMs process complex logic:

  • Reasoning is Periodic: The reasoning backbone is not a continuous stream of text. Instead, high-flow tokens appear as periodic bridges. These are often structural delimiters (like newlines or punctuation) or symbolic anchors (like variable names and operators) that aggregate previous context before broadcasting it forward.
  • Middle-Layer Dominance: The most informative flow signals originate in the middle layers of the transformer. Early layers are too focused on low-level lexical features, while the final layers are primarily concerned with smoothing the output for fluency.
  • Causal Drivers of Accuracy: The researchers proved the importance of these high-flow tokens through causal intervention. Masking the top 20% of high-flow tokens caused the model's accuracy to plummet (a 14.9% reversal rate), whereas masking low-flow tokens had almost no effect (0.5%).
  • Scalability with Complexity: The advantages of FlowTracer increase as the reasoning chain gets longer. In long-context scenarios (e.g., 8K tokens vs. 1K tokens), finding the "needle in the haystack" of logic is harder, making precise credit assignment exponentially more valuable.

Performance and Efficiency Gains

The researchers evaluated FlowTracer across a diverse battery of reasoning benchmarks, including mathematical reasoning (AIME, AMC, MATH500, GSM8K), logical puzzles (the Countdown task), and multi-domain QA (CrossThinkQA). The framework was tested on both Qwen3 (4B/8B) and Llama-3.1/3.2 families, proving it to be architecture-agnostic.

The results demonstrated significant improvements over standard baselines:

  • Mathematical Reasoning: On Qwen3-8B, FlowTracer achieved an average accuracy of 43.4% across math benchmarks, representing a +4.0% absolute improvement over the standard GRPO baseline.
  • Logic Puzzles: In the Countdown task, FlowTracer delivered a massive +10.6% gain over the baseline.
  • High Efficiency: Despite the complex graph mathematics involved, FlowTracer only adds a 2.2% to 4.5% computational overhead to the training process, requiring just one extra forward pass per batch.

Limitations and Future Directions

While FlowTracer marks a significant step forward in targeted RL, it does have current limitations. The method relies on a clearly defined "answer region" (such as a \boxed{} value in math problems) to act as the flow destination. It is not yet clear how to adapt this technique for open-ended creative writing or conversational AI, where the end goal is more diffuse.

Furthermore, while FlowTracer excels at identifying the backbone of a correct answer, it doesn't inherently know if a specific step in an incorrect answer was "good logic followed by a bad calculation." The authors suggest that pairing FlowTracer with Process Reward Models (PRMs) could yield even more robust training signals in the future. Finally, for ultra-long contexts (16K+ tokens), the attention graph may become too dense, potentially requiring more adaptive flow extraction techniques to maintain signal clarity.

Summary updated

BibTeX
@inproceedings{dong2026how,
  author = {Zhichen Dong and Yang Li and Yuhan Sun and Weixun Wang and Yijia Luo and Zinian Peng and Wenbo Su and Cheng Yu and Bo Zheng and Junchi Yan},
  title = {{How Does Reasoning Flow? Tracing Attention-Induced Information Flow for Targeted RL in LLMs}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=Ym4KYa1n76},
}
Figure