PAIR: Prefix-Aware Internal Reward Model for Multi-Turn Agent Optimization
cs.AI
Submitted: 2026-05-18
Updated: 2026-09-30
Comments: NeurIPS 2026
Code: https://github.com/wonjoong-kim/PAIR
License: http://creativecommons.org/licenses/by/4.0/
The gist: A significant hurdle for current LLMs is the execution of complex, multi-stage tasks.
Terminology
Abstract
A significant hurdle for current LLMs is the execution of complex, multi-stage tasks. Group Relative Policy Optimization (GRPO) has been emerging as a leading choice, but its reliance on sparse outcome rewards severely limits credit assignment across intermediate steps. Existing remedies such as running full rollouts to assign step-level advantages, calling external LLM judges at each step, or computing intrinsic rewards that require ground-truth answers at every evaluation introduce significant costs or practical constraints. We hypothesize that internal correctness probing over LLM hidden states can be repurposed as a step-level reward signal, potentially addressing all of these limitations at once. However, existing probing research assumes clean inputs, and we first show that this assumption breaks down in multi-step settings: hidden-state probes degrade severely under prefix contamination tracking coherence with the (possibly corrupted) prefix rather than grounded correctness, while attention-based features remain robust to contamination but underperform on clean prefixes. Building on this complementary relationship, we propose the Prefix-Aware Internal Reward (PAIR), a two-stage model with a frozen hidden-state probe estimating belief-consistency and a lightweight attention-based head correcting it toward grounded correctness. Experimental results show that PAIR achieves the highest AUROC on contaminated trajectories while operating at negligible inference cost, enabling dense step-level reward signals for GRPO training without external model calls, ground-truth dependencies, or full-trajectory rollouts.
Sources
- Discovering Latent Knowledge in Language Models Without Supervision
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- Tree Search for LLM Agent Reinforcement Learning
- Language Models (Mostly) Know What They Know
- Beyond the Final Answer: Evaluating the Reasoning Trajectories of Tool-Augmented Agents
- Understanding R1-Zero-Like Training: A Critical Perspective
- Let's reward step by step: Step-Level reward model as the Navigators for Reasoning
- Gradient-Stable Attention Heads Signal LLM Correctness
- ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs
- Proximal Policy Optimization Algorithms
- DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
- Information Gain-based Policy Optimization: A Simple and Effective Approach for Multi-Turn Search Agents
- SPA-RL: Reinforcing LLM Agents via Stepwise Progress Attribution
- VisualPRM: An Effective Process Reward Model for Multimodal Reasoning
- Latent Space Chain-of-Embedding Enables Output-free LLM Self-Evaluation
- Reinforcing Multi-Turn Reasoning in LLM Agents via Turn-Level Reward Design
- AgentPRM: Process Reward Models for LLM Agents via Step-Wise Promise and Progress
- TIPS: Turn-Level Information-Potential Reward Shaping for Search-Augmented LLMs
- Qwen2.5 Technical Report
- Entropy-Regularized Process Reward Model
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems