Manuscript Offprint

arXiv:2610.19397

SERO: Learning from Executable Oracle Continuations for Long-Horizon Agentic Reinforcement Learning

Dingyi Rong, Yue Shi, Chaofan Ma, Zongrui Wang, Jiezhang Cao, Yixin Cao, Liang He, Ning Liu

ABSTRACT

Long-horizon agentic RL is constrained by the futures visited by the current policy. When rollouts fail to reach useful behaviors, improved credit assignment cannot provide supervision for states and actions that were never encountered. On-policy distillation (OPD) introduces teacher guidance on policy-induced states, and recent multi-turn variants improve how this guidance is scheduled, replayed, refined, or validated. However, they do not directly use the oracle-controlled future itself as the training trajectory. We introduce State-Rooted Executable Rollout Optimization (SERO), which augments on-policy agentic RL with executable oracle continuations. SERO restores a state actually reached by the current policy and lets a training-only oracle continue interacting with the real environment, making the downstream observations and oracle actions themselves available for learning. It then applies policy-reachability weighting, which weights each oracle step by the frozen behavior policy's compatibility with the preceding oracle actions. This allows deeper supervision to become effective as the policy becomes more compatible with the oracle branch. The oracle loss is optimized separately from the base RL estimator and no oracle is used at inference time. We evaluate SERO on two challenging interactive-agent benchmarks, ALFWorld and WebShop, using Qwen2.5-1.5B-Instruct and Qwen2.5-7B-Instruct. On ALFWorld, learning the full executable continuation is substantially more effective than supervising only the root oracle action, while policy-reachability weighting further improves out-of-distribution performance.

1 INTRODUCTION

Large language models and vision-language models are increasingly used as the decision-making backbones of interactive agents for embodied control, web navigation, tool use, and software tasks (Yao et al., 2022b; Shinn et al., 2023; Schick et al., 2023; Brohan et al., 2023; Wang et al., 2023; Xie et al., 2024; Zhang et al., 2026; Hong et al., 2024; Gur et al., 2024; Xia et al., 2026; Gou et al., 2025; Wei et al., 2026; Rong et al., 2026). Unlike single-turn reasoning, an agent must repeatedly observe the environment, choose an action, receive a new observation, and continue until the task is finished (Ma et al., 2026). This sequential decision-making setting provides a natural opportunity for reinforcement learning (RL), where policies can be improved directly from environment feedback (Sutton & Barto, 2018; Schulman et al., 2017; Ouyang et al., 2022; Guo et al., 2025; Tan et al., 2024; Zhai et al., 2024; Bai et al., 2024). In particular, critic-free group-based methods such as RLOO (Ahmadian et al., 2024), GRPO (Shao et al., 2024), and their recent variants are attractive for large-scale agent training, because they avoid training a separate value model and reduce the overhead associated with critic-based optimization (Yu et al., 2026; Liu et al., 2025; Lin et al., 2026; Zheng et al., 2025).

Figure

Figure 1: Comparison of training paradigms and learning signals. Outcome-based group RL assigns trajectory-level credit, state-level group RL compares sampled actions at shared states, and OPD distills a single corrective action. In contrast, SERO restores a state reached by the current policy, executes a multi-step oracle continuation, and applies policy-reachability weighting to downstream action losses.

However, these methods typically assign a single outcome-based advantage to all actions in a trajectory, which makes credit assignment a central difficulty as interaction horizons grow. An episode may contain many decisions, while reward is often sparse or delayed (Peng et al., 2019; Wen et al., 2024; Chen et al., 2025; Song et al., 2024; Wang et al., 2025b; Jin et al., 2025). Recent work therefore seeks more precise feedback for the trajectories collected by the current policy (Feng et al., 2026; He et al., 2026; Cheng et al., 2026). These methods substantially improve how sampled experience is credited. Nevertheless, the learning signal is still bounded by what appears in the rollout group. If every rollout misses a useful action sequence, finer attribution can rank the sampled behaviors more accurately, but it cannot provide the missing behavior as a positive target. This limitation is particularly important early in training and on difficult tasks, where successful branches may be absent from an entire group.

