Learn › Agents
·FREE·PAPER·8 min read

Paper Walkthrough: EnvACE — Agents That Rehearse the World Instead of Calling It

EnvACE trains a tool-using LLM agent without ever calling an external environment: the same policy alternates between acting and playing the environment. We walk through role-wise GRPO, test-time private rehearsal, results on four agent benchmarks, and the limitations.

Key points

  • EnvACE learns tool use without ever calling an external environment during training, by having the model itself play the environment's part, a mechanism called world rehearsal.
  • A single policy plays two roles with shared parameters: Act, which generates the tool call, and Rehearse, which generates the environment's response.
  • GRPO advantages are measured against a separate baseline for each role, while both roles update the same shared parameters θ\theta.
  • Trained on Qwen3-8B, EnvACE reaches 32.91% Overall, +0.99 over EnvScaler-8B and +0.37 over AWM-14B.
  • It is verified only up to the 8B scale, evaluation focuses on tool-interactive tasks, and test-time rehearsal at N=3N=3 performs worse than at N=2N=2.
ModalitytextTaskagents

EnvACE: Internalizing Environment Dynamics via World Rehearsal for Agentic Reinforcement Learning

Primary source — what this article is built on

undefined2026-08-06→undefined2026-08-12same month

EnvACE: Internalizing Environment Dynamics via World Rehearsal for Agentic Reinforcement LearningZishan Xu, Zhiyuan Yao, Yuxin Chen et al. · 2026-08-06 · v1arXiv:2608.06197Paper page·PDF
undefined

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, tau^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. Our code is publicly available at https://github.com/Within-yao/EnvACE.


Can you get stronger by shadow practice alone?

A chess master can play out an entire game in their head, no board required. They can do this because the likely replies to each move are already inside them: a strong player has internalized not just how to choose moves, but how the position responds to their moves.

EnvACE, the paper we're reading today, brings exactly this idea to training LLM agents — AIs that accomplish tasks by calling external tools. Conventional agent training has the model learn by interacting, over and over, with a live API or database. EnvACE instead makes the model itself play the environment's part, a mechanism the authors call world rehearsal, so that training never touches an external environment at all. The headline claim: across four agentic benchmarks, this beats prior methods that invest heavily in building environments, in the overall evaluation (Abstract).

The problem: sparring partners are expensive

To train a tool-using agent with reinforcement learning (RL), you need an environment response after every action. The agent emits a tool call, gets a result back, decides its next move; the loop produces a trajectory, and a task-success reward arrives at the end. The question is: who produces those responses?

The paper sorts existing answers into two camps (§1).

  1. Build executable environments — real or synthesized APIs and databases. Responses are accurate, but construction and verification are costly, and verifying correctness gets harder as environments grow more complex.
  2. Let an LLM simulator answer — cheap and flexible, but responses can be inaccurate or inconsistent, and grounding them still ends up requiring real environments.

Either way, training stays dependent on an external response provider, and the ability to model the environment lives outside the acting policy. The authors argue that a good agent policy should not only act to solve the task but also model how the environment reacts to its actions (§1).

The twist: one model, two roles

EnvACE's answer is simple: assign two roles to a single policy (the same LLM) (§4.1).

The rehearsed response is appended to the history, and the next action is chosen on the basis of that self-made response. Act, respond, act, respond — the whole trajectory is spun out by the model alone. It is no longer a dialogue with the outside world; it is, in the paper's words, a process unfolded by the policy itself. The roles are switched by role prompts, but the parameters are shared. As training repeats, the mapping "if I do this, the environment answers like that" gets written into the weights, and the policy itself becomes an agent world model — which is what the title's "internalizing" means.

Both roles are just LLM token generation under the hood, so how varied the outputs are is governed by sampling temperature. The paper indeed uses different temperatures per role and per experiment — 1.0 for both roles where they want broad exploration of the action space, 0.01 where reproducibility matters (§5.1).

FIG 1Higher temperature flattens the output distribution, making rehearsed "environment responses" more diverse; lower temperature makes them near-deterministic and reproducible

Following the mechanics in equations

The paper formalizes a tool-interactive task as a finite-horizon POMDP (partially observable Markov decision process) (§3). At each step tt, the policy πθ\pi_\theta picks an action from the history hth_t, and normally the environment would return an observation. EnvACE hands that job to the policy as well (§4.1). First, the acting role moves.

at∼πθ(⋅∣ht,Act)a_t \sim \pi_\theta(\cdot \mid h_t, \textsf{Act})
(1)

Here ata_t is the action at step tt (a tool call or a final answer), hth_t is the interaction history so far, and Act\textsf{Act} is the role instruction "behave as the actor." Read in words, the line says: look at everything that has happened so far, put on the actor's hat, and produce the next move. The ∼\sim is worth noticing too — the move is sampled rather than fixed, so the same history can yield different actions on different rollouts. Then the rehearsal role writes the reply.

o^t∼πθ(⋅∣ht,at,Rehearse)\hat{o}_t \sim \pi_\theta(\cdot \mid h_t, a_t, \textsf{Rehearse})
(2)

o^t\hat{o}_t is the predicted environment response — the hat marks it as home-made, not a real observation oto_t. The same model, now wearing the environment's hat, writes what this tool call would get back — a line which says, in everyday terms: given the history and the move I just made, guess the reply I would have received. Nothing leaves the machine; the answer is written by the very model that asked the question. Finally the history is updated.

ht+1=ht⊕(at,o^t)h_{t+1} = h_t \oplus (a_t, \hat{o}_t)
(3)

⊕\oplus means appending to the history. Put in words: the history for the next step is the old history with my move and my own guess at the reply stapled onto the end. The action and its rehearsed response are added as a pair, the next action is decided by reading them, and this act–rehearse alternation continues until termination — one full trajectory, zero calls to any external environment.

Learning: GRPO with per-role baselines

Once trajectories exist, how do you learn from them? EnvACE samples KK rollouts for the same instruction xx and assigns each trajectory a single task-outcome reward RiR_i (from a verifiable evaluator or a checklist-based LLM judge, §4.2). Every output inside a trajectory inherits that reward — but the key design choice is that the advantage (how much better an output was than average) is measured against a role-specific baseline.

μx,r=1∣Gx,r∣∑yj,n∈Gx,rRj,Ai,m=Ri−μx,ri,m\mu_{x,r} = \frac{1}{|\mathcal{G}_{x,r}|} \sum_{y_{j,n} \in \mathcal{G}_{x,r}} R_j, \qquad A_{i,m} = R_i - \mu_{x, r_{i,m}}
(4)

Gx,r\mathcal{G}_{x,r} collects, across the KK rollouts, all outputs generated under role rr (Act or Rehearse); μx,r\mu_{x,r} is the mean reward for that role; and Ai,mA_{i,m} is the advantage of output yi,my_{i,m}. The left half says, in words: average the rewards of everything this role produced across the KK rollouts; the right half then says: an output's score is its own trajectory's reward minus that role's average. Concretely: actor outputs are compared with other actor outputs, environment outputs with other environment outputs. The baselines are separate because the two roles affect the reward differently — but both roles update the same shared parameters θ\theta, which is precisely how knowledge gained while rehearsing flows into the acting side. Optimization uses the standard clipped GRPO objective (Eq. 8, §4.2).

At test time: rehearse privately, then commit once

A policy that has internalized a world model has a second use at inference (§4.3). Given a new task, it first runs NN private rehearsal attempts without touching the external environment — imagining an act–rehearse trajectory, then evaluating it to produce an assessment and a revision suggestion. Two modes:

All rehearsals are then summarized into a compact rehearsal memory mxm_x, and the agent performs a single committed execution in the real environment, conditioning on that memory. The rehearsals stay private and never alter the external environment's state.

How well does it work?

The main experiments train Qwen3-8B on the CM2 dataset for 470 steps (using the verl framework on 16 H20 GPUs, §5.1), evaluating on BFCL-v4, τ2\tau^2-Bench, VitaBench, and FinMCP-Bench.

The case studies in Appendix A are telling. EnvACE predicts during rehearsal that a planned tool call will fail due to invalid parameters and repairs them before execution, and in another case detects that a write operation is not allowed and swaps it for a read-only query — while baseline agents actually fail first and then spend extra steps recovering.

Limitations, and how to read the claims

The authors name two limitations (§7): compute constraints mean EnvACE is verified only up to the 8B scale, and the evaluation focuses on tool-interactive tasks. Within the paper's own results, note also that test-time rehearsal degrades at N=3N=3 compared to N=2N=2 — the imagined trajectories lengthen the input toward the effective context limit, the authors suggest (§5.5). More rehearsal is not automatically better.

One caveat from outside the paper (our practical reading): a rehearsed response is the model's imagination, with no correctness guarantee from any real environment. It cannot be expected to capture quirks of environments unlike anything in its training data (CM2-derived tasks, in EnvACE's case).

How this is used in practice

The people this paper speaks to most directly are ML engineers building RL training infrastructure for agents. Environment-synthesis pipelines (the EnvScaler / ScaleEnv line of work) require per-environment construction and maintenance; world rehearsal removes the environment call from the rollout loop entirely, so the training stack shrinks toward "a model and a reward function." Implementation-wise, you work in an RL framework like verl (as the paper does), and the core change is in GRPO advantage computation: tag every output with its role and normalize against per-role baselines. The knobs you actually touch are rollouts per prompt (4 in the paper), the KL coefficient (10−410^{-4}), per-role sampling temperatures, and — on the inference side — the rehearsal budget NN and its mode (parallel vs. sequential).

If you tune inference for an agent product instead, test-time rehearsal maps directly onto "dry-run before hitting the real API." The Appendix A cases show where it pays off most: rehearse once before any write-type tool — reservation changes, payments, anything irreversible.

Three pitfalls. First, you need hard separation so that rehearsed tool calls can never reach real APIs — keep the paper's structure of private rehearsal plus exactly one committed execution. Second, don't crank NN: the paper sees a drop at N=3N=3, so pick the budget with your context length in mind. Third, the rehearsing model must be one trained this way; letting a vanilla model imagine trajectories gives little benefit and can hurt in sequential mode. "Add test-time scaling and everything improves" is not what the evidence shows.

Read next

References

  1. Zishan Xu, Zhiyuan Yao, Yuxin Chen, Yifu Guo et al.. (2026-08-06) EnvACE: Internalizing Environment Dynamics via World Rehearsal for Agentic Reinforcement Learning. arXiv:2608.06197Paper page·PDF

This article is written from the source paper above. Where they differ, the original is authoritative.

Published by TechAthletes · Editorial policy · How we cite · Corrections

Comments

Sign in to comment