betaFeedback

WorksComputer Science

Co-Evolving Acting and Forecasting for Language Agents

Abstract

Training language agents is bottlenecked by the high cost of long-horizon rollouts, yet standard agentic reinforcement learning (RL) learns only from a terminal scalar reward, leaving the supervision in intermediate steps largely unused. Prior work exploits this supervision through value targets that estimate per-step success probabilities or observation targets that fit environment response. Both are hard to construct well: (1) value targets come from the same single scalar signal for each step in the trajectory, and (2) observation targets, such as web pages and terminal logs, are long and noisy and reach only one step ahead. We propose CoPE, which adds a third kind of multi-step action targets. On successful on-policy trajectories, CoPE trains the policy backbone to generate the action sequences that follows each history. Each action is also supervised when forecast from the preceding histories, forming a temporal ensemble that the shared backbone absorbs during training, and this enables acting and forecasting to co-evolve. The policy still acts one step at a time at inference, with no overhead. Across five benchmarks (ALFWorld, ScienceWorld, WebShop, τ2τ^2-bench, and AppWorld), CoPE (1) achieves stronger aggregate performance than GRPO and RL baselines with predictive auxiliary targets across simulated environments, while improving overall performance on both realistic applications; (2) delivers up to 1.9×1.9\times and 2.0×2.0\times higher sample efficiency than ECHO and GRPO, respectively, on ScienceWorld; and (3) achieves these gains with a single policy backbone, without additional models, separate pretraining, or inference overhead. The codebase is available at https://github.com/ulab-uiuc/CoPE.

Introduction

Large language models (LLMs) enable autonomous agents to tackle complex, long-horizon tasks such as web navigation [8] (Zheng et al. 2024; Zhang et al. 2025), agentic coding [14, 29] (Yang et al. 2024), and scientific discovery [2, 20] (Zheng et al. 2025; Yamada et al. 2025). However, training these agents remains computationally expensive. Because each rollout involves numerous interaction steps and tool calls, extracting the maximum learning signal from a limited number of interactions is crucial (Liu & van der Schaar, 2025). Yet, standard agentic reinforcement learning (RL) often learns only from a single scalar reward at the end of a trajectory, leaving stepwise supervision in the process, such as intermediate actions and environment observations, largely unused.

To exploit more intermediate supervision from the process, prior work constructs two kinds of additional targets. Value targets are estimates of how likely each intermediate step is to lead to success, obtained from process reward models [6] (Xi et al. 2026) or step-level credit assignment [11, 16], and can serve as dense rewards or advantages. Observation targets are the environment’s next observation or state. Some methods fit a separate LLM world model to them and use it to plan or to synthesize additional experience [4, 9]; others fit them as an auxiliary objective of the policy backbone, before or alongside policy optimization [33, 21] (Zhang et al. 2026; Yu et al. 2026).

Key challenges. Both existing prediction targets are difficult to construct effectively in complex agentic environments. (1) Value targets are derived from only the shared outcome. A trajectory records only its final outcome, not the success probability of each step, so every step is labeled with this same outcome, whose randomness comes mostly from later actions and observations rather than from the step itself. Distinguishing between steps requires step-level annotations, additional rollouts from intermediate states, or exact recurrence of states across rollouts. (2) Observation targets are noisy and reach only one step ahead. In web navigation or agentic coding, most tokens of the next observation (e.g., HTML DOM trees or verbose terminal logs) are irrelevant to the decision (Figure 1a), so the prediction loss is dominated by reproducing them. The target also covers only single-step transition; reaching later steps requires chaining predictions, where errors compound.

Figure 1. Motivation of CoPE for sample-efficient RL. (a) A terminal observation contains many task-irrelevant tokens, whereas the corresponding action is short and decision-relevant. (b) Three kinds of targets at the same history hth_t. Value targets are shared across steps: every step of a trajectory is labeled with the same final outcome YY. The observation target o^t+1\hat{o}_{t+1} is noisy and reaches only one step ahead. CoPE’s action targets condition on Y=1Y=1 and are specific to each step: hth_t is labeled with the actions that actually followed it, at:t+Ka_{t:t+K} (K=3K=3 here), and the next step with at+1:t+K+1a_{t+1:t+K+1}. (c) On AppWorld, CoPE reaches a training task score of 0.5 with 1.6× fewer RL steps than GRPO.

Our solution. We propose CoPE, which constructs a third kind of target: multi-step action targets. Alongside GRPO, CoPE employs multi-step action forecasting on successful on-policy trajectories, predicting actions at:t+Ka_{t:t+K} directly from the current history while skipping the intervening observations. We show that the population optimum of this objective is Pr⁡(at:t+K∣ht,success)\Pr(a_{t:t+K}\mid h_t,\text{success}), a hindsight distribution ([13, 28]) that conditions on both the history and the episode’s eventual success. Success thus enters as a condition that selects trajectories, not as a label assigned to each step. Therefore, CoPE overcomes previous limitations in three key ways. (1) Action targets are specific to each step. A successful trajectory labels each step with its own continuation, the actions that actually followed it. (2) Action targets are decision-relevant. Actions are concise (Figure 1a), so the loss is not spent on irrelevant observation content. (3) Multi-step action targets span the horizon and form an implicit temporal ensemble. Each action is supervised both where it is taken and when it is forecast from the KK preceding histories, and the shared backbone absorbs this ensemble into the policy through training alone. This agrees with the delay view of action chunking in robot learning, where predicting chunks trains each action from the current and several earlier observations; the resulting ensemble of delayed predictors, which ACT averages explicitly at test time (Zhao et al., 2023), accounts for much of chunking’s benefit ([17]). CoPE differs by still acting one step at a time at inference, with no overhead.

Main findings. We evaluate CoPE on five benchmarks spanning three simulated environments (ALFWorld ([32]), ScienceWorld ([36]), and WebShop (Yao et al., 2022)) and two realistic applications (τ2\tau^2-bench ([1]) and AppWorld ([34])). Our experiments yield three main findings. (1) Broad improvements: CoPE outperforms GRPO ([30]) and observation-prediction baselines (ECHO ([33]) and RWML (Yu et al., 2026)) on aggregate metrics in the three simulated environments, and improves overall metrics on both realistic applications (despite a negative result on the Airline domain of τ2\tau^2-bench). (2) Sample efficiency: on ScienceWorld, CoPE is up to 1.9× and 2.0× more sample-efficient than ECHO and GRPO, respectively. (3) Low overhead: on ScienceWorld, the action forecasting pass adds just 11% time per training step on average, while shorter rollouts reduce the measured end-to-end step time by 9%; CoPE requires neither a separate model nor a pretraining stage.

Related Works

Sample-efficient agentic RL. Methods for sample-efficient agentic RL follow two main directions. The first makes better use of outcome rewards, either by refining credit assignment within trajectories [11, 35, 22, 38, 16] or by converting completed interactions into extra policy supervision via hindsight rewriting or on-policy distillation [15, 39] (Yang et al. 2026; Zheng et al. 2026). These methods change how sparse outcomes are assigned or reused, without necessarily introducing a predictive objective. The second learns from the environment feedback available at every step, typically by adding auxiliary prediction of future states or observations to policy training [33, 21] (Zhang et al. 2026). Such objectives provide dense token-level supervision but generally focus on a single environment transition. CoPE combines elements of both directions: success filtering reuses outcome rewards, while multi-horizon prediction learns from how trajectories unfold in action space rather than reconstructing observations.

Multi-horizon prediction. CoPE is closely related to several forms of multi-horizon and outcome-conditioned prediction. Multi-token prediction trains language models to predict several future tokens [12], while robotic policies such as ACT and Diffusion Policy predict sequences of future actions [5] (Zhao et al. 2023). Multi-token prediction is closest architecturally because multiple offsets are learned by one backbone, whereas action chunking is closest in the structure of its targets. Outcome-conditioned sequence modeling conditions policies on desired returns, while self-imitation emphasizes high-return trajectories [3, 23]; both connect policy learning to trajectory-level outcomes. Accordingly, the k=0k = 0 term in CoPE is success-filtered imitation, while the k≥1k \ge1 terms extend this supervision to multiple future action offsets. CoPE uses these predictions as an auxiliary objective during on-policy GRPO: targets are regenerated from successful rollouts, and the predicted future actions are not executed as a chunk but affect acting through the shared backbone.

Preliminaries

Language agents. We consider a long-horizon task in which an LLM policy πθ\pi_\theta interacts with an environment for TT steps. At step tt, the agent holds the history ht=(o≤t,a<t)h_t = (o_{\leq t}, a_{<t}), samples an action at∼πθ(⋅∣ht)a_t \sim\pi_\theta(\cdot\mid h_t), and receives an observation ot+1∼P(⋅∣ht,at)o_{t+1} \sim P(\cdot\mid h_t, a_t) from the unknown environment transition PP, so that ht+1=(ht,at,ot+1)h_{t+1} = (h_t, a_t, o_{t+1}). This produces a trajectory τ=(o0,a0,o1,…,aT−1,oT)\tau= (o_0, a_0, o_1, \ldots, a_{T-1}, o_T). We focus on sparse-reward settings (See Appendix § 15.§ 3), where the agent receives only a terminal success signal Y(τ)∈{0,1}Y(\tau) \in\{0,1\}, and policy learning maximizes J(θ)=Eτ∼(πθ,P)[Y(τ)]J(\theta) = \mathbb{E}_{\tau\sim(\pi_\theta,P)}[Y(\tau)].

Policy optimization. A common choice for optimizing J(θ)J(\theta) is Group Relative Policy Optimization (GRPO) [30], which avoids training a critic. For each task, GRPO samples a group of GG trajectories {τi}i=1G\{\tau_i\}_{i=1}^{G} from the rollout policy πold\pi_{\mathrm{old}} and assigns each the normalized advantage A^i=(Y(τi)−μ)/(σ+δ)\hat{A}_i = (Y(\tau_i) - \mu)/(\sigma+ \delta), where μ\mu and σ\sigma are the mean and standard deviation of rewards in the group. With the per-step ratio ρi,t(θ)=πθ(ai,t∣hi,t)/πold(ai,t∣hi,t)\rho_{i,t}(\theta) = \pi_\theta(a_{i,t} \mid h_{i,t})/\pi_{\mathrm{old}}(a_{i,t} \mid h_{i,t}), GRPO minimizes

LGRPO(θ)=−1G∑i=1G1Ti∑t=0Ti−1min⁡(ρi,t(θ)A^i, clip⁡(ρi,t(θ),1−ϵ,1+ϵ)A^i).(1)\mathcal{L}_{\mathrm{GRPO}}(\theta) = -\frac{1}{G}\sum_{i=1}^{G}\frac{1}{T_i}\sum_{t=0}^{T_i-1}\min\left(\rho_{i,t}(\theta)\hat{A}_i,\ \operatorname{clip}\left(\rho_{i,t}(\theta), 1-\epsilon, 1+\epsilon\right)\hat{A}_i\right). \tag*{(1)}

Because the reward evaluates trajectory as a whole, every action in τi\tau_i receives the same advantage A^i\hat{A}_i. The learning signal thus only says whether a trajectory succeeded, not how it unfolded. The intermediate steps, which record how each decision led to the next, provide no further supervision. This motivates extracting additional supervision from the temporal structure of the collected trajectories.

Extending Policy Learning Across Future Horizons

Under binary outcome rewards, standard policy gradients supervise each history hth_t using only the immediate next action (K=0K = 0), providing no direct signal to plan further ahead. We define the hindsight action chunk, show that the idealized GRPO update fits only its single-step marginal (K=0K = 0), and extend supervision to multi-step horizons (K>0K > 0) via action forecasting.

