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:

  1. 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.
  2. 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 πold\pi_{\text{old}} to collect trajectories while optimizing πθ\pi_\theta. For a group of GG trajectories, the group-relative advantage is:

A^i=Ri−mean{Rj}j=1Gstd{Rj}j=1G+ϵA(1)\hat{A}_i = \frac{R_i - \text{mean}\{R_j\}_{j=1}^{G}}{\text{std}\{R_j\}_{j=1}^{G} + \epsilon_A} \tag{1}

With token-level importance ratio ri,n(θ)=πθ(yi,n∣ci,n)/πold(yi,n∣ci,n)r_{i,n}(\theta) = \pi_\theta(y_{i,n}|c_{i,n})/\pi_{\text{old}}(y_{i,n}|c_{i,n}), the GRPO loss is:

LGRPO(θ)=−1G∑i=1G1Ni∑n=1Nimin⁡(ri,n(θ)A^i,clip(ri,n(θ),1−ϵlow,1+ϵhigh)A^i)(2)\mathcal{L}_{\text{GRPO}}(\theta) = -\frac{1}{G} \sum_{i=1}^{G} \frac{1}{N_i} \sum_{n=1}^{N_i} \min\left(r_{i,n}(\theta)\hat{A}_i, \text{clip}(r_{i,n}(\theta), 1-\epsilon_{\text{low}}, 1+\epsilon_{\text{high}})\hat{A}_i\right) \tag{2}

If every trajectory has the same binary reward, Equation 1 gives A^i=0\hat{A}_i = 0 for all ii, so the gradient vanishes.

Methodology

Update Routing

Each rollout group GG is routed based on observed outcomes:

route(G)={GRPO,0<∑i=1GRi<GSkip,∑i=1GRi=GSplice,∑i=1GRi=0(3)\text{route}(G) = \begin{cases} \text{GRPO}, & 0 < \sum_{i=1}^{G} R_i < G \\ \text{Skip}, & \sum_{i=1}^{G} R_i = G \\ \text{Splice}, & \sum_{i=1}^{G} R_i = 0 \end{cases} \tag{3}

Option Construction and Learner-Conditioned Evaluation

Splice-point selection: For each all-fail group, one failed trajectory τ−\tau^- is randomly selected. The proposal model selects a branch point t^∗\hat{t}^* among branchable points recorded every CC agent turns.

Option proposal: The proposal model generates KK candidate options {ωk}k=1K\{\omega_k\}_{k=1}^{K}, each limited to at most HbH_b consecutive turns, where the adaptive horizon is:

Hb=max⁡(1,⌈α1∣Bb∣∑τ∈BbT(τ)⌉)(4)H_b = \max\left(1, \left\lceil \alpha \frac{1}{|\mathcal{B}_b|} \sum_{\tau \in \mathcal{B}_b} T(\tau) \right\rceil\right) \tag{4}

with T(τ)T(\tau) the number of agent turns in trajectory τ\tau and α∈(0,1]\alpha \in (0,1] controlling option length relative to mean rollout length.

Learner-conditioned evaluation: Each option is evaluated through MM independent continuations generated by the current policy πold\pi_{\text{old}}. The learner-conditioned value of option ωk\omega_k is:

Q^k=1M∑j=1MR(τk,j)(5)\hat{Q}_k = \frac{1}{M} \sum_{j=1}^{M} R(\tau_{k,j}) \tag{5}

Options with zero estimated return are discarded. Let I={k:Q^k>0}\mathcal{I} = \{k : \hat{Q}_k > 0\} denote the retained candidate set.

Return-Weighted Local Supervision

Retained option values are normalized:

Q~k=Q^k−mean{Q^l}l∈Istd{Q^l}l∈I+ϵQ(6)\tilde{Q}_k = \frac{\hat{Q}_k - \text{mean}\{\hat{Q}_l\}_{l \in \mathcal{I}}}{\text{std}\{\hat{Q}_l\}_{l \in \mathcal{I}} + \epsilon_Q} \tag{6}

These convert into a return-weighted candidate distribution:

q∗(ωk∣ht∗)=exp⁡(Q~k)∑l∈Iexp⁡(Q~l)(7)q^*(\omega_k | h_{t^*}) = \frac{\exp(\tilde{Q}_k)}{\sum_{l \in \mathcal{I}} \exp(\tilde{Q}_l)} \tag{7}

Proposition 1 (Empirical dominance of return weighting): Fix a nonempty retained candidate set I\mathcal{I} and its empirical continuation returns {Q^k}k∈I\{\hat{Q}_k\}_{k \in \mathcal{I}}. Let uk=1/∣I∣u_k = 1/|\mathcal{I}| be the uniform target. The return-weighted target satisfies:

∑k∈Iq∗(ωk∣ht∗)Q^k≥1∣I∣∑k∈IQ^k(8)\sum_{k \in \mathcal{I}} q^*(\omega_k | h_{t^*}) \hat{Q}_k \geq \frac{1}{|\mathcal{I}|} \sum_{k \in \mathcal{I}} \hat{Q}_k \tag{8}

The inequality is strict if the retained empirical returns are not all equal.

Local policy update: The length-normalized projection surrogate is:

Lsplice(θ)=∑kqk∗[−1Nk∑n=1Nklog⁡πθ(yk,n∣ck,n)](11)\mathcal{L}_{\text{splice}}(\theta) = \sum_{k} q^*_k \left[ -\frac{1}{N_k} \sum_{n=1}^{N_k} \log \pi_\theta(y_{k,n} | c_{k,n}) \right] \tag{11}

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

MethodQwen3-8B-CS SWE-benchQwen3-8B-CS BrowseComp-PlusQwen3.5-9B SWE-benchQwen3.5-9B BrowseComp-Plus
Initial policy11.216.453.242.5
SFT21.5 ± 1.424.2 ± 0.757.9 ± 0.848.2 ± 0.9
RL15.9 ± 0.720.2 ± 0.958.4 ± 0.446.2 ± 0.4
SFT+RL24.4 ± 1.126.7 ± 0.459.9 ± 1.749.4 ± 0.9
ReLIFT19.7 ± 0.623.5 ± 0.659.1 ± 1.047.6 ± 1.9
SPLICE25.7 ± 0.829.3 ± 0.761.2 ± 1.050.7 ± 0.3

Recovery of Failed Tasks

MethodProposal hitGraduationπ_ρ Turns (k)
RLN/A8.1 ± 1.10.0 ± 0.0
ReLIFT55.1 ± 2.115.9 ± 1.0113.4 ± 5.9
SPLICE30.7 ± 0.518.9 ± 0.393.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

MethodEasy (n=342)Medium (n=1,087)Hard (n=1,771)
Initial99.40.50.2
RL99.3 ± 0.210.9 ± 1.06.4 ± 1.6
SPLICE99.3 ± 0.224.8 ± 1.015.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:

SettingResolveGraduation
SPLICE25.7 ± 0.818.9 ± 0.3
Single option21.2 ± 0.412.3 ± 1.1
Hard top-Q̂24.3 ± 0.617.7 ± 0.2
Uniform positive23.7 ± 0.217.1 ± 1.1

Adaptive option horizon:

αResolveHitGraduationπ_ρ Turns (k)
0.118.2 ± 1.111.3 ± 1.610.7 ± 1.933.7 ± 0.9
0.325.7 ± 0.830.7 ± 0.518.9 ± 0.393.5 ± 2.6
0.524.3 ± 1.333.0 ± 0.717.1 ± 1.1157.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 (πρ\pi_\rho) versus the current policy (πold\pi_{\text{old}}) 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:

  1. SPLICE recovers learning signals from all-fail groups by splicing bounded proposal-model options into failed current-policy trajectories online.
  2. 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.
  3. 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