In such cases, the missing targets must be supplied from outside the rollout group, which motivates teacher guidance. Interactive imitation and off-policy guidance learn from expert behavior on learner-induced inputs (Ross et al., 2011; Sun et al., 2017; Yan et al., 2026). OraRL shows that privileged supervision can be optimized directly, while on-policy distillation (OPD) queries a teacher on states reached by the current policy (Li et al., 2026b; Agarwal et al., 2024; Sun et al., 2026). Recent multi-turn OPD methods extend teacher guidance over multiple steps or use subsequent policy rollouts to validate an intervention (Wang et al., 2026f; Liao et al., 2026; Chen et al., 2026). However, their supervision is still centered on a corrective action, a teacher prefix, or the outcome of the intervention, rather than the full missing branch. In interactive environments, executing a correction changes the next observation and therefore the decisions that follow (Ross et al., 2011; Ma et al., 2021; Liu et al., 2022). When these downstream transitions are not directly learned, the training signal captures only part of the benefit of the correction and leaves its long-horizon consequences under-supervised.

We propose State-Rooted Executable Rollout Optimization (SERO) to learn from executable multi-step oracle continuations rooted at policy-visited states. As shown in Figure 1, SERO first collects the ordinary on-policy trajectories required by the base RL algorithm. It then selects a state actually reached by the current policy, restores the environment at that state, and lets a training-only oracle continue interacting for multiple steps. Every oracle action is executed in the environment, so each later target is conditioned on the real observation produced by the preceding oracle actions. The resulting continuation therefore shows not only what action should be taken at the root state, but also the sequence of decisions that follows once that correction is actually carried out.

Deeper states in an oracle continuation are increasingly off-policy, since reaching them requires the current policy to follow the preceding oracle actions. We therefore introduce policy-reachability weighting. A frozen behavior policy scores each oracle action, and the supervision weight at step k is determined by the compatibility of the preceding oracle prefix under the behavior policy. Within a branch admitted by the improvement gate, the root target receives unit prefix weight, while deeper targets receive larger weights as the policy becomes more compatible with the oracle prefix. This down-weights supervision on poorly supported oracle prefixes and allows the effective supervision horizon to extend as compatibility improves. The oracle objective is added as an auxiliary loss, leaving the rewards, advantages, and policy ratios of the base RL algorithm unchanged, and the oracle is used only during training.

We evaluate SERO on ALFWorld (Shridhar et al., 2020b) and WebShop (Yao et al., 2022a) with Qwen2.5-1.5B-Instruct and Qwen2.5-7B-Instruct. Adding SERO to GraphGPO or HGPO improves ALFWorld success and WebShop task success at both scales. We also compare against prompting and strong RL baselines, and ablate root-only oracle targets, uniformly weighted full oracle continuations, and policy-reachability weighting. On ALFWorld, full executable continuations outperform root corrections, with reachability weighting adding further gains, especially on unseen tasks.

Our contributions are summarized as follows:

• We propose State-Rooted Executable Rollout Optimization (SERO), which turns an oracle correction into a multi-step source of executable training experience. Starting from a state reached by the current policy, SERO executes the oracle in the environment and learns the downstream oracle actions under the observations created by that intervention.

• We introduce policy-reachability weighting as a reachability-aware way to learn from oracle-induced states. By tying each downstream target to the behavior-policy compatibility of the preceding oracle prefix, SERO suppresses supervision on poorly supported oracle-induced states and lets deeper guidance become effective as the policy improves.

• We design SERO as an auxiliary objective that complements existing on-policy credit assignment while leaving the base RL credit estimator unchanged. Experiments at both model scales show improvements in ALFWorld success and WebShop strict success for both GraphGPO and HGPO, while controlled ablations isolate the effects of executable continuation learning and reachability weighting.

References (100)

Couldn't load all references. Reload the page to try again.