Hindsight action chunk. Fix a task and a rollout policy π\pi. Let Pr⁡π\Pr_\pi denote the rollout distribution under π\pi, let Y∈{0,1}Y \in\{0,1\} indicate whether a rollout succeeds, and let Pr⁡π+≜Pr⁡π(⋅∣Y=1)\Pr_\pi^{+} \triangleq\Pr_\pi(\cdot\mid Y = 1) denote the hindsight distribution over successful rollouts. Given a history hth_t, the hindsight action chunk q(at:t+K∣ht)q(a_{t:t+K} \mid h_t) characterizes which future action sequences lead to task completion from hth_t. Formally, it is the distribution over the next K+1K+1 actions under Pr⁡+\Pr^{+}, with intermediate observations marginalized out:

q(at:t+K∣ht)≜Pr⁡+(at:t+K∣ht),at:t+K=(at,…,at+K),(2)q(a_{t:t+K} \mid h_t) \triangleq\Pr^{+}(a_{t:t+K} \mid h_t), \qquad a_{t:t+K} = (a_t,\ldots,a_{t+K}), \tag*{(2)}

which reduces to the single-step distribution q(at∣ht)q(a_t \mid h_t) when K=0K=0 (with actions after episode termination padded with a terminal token).

GRPO fits the single-step hindsight distribution. Consider an idealized on-policy GRPO ([30]) update without KL or length normalization ([19]) (see Alg. 1 for our full implementation). Since the on-policy score has zero mean, EPr⁡πθ[∑t∇θlog⁡πθ(at∣ht)]=0\mathbb{E}_{\Pr_{\pi_\theta}}\left[\sum_t \nabla_\theta\log\pi_\theta(a_t \mid h_t)\right]=0, penalizing failed rollouts points in the same expected direction as reinforcing successful ones. Up to a task-dependent positive scalar, the expected GRPO update therefore follows the gradient of the single-step objective

∇θLGRPO∝−∇θEPr⁡+[∑tlog⁡πθ(at∣ht)]=∇θEPr⁡+[∑tCE⁡(q(at∣ht),πθ(at∣ht))],(3)\nabla_\theta\mathcal{L}_{\mathrm{GRPO}} \propto-\nabla_\theta\mathbb{E}_{\Pr^{+}}\left[\sum_t \log\pi_\theta(a_t \mid h_t)\right] = \nabla_\theta\mathbb{E}_{\Pr^{+}}\left[\sum_t \operatorname{CE}\left(q(a_t \mid h_t),\pi_\theta(a_t \mid h_t)\right)\right], \tag*{(3)}

where CE⁡(q,p)≜−Eq[log⁡p]\operatorname{CE}(q,p) \triangleq-\mathbb{E}_q[\log p], and the equality holds because ata_t following hth_t in a successful rollout is a sample from q(at∣ht)q(a_t \mid h_t). While conditioning on Y=1Y=1 enables q(at∣ht)q(a_t \mid h_t) to carry long-horizon credit—allowing RL to learn multi-step behaviors—GRPO supervises each hth_t only with its single-step marginal (K=0K=0), never asking the representation at hth_t to anticipate the subsequent actions at+1:t+Ka_{t+1:t+K} realized for later success.

Action forecasting fits the multi-step hindsight distribution. To supervise hth_t with the full horizon-KK chunk q(at:t+K∣ht)q(a_{t:t+K} \mid h_t), we introduce a parameterized autoregressive action forecaster pθ(at:t+K∣ht)p_\theta(a_{t:t+K} \mid h_t) and define the action forecasting objective as the multi-step counterpart of Eq. (3):

LAF(θ)≜−EPr⁡+[∑tlog⁡pθ(at:t+K∣ht)]=EPr⁡+[∑tCE⁡(q(at:t+K∣ht),pθ(at:t+K∣ht))].(4)\mathcal{L}_{\mathrm{AF}}(\theta) \triangleq-\mathbb{E}_{\Pr^{+}}\left[\sum_t \log p_\theta(a_{t:t+K} \mid h_t)\right] = \mathbb{E}_{\Pr^{+}}\left[\sum_t \operatorname{CE}\left(q(a_{t:t+K} \mid h_t),p_\theta(a_{t:t+K} \mid h_t)\right)\right]. \tag*{(4)}

Whereas Eq. (3) fits only the single-step target q(at∣ht)q(a_t \mid h_t) (K=0K=0), LAF\mathcal{L}_{\mathrm{AF}} trains pθp_\theta to match the joint horizon-KK target q(at:t+K∣ht)q(a_{t:t+K} \mid h_t). Just as in the single-step case, the second equality in Eq. (4) holds because any action sequence at:t+Ka_{t:t+K} observed after hth_t in a successful rollout is already an exact sample from q(at:t+K∣ht)q(a_{t:t+K} \mid h_t). This makes multi-step fitting tractable: rather than learning an explicit world model to simulate future states, we simply read target action chunks off successful environment rollouts, where intermediate observations are naturally marginalized under Pr⁡+\Pr^{+}. Because pθp_\theta shares parameters with the acting policy πθ\pi_\theta, minimizing LAF\mathcal{L}_{\mathrm{AF}} forces the policy’s representation at hth_t to encode the multi-step action plan that leads to success.

CoPE: Co-evolving Acting and Forecasting

COPE trains a single LLM to both act and forecast its own future actions (Figure 2). The acting policy and the forecaster share a single backbone (§ 5.1), the forecaster is trained on successful on-policy Algorithm 1 CoPE training algorithm

Figure 2. Overview of COPE. (i) Joint training of acting and forecasting. One LLM backbone is shared by both, and LAF\mathcal{L}_{\mathrm{AF}} fits the successful action chunk at:t+Ka_{t:t+K}. (ii) Co-evolution of acting and forecasting. Acting helps forecasting via trajectory collection, and forecasting helps acting via implicit temporal ensembling.

Require: Shared backbone θ\theta, group size GG, horizon KK, weight λ\lambda

  1. for each iteration do

  2. θold←θ\theta_{\mathrm{old}} \leftarrow\theta

  3. Collect a group of trajectories {τi}i=1G\{\tau_i\}_{i=1}^{G} with πθold\pi_{\theta_{\mathrm{old}}}

  4. A^i←(Y(τi)−μ)/(σ+δ)\hat{A}_i \leftarrow(Y(\tau_i)-\mu)/(\sigma+\delta)

  5. ρi,t←πθ(ai,t∣hi,t)/πθold(ai,t∣hi,t)\rho_{i,t} \leftarrow\pi_\theta(a_{i,t}\mid h_{i,t})/\pi_{\theta_{\mathrm{old}}}(a_{i,t}\mid h_{i,t})

  6. L^GRPO(θ)←−1G∑i=1G1Ti∑tmin⁡(ρi,tA^i,clip⁡(ρi,t,1−ϵ,1+ϵ)A^i)\hat{\mathcal{L}}_{\mathrm{GRPO}}(\theta) \leftarrow-\frac{1}{G}\sum_{i=1}^{G}\frac{1}{T_i}\sum_t \min\left(\rho_{i,t}\hat{A}_i,\operatorname{clip}(\rho_{i,t},1-\epsilon,1+\epsilon)\hat{A}_i\right) ▷ Eq. (1)

  7. S←{i:Y(τi)=1}\mathcal{S} \leftarrow\{i:Y(\tau_i)=1\}

  8. L^AF(θ)←−1max⁡(1,∣S∣)∑i∈S∑tlog⁡pθ(ai,t:t+K∣hi,t)\hat{\mathcal{L}}_{\mathrm{AF}}(\theta) \leftarrow-\frac{1}{\max(1,\lvert\mathcal{S}\rvert)}\sum_{i\in\mathcal{S}}\sum_t\log p_\theta(a_{i,t:t+K}\mid h_{i,t}) ▷ Eq. (5)

  9. Update θ\theta by minimizing L^GRPO(θ)+λL^AF(θ)\hat{\mathcal{L}}_{\mathrm{GRPO}}(\theta)+\lambda\hat{\mathcal{L}}_{\mathrm{AF}}(\theta)

  10. end for

rollouts (§ 5.2), and the forecasting objective is optimized jointly with GRPO so that acting and forecasting co-evolve (§ 5.3).

Sharing Parameters for Acting and Forecasting

We instantiate both the acting policy πθ\pi_\theta and the action forecaster pθp_\theta on a single LLM backbone θ\theta: πθ(at∣ht)\pi_\theta(a_t\mid h_t) is the model’s next-action distribution given history hth_t, whereas pθ(at:t+K∣ht)p_\theta(a_{t:t+K}\mid h_t) is the distribution over action chunks generated when a forecasting instruction is appended to hth_t. Because of this forecasting instruction, pθp_\theta and πθ\pi_\theta are distinct distributions: even at the first forecast position (K=0K=0), pθ(at∣ht)p_\theta(a_t\mid h_t) does not generally equal πθ(at∣ht)\pi_\theta(a_t\mid h_t). Sharing the backbone offers two key benefits: (1) No additional model. Forecasting reuses the policy’s parameters, requiring no separate model to train, store, or serve. (2) Shared representation. Multi-step structure captured by the forecasting objective is written directly into the representation from which the policy acts, allowing acting and forecasting to co-evolve (§ 5.3).

Multi-step Action Forecasting Loss

At each iteration, we collect trajectories using the current policy π=πθold\pi=\pi_{\theta_{\mathrm{old}}} and hold them fixed during optimization. As shown in § 4, every action chunk at:t+Ka_{t:t+K} realized after hth_t in a successful rollout is a sample from the hindsight action chunk q(at:t+K∣ht)q(a_{t:t+K}\mid h_t), allowing us to train the forecaster by maximum likelihood on these chunks without modeling environment dynamics.

Success-filtered multi-step action forecasting. Since q(at:t+K∣ht)q(a_{t:t+K}\mid h_t) is conditioned on success (Y=1Y=1), we train the forecaster exclusively on successful trajectories. Fitting failed trajectories as well would instead learn the unconditional rollout distribution Pr⁡π(at:t+K∣ht)\Pr_\pi(a_{t:t+K}\mid h_t), pushing the shared backbone toward behaviors that GRPO suppresses. For each task xx, let Gx\mathcal{G}_x be a group of GG rollouts sampled from π\pi, and let Sx={τ∈Gx:Y(τ)=1}\mathcal{S}_x=\{\tau\in\mathcal{G}_x:Y(\tau)=1\} be its successful subset. We estimate the multi-step action forecasting loss (Eq. (4)) on each group via

L^AF(θ)=−Ex,Gx[∑τ∈GxY(τ)max⁡(1,∣Sx∣)∑tlog⁡pθ(at:t+K∣ht)](5)\hat{\mathcal{L}}_{\mathrm{AF}}(\theta)=-\mathbb{E}_{x,\mathcal{G}_x}\left[\sum_{\tau\in\mathcal{G}_x}\frac{Y(\tau)}{\max(1,\lvert\mathcal{S}_x\rvert)}\sum_t\log p_\theta(a_{t:t+K}\mid h_t)\right] \tag*{(5)}

where hth_t and at:t+Ka_{t:t+K} are taken from τ\tau. Any chunk extending past the end of τ\tau is truncated after the terminal token in Eq. (2), since subsequent padding is deterministic. At each hth_t, we append the forecasting instruction followed by the realized chunk, computing each term in a single forward pass.

Group normalization of the forecasting loss. Success filtering alone can destabilize training as the policy improves: as the number of successful rollouts grows, an unnormalized sum would scale the forecasting gradient with ∣Sx∣\lvert\mathcal{S}_x\rvert and interfere with policy optimization. The factor 1/max⁡(1,∣Sx∣)1/\max(1,\lvert\mathcal{S}_x\rvert) in Eq. (5) averages the loss across successful rollouts within each group, removing this linear scaling. For a successful rollout τ\tau, the expected weight depends only on its task xx (which hth_t determines). Hence, per task, L^AF(θ)\hat{\mathcal{L}}_{\mathrm{AF}}(\theta) equals LAF(θ)\mathcal{L}_{\mathrm{AF}}(\theta) (Eq. (4)) in expectation up to a positive scalar—mirroring how the GRPO update relates to Eq. (3)—and thus leaves the per-history minimizer q(at:t+K∣ht)q(a_{t:t+K}\mid h_t) unchanged.

