Attention as a Compass: Efficient Exploration for Process-Supervised RL in Reasoning Models

Runze Liu, Jiakang Wang, Yuling Shi, Zhihui Xie, Chenxin An, Kaiyan Zhang, Jian Zhao, Xiaodong Gu, Lei Lin, Wenping Hu, Xiu Li, Fuzheng Zhang, Guorui Zhou, Kun Gai

Process-Supervised Reinforcement Learning (PSRL) is a powerful way to teach Large Language Models (LLMs) to reason step-by-step. However, current methods often waste compute exploring unhelpful paths and "too easy" problems. Enter AttnRL, a novel framework that uses a model's own internal attention scores to identify critical reasoning steps, branching from these points to explore alternative solutions. Combined with an adaptive sampling strategy and an optimized training pipeline, AttnRL achieves state-of-the-art mathematical reasoning performance while significantly cutting computational costs.

The Bottleneck in Process-Supervised RL

Post-training LLMs using Reinforcement Learning (RL) has become the standard for building advanced reasoning models (like OpenAI's o1 or DeepSeek-R1). While Outcome-Supervised RL (OSRL) only rewards the final answer, Process-Supervised RL (PSRL) evaluates the step-by-step logic, which yields far more robust reasoning capabilities.

To perform PSRL, models typically use Monte Carlo (MC) sampling: they generate a response, pick a "branching point" in the middle of the text, and generate alternative endings to see which logical paths work best. However, existing PSRL methods are highly inefficient:

  1. Dumb Branching: They branch at fixed token lengths or at tokens with high entropy (uncertainty), ignoring the actual semantic meaning and logical weight of the steps.
  2. Uniform Sampling: They sample all problems equally. If a math problem is too easy, the model gets it right every time, resulting in a "zero advantage" training signal that wastes compute.
  3. Slow Pipelines: They typically require a clunky two-step generation process per training update, bottlenecking wall-clock time.

The AttnRL Framework

The authors propose AttnRL, which systematically resolves these inefficiencies through three main innovations:

  • Attention-Based Tree Branching (ATB): Instead of branching randomly or based on entropy, AttnRL looks at the model's self-attention matrices. It calculates a Forward Context Influence (FCI) score for each step, which measures how much future tokens attend back to that specific step. The framework identifies the steps with the highest FCI scores and branches the Monte Carlo rollouts from the earliest of these critical steps.
  • Adaptive Sampling:
    • Difficulty-Aware: AttnRL filters out problems that are too easy (identified heuristically by low average attention values, which correlate heavily with zero-advantage samples). For harder problems, it expands more rollout trees.
  • Dynamic Batching: Because many sampled responses end up being useless for training (e.g., all rollouts are correct, yielding zero relative advantage), AttnRL dynamically adjusts the prompt batch size on the fly to ensure the final training batch always maintains a target number of valid samples.
  • One-Step Off-Policy Training: To speed up the pipeline, AttnRL overlaps operations. During training step $m$, it performs MC sampling for the current batch while simultaneously doing the initial prompt sampling for batch $m+1$. This eliminates redundant sampling phases.

Key Insights: Why Attention Matters

FCI scores map directly to critical reasoning behaviors like planning, hypothesis generation, and self-verification.
  • Attention = Reasoning: The authors discovered that steps with massive attention values (high FCI scores) aren't just statistical noise; they consistently map to crucial reasoning behaviors like planning, hypothesis generation, and self-verification.
  • Targeted Disruption Proves Importance: If you artificially zero-out the attention values of the top 20% highest-FCI steps, the model's accuracy plummets far more than if you disrupt random steps.
  • Entropy is a Poor Compass: Previous methods assumed that branching where the model is "uncertain" (high entropy) is best for exploration. This paper shows that branching where the model is doing its "heavy lifting" (high attention) yields much richer, more diverse reasoning paths.
  • Easy Problems are a Trap: In standard PSRL, a massive percentage of compute is wasted on problems the model already understands. Filtering these out based on attention heuristics drastically improves training efficiency.

State-of-the-Art Efficiency and Performance

AttnRL was evaluated on six standard, challenging mathematical reasoning benchmarks (AIME24, AIME25, AMC23, MATH-500, Minerva Math, and OlympiadBench) using the DeepScaleR-Preview-Dataset.

AttnRL achieves higher accuracy with significantly fewer GPU hours compared to existing baselines.
  • Superior Performance: AttnRL consistently outperformed base models (DS-R1-Distill-Qwen-1.5B and 7B) across all six benchmarks. Most notably, it boosted AIME24 accuracy by 11.4% for the 1.5B model and 5.3% for the 7B model.
  • Beating the Baselines: AttnRL outperformed strong RL baselines like GRPO and TreeRL. It even beat DeepScaleR-Preview-1.5B, despite the latter being trained for 3x more steps with a much longer context window (24K vs AttnRL's 8K).
  • Massive Efficiency Gains: The one-step off-policy pipeline reduced wall-clock training time by 8% compared to standard TreeRL. More impressively, thanks to adaptive sampling, AttnRL generated over 3x more valid training tokens (930.4M vs 274.6M) in that shorter timeframe.

Limitations and Future Work

While highly effective, the authors noted in their ablations that filtering out all easy problems actually caused a slight performance drop. Even "easy" problems can occasionally produce incorrect Monte Carlo samples that provide valuable corrective training signals, meaning adaptive sampling must be carefully balanced. Furthermore, the paper evaluates AttnRL exclusively on mathematical reasoning tasks. While math is the standard testbed for reasoning models, it remains to be seen if this exact attention-FCI heuristic maps perfectly to other domains like code generation or general logic puzzles.

Summary updated

BibTeX
@inproceedings{liu2026attention,
  author = {Runze Liu and Jiakang Wang and Yuling Shi and Zhihui Xie and Chenxin An and Kaiyan Zhang and Jian Zhao and Xiaodong Gu and Lei Lin and Wenping Hu and Xiu Li and Fuzheng Zhang and Guorui Zhou and Kun Gai},
  title = {{Attention as a Compass: Efficient Exploration for Process-Supervised RL in Reasoning Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=NCN8oUsiNf},
}
Figure