Manuscript Offprint

arXiv:2610.20597

Co-Evolving Acting and Forecasting for Language Agents

Haofei Yu, Yixing Chen, Yining Zhao, Xuyan Ye, Yuxiang Liu, Zhigang Hua, Yan Xie, Shuang Yang, Jiaxuan You

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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\tau^{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.

1 INTRODUCTION

Large language models (LLMs) enable autonomous agents to tackle complex, long-horizon tasks such as web navigation (Zheng et al., 2024; Deng et al., 2023; Zhang et al., 2025), agentic coding (Yang et al., 2024; Hong et al., 2023; Sapkota et al., 2025), and scientific discovery (Zheng et al., 2025; Buehler, 2024; Lu et al., 2024; 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 (Choudhury, 2025; Xi et al., 2026) or step-level credit assignment (Feng et al., 2025; Kong et al., 2026), and 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 (Chen et al., 2025; Ding et al., 2026); others fit them as an auxiliary objective of the policy backbone, before or alongside policy optimization (Shrivastava et al., 2026; Lu et al., 2026; Zhang et al., 2026; Yu et al., 2026).

∗^{*}Equal contribution.

(a) Noisy observations, clean actions

Figure

X Observation: long, noisy ✓ Action: short, clean

(b) Three kinds of targets

X V(h)V(h): shared Xo^t+1X \hat{o}_{t+1}: one step ✓at+1\checkmark a_{t+1}: step-specific

(c) Sample efficiency of CoPE

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×1.6 \times fewer RL steps than GRPO.

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 (Fig. 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.

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 (Harutyunyan et al., 2019; Russo, 2026) 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 (Fig. 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 K 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 (Lazzati et al., 2026). 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 (Shridhar et al., 2020), ScienceWorld (Wang et al., 2022), and WebShop (Yao et al., 2022)) and two realistic applications ( τ2\tau^{2}-bench (Barres et al., 2025) and AppWorld (Trivedi et al., 2024)). Our experiments yield three main findings. (1) Broad improvements: COPE outperforms GRPO (Shao et al., 2024) and observation-prediction baselines (ECHO (Shrivastava et al., 2026) 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×1.9\times and 2.0×2.0\times 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.

References (89)