Introduction
In the development of Large Language Model (LLM) agents, evaluating performance typically relies on binary outcome rewards—success or failure at the end of a task. While straightforward, this sparse feedback mechanism presents a significant "credit assignment" challenge: in a multi-step interaction, it is difficult to determine which specific actions led to a successful outcome or a failure. This paper introduces a scalable framework for training LLM agents using process rewards, which provide fine-grained feedback for every intermediate step.
The Credit Assignment Problem in LLM Agents
LLM agents often operate in long-horizon, stochastic environments where a single mistake can derail a complex sequence of actions. Traditional Reinforcement Learning (RL) struggles in these settings because feedback is delayed. Furthermore, unlike mathematical reasoning tasks where process reward models (PRMs) have seen success, agent environments are unpredictable, requiring models that can generalize across varied state-action transitions.
Proposed Frameworks: AgentPRM and InversePRM
The authors propose two primary iterative frameworks to address these challenges: AgentPRM and InversePRM.
AgentPRM
AgentPRM is designed for scenarios where outcome rewards are available but sparse. It utilizes a three-stage loop:
- Rollout and Compute Targets: The agent performs multiple rollouts in the environment. Monte Carlo methods estimate the value of intermediate states by averaging future outcomes, creating a dataset of state-action pairs with associated target scores.
- Train Process Reward Models: A critic model (the PRM) is trained via supervised learning to predict these target scores, effectively learning to evaluate the quality of individual steps.
- Train Policy via RL: The agent's policy is updated using Online Direct Preference Optimization (DPO) to maximize the rewards predicted by the PRM.
InversePRM
InversePRM is applicable when expert demonstrations are available but explicit outcome rewards are not. It learns a reward function by contrasting expert transitions with the agent's own attempts. This approach is highly sample-efficient, leveraging the "relative advantage" of expert actions to guide the learning process from the first iteration.
Experimental Evaluation
The frameworks were evaluated on the ALFWorld benchmark, a text-based environment requiring agents to complete household tasks. The study utilized a Llama 3.2 3B model as the base actor and critic. For InversePRM, 10,000 trajectories from a larger Llama 3-8B model (LEAP) served as expert demonstrations.
Results and Analysis
The experimental results demonstrate that specialized training with process rewards can enable small models to outperform significantly larger general-purpose models.
- Performance vs. Scale: A 3B-parameter model trained with AgentPRM achieved a 91.0% success rate on ALFWorld using Best-of-N (BoN) inference. This performance surpasses much larger models like GPT-4o (65.7%) and Claude 3.5 Sonnet (76.1%).
- Inference-Time Scaling: The use of the PRM during inference (Best-of-N) provides a substantial performance boost. Selecting the best of 16 samples improved the success rate from 73.9% to 84.3% in the first iteration.
- Efficiency of InversePRM: InversePRM reached near-expert levels (82.8%) in a single iteration, highlighting its utility when expert data is available.
Discussion: Reward Hacking and Exploration
A critical observation in the study is the phenomenon of reward hacking, where the PRM's predicted reward continues to rise even as the actual success rate declines. This "over-optimization" suggests that while PRMs are powerful, they require careful regularization or re-initialization to remain aligned with ground-truth objectives. Additionally, the authors found that Steered Exploration—prompting the LLM to hypothesize and try diverse strategies—is a more effective way to discover optimal policies than traditional random exploration.
Conclusion
This work provides a practical roadmap for scaling LLM agents beyond the limitations of sparse feedback. By shifting the focus from final outcomes to the decision-making process, the AgentPRM and InversePRM frameworks allow smaller, more efficient models to achieve state-of-the-art performance on complex agentic tasks.
Paper Citation: Choudhury, S. (2025). Process Reward Models for LLM Agents: Practical Framework and Directions. arXiv:2502.10325v1.
Summary updated