Command Palette
Search for a command to run...
ENVACE: INTERNALIZING ENVIRONMENT DYNAMICS VIA WORLD REHEARSAL FOR AGENTIC REINFORCEMENT LEARNING
ENVACE: INTERNALIZING ENVIRONMENT DYNAMICS VIA WORLD REHEARSAL FOR AGENTIC REINFORCEMENT LEARNING
Abstract
Training large language model agents for long-horizon tool use typically relies on interactions with real or synthesized executable environments, whose construction and verification are costly, or on external simulators that are difficult to ground. We introduce EnvACE, an agentic reinforcement learning method that replaces external environment interaction during training with world rehearsal. The policy alternates between acting and rehearsal: it first generates a tool call, then plays the role of the environment to produce the response induced by that action, and conditions subsequent decisions on the rehearsed response. Both roles are jointly optimized end-to-end using task-success rewards. Through world rehearsal, the policy internalizes the relationship between actions and their environment responses in its parameters, yielding an agent world model that directly supports decision making. Across BFCL-v4, τ2-Bench, VitaBench, and FinMCP-Bench, EnvACE achieves strong and transferable performance, outperforming environment-scaling baselines in the overall evaluation. Controlled studies further show that world rehearsal consistently improves policy learning across model scales. At test time, the internalized world model enables private rehearsal before committed execution, yielding further gains under a moderate rehearsal budget without additional external interaction. Our findings establish world rehearsal as a new path toward scaling LLM agent training beyond the constraints of external environments.
One-sentence Summary
Researchers from Shanghai Jiao Tong University, Zhejiang University, National University of Singapore, and other institutions introduce EnvACE, an agentic reinforcement learning method that internalizes environment dynamics through world rehearsal, where the policy alternates between generating tool calls and role-playing environment responses, both jointly optimized by task-success rewards to replace external environment interaction, achieving strong and transferable performance across long-horizon tool-use benchmarks including BFCL-v4, τ2-Bench, VitaBench, and FinMCP-Bench while outperforming environment-scaling baselines, and further enabling private test-time rehearsal that yields additional gains under a moderate budget.
Key Contributions
- The work introduces world rehearsal, a training paradigm where a single policy alternately generates tool calls and simulates the corresponding environment responses, internalizing environment dynamics without requiring external executable environments.
- EnvACE is proposed as an agentic reinforcement learning method that jointly optimizes acting and rehearsal in self-unfolded trajectories by sharing model parameters and applying role-wise GRPO with end-to-end task-success rewards.
- Experiments across BFCL-v4, τ²-Bench, VitaBench, and FinMCP-Bench show that EnvACE consistently outperforms environment-scaling baselines, controlled analyses confirm the benefits of world rehearsal across model scales, and test-time rehearsal yields additional improvements under a moderate budget.
Introduction
Large language models are increasingly deployed as agents that must combine dialogue with tool use across long interaction horizons. Prior training approaches either rely on costly, hard-to-scale executable environments or on LLM-based simulators that can produce inaccurate feedback and still require real-environment grounding. The authors propose EnvACE, a method that trains a single policy to both act and rehearse the environment’s responses inline, internalizing environment dynamics without any external environment interaction. By jointly optimizing acting and environment modeling with task-success rewards, the policy learns to unfold trajectories autonomously through a process called world rehearsal.
Method
The authors propose EnvACE, a framework that internalizes the agent-environment interaction loop into a single policy. As shown in the figure below:
EnvACE comprises three core components: world rehearsal, role-wise Group Relative Policy Optimization (GRPO), and test-time scaling.
In conventional agentic reinforcement learning, an external environment provides observations after each action. EnvACE revises this boundary by assigning observation generation to a rehearsal role of the policy itself. The task is formulated as a finite-horizon partially observable Markov decision process. At step t, the policy observes the interaction history ht and generates an action at. Instead of querying an external environment, the policy alternates between acting and rehearsal. The acting role generates an environment-facing action:
at∼πθ(⋅∣ht,ACT).Conditioned on the history and the generated action, the rehearsal role generates the corresponding environment response:
o^t∼πθ(⋅∣ht,at,REHEARSE).The generated response is appended to the interaction history as ht+1=ht⊕(at,o^t), from which the acting role makes its next decision. This unified act-rehearse process allows the trajectory to unfold without an external environment, enabling the policy to internalize environment dynamics as an agent world model.
To optimize this process, the authors employ role-wise GRPO. For each instruction x, EnvACE samples a group of K rollouts, each receiving a trajectory-level reward Ri. Every policy output in a rollout inherits this reward. The authors collect all policy outputs generated under a specific role r∈{ACT,REHEARSE} across the K rollouts to form a group Gx,r. A separate reward baseline is computed for each role:
μx,r=∣Gx,r∣1yj,n∈Gx,r∑Rj.The role-wise advantage Ai,m of an output yi,m is defined relative to this baseline:
Ai,m=Ri−μx,ri,m.The shared policy is optimized using the clipped GRPO objective:
θmaxJ(θ)=Ex,i,m,ℓ[min(ρi,m,ℓ(θ)Ai,m,clip(ρi,m,ℓ(θ),1−ϵ,1+ϵ)Ai,m)],where ρi,m,ℓ(θ) is the standard GRPO likelihood ratio. Although baselines are computed separately, outputs from both roles jointly update the shared policy parameters θ.
At test time, EnvACE leverages world rehearsal to scale inference-time computation before interacting with the external environment. Given a new instruction x, the policy performs N private rehearsal attempts. These attempts can be conducted in two modes. In parallel mode, all attempts are generated independently from the same context. In sequential mode, each new attempt observes previous rehearsal trajectories along with their assessments and revision suggestions, allowing iterative refinement. After completing the attempts, EnvACE summarizes all trajectories and self-evaluations into a compact rehearsal memory mx. The acting role then conditions on mx during a single committed execution in the external environment, while the rehearsals remain private and do not alter the external state.
Experiment
EnvACE is evaluated on four agentic benchmarks, BFCL-v4, τ²-Bench, VitaBench, and FinMCP-Bench, covering function calling, stateful service interactions, and financial tool use, and is compared against Qwen3 models and environment-scaling baselines. The world rehearsal paradigm, where a single policy jointly acts and generates environment responses, consistently outperforms standard GRPO and representative methods, with particularly strong gains on stateful, multi-turn tasks. Parameter sharing between the acting and rehearsal roles helps the policy internalize environment dynamics, and the benefits scale with model capacity. Test-time rehearsal further improves performance without external interaction, confirming world rehearsal as an effective and scalable training framework for tool-use agents.
EnvACE achieves the strongest overall result among environment-scaling baselines, with consistent advantages across heterogeneous benchmarks. It outperforms a larger Qwen3-8B foundation model on BFCL V4 and leads all 7B–8B models on VitaBench, while scoring second-highest on τ²-Bench. The approach scales well with model size, and combining it with test-time world rehearsal yields further gains over standard inference. EnvACE surpasses EnvScaler-8B and AWM-14B on the overall average, reflecting broad robustness. On τ²-Bench, EnvACE achieves the second-best average, substantially ahead of several environment-scaling baselines. Scaling from 1.7B to 8B improves BFCL V4 average by a large margin and widens the advantage over standard reinforcement learning. Using EnvACE for world rehearsal at test time boosts overall scores beyond non-rehearsal baselines, and the trained EnvACE policy outperforms rehearsing with the base model.
On FinMCP-Bench, EnvACE-8B achieves the highest TF1 score by combining the best tool precision with moderate recall, striking a stronger balance than the recall-leading EnvScaler-8B. The external-simulator baseline (Simulator-8B) yields dramatically lower scores, confirming the advantage of world rehearsal over simulation-only approaches. EnvACE-8B attains the top TF1 (46.78%), driven by a precision of 54.04% that is more than 14 percentage points above the next best precision. EnvScaler-8B leads in tool recall (49.35%) but its TF1 lags behind EnvACE-8B by 3.10 points due to a much lower precision. Simulator-8B records the lowest TF1 (15.95%) and recall (11.36%), underscoring the limitations of relying solely on an external simulator.
Test-time scaling via world rehearsal boosts agent performance consistently across domains when the rehearsal policy is the rehearsal-trained model (EnvACE). Parallel execution with EnvACE achieves the best overall score, while substituting the base model for rehearsal yields negligible gains or even regresses below the no-rehearsal baseline. The benefits come from internalized environment–response knowledge rather than from added inference compute alone. Parallel world rehearsal with EnvACE lifts the overall score from 36.7% (no rehearsal) to 40.9%, setting the highest result. When the base model is used for rehearsal in sequential mode, overall performance drops to 34.9%, underperforming the no-rehearsal baseline, whereas EnvACE rehearsal improves it to 38.5%.
EnvACE is evaluated across a range of heterogeneous agent benchmarks and reliably surpasses environment-scaling baselines and even larger foundation models. The method benefits from model scaling and from test-time world rehearsal, which substantially lifts performance only when using the rehearsal-trained EnvACE model rather than the base model or an external simulator. The results confirm that internalized environment–response knowledge is key to agent robustness, with EnvACE striking an effective balance between precision and recall where other approaches over- or under-prioritize one side.