Co-evolution of Acting and Forecasting

Acting helps forecasting via trajectory collection. For a fixed rollout policy π\pi and a sufficiently expressive model, LAF(θ)\mathcal{L}_{AF}(\theta) is minimized on every history reached by successful rollouts by the hindsight action chunk itself (Eq. (4)), which by Bayes’ rule is

pθ∗(at:t+K∣ht)=q(at:t+K∣ht)∝Pr⁡π(at:t+K∣ht)Pr⁡π(Y=1∣ht,at:t+K).(6)p_{\theta^*}(a_{t:t+K} \mid h_t) = q(a_{t:t+K} \mid h_t) \propto\Pr_{\pi}(a_{t:t+K} \mid h_t)\Pr_{\pi}(Y=1 \mid h_t,a_{t:t+K}). \tag*{(6)}

The first factor represents the action chunks proposed by the policy π\pi, and the second is their success probability (value), which success filtering enforces via rejection sampling. This reweighting keeps the target ahead of the generating policy: acting at every history according to the single-step marginal q(at∣ht)q(a_t \mid h_t) succeeds at least as often as acting with π\pi [28]. Since both factors depend on the current policy π\pi, forecasting relies on acting to supply successful rollouts and receives more of them as the policy improves.

Forecasting helps acting via implicit temporal ensembling. § 4 views the forecasting loss along each row of Figure 2(ii): each history hth_t must anticipate its future chunk at:t+Ka_{t:t+K}. Viewed along each column, every action ata_t of a successful rollout also lies within the chunks of the KK preceding histories, receiving supervision from each of ht,ht−1,…,ht−Kh_t, h_{t-1}, \ldots, h_{t-K} through the forecast pθ(at∣ht−k,at−k:t−1)p_\theta(a_t \mid h_{t-k}, a_{t-k:t-1}), rather than only from hth_t at the moment it is executed as in GRPO. These forecasts do not conflict with acting: since all are conditionals of the same hindsight distribution Pr⁡+\Pr^+, the optimal forecast of ata_t issued at ht−kh_{t-k} equals the GRPO target q(at∣ht)q(a_t \mid h_t) marginalized over the intermediate observations between t−kt-k and tt. Because the forecaster shares θ\theta with the acting policy (§ 5.1), these earlier forecasts are implicitly ensembled into πθ\pi_\theta through the shared representation (see § 8).

Joint optimization and inference. We optimize the shared parameters with L(θ)=L^GRPO(θ)+λL^AF(θ)\mathcal{L}(\theta) = \hat{\mathcal{L}}_{\mathrm{GRPO}}(\theta) + \lambda\hat{\mathcal{L}}_{AF}(\theta), where L^AF\hat{\mathcal{L}}_{AF} is given by Eq. (5) and λ\lambda is a weighting hyperparameter (Alg. 1). The forecasting objective is used only during training: at inference, the agent acts with πθ\pi_\theta alone, generating one action per step without the forecasting instruction, so CoPE adds no inference cost over a GRPO-trained policy.

Experimental Settings

Tasks. We evaluate on five long-horizon agent benchmarks with sparse rewards that differ in observation complexity, action space, and horizon. Three are simulated environments: (1) ALFWorld [32] for household tasks, (2) ScienceWorld [36] for elementary science experiments, and (3) WebShop (Yao et al., 2022) for online shopping over long web-page observations. Two are realistic applications: (1) τ2\tau^2-bench [1] for policy-constrained customer service with a user simulator, and (2) AppWorld [34] for composing API calls across consumer apps with code as actions. We use Qwen2.5-7B-Instruct [27] for the three simulated environments and τ2\tau^2-bench, and Qwen2.5-14B-Instruct for the more difficult AppWorld tasks. Details are available in Appendix § 14. Unless otherwise stated, all analysis experiments are carried out on ScienceWorld.

Baselines. On the simulated environments (Table 3), we compare against three groups. (1) Prompting: Qwen2.5-7B-Instruct, Gemini-2.5-Flash-Lite [7], GPT-5-mini and GPT-5.5 [24, 25], and Reflexion [31], which adds verbal self-reflection on failed trials. (2) RL w/o auxiliary loss: RFT (Yuan et al., 2023), rejection sampling fine-tuning; GRPO [30], critic-free RL with group-normalized advantages; and EMPG [35], which rescales GRPO’s step-level gradients by policy entropy. (3) RL w/ auxiliary loss: RWML (Yu et al., 2026), which first trains next-state prediction on environment transitions and then runs GRPO; and ECHO [33], which adds a next-observation prediction loss to GRPO. Both supervise only single-step transitions, testing whether forecasting actions over multiple steps is more effective than predicting the next observation. On τ2\tau^2-bench and AppWorld (Table 1 and Table 2), we include published baseline numbers reported by G2PO [37] and InfoPO [16], together with GRPO and CoPE runs from our implementation. Because the published AppWorld results use a different task subset and protocol (Appendix § 15.§ 1), our direct comparison is between GRPO (ours) and CoPE under our shared setup.

MethodTelec.RetailAirOverall
Agentic Prompting
Qwen2.514.413.17.511.7
ReAct13.113.810.012.3
Published RL results
RAGEN17.517.515.016.7
Search-R115.615.010.013.5
UserRL13.816.97.512.7
InfoPO18.118.816.317.7
Our controlled runs
GRPO (ours)38.817.526.227.5
CoPE40.629.416.228.7

Table 1. Results on τ2\tau^2-bench. All results are Avg@4 for task success rate with Qwen2.5-7B-Instruct.

MethodNormalChallenge
Agentic Prompting
Qwen2.51.20.7
ReAct10.72.6
Published RL results
PPO{sup}†`19.1–
RLOO{sup}†`24.8–
GiGPO{sup}†`25.7–
GRPO{sup}†`24.8–
Our controlled runs
GRPO (ours)41.718.7
CoPE55.422.5

Table 2. Results on AppWorld. All results are success rates (%) with Qwen2.5-14B-Instruct. † indicates results in G2PO.

MethodALFWorldWebShopScienceWorld
PickLookCleanHeatCoolPick2AllScoreSucc.ScoreSucc.
Agentic prompting
Gemini-2.5-flash-lite82.636.837.820.021.448.946.07.86.513.915.0
GPT-5-mini82.647.427.036.014.375.652.011.77.040.143.5
GPT-5.597.8100.091.988.089.393.393.566.156.566.879.0
Qwen2.5-7B69.631.629.736.017.911.134.025.32.5−13.32.5
Qwen2.5-7B + Reflexion84.826.351.444.032.155.654.021.94.0−3.76.0
RL methods w/o auxiliary loss
RFT91.373.773.084.064.371.177.051.416.0−11.04.5
GRPO100.073.794.684.089.388.990.584.164.552.864.5
GRPO + EMPG97.857.989.288.089.395.689.584.367.548.246.5
RL methods w/ auxiliary loss
RWML + GRPO100.089.589.292.096.484.492.081.264.039.465.0
ECHO97.889.591.996.096.493.394.585.071.544.867.5
COPE100.0100.097.396.089.391.195.589.477.053.472.5

Table 3. Evaluation results on simulated agent tasks. For ALFWorld, we report the success rate (%) on each subtask and overall. For WebShop and ScienceWorld, we report the average score and the success rate (%). All RL methods use Qwen2.5-7B-Instruct. Dark gray and light gray mark the best and second-best results in each column across all methods. More details are available in Appendix § 15.

Experimental Results

CoPE achieves aggregate gains across five agentic benchmarks. Across both simulated and realistic agentic tasks, CoPE improves the benchmark-level aggregate metrics over GRPO. On ALFWorld (Table 3), CoPE improves performance by 5.0 points over GRPO. The gains are larger on WebShop and ScienceWorld, where success rates increase by 12.5 points to 77.0% and by 8.0 points to 72.5%, respectively; on ScienceWorld, CoPE also achieves the best performance among the RL-based methods. The same trend largely extends to more realistic benchmarks. On τ2\tau^2-bench (Table 1), CoPE improves overall success from 27.5% to 28.7%, driven by an approximately 12-point gain on Retail, despite a drop on Airline. We analyze the drop in Sec. 8. Finally, on AppWorld (Table 2), CoPE substantially improves over GRPO on both splits, increasing success from 41.67% to 55.36% on the normal split and from 18.71% to 22.54% on the challenge split.

CoPE outperforms observation-based auxiliary losses on aggregate simulated-task metrics. On the three simulated environments where ECHO and RWML are evaluated, CoPE achieves the best aggregate results. It exceeds the stronger baseline by 1.0 point on ALFWorld, by 4.4 average-score points and 5.5 success-rate points on WebShop, and by 5.0 success-rate points on ScienceWorld. These gains are not uniform across ALFWorld subtasks: ECHO or RWML performs better on Cool and Pick2.

CoPE improves sample efficiency. Figure 1 compares CoPE with GRPO on AppWorld, while Fig. 3 compares CoPE with ECHO and GRPO on ScienceWorld. Overall, CoPE is 1.6× and 2.0× more sample-efficient than GRPO on AppWorld and ScienceWorld, respectively. On ScienceWorld, ECHO requires 53 and 114 steps to reach equivalent performance milestones (making CoPE 1.7× to 1.9× faster). This acceleration is even more pronounced at higher reward tiers: CoPE achieves a 0.6 reward by step 86, a level neither baseline reaches within the first 150 steps. Thus, the multi-step action forecasting loss not only accelerates early-stage learning but also enables the policy to reach a higher performance level under the same budget.

CoPE introduces little training overhead. Because CoPE adds a supervised pass over successful rollouts, its direct cost scales with the batch success rate. On ScienceWorld, this pass adds 11% time per training step on average, while shorter rollouts reduce the measured end-to-end step time by 9% compared with GRPO (Figure 4).

Figure 4. Analysis on wall-clock efficiency. Forecasting adds 11% per-step cost, while end-to-end step time decreases by 9%.

Discussions

Q1: What is the empirical evidence for acting and forecasting co-evolution?

In Sec. 5.3, we analyze the co-evolution mechanism between acting and forecasting. The acting-to-forecasting direction is straightforward: the policy collects successful trajectories as the forecast targets. Conversely, for the forecasting-to-acting direction, our analysis suggests that forecasting improves action selection through implicit ensembling via shared parameters. Here, we provide empirical evidence to support this claim.

Evidence for implicit temporal ensembling. For this experiment, we train a separate LoRA forecaster on ScienceWorld trajectories collected by the model, while the model’s parameters only receive policy gradient. The policy therefore supplies the forecasting data, but forecasting gradients cannot update the policy. We then use the separately parameterized forecaster to rerank candidate actions using forecasts from multiple horizons while CoPE model itself acts as forecaster:

log⁡π(a∣ht)=(1−η)log⁡πθ(a∣ht)+ηK∑k=1Klog⁡pθ′(a∣ht−k,at−k:t−1),(7)\log\pi(a \mid h_t) = (1-\eta)\log\pi_\theta(a \mid h_t) + \frac{\eta}{K}\sum_{k=1}^{K}\log p_{\theta'}(a \mid h_{t-k}, a_{t-k:t-1}), \tag*{(7)}

where K=2K = 2 in this experiment and θ′\theta^\prime denotes the LoRA-trained forecaster. We rank eight candidate actions by log⁡π(a∣ht)\log\pi(a|h_t) and execute the highest-ranked one. At every checkpoint in Table 6, explicit forecasting improves GRPO and narrows its gap to COPE, but adds nothing to COPE, as predicted in § 5.3. The forecasts thus carry information for acting that policy gradient alone does not acquire, and COPE’s policy already contains it: what GRPO obtains only through a separate forecaster and extra forward passes at test time, COPE delivers in a single forward pass. Forecasting therefore changes what the policy itself knows, completing the forecasting-to-acting half of the co-evolution.

SettingG150G_{150}G250G_{250}CoPE
Top-1 sampling56.564.572.5
Top-8 (η=0\eta=0)62.569.073.5
Top-8 (η=0.75\eta=0.75)70.072.073.0
Δ\Delta (η=0.75\eta=0.75 vs. 0)+7.5+7.5+3.0+3.0−0.5-0.5

Table 6. Explicit ensembling results. G150G_{150} and G250G_{250} denote checkpoints after 150 and 250 training steps on ScienceWorld.

Q2: Why do multi-step targets outperform imitating successful actions?

Lazzati et al. [17] traces the benefits of action chunking in robot imitation learning (Zhao et al. (2023)) to delayed prediction: a prediction of ata_t has a delay kk if made without the last kk observations. Since a chunking policy predicts ata_t from ot,ot−1,…o_t, o_{t-1}, \ldots, it acts as an ensemble of delayed predictors: a single delay recovers much of the benefit but falls short on harder tasks, while an ensemble over randomized delays matches chunking.

In our setting, the kk-th term of the forecasting loss in Eq. (4) is a delay-kk prediction. Each action is thus trained at every delay up to KK, as in chunking. The variants in Table 5 differ in which delays they train: success-filtered SFT and K=0K = 0 train only delay 0, πθ\pi_\theta directly and under the forecasting instruction (§ 5.1) respectively; the invalid-action filter replaces each rejected K=0K = 0 target with the next valid action, a single delay set by an environment-specific signal; and COPE trains all delays up to KK. Relative to GRPO, they change the success rate by −7.5, +2.0, +5.0, and +8.0 points.

MethodSucc.Δ\Delta
GRPO + success-filtered SFT57.0−7.5-7.5
K=0K=0 (no invalid-action filter)66.5+2.0+2.0
K=0K=0 (invalid-action filter)69.5+5.0+5.0
CoPE (K=2K=2)72.5+8.0+8.0

Table 5. Comparison of action forecasting variants. We report success rate and gain with GRPO on ScienceWorld.

Delay 0 carries little information about success. Success filtering keeps detours, suboptimal or invalid actions that the agent later recovers from, since they barely affect success. At such a step, the delay-0 target is the detour itself, while the recovery that decides success appears only at later delays. Imposed on πθ\pi_\theta directly, the delay-0 target speeds up early training but later hurts it (Figure 5).

Figure 5. Invalid-action filtering. Replacing invalid action with the next valid one improves the sample efficiency of the K=0K=0 baseline.

A single delay versus an ensemble over delays. The filter confirms that a delayed target helps (+2.0 → +5.0, Figure 5), but it needs an environment-specific signal and covers only detours that the environment rejects. COPE needs no such signal and trains every action at all delays, reaching +8.0: delay 0, a single delay, and the full ensemble rank in the same order as for robot policies.

Q3: Why must action forecasting loss be conditioned on success, and what does it learn?

Fundamentally, the action forecasting loss must align with the primary RL objective. Without success conditioning, the model is forced to imitate average or failed trajectories, creating a severe objective conflict and leading to zero reward after the first few steps of training. With it, the forecaster learns how the agent behaves in episodes that eventually succeed. Because success depends on the task as well as on the agent’s choices, these episodes may over-represent easy tasks, a known limitation of outcome-conditioned imitation [26, 10].

Figure 3. Analysis of sample efficiency. CoPE reaches 0.4 in about half the RL steps required by GRPO on ScienceWorld.

Mixed results on τ\tau-bench. CoPE gains on Retail (17.5% →\to 29.4%) but drops on Airline (26.2% →\to 16.2%), because Airline’s task and reward design makes this over-representation extreme. The reward checks state-based assertions on the final database, and 38% of Airline tasks expect the database to stay unchanged, against 4.4% in Retail. On these tasks, refusing the request is fully rewarded, and they are by far the easiest since the policy does not need to do anything: early in training they succeed 52% of the time, against 8.9% for tasks that require changing the database, so most successful episodes, the only ones the forecasting loss learns from, are refusals. Yet a refusal task and an action task differ only in details: a request to cancel a booking must be refused once the customer demands a refund above 50%. A rewarded refusal and an unrewarded one thus share nearly the same history, and the forecaster, trained only on the rewarded copies, carries refusals over to tasks that require action. These tasks then succeed even less often, which skews the targets further toward refusal.

Ablation Studies

Ablation on forecasting horizon KK. The horizon KK is the maximum future offset: the forecast chunk contains the current-action target at k=0k=0 and future-action targets through k=Kk=K. Short horizons keep the future targets close to the current history but capture less multi-step structure. Conversely, long horizons introduce irreducible noise, as the action kk steps ahead depends increasingly on the intervening observations, which the forecast does not see. In Figure 6, we compare the K=0K=0 invalid action filtered baseline with forecasting horizons K∈{1,2,4}K \in\{1,2,4\}. Every K≥1K \ge1 setting outperforms GRPO and the K=0K=0 baseline. K=2K=2 performs best, while K=4K=4 declines slightly as noise from distant predictions begins to dominate.

Figure 6. Ablation on forecast horizon KK. All K≥1K \ge1 settings outperform GRPO; K=2K = 2 achieves the highest score.

Ablation on forecasting coefficient λ\lambda. Another important hyperparameter is the coefficient λ\lambda for the action forecasting loss. In Figure 7, we sweep λ\lambda from 10−410^{-4} to 10−110^{-1} while fixing K=2K=2. Notably, every tested value of λ\lambda consistently improves upon the GRPO baseline throughout training. We find that λ\lambda primarily controls the pace of learning: larger values accelerate early gains, whereas smaller values follow a similar but delayed trajectory. The two largest coefficients converge to similar peak scores, while the smaller ones still remain above GRPO. We adopt λ=10−2\lambda=10^{-2} for all agentic tasks.

Figure 7. Ablation on action forecasting weight. All coefficients outperform the GRPO baseline; λ=10−2\lambda= 10^{-2} achieves the highest.

Ablation on group normalization. As discussed in § 5, the number of successful rollouts within a group naturally increases as the policy improves. Without normalization, the accumulated forecasting gradient scales directly with this success count. This shifting balance between the primary RL objective and the forecasting auxiliary loss causes spikes in gradient norms and reward fluctuations. Averaging over successful rollouts removes this direct dependence, although the resulting loss can still vary with trajectory length. As shown in Figure 8, normalization reduces these spikes.

Figure 8. Ablation on group normalization. Normalization suppresses spikes in gradient norms and stabilizes late training.

Ablation on model backbone. The results in Table 3 use Qwen2.5-7B-Instruct, leaving open whether the gain is specific to that backbone. We repeat the comparison against GRPO on WebShop and ScienceWorld with Qwen3-8B (Yang et al., 2025) and report it alongside the Qwen2.5-7B results. In Table 4, CoPE improves both score and success rate on both benchmarks under both backbones, indicating that its gains are not tied to a particular model generation.

BenchmarkQwen2.5-7BQwen3-8B
WSScore 84.1 →\to 89.483.4 →\to 87.4
Succ. 64.5 →\to 77.064.0 →\to 72.5
SWScore 52.8 →\to 53.450.1 →\to 58.3
Succ. 64.5 →\to 72.561.5 →\to 71.5

Table 4. Backbone ablations. WS/SW: WebShop/ScienceWorld. Both backbones share training settings. Entries: GRPO →\to CoPE.

Conclusion

We introduced CoPE, which trains a language agent to forecast its own future actions alongside acting. Rather than fitting noisy observations, CoPE trains on the success-filtered action chunk at:t+Ka_{t:t+K}, combining the current-action target with forecasts up to KK steps in the future. Across five benchmarks, CoPE improves aggregate results over RL baselines. It also improves sample efficiency with little computational overhead. We hope this work motivates further methods for sample-efficient long-horizon agentic RL.

Reproducibility Statement

We describe the CoPE algorithm in § 5 and Alg. 1, and the tasks, models, baselines, and evaluation protocols in § 6. Appendix § 14 records model licenses and software dependencies, while Appendix § 15 lists the configurations currently documented in the manuscript. Evaluation metrics are defined in Appendix § 15.§ 4. We will release the complete per-method configuration files and training code upon publication.

Ethics Statement

This work introduces CoPE, a training algorithm for improving the sample efficiency of reinforcement learning for LLM-based agents; it is a methodological contribution rather than a deployed system, and its societal impact is largely mediated by how downstream practitioners apply it. All experiments are conducted on standard agentic benchmarks (ALFWorld, ScienceWorld, WebShop, τ2\tau^2-bench, and AppWorld) using open-weight or proprietary models strictly for research evaluation; the work does not involve human subjects, crowdsourcing, or the collection of new personal data. By coupling action forecasting and policy optimization within a single backbone, CoPE can reduce environment-interaction costs without training or serving a separate world model, lowering the barrier for resource-constrained groups to study long-horizon LLM agents. We also note that, like other advances in sample-efficient agentic RL, more capable autonomous agents could in principle be misused for tasks such as automated misinformation or unauthorized web automation; practitioners building on CoPE in higher-stakes domains should pair it with appropriate safety evaluation, deployment-time monitoring, and human oversight.

AI Use Statement

In this work, we used generative AI tools to assist with method development and proof writing; to provide feedback on experimental design, including the separated-forecaster and implicit-ensembling analysis in § 8; to help interpret experimental results; and to implement parts of the training and evaluation code. We did not use generative AI tools to generate synthetic datasets, clean or reformat datasets, perform translation, or conduct qualitative data analysis. We also used generative AI tools to draft and edit text for clarity, suggest section organization, search for and summarize related literature, and format references. The authors reviewed the AI-assisted derivations, code, reported results, and citations and take responsibility for the final content.

Artifact Details

Model License

GPT-5-mini License: Proprietary (OpenAI) GPT-5.5 License: Proprietary (OpenAI) GPT-4o-mini License: Proprietary (OpenAI) Gemini-2.5-flash-lite License: Proprietary (Google) Qwen2.5-7B-Instruct License: Apache 2.0 Qwen2.5-14B-Instruct License: Apache 2.0 Qwen3-8B License: Apache 2.0

Software Versions

For our simulated agentic environments, we build upon AgentGym-RL2, which provides unified task configurations for ALFWorld, WebShop, and SciWorld. We additionally implement environment adapters for AppWorld and τ\tau-bench. Our training infrastructure is built on top of verl3 (v0.2.0.post2).

Dataset Statistics

Table 7 gives the size of every split we use.

EnvironmentTrainTestPoolUnit of a task
ALFWorld2,4202002,620TextWorld game file
WebShop3,9302006,910shopping instruction (goal)
SciWorld2,1202004,639(task type, variation) pair
τ2\tau^2178100278customer-service task
AppWorld90168/417732task in a scenario

Table 7. Splits used in this work. “Pool” is the number of distinct tasks the environment can instantiate at all, from which the two splits are drawn; the splits do not have to exhaust it. Counts are measured, not quoted.

ALFWorld. The training pool is the 2,420 games under json_2.1.1/train and the test set is the 200 games under json_2.1.1/valid_train; the environment server concatenates the two mapping files into one list, so test ids are simply indices 2420–2619 into it. The splits are therefore drawn from different game-file directories and share no game. Tasks fall into six families, read off the task type in the file name (Table 8): Pick (place an object), Look (examine an object under a lamp), Clean, Heat, Cool, and Pick2 (place two objects). The test split keeps roughly the training proportions, the largest gap being Pick2 (22.5% of test against 16.1% of train).

SplitAllPickLookCleanHeatCoolPick2
Train2,420672196448321394389
Test200461937252845

Table 8. ALFWorld subtask families. Derived from the task type encoded in each game file’s name, so the two splits are counted the same way.

WebShop. Our WebShop instance is configured with 1,000 products, not the full catalogue: the environment server is constructed with num_products=1000 and the product files are the 1K subsets, which we verified are byte-equivalent to the first 1,000 entries of the full files. Goals are the synthetic ones generated from those products’ attributes (the server is not run in human-goal mode), which yields 6,910 instructions; the generator is seeded (random.seed(233) before the shuffle), so an id denotes the same instruction in every run and on every machine. We train on 3,930 of them and test on 200. The two sets are disjoint and together cover 59.8% of the pool. Note that the commonly quoted WebShop figures — 12,087 human-written instructions, a 500-instruction test set, the full product catalogue — describe a different configuration and are not comparable to ours.

SciWorld. SciWorld is our abbreviation for ScienceWorld. The environment defines 30 task types; the server excludes seven of them (task ids 5-1, 5-2, 9-1, 9-2, 9-3, 10-1, 10-2) and enumerates every variation of the remaining 23, giving a pool of 4,639 (task type, variation) pairs indexed by a single running id. We train on 2,120 of these and test on 200. The training ids cover 22 of the 23 task types and the test ids cover 12.

τ2\tau^{2}-Bench. τ2\tau^{2}-Bench ships its own train/test partition per domain, and we use all three domains together: retail (74 train, 40 test), airline (30, 20) and telecom (74, 40), i.e. 178 training and 100 test tasks. We first compute the metric separately for each domain and report their unweighted arithmetic mean, so retail, airline, and telecom contribute equally despite their different test-set sizes. The environment server is launched with TAU2_DOMAIN=retail+airline+telecom and the split selected by TAU2_TASK_SPLIT; task ids are positional across the concatenated domains in that order, and the id files are generated from the same loaders the server uses (scripts/make_tau2_itemid.py), so a row cannot name one task and train on another. Each task pairs a customer goal with a database state and a set of state-based assertions, and every episode also runs a simulated customer implemented with GPT-4o-mini at temperature 0.7. The resulting environment is stochastic, and a τ2\tau^{2} task is substantially more expensive than an ALFWorld or WebShop one — which is why its pool is roughly one order of magnitude smaller.

AppWorld. AppWorld ships four splits and we use its own partition unchanged, read with appworld.load_task_ids: train (90 tasks), dev (57), test_normal (168) and test_challenge (417), 732 in total. We train on train and evaluate on both test splits, which the evaluation harness runs as separate passes because the environment servers have to be restarted per split (APPWORLD_SPLIT selects the task list). test_challenge is not a harder sample of the same distribution: it is built from scenarios held out entirely, so it measures transfer to unseen app combinations rather than to unseen instances of seen ones. An AppWorld task is a Python REPL session against nine simulated apps and is scored by state-based unit tests, so success is all-or-nothing per task; with 90 training tasks it is by far the smallest training pool of the five environments.

Experimental Details

Baseline Methods

We compare our method with prompting and training baselines spanning verbal self-reflection, rejection-sampling fine-tuning, online reinforcement learning, and observation-space predictive supervision.

Reflexion. Reflexion is a prompting baseline that asks the agent to verbally reflect on a failed trial and uses the resulting reflection to guide a subsequent attempt, without updating model parameters. We apply Reflexion to Qwen2.5-7B-Instruct on ALFWorld, WebShop, and SciWorld.

RFT. Rejection sampling fine-tuning (RFT) samples trajectories, retains those that succeed, and fine-tunes the policy by maximum likelihood on their action tokens. Unlike GRPO, it treats the retained trajectories as supervised targets rather than optimizing a group-relative policy-gradient objective. We evaluate RFT on ALFWorld, WebShop, and SciWorld.

GRPO. GRPO is an online reinforcement learning baseline. For each training query, the actor samples a group of trajectories from the current policy and optimizes the policy using group-relative advantages. Different from critic-based PPO, GRPO estimates advantages within each sampled group and therefore avoids training an additional value model. In our experiments, GRPO is applied to ALFWorld, WebShop, SciWorld, τ2\tau^{2}-Bench, and AppWorld.

AppWorld numbers reported by G2PO. The published AppWorld RL baseline numbers reported by G2PO use only difficulty-1/2 tasks: 72 training tasks and 105 tasks from test_normal, whereas we train on all 90 tasks and evaluate the complete test_normal (168) and test_challenge (417) splits. The reported setup also randomly samples its validation pool and differs from ours in prompt, history, and output formats, generation limits (512 versus 1,024 tokens per turn), and training length (50 versus 100 steps). These published numbers are therefore not controlled comparisons; nevertheless, both GRPO (ours) and CoPE achieve higher normal-split success rates despite our broader evaluation set.

RWML. RWML is a two-stage world-model-based baseline. In the first stage, the backbone is trained on pre-collected (ht,at,ot+1)(h_t, a_t, o_{t+1}) triplets to predict the next state, using rewards derived from matching the predicted and actual states. In the second stage, the resulting model is optimized with standard online GRPO on the task reward. Unlike ECHO and CoPE, its world-model objective is applied only before policy optimization rather than alongside it.

ECHO. ECHO is a world-model-augmented reinforcement learning baseline that combines the GRPO loss on action tokens with an auxiliary cross-entropy loss on environment-observation tokens. It reuses the same rollouts, model backbone, and forward-pass logits as policy optimization, thereby providing dense predictive supervision without additional environment interactions or a separately pretrained world model. Unlike RWML, which learns its world model from offline trajectory data before policy optimization, ECHO couples observation-space world modeling directly with online policy updates. We use the same GRPO hyperparameters for ECHO and set the environment-prediction coefficient to 0.01 on ALFWorld, WebShop, and SciWorld.

EMPG. EMPG is an entropy-modulated policy gradient baseline that re-calibrates the learning signal based on step-wise predictive uncertainty. Unlike standard policy gradients, where update magnitude is implicitly coupled with action entropy, EMPG amplifies updates for confident correct actions, penalizes confident errors, and attenuates updates from uncertain steps. An additional future-clarity bonus encourages the agent toward lower-entropy next states. In our experiments, we apply EMPG on top of GRPO and evaluate it on ALFWorld, WebShop, and SciWorld.

Training Hyperparameters

We summarize the main training hyperparameters of all methods in Table 9. Unless otherwise specified, the settings follow the default configurations in our training scripts.

HyperparameterGRPO ALFWorldGRPO WebShopGRPO SciWorldECHO ALFWorldECHO WebShopECHO SciWorldRWML ALFWorldRWML WebShopRWML SciWorldEMPG ALFWorldEMPG WebShopEMPG SciWorld
Learning rate1×10−61 \times10^{-6}1×10−61 \times10^{-6}1×10−61 \times10^{-6}1×10−61 \times10^{-6}1×10−61 \times10^{-6}1×10−61 \times10^{-6}1×10−61 \times10^{-6}1×10−61 \times10^{-6}1×10−61 \times10^{-6}1×10−61 \times10^{-6}1×10−61 \times10^{-6}1×10−61 \times10^{-6}
KL coefficient1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}
Entropy coefficient1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}1×10−31 \times10^{-3}
ECHO coefficient–––0.010.010.01––––––
Training batch size161616161616161616161616
PPO mini-batch size288288288288
Micro-batch size per GPU111111111111
Rollouts per task nn888888888888
PPO epochs111111111111
Maximum training steps100200300100200300100200300100200300
Training max rounds201520201520201520201520
Evaluation max rounds301530301530301530301530
Maximum prompt length (tokens)102420482048102420482048102420482048102420482048
Maximum response length (tokens)819281928192819281928192819281928192819281928192
Maximum model length (tokens)163841638416384163841638416384163841638416384163841638416384
Maximum generation per turn (tokens)512512512512512512512512512512512512
Rollout temperature1.01.01.01.01.01.01.01.01.01.01.01.0

