Command Palette
Search for a command to run...
EnvACE: エージェント型強化学習のための世界リハーサルによる環境ダイナミクスの内在化
EnvACE: エージェント型強化学習のための世界リハーサルによる環境ダイナミクスの内在化
概要
長期的なツール使用を目的とした大規模言語モデルエージェントの訓練は、通常、構築と検証にコストがかかる実環境または合成された実行可能環境との相互作用、あるいは基盤化が困難な外部シミュレータに依存している。我々は、訓練中の外部環境との相互作用を世界リハーサルで置き換えるエージェント型強化学習手法EnvACEを提案する。方策は行動とリハーサルを交互に行う。すなわち、まずツール呼び出しを生成し、次にその行動によって引き起こされる応答を生成するために環境の役割を演じ、その後の意思決定をリハーサルされた応答に基づいて行う。両方の役割は、タスク成功報酬を用いてエンドツーエンドで共同最適化される。世界リハーサルを通じて、方策は行動とその環境応答との関係をパラメータに内在化し、意思決定を直接支援するエージェント世界モデルを獲得する。BFCL-v4、τ2-Bench、VitaBench、FinMCP-Benchにおいて、EnvACEは強力かつ転移可能な性能を達成し、総合評価で環境スケーリングベースラインを上回った。制御された研究により、世界リハーサルがモデル規模を問わず方策学習を一貫して改善することも示された。テスト時には、内在化された世界モデルにより、実行を確定する前のプライベートなリハーサルが可能となり、追加の外部相互作用なしに、適度なリハーサル予算の下でさらなる性能向上が得られる。我々の発見は、世界リハーサルを、外部環境の制約を超えてLLMエージェント訓練をスケールさせるための新たな道筋として確立するものである。
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.