SERO: Learning Long-Horizon Agent Reinforcement Learning from Executable Oracle ContinuationsSERO: Learning from Executable Oracle Continuations for Long-Horizon Agentic Reinforcement Learning
SERO learns executable oracle continuations; 7B GraphGPO's ALFWorld unseen rises from 76.30% to 87.50%.
- In long-horizon interactions, if the current policy's rollout misses a useful branch for the entire group, finer credit assignment cannot provide positive samples. A single-step teacher correction, once executed, changes subsequent observations; supervising only the correction action misses later decisions.
- SERO restores states reached by the policy, lets a training-only oracle execute multiple steps in the real environment, and uses the resulting action sequence as an auxiliary loss. Step weights are the product of the frozen behavior policy's compatibility with previous oracle prefixes. The oracle is removed at inference.
- At 1.5B and 7B, adding SERO to GraphGPO or HGPO increases ALFWorld success rate and WebShop strict success rate. For 7B GraphGPO unseen goes from 76.30% to 87.50%. At 1.5B, supervising only root actions yields ALFWorld below GraphGPO.
- The authors state that a restorable environment and a training-time oracle are needed, experiments are on ALFWorld and WebShop, and they plan to extend to visual embodiment, rare failure sampling, and models above 7B. Evaluation uses environment success rates, averaged over 3 seeds.
- Evaluated models
- Qwen2.5-1.5B-InstructQwen2.5-7B-Instruct
- Benchmarks
- ALFWorldWebShop
- Metrics
- In-SuccessOut-SuccessTask ScoreTask Success
SERO enhances long-horizon agent reinforcement learning with executable oracle continuations that run only during training: it restores the state actually reached by the current policy, lets the oracle continue interacting with the real environment, and weights by policy reachability, without using the oracle at inference. Evaluated on ALFWorld and WebShop with Qwen2.5-1.5B/7B-Instruct, learning full executable continuations on ALFWorld outperforms supervising only root oracle actions, and weighting further improves out-of-distribution performance.
Paper analysis
What problem does this paper attempt to solve?
Long-horizon agent RL cannot learn useful branches that were not sampled; SERO fills this supervision gap with executable oracle continuations.
Long-horizon agent RL cannot learn useful branches the current policy never visits; credit assignment can only re-rank already-sampled behaviors.
- Scenario: The authors focus on interactive agents using language models for embodied control, web navigation, tool use, etc. Tasks require multi-step observation, action, and receiving new observations; the authors state that ALFWorld and WebShop rewards are sparse or delayed, making single-step contributions hard to infer from final returns alone.
- Existing shortcomings: RLOO, GRPO, and also GiGPO, HGPO, GraphGPO allocate credit more finely, but the authors note that supervision still comes from behaviors already present in the sampled group, and cannot turn branches missing from the entire group into positive targets. OPD and multi-turn variants provide teacher guidance at states visited by the policy, but supervision still revolves around corrective actions, teacher prefixes, or intervention outcomes; executing corrections changes subsequent observations.
- Observation: The authors argue for restoring states visited by the policy, letting a training-time oracle continue interacting in the real environment, thereby directly learning downstream observations and oracle actions. Deeper oracle states deviate more from the current policy, so supervision must be adjusted by the compatibility of the behavior policy with the previous oracle prefix.
- Method: They propose State-Rooted Executable Rollout Optimization (SERO), making executable multi-step continuations an auxiliary loss separate from the base estimator, without changing rewards, advantages, or policy ratios; no oracle is used at inference.
What related research exists?
The paper divides related work into group credit assignment, teacher guidance on learner states, and privileged oracle optimization.
Group RL and long-horizon credit assignment
- RLOO and GRPO family: RLOO by Ahmadian et al. (2024), GRPO by Shao et al. (2024), and Yu et al. (2026), Liu et al. (2025), Lin et al. (2026), Zheng et al. (2025) replace a separate value model with relative comparisons among sampled rollouts.
- Online RL on interactive tasks: WebRL by Qi et al. (2025), WebAgent-R1 by Wei et al. (2025), hindsight credit assignment by Tan et al. (2026), and uncertainty-guided exploration by Wang et al. (2026d) respectively do self-evolving web curricula, end-to-end multi-turn interaction, hindsight credit, and exploration control. The paper describes these without individual criticism.
- Finer agent credit: GiGPO by Feng et al. (2026), HGPO by He et al. (2026), GraphGPO by Cheng et al. (2026), and Zhou et al. (2024), Luo et al. (2025), Wang et al. (2026a) refine credit using repeated states, interaction history, or cross-trajectory transitions. The authors note they still take supervision from existing behavior in the sampled group and cannot turn missing branches into positive targets.
Teacher guidance on learner-induced states
- Querying experts on learner states: Ross et al. (2011), Sun et al. (2017), OPD by Agarwal et al. (2024), Gu et al. (2024), Yan et al. (2026) take expert behavior on learner-induced inputs rather than replaying fixed demonstrations.
- Constructing corrections from failures or expert interactions: Yuan et al. (2025), Lu et al. (2026) construct corrective supervision from failed trajectories or expert interaction experience. The paper only describes the methods.
- Multi-step OPD: Li et al. (2026a), Sun et al. (2026), Wang et al. (2026f), Liao et al. (2026), Jiang et al. (2026), Chen et al. (2026) extend teacher supervision to prefixes, refined trajectories, or short interventions, and validate interventions with subsequent rollouts. The authors state their common goal is to align teacher guidance with the learner's current behavior; SERO instead learns the executable future induced by corrections.
Privileged information directly in optimization
OraRL: Li et al. (2026b) treats annotations as positive targets, not just reward references.
CAST: Wang et al. (2026g) uses solver information to refine turn-level credit.
Relation to this paper: The authors state the motivation is the same—using privileged supervision with limited on-policy samples—but interaction dynamics make the target a sequence; SERO keeps the original on-policy estimator unchanged and additionally learns an executable continuation rooted in on-policy experience, with reachability weighting to control deeper states.
Baselines and benchmarks: Prompt baselines are Qwen2.5, ReAct, Reflexion; Table 1 also lists GPT-4o and Gemini-2.5-Pro. RL baselines are PPO with critic, RLOO, GRPO, GiGPO, GraphGPO, HGPO. Benchmarks are ALFWorld and WebShop. SERO is added to GraphGPO and HGPO for comparison.
The authors position SERO as: after restoring states visited by the policy, learn the entire future after the correction is executed, rather than only re-ranking on-policy samples or distilling a single correction action.
How does the paper address this problem?
SERO restores states reached by the policy and executes oracle continuations, then trains the policy with an auxiliary loss weighted by prefix reachability.
Overall, it is modular oracle augmentation: first collect on-policy trajectories according to the original algorithm, then restore the environment from states reached by the policy, execute multi-step oracle continuations, and finally update the policy with an auxiliary loss weighted by policy reachability. Figure 1 places SERO alongside trajectory-level group RL, state-level group RL, and single-step OPD; Figure 2 is divided into four blocks: rollout, continuation and improvement gate, weights, and joint update. Oracle and environment restoration are used only during training.
Setting and the unchanged base estimator
- Interaction process: At time t, the policy-visible state st contains the current observation and the interaction context provided by the agent interface; actions come from πθ. The environment returns a reward and the next state. The trajectory return is denoted R(τ). During training, a simulator snapshot is saved for each visited state; the snapshot does not enter the policy input.
- Group RL: For the same task, N trajectories are sampled with a frozen behavior policy πb = πθold. The paper uses GRPO as an example, using the mean and standard deviation of within-group returns for advantages; GiGPO, HGPO, and GraphGPO use repeated states, history, or transition structure to provide finer-grained advantages. The base objective is the clipped objective with truncated policy ratios, with optional KL regularization.
- No credit modification: SERO does not change the base method's rewards, group statistics, advantages, or importance ratios. The authors state that it can therefore be plugged into GRPO, GiGPO, HGPO, and GraphGPO.
Executable oracle continuation
- Restoring the root state: Select a pre-action state from an on-policy trajectory, restore the corresponding snapshot in a separate environment copy, keeping the same decision point and remaining horizon. The oracle branch starts from that state.
- Step-by-step execution: The oracle gives an action and it is executed in the real environment; the next state is produced by this transition, not copied from the original on-policy suffix. This continues until the task is completed or the remaining interaction budget is exhausted. The oracle can use privileged training information to choose actions; the trainable policy is optimized only on policy-visible states.
- Comparable returns: The on-policy suffix and the oracle continuation share the restored root and remaining horizon, so the returns on both sides can be compared from the same decision point.
Policy reachability weighting
- Why weighting: The restored root comes from an on-policy trajectory; deeper states require the current policy to first execute the preceding oracle actions, making them more off-policy.
- Local compatibility: The frozen πb computes a length-normalized likelihood for the tokens of the k-th oracle command, yielding zk. When scoring, the inference prefix from one sampling of πb at that state is used as replay context; this prefix is not backpropagated, and no marginalization over the inference prefix is performed. zk is a compatibility score, not a marginal action probability. The discrete action form is in Appendix B.2.
- Prefix weights: The root weight is w0 = 1, and thereafter wk = ∏j=0k−1 zj. Low compatibility at a step only reduces the supervision for later steps. When the policy is more compatible with the oracle prefix, the weights decay more slowly along the continuation. Weights are computed from pre-update quantities and are stop-gradient.
Improvement gate and joint objective
- Branch gate: For each attempted root, compare the oracle continuation return and the on-policy suffix return over the same remaining horizon. The gate clips the return difference by a scale cR to [0,1]; for binary success, cR = 1. If restoration fails, that branch is invalid. On ALFWorld, a valid branch receives a positive gate only when it improves a failed policy rollout into a success.
- Action loss: For language commands, the loss is the average negative log-likelihood of the oracle command tokens; for categorical actions, it reduces to the negative log-likelihood of that action. Scoring and loss share the same serialization and command token mask.
- Total loss: The auxiliary loss is averaged over the number of attempted roots, not over oracle steps, and failed restorations are included in the denominator. The total objective is Ltotal(θ) = Lbase(θ) + λO LSERO(θ), with λO ≥ 0. Default λO = 0.1. One update uses both losses simultaneously; at inference, only the policy remains.
Root selection and the two oracles
- When to start a root: An eligible group has at least one failed rollout. From such a group, sample one failed rollout, then uniformly sample one pre-action turn as the root; groups that are all successful are skipped. By default, one root per group. On WebShop, eligibility and gating use strict success, not the dense task score.
- ALFWorld: Text interface. The oracle comes from the environment's expert-plan interface; commands must pass the current legal action check, then are executed through the normal environment interface. After restoration, the policy-visible prompt and legal actions must match the original record; otherwise the branch is invalid.
- WebShop: During training, the oracle is a deterministic rule-based policy that uses the target product identifier and required options from goal metadata, and completes search, navigation, option selection, and purchase through the same legal search/click interface as the policy. Restoration must reproduce the page or session, navigation history, selected options, task identity, and observation rendering.
- Main training setup: 16 task groups per batch, 8 rollouts per group. ALFWorld interaction limit is 50 steps. Training temperature 1.0, evaluation temperature 0.4, actor learning rate 10−6, reference KL coefficient 0.01. The final checkpoints for both backbones are at step 150. On WebShop, GraphGPO and HGPO differ in horizon, prompt length, and observation mode, but within the same backbone, base and +SERO are aligned; details in Appendix E.
What experiments did the paper conduct?
The authors report that SERO improves ALFWorld and WebShop success rates at both scales, and that full continuations outperform supervising only root actions.
Experimental setup
- Models tested: Qwen2.5-1.5B-Instruct and Qwen2.5-7B-Instruct. SERO is added to GraphGPO and HGPO. Table 1 also lists prompt baselines Qwen2.5, ReAct, Reflexion, as well as GPT-4o, Gemini-2.5-Pro, and PPO, RLOO, GRPO, GiGPO.
- Benchmarks: ALFWorld reports in-distribution and out-of-distribution success rates (In-Success, Out-Success; the ablation table writes Seen/Unseen SR). WebShop reports task score and strict task success. Task-type breakdown uses the same 128-episode final checkpoint protocol as the main table.
- Metrics and evaluation: All are percentages. Table 1 notes that tests are averaged over 3 random seeds. The paper does not mention LLM judges or human agreement; success comes from the environment.
- Oracle and default coefficients: ALFWorld uses an expert planner; WebShop uses a goal-metadata rule oracle. Unless otherwise stated, one root per eligible group, λ_O = 0.1.
- Within-backbone alignment, not across backbones: For the same backbone, base and +SERO share the task list, action interface, and decoding settings. On WebShop, GraphGPO has a horizon of 15 and HGPO of 30; prompt length limits and observation modes also differ (Appendix E), so cross-backbone numbers should not be treated as the same protocol.
- Main questions: First, whether full executable continuation outperforms outcome-based RL and single-step oracle supervision; second, whether gains come from the continuation itself or from reachability weighting.
Main results
The table below lists only the two backbones and their +SERO variants, with numbers from Table 1, mean ± std over 3 seeds. Prompt baselines, PPO, RLOO, GRPO, GiGPO, and the two closed-source rows are not included.
Swipe horizontally to read the table
Setting ALFWorld In ALFWorld Out WebShop Score WebShop Success 1.5B GraphGPO 90.63±3.40 88.02±3.23 87.27±2.83 77.93±2.90 1.5B GraphGPO+SERO 95.83±1.22 91.67±0.92 88.90±1.59 79.27±1.72 1.5B HGPO 92.19±0.80 87.24±4.01 87.80±1.67 73.70±2.95 1.5B HGPO+SERO 94.53±1.33 90.10±1.61 88.43±0.93 77.47±1.88 7B GraphGPO 91.67±0.92 76.30±2.76 89.77±0.81 80.47±1.53 7B GraphGPO+SERO 95.57±0.46 87.50±2.06 91.93±0.42 83.67±0.95 7B HGPO 94.01±2.05 90.89±1.97 87.83±2.00 74.47±3.10 7B HGPO+SERO 94.53±3.15 91.41±2.12 87.63±1.16 79.63±0.50 - Authors' summary: The authors state that at both scales, SERO improves ALFWorld success and WebShop task success for both backbones, with larger gains on out-of-distribution metrics; they call the largest gain 7B GraphGPO's ALFWorld unseen, 11.20 percentage points.
- Exception in the table: 7B HGPO+SERO's WebShop Task Score goes from 87.83 to 87.63, lower than without SERO; Task Success goes from 74.47 to 79.63. The main text says WebShop success rises for this setting, without claiming a rise in Task Score for this cell.
- Low points not listed: In Table 1, 1.5B prompt Qwen2.5's In-Success is 4.1%, and WebShop Task Success is 5.2%. Several prompt rows and 1.5B PPO's Out-Success are shown as “–”, i.e., not reported. In the same table, without SERO, 7B GraphGPO's Out-Success is 76.30, GiGPO's is 86.94, and HGPO's is 90.89.
Oracle supervision design
Table 2 uses Qwen2.5-1.5B-Instruct with GraphGPO. Root-only supervises only the first oracle action; Full-Flat trains on the full continuation but averages branch weights and shares them; SERO retains stepwise exclusive-prefix weights.
- Root-only supervision: The authors state that Root-only, relative to GraphGPO, drops ALFWorld seen/unseen by 2.87/4.17 percentage points, with WebShop nearly unchanged. In the table, Root-only is 87.76±1.67 / 83.85±2.76 and 87.30±1.54 / 77.73±2.38.
- Full continuation: Full-Flat is 94.79±0.46 / 88.28±2.35 and 87.63±1.91 / 78.33±2.75. The authors state that relative to Root-only, ALFWorld seen/unseen improves by 7.03/4.43 percentage points, and WebShop score/success by 0.33/0.60 percentage points, and that useful supervision extends beyond the first-step correction.
- Reachability weighting: The authors state that SERO, relative to Full-Flat, improves the four metrics by 1.04, 3.39, 1.27, and 0.94 percentage points, with larger gains on unseen. They believe downweighting deeper oracle actions poorly supported by the current policy may benefit out-of-distribution generalization.
Fixed bank, extra interactions, and short bridge
- Same oracle data (Appendix A.1, Table 3): A frozen bank is built from the 1.5B GraphGPO step-50 checkpoint, with 271 valid roots and 5,002 continuation steps; each weighting rule is replayed to step 80. SERO is 88.02±1.22 / 85.94±0.75, Flat is 85.42±2.39 / 84.64±1.79, Depth decay is 87.24±2.94 / 82.55±0.46, and shuffled SERO weights are 85.16±3.43 / 80.73±1.79. The authors state that relative to Flat, gains are 2.60/1.30 percentage points, and relative to Depth decay, 0.78/3.39 percentage points; shuffling drops seen/unseen by 2.86/5.21 percentage points. The authors state that gains do not come only from total supervision or “deeper means smaller”; weights must align with the reachability of the corresponding prefix. These numbers are not the final checkpoints of Table 1.
- Extra environment interactions (Table 4): GraphGPO without oracle is trained for 15 more steps to approximately match SERO's environment transition budget (including main rollouts, prefix replays for restoration, and oracle continuations; the authors state the match is approximate). Extra is 93.49±1.22 / 90.36±3.43, SERO is 95.83±1.22 / 91.67±0.92. The authors state it is still higher by 2.34 and 1.31 percentage points.
- Short bridge (Table 7): Execute one oracle step from the root, hand the remaining horizon back to the frozen behavior policy, gate using the return of this bridge, but distill only the root action. Short Bridge is ALFWorld 91.67±5.83 / 86.72±2.35, WebShop 87.60±1.47 / 78.77±1.75. The authors state it is consistently higher than Root-only, but ALFWorld is still 4.16/4.95 percentage points lower than full SERO.
Other ablations and analyses
- λ_O (Figure 3, 1.5B): The authors state that λ_O is relatively stable over [0.1, 0.5], drops at λ_O = 1.0, and is weaker at λ_O = 0.05, especially for ALFWorld unseen; default is 0.1. The figure has annotated numbers, but after text extraction, the correspondence to the horizontal axis columns is unclear, so individual points are not cited.
- Does w_k track prefix reproduction (Table 5): GraphGPO step-50, 271 roots, 8 prefix trials per root, 16 commands sampled per recorded state. Spearman ρ between z_k and action match frequency is 0.763. Prefixes with w_k in [0, 0.05) match 0.00% (2,449 pairs), and [0.50, 1] match 40.97% (126 pairs). The authors state that w_k ranks prefix compatibility, not the probability of reproducing the entire command prefix.
- Weights along depth (Figure 4, 1.5B GraphGPO+SERO, ALFWorld, steps 10/70/140): The authors state that z_k fluctuates with depth and is often still high on deeper actions; w_k decays faster at early checkpoints, while later checkpoints maintain larger weights over a longer continuation. The text does not give curve endpoints.
- Expert plan length (Table 8, only 1.5B GraphGPO): Short/medium/long correspond to plan lengths ≤5, 6, ≥7. For seen, the authors state improvements of 8.28 and 6.72 percentage points for short and medium horizons, and for long horizons from 90.02±7.14 to 90.14±5.13; for unseen, short horizons improve by 6.23 percentage points, long horizons from 83.50±6.16 to 87.32±1.39 (the authors state an improvement of 3.82 percentage points), and medium horizons 91.89±3.63 versus 91.60±1.51, which the authors call similar.
- Roots from which policy time (Appendix A.4): After the same 30-step replay, step-50 roots give 88.0/85.9, step-10 roots give 84.4/83.9. Both sides have 271 roots and 78 positively gated branches, with oracle steps 5,002 and 4,961; 242/271 task families are the same; the authors state that task instances and root horizons are not exactly matched.
- Task types and training curves: In Table 6, gains are distributed across multiple task families; there are also regressions, e.g., 7B GraphGPO's seen Look goes from 100.00±0.00 to 83.80±10.74, and unseen Pick from 72.87±8.41 to 68.50±4.35. The authors state that category-level regressions are not consistent across scales, and HGPO also has task-level trade-offs. In Figure 5, the authors state that with SERO, ALFWorld early and mid-training rises faster; WebShop curves cross, with the 1.5B GraphGPO baseline rising earlier in an initial phase, and SERO's advantage becoming clearer later. Specific endpoints in the figure are not given in the text.
What are some points that can be further explored?
The authors state that experiments were conducted only on restorable environments and on ALFWorld and WebShop, with plans to extend to visual embodied settings and larger models.
Limitations and Future Directions Noted by the Authors
- Premise: The authors state that SERO assumes the training environment can be restored to states the policy has visited, and that an executable oracle is available during training (Appendix G).
- Experimental scope: The authors state that experiments were conducted only on ALFWorld and WebShop (Appendix G).
- When exact restoration is not possible: The authors propose using a learned world model and a diffusion-based generator to synthesize observations on oracle continuations (Appendix G).
- Visual embodiment: The authors state that extending to visual embodiment settings requires aligning objects in oracle commands across continuous observations, and list possible tools such as vision-language pretraining, localization, segmentation, and 3D scene representation (Appendix G).
- Sampling of failure roots: Oracle roots are sampled uniformly from failed rollouts; the authors state that rare failure types may be under-supervised, and that prioritized sampling and techniques for domain shift and long-tail data may help (Appendix G).
- Scale: The authors leave models larger than 7B and extension beyond the two benchmarks to future work (Appendix G).
Experimental Coverage
- Models and methods: The evaluated policies are Qwen2.5-1.5B-Instruct and Qwen2.5-7B-Instruct; SERO is added to GraphGPO and HGPO. Table 1 also reports prompt baselines and PPO, RLOO, GRPO, and GiGPO, including two rows for GPT-4o and Gemini-2.5-Pro.
- Environments and protocol: ALFWorld uses the text interface and reports in-distribution/out-of-distribution success rates; WebShop reports task score and strict success. The Table 1 note states that tests are averaged over 3 random seeds. The task-type table uses the 128-episode final-checkpoint protocol (Appendix A.5). The final checkpoint is step 150 (Appendix E).
- Oracle: An expert planner for ALFWorld and a deterministic rule policy over goal metadata for WebShop; by default one root per qualifying group, λO=0.1 (Section 5.1).
- Reported controls: Online ablations include no oracle, Root-only, Full-Flat, and SERO (Table 2); there are also weighted rules on a fixed oracle bank, additional environment interactions with approximate matching, short bridges, stratification by expert plan length, λO sensitivity, wk and prefix reproduction, and training success curves (Appendix A, Figure 3–5). Stratification by plan length is reported only for 1.5B GraphGPO (Table 8).
- Judging and matching details not reported in the paper: The paper does not report LLM judging, human review, or agreement between the two. Appendix A.2 states that the environment-transition budget matching for additional interactions is approximate; Appendix A.4 states that the task instances and root horizons of the two root sources do not fully match.
Summarize the main content of the paper
SERO turns training-time oracle continuations into auxiliary supervision; success rates on ALFWorld and WebShop mostly increase for both backbones.
SERO is an auxiliary objective added to on-policy RL for long-horizon agents, used to learn subsequent branches that the current policy did not sample.
- Problem: Group credit assignment can only handle decisions already present in the rollout. When an entire group misses a useful action sequence, there are no positive samples; distilling only a single-step oracle correction misses the subsequent observations and actions that the correction induces in the real environment.
- Method: Sample a pre-action state from a failed rollout, restore the simulator, and let a training-only oracle continue within the same remaining horizon. The auxiliary loss is active only when the oracle continuation outperforms the original policy suffix; step weights are the product of the frozen behavior policy's compatibility with previous oracle prefixes. The base RL rewards, advantages, and policy ratios are unchanged; the oracle is not used at inference.
- Main results: In Table 1, 1.5B GraphGPO+SERO achieves ALFWorld In/Out-Success of 95.83%/91.67%, and WebShop score/success of 88.90%/79.27%. 7B GraphGPO's Out-Success goes from 76.30% to 87.50%, which the authors call the largest gain, 11.20 percentage points. For both sizes, HGPO+SERO also improves ALFWorld success and WebShop strict success; 7B HGPO's WebShop Task Score goes from 87.83% to 87.63%, which is not higher.
- Ablations: On 1.5B GraphGPO, supervising only the root action gives ALFWorld seen/unseen of 87.76%/83.85%, lower than the no-oracle 90.63%/88.02%. The authors state that full executable continuation is stronger than isolated corrections, and reachability weighting further improves generalization, with larger gains on unseen. After approximate matching of extra interactions, SERO still outperforms GraphGPO with only added exploration steps.
- Authors' conclusion: The authors believe executable multi-step oracle experience is valuable; when extending supervision beyond the current action, one must account for whether the policy can reach those oracle-induced states.