Table 9. Details of training hyperparameters. We include experiments for GRPO, ECHO, RWML, and EMPG. The table is organized first by method and then by dataset. CoPE settings are identical to GRPO with a coefficient of 0.01 for Action Forecasting loss.

Additional τ2\tau^2 settings. Action Forecasting constructs each τ2\tau^2 target directly from an assistant reply. If the reply contains one or more <tool_call> blocks, the target is the original text of the first block; the environment likewise executes only that first call and discards all later calls and accompanying text. Such multi-call turns remain eligible for Action Forecasting. If the reply contains no tool call, its complete customer-facing text is used as the action. After forming a sequence of

SettingAppWorld value
Batch construction
Training batch size16
Rollouts per task8
Trajectories per step128
PPO mini-batch size16
Micro-batch size per GPU1
PPO epochs1
Dynamic batchingDisabled
Length limits
Training max rounds30
Evaluation max rounds30
Maximum prompt length (tokens)4,096
Maximum response length (tokens)20,480
Maximum model length (tokens)34,816
Maximum generation per turn (tokens)1,024
Optimization and regularization
Learning rate1×10−61 \times10^{-6}
KL-loss typelow_var_kl
KL coefficient1×10−21 \times10^{-2} (10× the simulated-environment setting)
Entropy coefficient1×10−31 \times10^{-3}
Rollout temperature1.0
Maximum training steps100

Table 10. AppWorld training settings. GRPO (ours) and CoPE use the same settings except for the additional forecasting objective in CoPE.

Settingτ2\tau^2 value
Length limits
Training max rounds50
Evaluation max rounds50
Maximum prompt length (tokens)8,192
Maximum response length (tokens)16,384
Maximum model length (tokens)24,576
Maximum generation per turn (tokens)1,024
Optimization and regularization
Learning rate1×10−61 \times10^{-6}
KL-loss typelow_var_kl
KL coefficient1×10−31 \times10^{-3}
Entropy coefficient1×10−31 \times10^{-3}
Rollout temperature1.0
Maximum training steps50

Table 11. τ2\tau^2-bench training settings. Only settings with direct counterparts in the other environment summaries are included.

KK targets, we apply skip_no_call and discard the example only when none of the KK actions contains a tool call. Thus, customer-facing replies can remain in a retained sequence as long as another target in the same window is a tool call. Finally, we place the KK targets in separate assistant turns: concatenating them into one reply would be indistinguishable from multiple tool-call blocks emitted in a single environment turn. The other environments instead extract actions from a designated action line or code block.

Training Rewards and Success Labels

All experiments optimize the binary terminal reward Y(τ)Y(\tau) used in § 3; graded environment scores are retained only as evaluation metrics. For ALFWorld, Y=1Y=1 when the environment reports task completion. For WebShop, whose raw score lies in [0,1][0,1], Y=1Y=1 only when the score is exactly 1.0. For SciWorld, Y=1Y=1 when the raw score is at least 100, corresponding to full completion. For τ2\tau^{2}-bench, Y=1Y=1 only when its binary ALL evaluator succeeds. For AppWorld, Y=1Y=1 when all state-based task tests pass. The same Y=1Y=1 criterion determines which trajectories enter the action-forecasting loss.

Evaluation Metrics

Here we define the evaluation metrics used in our experiments. For each benchmark, we evaluate the agent on a set of NN task instances. For the ii-th instance, the environment returns an environment-specific scalar score rir_i and a binary success indicator si∈{0,1}s_i \in\{0,1\}. The policy and action-forecasting objectives use the binary signal Y=siY=s_i, whereas the graded score rir_i is used only for reporting. We report the average score and success rate:

Score⁡=1N∑i=1Nri,Succ⁡=1N∑i=1Nsi.(8)\operatorname{Score} = \frac{1}{N}\sum_{i=1}^{N} r_i,\qquad\operatorname{Succ} = \frac{1}{N}\sum_{i=1}^{N} s_i. \tag*{(8)}

Score. The score measures the average environment reward or normalized task score. Different from purely binary task completion, some benchmarks provide graded feedback that reflects partial progress during task execution. For example, an agent may receive non-zero reward for completing intermediate steps even if the final task is not fully solved. Therefore, we report the average score to capture such process-level progress.

Success rate. The success rate measures the fraction of tasks that are fully completed. A task is counted as successful only when the environment evaluator determines that the final goal has been achieved. This metric directly reflects end-to-end task completion ability.

For benchmarks with subcategories, we compute the same metrics within each group. Except for τ2\tau^{2}-Bench, the overall result is computed over the full evaluation set and is therefore a count-weighted average over all instances. For τ2\tau^{2}-Bench, we instead report the unweighted arithmetic mean of the retail, airline, and telecom domain-level results.

Environment Prompts

Every episode is one chat sequence. It opens with the environment’s standing instruction as the first user turn and a fixed assistant acknowledgement; the environment’s first observation then arrives as the next user turn, and from there user (observation) and assistant (action) turns alternate. The blocks below give each environment’s opening verbatim, and mark with {history} the point at which every completed (actiont_t, observationt+1_{t+1}) pair is inserted. The sequence is extended in place rather than re-rendered each turn, so {history} is literally the tokens already in the context, not a re-serialization of them. Unlike our notation in the main content, KK refers to the number of actions in our plan here (so K=1K=1 means having only the current action as the forecast plan target, which is equivalent to K=0K=0 in the main content). It operates simply as an offset and does not introduce any inconsistency between our implementation and method.

Conversation layout for ALFWorld, WebShop, SciWorld, and AppWorld

[USER]
<the environment's standing instruction -- verbatim in the blocks below>

[ASSISTANT]
<the fixed acknowledgement -- verbatim in the blocks below>

[USER]
<first observation from the environment>

{history}

[USER] {observation}

[ASSISTANT] ← the policy generates the action here

Rendered with the chat template the tokeniser actually emits, one round is

One round, as tokenised

<|im_start|>assistant\n{action}<|im_end|>\n<|im_start|>user\n{observation}<|im_end|>\n

and {history} above stands for the concatenation of those rounds.

ALFWorld

ALFWorld — standing instruction (first user turn)

Interact with a household to solve a task. Imagine you are an intelligent agent in a household environment and your target is to perform actions to complete the task goal. At the beginning of your interactions, you will be given the detailed description of the current environment and your goal to accomplish. For each of your turn, you will be given a list of actions which you can choose one to perform in this turn. You should choose from two actions: "THOUGHT" or "ACTION". If you choose "THOUGHT", you should first think about the current condition and plan for your future actions, and then output your action in this turn. Your output must strictly follow this format:"Thought: your thoughts.

Action: your next action"; If you choose "ACTION", you should directly output the action in this turn. Your output must strictly follow this format:"Action: your next action". After your each turn, the environment will give you immediate feedback based on which you plan your next few steps. if the environment output "Nothing happened ", that means the previous action is invalid and you should try more options.

Reminder:

  1. the action must be chosen from the given available actions. Any actions except provided available actions will be regarded as illegal.

  2. Think when necessary, try to act directly more in the process.

ALFWorld — fixed assistant acknowledgement

OK. I'll follow your instructions and try my best to solve the task.

WebShop

WebShop — standing instruction (first user turn)

You are web shopping. I will give you instructions about what to do. You have to follow the instructions. Every round I will give you an observation and a list of available actions, you have to respond an action based on the state and instruction. You can use search action if search is available. You can click one of the buttons in clickables. An action should be of the following structure: search[keywords] click[value] If the action is not valid, perform nothing. Keywords in search are up to you, but the value in click must be a value in the list of available actions. Remember that your keywords in search should be carefully designed. Your response should use the following format:

Thought: I think ...

Action: click[something]

WebShop — fixed assistant acknowledgement

Ok.

SciWorld

The per-episode goal (“Your task is to measure the melting point of tin . . . ”) is not part of the instruction: it arrives inside the first observation.

SciWorld — standing instruction (first user turn)

You are an agent for science world. Every round I will give you an observation, you have to respond an action based on the observation to finish the given task. Here are the actions you may take: [{"action": "open/close OBJ", "description": "open/close a container"}, {"action": "de/activate OBJ", "description": "activate/deactivate a device"}, {"action": "connect OBJ to OBJ", "description": "connect electrical components"}, {"action": "disconnect OBJ", "description": "disconnect electrical components"}, {"action": "use OBJ [on OBJ]", "description": "use a device/item"}, {"action": "look around", "description": "describe the current room"}, {"action": "look at OBJ", "description": "describe an object in detail"}, {"action": "look in OBJ", "description": "describe a container's contents"}, {"action": "read OBJ", "description": "read a note or book"}, {"action": "move OBJ to OBJ", "description": "move an object to a container"}, {"action": "pick up OBJ", "description": "move an object to the inventory"}, {"action": "put down OBJ", "description": "drop an inventory item"}, {"action": "pour OBJ into OBJ", "description": "pour a liquid into a container"}, {"action": "dunk OBJ into OBJ", "description": "dunk a container into a liquid"}, {"action": "mix OBJ", "description": "chemically mix a container"}, {"action": "go to LOC", "description": "move to a new location"}, {"action": "eat OBJ", "description": "eat a food"}, {"action": "flush OBJ", "description": "flush a toilet"}, {"action": "focus on OBJ", "description": "signal intent on a task object"}, {"action": "wait", "description": "take no action for 10 iterations"}, {"action": "wait1", "description": "take no action for 1 iteration"}, {"action":"examine OBJ","description":"provides a description of the objects present on or in a receptacle."}, {"action": "task", "description": "describe current task"}, {"action": "inventory", "description": "list your inventory"}]
Your response should use the following format:
Thought:
your thoughts.

Action:
your next action

SciWorld — fixed assistant acknowledgement

OK. I'll follow your instructions and try my best to solve the task.

AppWorld

AppWorld’s instruction contains 12,396 characters because it embeds a complete worked example. The ASSISTANT: and USER: lines inside it are part of that static demonstration, not dialogue history — the real history still goes where {history} is marked in the layout above. The task itself is delivered in the first observation, as the last line of the instruction announces.

AppWorld — standing instruction (first user turn)

I am your supervisor, and you are an AI Assistant whose job is to complete my day-to-day tasks fully autonomously.

To do this, you will need to interact with app(s) (e.g., spotify, venmo etc) using their associated APIs on my behalf. For this you will undertake a *multi-step conversation* using a python REPL environment. That is, you will write the python code, the environment will execute it and show you the result, based on which, you will write python code for the next step and so on, until you've achieved the goal. This environment will let you interact with app(s) using their associated APIs on my behalf.

````text Here are three key APIs that you need to know to get more information

To get a list of apps that are available to you.

print(apis.api_docs.show_app_descriptions())

To get the list of APIs under any app listed above, e.g. spotify

print(apis.api_docs.show_api_descriptions(app_name='spotify'))

To get the specification of a particular api, e.g. spotify app's login api

print(apis.api_docs.show_api_doc(app_name='spotify', api_name='login'))

Each code execution will produce an output that you can use in subsequent calls. Using ↪ these APIs, you can now generate code, that I will execute, to solve the task. Let's ↪ start with the task

Task: How many playlists do I have in my Spotify playlist library?

ASSISTANT: Okay. Let's first find which APIs are available to use in Spotify.

print(apis.api_docs.show_api_descriptions(app_name='spotify'))

USER: Output:

[
  ...
  "login : Login to your account.",
  "logout : Logout from your account.",
  ...
]

ASSISTANT: Okay. Looks like I can use the login api. Let's find its specifications.

print(apis.api_docs.show_api_doc(app_name='spotify', api_name='login'))

USER: Output:

