Full text not available for this paper
Summary (Overview)
- SPLICE is a novel training method that recovers learning signals from "all-fail" groups in long-horizon agent reinforcement learning, where every sampled trajectory receives zero reward and GRPO's advantage estimation collapses.
- The method constructs local training targets by having a proposal model generate bounded "options" at selected splice points within failed current-policy trajectories, then evaluates these options using repeated current-policy continuations.
- SPLICE outperforms GRPO by 2.8–9.8 percentage points across four settings (two policy families × two tasks), and raises GRPO's graduation rate on initially failed SWE tasks by 10.8 percentage points.
- The approach reduces proposal-model computation by 17.5% compared to full-trajectory guidance baselines (ReLIFT) while achieving better performance.
- Key design insight: failures in long-horizon tasks are often localized — a short corrective segment can lead to a state from which the current policy can complete the remaining task, making full expert trajectories unnecessary and costly.
Introduction and Theoretical Foundation
Background and Motivation
LLM agents solve long-horizon tasks through sequences of decisions and environment interactions. Reinforcement Learning with Verifiable Rewards (RLVR) trains these agents using outcome feedback (e.g., whether a code change passes a test suite). Group Relative Policy Optimization (GRPO) assigns advantages by comparing rewards within a group of trajectories sampled for the same task.
The All-Fail Problem: With binary outcome rewards, a group in which every trajectory fails has zero reward variation and provides no reward-based policy gradient. Such a group leaves the policy without a successful trajectory to reinforce, even when some intermediate decisions could support a successful continuation.
The Complete-Solution Remedy and Its Costs: A common remedy supplies complete solutions from a stronger model, but this incurs two costs:
- Computational: A complete long-horizon trajectory may span tens or hundreds of interaction turns (Qwen3.5-9B rollouts on SWE tasks average 83.7 agent turns). The proposal model is requested even for decisions the current policy can already make.
- Distributional: Using long pre-collected trajectories as supervision exposes the learner to off-policy risk, increasing mismatch between training distribution and current policy behavior.
Theoretical Foundation
The work builds on GRPO, which freezes a snapshot of the current policy to collect trajectories while optimizing . For a group of trajectories, the group-relative advantage is:
With token-level importance ratio , the GRPO loss is:
If every trajectory has the same binary reward, Equation 1 gives for all , so the gradient vanishes.
Methodology
Update Routing
Each rollout group is routed based on observed outcomes:
Option Construction and Learner-Conditioned Evaluation
Splice-point selection: For each all-fail group, one failed trajectory is randomly selected. The proposal model selects a branch point among branchable points recorded every agent turns.
Option proposal: The proposal model generates candidate options , each limited to at most consecutive turns, where the adaptive horizon is:
with the number of agent turns in trajectory and controlling option length relative to mean rollout length.
Learner-conditioned evaluation: Each option is evaluated through independent continuations generated by the current policy . The learner-conditioned value of option is:
Options with zero estimated return are discarded. Let denote the retained candidate set.
Return-Weighted Local Supervision
Retained option values are normalized:
These convert into a return-weighted candidate distribution:
Proposition 1 (Empirical dominance of return weighting): Fix a nonempty retained candidate set and its empirical continuation returns . Let be the uniform target. The return-weighted target satisfies:
The inequality is strict if the retained empirical returns are not all equal.
Local policy update: The length-normalized projection surrogate is:
This covers only proposal-model action tokens within retained options, with each option contributing through its mean token loss.
Training schedule: GRPO and splice examples are kept in separate mini-batches, alternating between them. The proposal model and branch reconstruction are used only during training.
Empirical Validation / Results
Main Results
| Method | Qwen3-8B-CS SWE-bench | Qwen3-8B-CS BrowseComp-Plus | Qwen3.5-9B SWE-bench | Qwen3.5-9B BrowseComp-Plus |
|---|---|---|---|---|
| Initial policy | 11.2 | 16.4 | 53.2 | 42.5 |
| SFT | 21.5 ± 1.4 | 24.2 ± 0.7 | 57.9 ± 0.8 | 48.2 ± 0.9 |
| RL | 15.9 ± 0.7 | 20.2 ± 0.9 | 58.4 ± 0.4 | 46.2 ± 0.4 |
| SFT+RL | 24.4 ± 1.1 | 26.7 ± 0.4 | 59.9 ± 1.7 | 49.4 ± 0.9 |
| ReLIFT | 19.7 ± 0.6 | 23.5 ± 0.6 | 59.1 ± 1.0 | 47.6 ± 1.9 |
| SPLICE | 25.7 ± 0.8 | 29.3 ± 0.7 | 61.2 ± 1.0 | 50.7 ± 0.3 |
Recovery of Failed Tasks
| Method | Proposal hit | Graduation | π_ρ Turns (k) |
|---|---|---|---|
| RL | N/A | 8.1 ± 1.1 | 0.0 ± 0.0 |
| ReLIFT | 55.1 ± 2.1 | 15.9 ± 1.0 | 113.4 ± 5.9 |
| SPLICE | 30.7 ± 0.5 | 18.9 ± 0.3 | 93.5 ± 2.6 |
SPLICE achieves a lower proposal hit rate (30.7% vs. 55.1%) but higher graduation (18.9% vs. 15.9%) with 17.5% fewer proposal-model turns, showing that local options yield stronger recovery than full trajectories.
Recovery Across Task Difficulty
| Method | Easy (n=342) | Medium (n=1,087) | Hard (n=1,771) |
|---|---|---|---|
| Initial | 99.4 | 0.5 | 0.2 |
| RL | 99.3 ± 0.2 | 10.9 ± 1.0 | 6.4 ± 1.6 |
| SPLICE | 99.3 ± 0.2 | 24.8 ± 1.0 | 15.4 ± 0.4 |
The largest improvement occurs on Medium tasks (24.3 points gain, exceeding RL's gain by 13.9 points), suggesting local option splicing is particularly useful at intermediate difficulty.
Ablation Studies
Continuation evaluation and option weighting:
| Setting | Resolve | Graduation |
|---|---|---|
| SPLICE | 25.7 ± 0.8 | 18.9 ± 0.3 |
| Single option | 21.2 ± 0.4 | 12.3 ± 1.1 |
| Hard top-Q̂ | 24.3 ± 0.6 | 17.7 ± 0.2 |
| Uniform positive | 23.7 ± 0.2 | 17.1 ± 1.1 |
Adaptive option horizon:
| α | Resolve | Hit | Graduation | π_ρ Turns (k) |
|---|---|---|---|---|
| 0.1 | 18.2 ± 1.1 | 11.3 ± 1.6 | 10.7 ± 1.9 | 33.7 ± 0.9 |
| 0.3 | 25.7 ± 0.8 | 30.7 ± 0.5 | 18.9 ± 0.3 | 93.5 ± 2.6 |
| 0.5 | 24.3 ± 1.3 | 33.0 ± 0.7 | 17.1 ± 1.1 | 157.0 ± 6.9 |
Case Study
For SWE-Gym instance dask__dask-10506 (division-by-zero error when writing an empty array to Zarr), the proposal model generated three options from a branch point before the first production edit:
- ω₁ (API-only repair): continuation returns (0,0,0) → discarded
- ω₂ (Locate the helper): returns (1,0,0) → retained with weight ≈ 0.12
- ω₃ (Guard the write): returns (1,1,1) → retained with weight ≈ 0.88
Theoretical and Practical Implications
Theoretical Implications
- Local vs. global guidance: The paper demonstrates theoretically (Proposition 1) that return-weighted targets dominate uniform supervision on the same retained candidates, providing a principled basis for weighting proposed options by learner-conditioned value.
- Off-policy exposure reduction: By supervising only bounded option segments rather than complete trajectories, SPLICE limits the covariate shift and compounding errors associated with full-trajectory external guidance.
- Learner-conditioned evaluation: The distinction between option value under the proposal model () versus the current policy () is crucial — an option useful to the proposal model may be ineffective for the learner.
Practical Implications
- Efficient use of expensive models: SPLICE allocates proposal-model computation only to splice points where the current policy encounters bottlenecks, reducing cost by 17.5% while improving performance.
- Scalability to long-horizon tasks: The approach handles trajectories averaging 83.7 agent turns without requiring complete expert solutions, making it practical for real-world agent tasks.
- Complementary to existing methods: SPLICE can be integrated with standard GRPO pipelines, routing only all-fail groups to the splice branch while preserving standard updates for mixed-reward groups.
Conclusion
Main takeaways:
- SPLICE recovers learning signals from all-fail groups by splicing bounded proposal-model options into failed current-policy trajectories online.
- Current-policy continuation evaluation defines a learner-conditioned target that filters incorrect options and measures whether the current policy can use each option to complete the task.
- Across two policy families and two agent tasks, SPLICE outperforms GRPO and full-trajectory guidance baselines, with particularly strong recovery on initially failed tasks.
Future directions:
- Improving option value estimation accuracy (currently limited by sampling error from only 3 continuations per option)
- Reducing the additional current-policy rollout computation introduced by continuation evaluation
- Exploring environments with more expensive execution where the continuation evaluation cost may be larger
Limitations: SPLICE introduces current-policy rollout computation because each option is evaluated through multiple continuations. The cost may be larger in environments with expensive execution, and estimating each option value from three continuations introduces sampling error, creating a trade-off between estimation quality and inference cost.
Related papers
- Evolve to Learn: Gradient-aligned experience evolution for model self-improvement
Gradient alignment between experience-induced and reference gradients predicts post-distillation gains, while inference-time accuracy shows no correlation, enabling autonomous self-improvement via the E2L framework.
- Robust Code RL via Faulty-Code-Driven Test case Synthesis and Dense Reward Shaping (RobustTests)
RobustTests improves LLM code RL by generating test cases from near-correct faulty code and using dense rewards, yielding 3% absolute gains on LiveCodeBench and CodeForces.
- Blind to What They Can Fix: A Detection Gap in Self-Improving Agents
Self-improving agents achieve high task scores but their own runtime checks miss over half of deployment failures, making detection, not repair, the key bottleneck.