Long-Horizon Agent Reinforcement Learning: Why Value Models Are Making a Comeback
Recent trends in large language model (LLM) reinforcement learning favor value-model-free approaches for short-horizon reasoning tasks. However, as AI agents take on long-horizon, multi-step tasks, this simplified approach falls short in credit assignment and state evaluation. This article explores the fundamental differences between short-horizon reasoning and long-horizon agent tasks, explains why value models become indispensable for complex, dynamic environments, and provides practical engineering guidelines and an algorithm selection framework for training robust long-horizon agent systems.
Recently, a clear technological narrative has formed in the field of large language model (LLM) reinforcement learning: traditional policy optimization methods are engineering-heavy, computationally expensive, and require training an additional value model. In contrast, methods using relative advantage estimation without an explicit value model offer a simpler architecture and lower resource consumption, making them ideal for reasoning tasks where the primary reward is the correctness of the final answer. Consequently, many naturally infer that the future of LLM RL will continue to evolve toward a “value-model-free” paradigm.
While this holds true for specific tasks, it conceals a frequently overlooked premise: the tasks are sufficiently short, rewards are dense enough, and the impact of each step in the trajectory on the final result is relatively easy to assess.
Once a task transitions from “generating an answer” to a long-horizon agent task involving “understanding the objective—formulating a plan—calling tools—observing the environment—revising the strategy—delivering the result,” the basis for algorithm selection cannot merely be structural simplicity. Instead, we must re-examine the task itself. The landscape beyond the wall depends heavily on the specific problem you are trying to solve.
1. Distinguishing Two Fundamentally Different RL Tasks
1.1 Short-Horizon Reasoning Tasks
Short-horizon reasoning typically features:
- Limited trajectory length.
- Few environmental interactions.
- Rewards primarily given at the end of the sequence.
- Easy comparison of quality among samples in the same batch.
- A single error often does not alter the feasibility of all subsequent steps.
For example, a model might solve a math problem, generate code, or provide a conclusion with a clear standard answer. The training process can sample multiple results for the same question and calculate relative advantages based on outcome quality. In this scenario, the model does not necessarily need to know the precise value of each intermediate state. Simply determining that “this complete trajectory is better than another” provides sufficient direction for policy updates. Thus, value-model-free relative comparison methods offer a high cost-to-performance ratio.
1.2 Long-Horizon Agent Tasks
Long-horizon agent tasks are fundamentally different. They typically involve:
- Dozens or even hundreds of decision steps.
- Multiple rounds of tool calls and environmental feedback.
- Continuous state changes.
- Intermediate actions that may cause irreversible impacts.
- Sparse, delayed, and noisy rewards.
- Final results significantly influenced by early decisions.
Here, the model is not merely “generating text” but continuously acting in a dynamic environment. A single erroneous search, an incorrect file modification, or an incomplete parameter configuration can derail the subsequent trajectory from the correct path.
The core issue with these tasks is: to which step should the ultimate success or failure be attributed? If relative comparison is only applied at the complete trajectory level, the model might know which trajectory is better, but it cannot identify which specific action generated the benefit, nor can it accurately determine which intermediate steps are worth retaining.
2. Why Value-Model-Free Methods Excel in Short Tasks
The basic idea of value-model-free methods is to sample multiple candidate trajectories for the same input and then calculate relative advantages using within-group results. It does not directly learn an independent state value function but guides policy updates through the relative performance among candidates. This approach has three distinct advantages.
2.1 Simpler Engineering Architecture
Traditional policy optimization usually requires multiple components, such as a policy model, a reference policy, and a value model. The value model not only consumes additional memory but also faces issues like target drift, training instability, and estimation bias. Value-model-free methods eliminate the explicit value estimation phase, resulting in a shorter training loop and fewer debug targets, which is particularly suitable for rapid validation of reward design and data construction.
2.2 Friendly to Verifiable Tasks
If the reward can accurately verify the final outcome—such as whether the answer is correct, the code passes tests, or the output meets constraints—the within-group ranking itself provides an effective signal. In such cases, the training system does not need to precisely answer “what is the current state worth,” but only needs to know “which candidate is better.” When trajectories are short and outcomes are reliable, this coarse-grained signal is usually sufficient.
2.3 Easier to Scale Sampling
Without training a value model, the system can allocate more resources to generating candidate trajectories. For reasoning tasks, increasing the sampling volume can sometimes improve the probability of finding high-quality solutions and helps form a more stable relative ranking.
However, these advantages do not mean it naturally covers all tasks. Relative comparison solves “which candidate is better,” whereas long-horizon agents need to solve “how much did each intermediate action contribute.”
3. Why Long-Horizon Tasks Need Value Estimation Again
3.1 Significantly Increased Credit Assignment Difficulty
Suppose a trajectory contains T actions with a final reward R. If R is directly applied to update all actions, each step receives approximately the same training signal. This approach has obvious flaws:
- Correct early actions may be negated by subsequent errors.
- The contribution of a critical action is diluted by numerous irrelevant steps.
- Noise accumulates over long trajectories.
- Reward variance increases with trajectory length.
One role of the value function is to estimate the expected future return of a state or action, thereby constructing a finer-grained advantage signal. The common formulation is:
A_t = Q(s_t, a_t) - V(s_t)
Where V(s_t) represents the expected return when in state s_t, and Q(s_t, a_t) represents the expected return after executing a specific action. The difference helps the system determine whether the current action is better than the average choice in that state.
3.2 Delayed Rewards Require Intermediate Predictions
Long-horizon tasks often receive primary rewards only upon task completion or failure. A value model acts as a “future return prediction,” partially propagating terminal signals to intermediate states. This prediction may not be perfectly accurate, but it reduces training variance, allowing the model to receive feedback without waiting for the entire trajectory to conclude.
3.3 Different States Have Different Risks
In agent environments, two seemingly similar states can have entirely different subsequent spaces. For example:
- One state allows immediate rollback.
- Another state is about to trigger an irreversible operation.
- One state is one step away from the goal.
- Another state, though seemingly normal, has already entered an error branch.
Without state value estimation, the system struggles to explicitly express these differences. Long-horizon training requires not just outcome ranking, but also modeling of state risk, future potential, and recovery costs.
4. From Relative Comparison to Process-Level Credit Assignment
Long-horizon agent RL does not necessarily mean completely abandoning relative comparison. A more realistic approach is to combine multiple signals.
4.1 Terminal Rewards Evaluate Task Completion
Terminal rewards usually reflect the overall objective, such as task success, passing tests, constraint satisfaction, or delivery quality. They maintain training objective consistency and prevent the model from over-optimizing local metrics.
4.2 Process Rewards Provide Intermediate Direction
Process rewards can derive from:
- Whether a reasonable next step was chosen.
- Whether tools were called correctly.
- Whether unfulfilled objectives were reduced.
- Whether verifiable intermediate artifacts were generated.
- Whether repetitive operations and invalid loops were avoided.
Process rewards must be designed carefully. Excessively strong process rewards may cause the model to chase easily obtainable local gains while ignoring the final goal; if too weak, they fail to improve credit assignment.
4.3 Value Models Integrate Future Information
Value models can unify terminal outcomes, process rewards, and environmental states to form an estimate of future returns. Rather than simply replacing rewards, they help the policy understand the position of the current action within the entire task chain. Therefore, the renewed interest in classical policy optimization frameworks does not represent a technological regression, but rather indicates that as task complexity increases, explicitly modeling future returns becomes valuable again.
5. Why “Simpler” Doesn’t Always Mean “More Suitable”
When evaluating RL algorithms, one cannot solely look at component count or single-round training costs; the return per unit of effective sample must also be considered. Value-model-free methods appear lighter but may incur the following hidden costs in long tasks:
- A large number of complete trajectories is required to obtain reliable rankings.
- Valid local steps within failed trajectories are difficult to reuse.
- The longer the trajectory, the more likely group outcome differences are influenced by incidental factors.
- Incorrect attribution of early actions leads to redundant exploration.
- When training is unstable, issues are hard to pinpoint to specific steps.
Conversely, approaches with value estimation require additional training and maintenance of components but may reduce invalid sampling through more accurate advantage estimation, improving learning efficiency in long trajectories. Therefore, a more rational comparison should be:
Total Cost = Sampling Cost + Training Cost + Retry Cost + Debugging Cost
It is insufficient to only compare the memory or compute required for a single update.
6. Engineering Design Recommendations for Long-Horizon Agent Systems
6.1 Establish Hierarchical Trajectory Recording
Each trajectory should not only save the final result but also record:
- State snapshots.
- Action types.
- Tool call parameters.
- Tool return results.
- Intermediate verification conclusions.
- Current sub-goals.
- Failure reasons.
- Recoverability status.
This information can be used both to train value models and to support offline analysis and error attribution.
6.2 Break Tasks into Verifiable Sub-goals
If all rewards are concentrated on the final result, the training signal is usually too sparse. Stage checkpoints can be set based on task structure, such as whether the plan is complete, key files are generated, tests pass, or states meet constraints. Sub-goals should not just be artificially divided steps but should correspond to actual task progress. Otherwise, the model might learn to complete checkpoints without truly completing the task.
6.3 Add Risk Modeling for Irreversible Actions
Actions involving deletion, commit, publish, permission modification, or large-scale state changes should have stricter validation mechanisms. During training, action risk can be incorporated into value estimation, enabling the model to consider post-failure recovery costs alongside success probability.
6.4 Handle Trajectory Truncation Issues
Long trajectories are often truncated due to time, budget, or context limits. Simply treating truncation as failure may wrongly penalize states that actually still have a high probability of success. A better practice is to distinguish between:
- Explicit failure.
- Normal completion.
- Budget exhaustion.
- Environment anomalies.
- Incomplete but still potential.
Different termination reasons should utilize different training objectives.
6.5 Monitor Behavioral Changes During Training
Beyond final success rates, observe:
- Average trajectory length.
- Number of tool calls.
- Proportion of repetitive actions.
- Proportion of invalid loops.
- Intermediate checkpoint pass rates.
- Average position of failures.
- Effectiveness of recovery operations.
- Deviation between value predictions and actual returns.
These metrics help developers determine whether the model is genuinely improving its planning capabilities or merely learning a superficial strategy.
7. How to Choose an Algorithm Route
A practical decision framework can be adopted.
If the task has the following characteristics:
- Short trajectories.
- Easily automated result verification.
- Rewards primarily concentrated on final outputs.
- Limited impact of intermediate states.
- Controllable sampling costs.
Then relative comparison and value-model-free methods are often more attractive.
If the task has the following characteristics:
- Long decision chains.
- Noticeably delayed rewards.
- Continuously changing environmental states.
- Intermediate actions affecting subsequent feasibility.
- High cost of failure.
- Need to reuse partially successful trajectories.
Then policy optimization methods with value estimation should be prioritized, or a hybrid approach adopted, such as:
- Using relative rewards to filter high-quality trajectories.
- Using process rewards to provide local supervision.
- Using value models for advantage estimation.
- Adding extra validation for critical states.
- Employing different update strategies at various training stages.
There is no absolute superiority of an algorithm detached from its task. What truly matters is whether the training signal matches the task structure.
8. Common Pitfalls to Avoid
First, do not interpret “removing the value model” as an inevitable algorithmic advancement. It reduces system complexity but may sacrifice the ability to express intermediate states.
Second, do not simply view “traditional methods” as outdated. Value estimation, advantage functions, and trust region concepts from classical methods remain vital tools for handling long-horizon decisions.
Third, do not judge training quality solely by final success rates. An increase in success rate accompanied by worse trajectory lengths, call counts, and failure recovery costs does not necessarily mean the system has actually grown stronger.
Fourth, do not ignore reward design. Algorithms can only amplify existing signals; they cannot compensate for ambiguous goal definitions, unreliable verifiers, or missing process data.
Fifth, do not separate model training from runtime systems. The performance of long-horizon agents is simultaneously affected by the policy model, environmental feedback, tool reliability, state management, and exception handling.
Conclusion: Algorithm Selection Depends on Task Boundaries
Moving from relative comparison methods back toward policy optimization with value estimation is not a simple technological regression, nor does it mean one algorithm will permanently replace another. It is a natural adaptation following changes in task boundaries.
When the problem is a short-horizon, strongly verified, low-interaction reasoning task, lightweight relative optimization methods achieve good results at a lower cost. When the problem becomes a long-horizon, multi-stage, highly interactive agent task, the system must re-encounter fundamental issues like credit assignment, delayed rewards, and state value estimation.
What is truly worth focusing on is not “which algorithm is more advanced,” but rather the following questions:
- When are rewards generated?
- Which actions truly impact the final result?
- Can failures be recovered?
- Can intermediate states be reliably evaluated?
- How should training and sampling costs be balanced?
- How are runtime risks fed back into the training process?
Once these questions are clearly answered, algorithm selection ceases to be about chasing trends and becomes a verifiable, measurable, and continuously iterable systems engineering process.