{
  "app_name": "spotify",
  "api_name": "login",
  "path": "/spotify/auth/token",
  "method": "POST",
  "description": "Login to your account.",
  "parameters": [
    {
      "name": "username",
      "type": "string",
      "required": true,
      "description": "Your account email.",
      "default": null,
      "constraints": []
    },
    {
      "name": "password",
      "type": "string",
      "required": true,
      "description": "Your account password.",
      "default": null,
      "constraints": []
    }
  ],
````
"response_schemas": {
  "success": {
    "access_token": "string",
    "token_type": "string"
  },
  "failure": {
    "message": "string"
  }
}

ASSISTANT: I need the supervisor's username and password. Let's see if any app can help me get that.

print(apis.api_docs.show_app_descriptions())

USER: Output:

[
  {
    "name": "api_docs",
    "description": "An app to search and explore API documentation."
  },
  {
    "name": "supervisor",
    "description": "An app to access supervisor's personal information, account credentials, addresses, payment cards, and manage the assigned task."
  },
  {
    "name": "amazon",
    "description": "An online shopping app to buy products and manage orders, returns, etc."
  },
  {
    "name": "phone",
    "description": "An app to find and manage contact information for friends, family members, etc., send and receive messages, and manage alarms."
  },
  {
    "name": "file_system",
    "description": "A file system app to create and manage files and folders."
  },
  {
    "name": "spotify",
    "description": "A music streaming app to stream songs and manage song, album and playlist libraries."
  },
  {
    "name": "venmo",
    "description": "A social payment app to send, receive and request money to and from others."
  },
  {
    "name": "gmail",
    "description": "An email app to draft, send, receive, and manage emails."
  },
  {
    "name": "splitwise",
    "description": "A bill splitting app to track and split expenses with people."
  },
  {
    "name": "simple_note",
    "description": "A note-taking app to create and manage notes"
  },
  {
    "name": "todoist",
    "description": "A task management app to manage todo lists and collaborate on them with others."
  }
]

ASSISTANT: Looks like the supervisor app could help me with that.

````python print(apis.api_docs.show_api_descriptions(app_name='supervisor'))


USER:
Output:

[ ... "show_account_passwords : Show your supervisor's account passwords." ... ]


ASSISTANT:
I can use `show_account_passwords` to get the passwords. So I will call that and save it in
↪ a variable for future reference.

```python
passwords=apis.supervisor.show_account_passwords()
print(passwords)

USER: Output:

[
  {
    "account_name": "spotify",
    "password": "dummy_spotify_pass"
  },
  {
    "account_name": "file_system",
    "password": "dummy_fs_pass"
  },
  ...
]

ASSISTANT: So the Spotify password is an entry in the passwords list with the account_name=spotify. ↪ The login username is the supervisor's email, which I must look up via the supervisor ↪ app rather than assume.

spotify_password = [p for p in passwords if p["account_name"] == "spotify"][0]["password"]
supervisor_email = apis.supervisor.show_profile()["email"]
login_result = apis.spotify.login(username=supervisor_email, password=spotify_password)
spotify_access_token = login_result["access_token"]
print(login_result)

USER: Output:

{
  "access_token": "fake_access_token",
  "token_type": "Bearer"
}

ASSISTANT: To count the playlists, I need the show_playlist_library API. Let's check its ↪ specifications.

print(apis.api_docs.show_api_doc(app_name='spotify', api_name='show_playlist_library'))

USER: Output:

{
  "app_name": "spotify",
  "api_name": "show_playlist_library",
  "path": "/spotify/library/playlists",
  "method": "GET",
  "description": "Search or show a list of playlists in your playlist library.",
  "parameters": [
    {
````
"name": "access_token",
"type": "string",
"required": true,
"description": "Access token obtained from spotify app login.",
"default": null,
"constraints": []
},
{
"name": "query",
"type": "string",
"required": false,
"description": "The search query string.",
"default": "",
"constraints": []
},
{
"name": "is_public",
"type": "boolean",
"required": false,
"description": "Whether to show public playlists or private playlists.",
"default": null,
"constraints": []
},
{
"name": "page_index",
"type": "integer",
"required": false,
"description": "The index of the page to return.",
"default": 0,
"constraints": [
"value >= 0"
]
},
{
"name": "page_limit",
"type": "integer",
"required": false,
"description": "The maximum number of results to return per page.",
"default": 5,
"constraints": [
"value >= 1, <= 20"
]
},
{
"name": "sort_by",
"type": "string",
"required": false,
"description": "The attribute to sort the library playlists by prefixed with +/- to
reflect ascending/descending. Valid attributes: created_at and title. ...",
"default": null,
"constraints": []
}
],
"response_schemas": {
"success": [
{
"playlist_id": 1,
"title": "string",
"is_public": true,
"rating": 0.0,
"like_count": 1,
"review_count": 1,
"owner": {
"name": "string",
"email": "[email protected]"
},
"created_at": "2019-01-01T00:00:00",
"song_ids": [
1
]
}
],
"failure": {
"message": "string"
}
}
}

ASSISTANT: I need to page through all the playlists to get the list of playlists and save it in playlists.

python page_index = 0 playlists = [] while page_index < 10: playlist_page = apis.spotify.show_playlist_library(access_token=spotify_access_token, page_index=page_index) if playlist_page: playlists.extend(playlist_page) page_index += 1 else: break num_playlists = len(playlists) print(num_playlists)

USER: Output:

ASSISTANT: Now that the task is completed, I can call apis.supervisor.complete_task(). Since this task has an answer to be returned, I will pass that as an argument.

python apis.supervisor.complete_task(answer=num_playlists)

USER: Output: Marked the active task complete.

USER:

Key instructions:

A. General instructions:

  • Act fully on your own. You must make all decisions yourself and never ask me or anyone else to confirm or clarify. Your role is to solve the task, not to bounce questions back, or provide me directions to follow.

  • You have full access -- complete permission to operate across my connected accounts and services.

  • Never invent or guess values. For example, if I ask you to play a song, do not assume the ID is 123. Instead, look it up properly through the right API.

  • Never leave placeholders; don't output things like "your_username". Always fill in the real value by retrieving it via APIs (e.g., Supervisor app for credentials).

  • When I omit details, choose any valid value. For example, if I ask you to buy something but don't specify which payment card to use, you may pick any one of my available cards.

  • Avoid collateral damage. Only perform what I explicitly ask for. Example: if I ask you to buy something, do not delete emails, return the order, or perform unrelated account operations.

B. App-specific instructions:

  • All my personal information (biographical details, credentials, addresses, cards) is stored in the Supervisor app, accessible via its APIs.

  • Any reference to my friends, family or any other person or relation refers to the people in my phone's contacts list.

  • Always obtain the current date or time, from Python function calls like datetime.now(), or from the phone app's get_current_date_and_time API, never from your internal clock.

  • All requests are concerning a single, default (no) time zone.

  • For temporal requests, use proper time boundaries, e.g., when asked about periods like "yesterday", use complete ranges: 00:00:00 to 23:59:59.

  • References to "file system" mean the phone app, not the machine's OS. Do not use OS modules or functions.

  • Paginated APIs: Always process all results, looping through the page_index. Don't stop at the first page.

C. Code-operation instructions

  • Make sure to end code blocks with ``` followed by a newline (\n).

  • Remember that you can use the variables in your code in subsequent code blocks.

  • Remember that the email addresses, access tokens and variables (e.g. spotify_password) in the example above are not valid anymore.

  • Always look at API specifications (using apis.api_docs.show_api_doc) before calling an API.

  • Write small chunks of code and only one chunk of code in every step. Make sure everything is working correctly before making any irreversible changes.

  • The Python environment supports the standard library. But system-level operations that may access or affect OS files, processes, etc., are not allowed and will raise an error if called.

  • To interact with apps, only use the provided app APIs, and not the corresponding Python packages, e.g., do NOT use spotipy for Spotify.

  • The provided API documentation has both the input arguments and the output JSON format. Use this information when making API calls and parsing their outputs.

D. Task-completion instructions:

You must call the apis.supervisor.complete_task API after completing the task.

  • If an answer is needed, e.g., for "How many songs are in the Spotify queue?", call it with the appropriate answer argument value.

  • If no answer is required, e.g., for "Start my Spotify music player.", omit the answer argument (or set it to None/null).

  • The task is doable, but if you cannot find a way, you can call it with status="fail" to exit with failure.

When the answer is given:

  • Keep answers minimal. Return only the entity, number, or direct value requested - not full sentences. E.g., for the song title of the current playing track, return just the title.

  • Numbers must be numeric and not in words. E.g., for the number of songs in the queue, return "10", not "ten".

The task you must solve will be given to you in the next message.

AppWorld — fixed assistant acknowledgement

Ok.

2-bench

All τ2\tau^2-bench results reported in Table 1 use only the benchmark’s native tool-calling protocol. The standing instruction is assembled separately for each domain and placed in the system message, with no fixed Ok. acknowledgement turn. It combines the domain policy with the domain-specific native tools= list rendered by the Qwen2.5 chat template. The assistant then either sends a message to the customer or emits a <tool_call> block; if several blocks are emitted, only the first is executed. There is no Thought:/Action: wrapper. The native tool list does not include a done function. An episode ends only when the simulated customer emits ###STOP### or ###TRANSFER###, or when the maximum number of rounds is reached.

τ2\tau^2 — native standing instruction

You are a customer service agent that helps the user according to the policy provided below
↪
In each turn you can either:
- Send a message to the user.
- Make a tool call.
You cannot do both at the same time.

Try to be helpful and always follow the policy.

<policy>
{policy}
</policy>

# Tools

You may call one or more functions to assist with the user query.

You are provided with function signatures within <tools></tools> XML tags:
<tools>
{tools}
</tools>
For each function call, return a json object with function name and arguments within <
↪ tool_call></tool_call> XML tags:
<tool_call>
{"name": <function-name>, "arguments": <args-json-object>}
</tool_call>

where each line inside <tools> is one tool’s OpenAI JSON schema.

τ2\tau^2 — conversation layout, native protocol

[SYSTEM]
<the domain-specific standing instruction above>

[USER]
<the customer's first message>

{history}

[ASSISTANT]
<– a message to the customer, or a response whose first <tool_call> block is executed

What fills {policy} and {tools}

The policy documents come from τ2\tau^2-bench itself and are inserted unmodified; measured on the domains we train and evaluate on:

domainpolicy (characters)policy (words)tools advertised
retail6,6991,15815
airline7,6761,31314
telecom23,3183,71513

Table 12.

In the actual system message, the tool list is rendered as one OpenAI JSON schema per tool. For readability, the following is a compact signature-level summary of the retail schemas rather than a literal copy of the native prompt.

τ2\tau^2 — human-readable summary of retail tools

- calculate(expression: string)
    Calculate the result of a mathematical expression.
- cancel_pending_order(order_id: string, reason: string)
    Cancel a pending order. If the order is already processed or delivered,
    it cannot be cancelled. The agent needs to explain the cancellation detail
    and ask for explicit user confirmation (yes/no) to proceed. If the user confirms,
    the order status will be changed to 'cancelled' and the payment will be refunded.
    The refund will be added to the user's gift card balance immediately if the payment
    was made using a gift card, otherwise the refund would take 5–7 business days to process.
    The function returns the order details after the cancellation.
- exchange_delivered_order_items(order_id: string, item_ids: array, new_item_ids: array,
  ↪ payment_method_id: string)
    Exchange items in a delivered order to new items of the same product type.

    For a delivered order, return or exchange can be only done once by the agent.
    The agent needs to explain the exchange detail and ask for explicit user confirmation (yes/
    ↪ no) to proceed.
- find_user_id_by_email(email: string)
    Find user id by email. If the user is not found, the function will return an error
    ↪ message.
- find_user_id_by_name_zip(first_name: string, last_name: string, zip: string)
    Find user id by first name, last name, and zip code. If the user is not found, the
    ↪ function
    will return an error message. By default, find user id by email, and only call this
    ↪ function
    if the user is not found by email or cannot remember email.
- get_order_details(order_id: string)
    Get the status and details of an order.
- get_product_details(product_id: string)
    Get the inventory details of a product.
- get_user_details(user_id: string)
    Get the details of a user, including their orders.
- list_all_product_types()
    List the name and product id of all product types.

Each product type has a variety of different items with unique item ids and options.
There are only 50 product types in the store.
- modify_pending_order_address(order_id: string, address1: string, address2: string, city:
→ string, state: string, country: string, zip: string)
    Modify the shipping address of a pending order. The agent needs to explain the
→ modification detail and ask for explicit user confirmation (yes/no) to proceed.
- modify_pending_order_items(order_id: string, item_ids: array, new_item_ids: array,
→ payment_method_id: string)
    Modify items in a pending order to new items of the same product type. For a pending
→ order, this function can only be called once. The agent needs to explain the exchange
→ detail and ask for explicit user confirmation (yes/no) to proceed.
- modify_pending_order_payment(order_id: string, payment_method_id: string)
    Modify the payment method of a pending order. The agent needs to explain the
→ modification detail and ask for explicit user confirmation (yes/no) to proceed.
- modify_user_address(user_id: string, address1: string, address2: string, city: string,
→ state: string, country: string, zip: string)
    Modify the default address of a user. The agent needs to explain the modification
→ detail and ask for explicit user confirmation (yes/no) to proceed.
- return_delivered_order_items(order_id: string, item_ids: array, payment_method_id: string
→ )
    Return some items of a delivered order.

The order status will be changed to 'return requested'.
The agent needs to explain the return detail and ask for explicit user confirmation (yes/no
→ ) to proceed.
The user will receive follow-up email for how and where to return the item.
- transfer_to_human_agents(summary: string)
    Transfer the user to a human agent, with a summary of the user's issue.

Only transfer if
  - the user explicitly asks for a human agent
  - given the policy and the available tools, you cannot solve the user's issue.

Auxiliary Prompts (Action Forecasting)

The forecasting objective is trained on a separate sequence, not on the episode itself: the dialogue is truncated at the current history and a synthetic planning turn is appended, with the realised next-KK actions as the target. {k}\{k\} is the horizon and {history}\{history\} is the dialogue up to that point. For ALFWorld, WebShop, SciWorld, and AppWorld, the sequence retains the user instruction and fixed assistant acknowledgement shown above:

Action-forecast sequence (non-$\tau^2$ environments)

[USER]
<the environment's standing instruction, as above>

[ASSISTANT]
<the fixed acknowledgement, as above>

{history}

[USER]
{observation}

[USER]
Plan ahead: list the next {k} actions you will take to make progress on the task, starting
→ with the action you take right now, one action per line.

[ASSISTANT]
← target: the K actions the episode actually executed

For τ2\tau^2-bench, the native system message and role-structured dialogue are retained directly, with no acknowledgement turn and no Action: field. The same planning request is appended as a user message, and the target uses the τ2\tau^2-specific multi-turn serialization described in the additional settings above. Each action is placed in a separate assistant turn, with a fixed Next action? user message between consecutive targets. Loss is computed only on the assistant action turns, not on these inserted user messages:

Action-forecast sequence (τ2\tau^2 native protocol)

[SYSTEM]
<the domain-specific native standing instruction>

{history}

[USER]
Plan ahead: give the next {k} actions you will take to make progress on the task, one action per reply, starting with the action you take right now. Reply with the action only.

[ASSISTANT]
<- target: action 1

[USER]
Next action?

[ASSISTANT]
<- target: action 2

[USER]
Next action?

[ASSISTANT]
<- target: action 3

References

  1. [1]Victor Barres, Honghua Dong, Soham Ray, Xujie Si, and Karthik Narasimhan. τ²-bench: Evaluating conversational agents in a dual-control environment. arXiv preprint arXiv:2506.07982, 2025. URL https://arxiv.org/abs/2506.07982.
  2. [2]Markus J. Buehler. Generative retrieval-augmented ontologic graph and multiagent strategies for interpretive large language models-based materials design. ACS Engineering Au, 4:241–277, 2024. URL https://pubs.acs.org/doi/epdf/10.1021/acsengineeringau.4c00032.DOI
  3. [3]Lili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee, Aditya Grover, Michael Laskin, Pieter Abbeel, Aravind Srinivas, and Igor Mordatch. Decision transformer: Reinforcement learning via sequence modeling. In Advances in Neural Information Processing Systems, volume 34, 2021. URL https://proceedings.neurips.cc/paper/2021/hash/7f489f642a0ddb10272b5c31057f0663-Abstract.html.arxiv.org/abs/2106.01345
  4. [4]Zhaorun Chen, Zhuokai Zhao, Kai Zhang, Bo Liu, Qi Qi, Yifan Wu, Tarun Kalluri, Sara Cao, Yuanhao Xiong, Haibo Tong, Huaxiu Yao, Hengduo Liu, Jiacheng Zhu, Xian Li, Dawn Song, Bo Li, Jason Weston, and Dat Huynh. Scaling agent learning via experience synthesis. arXiv preprint arXiv:2511.03773, 2025.arxiv.org/abs/2511.03773
  5. [5]Cheng Chi, Siyuan Feng, Yilun Du, Zhenjia Xu, Eric Cousineau, Benjamin C. M. Burchfiel, and Shuran Song. Diffusion policy: Visuomotor policy learning via action diffusion. In Proceedings of Robotics: Science and Systems, 2023. doi: 10.15607/RSS.2023.XIX.026. URL https://www.roboticsproceedings.org/rss19/p026.html.DOI
  6. [6]Sanjiban Choudhury. Process reward models for llm agents: Practical framework and directions. arXiv preprint arXiv:2502.10325, 2025.arxiv.org/abs/2502.10325
  7. [7]Gheorghe Comanici, Eric Bieber, Mike Schaeekermann, Ice Pasupat, Noveen Sachdeva, Inderjit Dhillon, Marcel Blistein, Ori Ram, Dan Zhang, Evan Rosen, et al. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. arXiv preprint arXiv:2507.06261, 2025. URL https://arxiv.org/abs/2507.06261.
  8. [8]Xiang Deng, Yu Gu, Boyuan Zheng, Shijie Chen, Samuel Stevens, Boshi Wang, Huan Sun, and Yu Su. Mind2Web: Towards a generalist agent for the web. arXiv preprint arXiv:2306.06070, 2023. URL https://arxiv.org/abs/2306.06070.
  9. [9]Hang Ding, Peidong Liu, Junqiao Wang, Ziwei Ji, Meng Cao, Rongzhao Zhang, Lynn Ai, Eric Yang, Tianyu Shi, and Lei Yu. DynaWeb: Model-based reinforcement learning of web agents. arXiv preprint arXiv:2601.22149, 2026.arxiv.org/abs/2601.22149
  10. [10]Benjamin Eysenbach, Soumith Udatha, Russ R Salakhutdinov, and Sergey Levine. Imitating past successes can be very suboptimal. Advances in Neural Information Processing Systems, 35:6047–6059, 2022.arxiv.org/abs/2206.03378
  11. [11]Lang Feng, Zhenghai Xue, Tingcong Liu, and Bo An. Group-in-group policy optimization for LLM agent training. arXiv preprint arXiv:2505.10978, 2025. URL https://arxiv.org/abs/2505.10978.
  12. [12]Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Roziere, David Lopez-Paz, and Gabriel Synnaeve. Better & faster large language models via multi-token prediction. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 15706–15734. PMLR, 2024. URL https://proceedings.mlr.press/v235/gloeckle24a.html.arxiv.org/abs/2404.19737
  13. [13]Anna Harutyunyan, Will Dabney, Thomas Mesnard, Mohammad Azar, Bilal Piot, Nicolas Heess, Hado van Hasselt, Greg Wayne, Satinder Singh, Doina Precup, and Remi Munos. Hindsight credit assignment, 2019. URL https://arxiv.org/abs/1912.02503.
  14. [14]Sirui Hong, Xiawu Zheng, Jonathan Chen, Yuheng Cheng, Ceyao Zhang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, Liyang Zhou, Chenyu Ran, Lingfeng Xiao, and Chenglin Wu. MetaGPT: Meta programming for multi-agent collaborative framework. arXiv preprint arXiv:2308.00352v1, 2023. URL https://arxiv.org/abs/2308.00352v1.
  15. [15]Michael Y. Hu, Benjamin Van Durme, Jacob Andreas, and Harsh Jhamtani. Sample-efficient online learning in LM agents via hindsight trajectory rewriting. arXiv preprint arXiv:2510.10304, 2025. URL https://arxiv.org/abs/2510.10304.
  16. [16]Fanqi Kong, Jiayi Zhang, Mingyi Deng, Chenglin Wu, Yuyu Luo, and Bang Liu. InfoPO: Information-driven policy optimization for user-centric agents. arXiv preprint arXiv:2603.00656, 2026.arxiv.org/abs/2603.00656
  17. [17]Filippo Lazzati, Kyle Stachowicz, William Chen, Alberto Maria Metelli, Andrew Wagenmaker, and Sergey Levine. Why does action chunking improve behavioral cloning performance in robotic control? arXiv preprint arXiv:2608.02547, 2026.arxiv.org/abs/2608.02547
  18. [19]Zichen Liu, Changyu Chen, Wenjun Li, Penghui Qi, Tianyu Pang, Chao Du, Wee Sun Lee, and Min Lin. Understanding rl-zero-like training: A critical perspective. arXiv preprint arXiv:2503.20783, 2025.
  19. [20]Chris Lu, Cong Lu, Robert Tjarko Lange, Jakob Foerster, Jeff Clune, and David Ha. The ai scientist: Towards fully automated open-ended scientific discovery. arXiv preprint arXiv:2408.06292, 2024. URL https://arxiv.org/abs/2408.06292.
  20. [21]Ning Lu, Baijiong Lin, Shencai Liu, Jiahao Wu, Haoze Ly, Yanbin Wei, Lingting Zhu, Shengju Qian, Xin Wang, Ying-Cong Chen, Qi Wang, and Ke Tang. Policy and world modeling co-training for language agents. arXiv preprint arXiv:2606.02388, 2026.arxiv.org/abs/2606.02388
  21. [22]Xufang Luo, Yuge Zhang, Zhiyuan He, Zilong Wang, Siyun Zhao, Dongsheng Li, Luna K. Qiu, and Yuqing Yang. Agent lightning: Train ANY AI agents with reinforcement learning. arXiv preprint arXiv:2508.03680, 2025. URL https://arxiv.org/abs/2508.03680.
  22. [23]Junhyuk Oh, Yijie Guo, Satinder Singh, and Honglak Lee. Self-imitation learning. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 3878–3887. PMLR, 2018. URL https://proceedings.mlr.press/v80/oh18b.html.arxiv.org/abs/1806.05635
  23. [24]OpenAI. GPT-5 system card, 2025. URL https://openai.com/index/gpt-5-system-card/.
  24. [25]OpenAI. GPT-5.5 system card, 2026. URL https://openai.com/index/gpt-5-5-system-card/.
  25. [26]Keiran Paster, Sheila McIlraith, and Jimmy Ba. You can’t count on luck: Why decision transformers and rvs fail in stochastic environments. Advances in neural information processing systems, 35: 38966–38979, 2022.arxiv.org/abs/2205.15967
  26. [27]Qwen, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Daiyiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Li, Tianhao Li, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, Zihan Qiu, et al. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115v1, 2024. URL https://arxiv.org/abs/2412.15115v1.
  27. [28]Daniel Russo. Success-conditioning as policy improvement: The optimization problem solved by imitating success. In Proceedings of the 43rd International Conference on Machine Learning (ICML), 2026. arXiv:2601.18175.arxiv.org/abs/2601.18175
  28. [29]Ranjan Sapkota, Konstantinos I. Roumeliotis, and Manoj Karkee. Vibe coding vs. agentic coding: Fundamentals and practical implications of agentic AI. arXiv preprint arXiv:2505.19443, 2025. URL https://arxiv.org/abs/2505.19443.
  29. [30]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024. URL https://arxiv.org/abs/2402.03300.
  30. [31]Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems, volume 36, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/1b44b878bb782e69954cd888628510e90-Abstract-Conference.html.arxiv.org/abs/2303.11366
  31. [32]Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. Alfworld: Aligning text and embodied environments for interactive learning. arXiv preprint arXiv:2010.03768, 2020. URL https://arxiv.org/abs/2010.03768.
  32. [33]Vaishnavi Shrivastava, Piero Kauffmann, Ahmed Awadallah, and Dimitris Papailiopoulos. ECHO: Terminal agents learn world models for free. arXiv preprint arXiv:2605.24517, 2026.arxiv.org/abs/2605.24517
  33. [34]Harsh Trivedi, Tushar Khot, Mareike Hartmann, Ruskin Manku, Vinty Dong, Edward Li, Shashank Gupta, Ashish Sabharwal, and Niranjan Balasubramanian. AppWorld: A controllable world of apps and people for benchmarking interactive coding agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2024. URL https://aclanthology.org/2024.acl-long.850/.arxiv.org/abs/2407.18901
  34. [35]Jiawei Wang, Jiacai Liu, Yuqian Fu, Yingru Li, Xintao Wang, Yuan Lin, Yu Yue, Lin Zhang, Yang Wang, and Ke Wang. Harnessing uncertainty: Entropy-modulated policy gradients for long-horizon llm agents. arXiv preprint arXiv:2509.09265, 2025. URL https://arxiv.org/abs/2509.09265.
  35. [36]Ruoyao Wang, Peter Jansen, Marc-Alexandre Côté, and Prithviraj Ammanabrolu. Scienceworld: Is your agent smarter than a 5th grader? In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pp. 11279–11298, 2022. URL https://aclanthology.org/2022.emnlp-main.775/.arxiv.org/abs/2203.07540
  36. [37]Yunan Wang, Minghui Song, Zihan Zhang, Shaohan Huang, Haizhen Huang, Furu Wei, Weiwei Deng, Feng Sun, and Qi Zhang. Group-graph policy optimization for long-horizon agentic reinforcement learning. arXiv preprint arXiv:2606.22995, 2026a.arxiv.org/abs/2606.22995
  37. [38]Zixuan Wang, Yuchen Yan, Hongxing Li, Teng Pan, Dingming Li, Ruiqing Zhang, Weiming Lu, Jun Xiao, Yueting Zhuang, and Yongliang Shen. Milestone-guided policy learning for long-horizon language agents. arXiv preprint arXiv:2605.06078, 2026b. URL https://arxiv.org/abs/2605.06078.
  38. [39]Jinyang Wu, Shuo Yang, Zhengxi Lu, Fan Zhang, Yuhao Shen, Lang Feng, Haoran Luo, Zheng Lian, Shuai Zhang, Zhengqi Wen, and Jianhua Tao. SEED: Self-evolving on-policy distillation for agentic reinforcement learning. arXiv preprint arXiv:2607.14777, 2026. URL https://arxiv.org/abs/2607.14777.

Paper details

vlnc:W_js9qujrm
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 5

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents