Command Palette
Search for a command to run...
ENVACE : INTERNALISER LA DYNAMIQUE DE L'ENVIRONNEMENT PAR RÉPÉTITION DU MONDE POUR L'APPRENTISSAGE PAR RENFORCEMENT AGENTIQUE
ENVACE : INTERNALISER LA DYNAMIQUE DE L'ENVIRONNEMENT PAR RÉPÉTITION DU MONDE POUR L'APPRENTISSAGE PAR RENFORCEMENT AGENTIQUE
Résumé
L'entraînement d'agents fondés sur de grands modèles de langage pour l'utilisation d'outils sur de longs horizons repose généralement sur des interactions avec des environnements exécutables réels ou synthétisés, dont la construction et la vérification sont coûteuses, ou sur des simulateurs externes difficiles à ancrer dans la réalité. Nous présentons EnvACE, une méthode d'apprentissage par renforcement agentique qui remplace l'interaction avec un environnement externe pendant l'entraînement par une répétition du monde. La politique alterne entre action et répétition : elle génère d'abord un appel d'outil, puis joue le rôle de l'environnement pour produire la réponse induite par cette action, et conditionne les décisions ultérieures à la réponse répétée. Les deux rôles sont optimisés conjointement de bout en bout à l'aide de récompenses de succès de tâche. Grâce à la répétition du monde, la politique internalise dans ses paramètres la relation entre les actions et les réponses de l'environnement, produisant un modèle du monde agentique qui soutient directement la prise de décision. Sur BFCL-v4, τ2-Bench, VitaBench et FinMCP-Bench, EnvACE atteint des performances solides et transférables, surpassant les références de mise à l'échelle de l'environnement dans l'évaluation globale. Des études contrôlées montrent en outre que la répétition du monde améliore systématiquement l'apprentissage de la politique à différentes échelles de modèle. Au moment du test, le modèle du monde internalisé permet une répétition privée avant l'exécution effective, apportant des gains supplémentaires avec un budget de répétition modéré sans interaction externe additionnelle. Nos résultats établissent la répétition du monde comme une nouvelle voie pour faire évoluer l'entraînement des agents LLM au-delà des contraintes des environnements externes.
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.