Zishan Xu, Zhiyuan Yao, Yuxin Chen, Yifu Guo, Zhengxi Lu, Yuquan Lu, Jinyang Huang, Yan Xu, Yasheng Wang, Weinan Zhang, Xingshan Zeng, Weiwen Liu
5 min
EnvACE addresses the high cost and complexity of training LLM agents in external environments by replacing external interactions with a process called world rehearsal. Instead of querying a real environment or a separate simulator for feedback, the agent policy is trained to play two roles: an actor that generates tool calls and an environment that produces the corresponding responses. By alternating between these roles and jointly optimizing them using task-success rewards, the policy internalizes the causal relationship between its actions and the resulting environment states. This creates an integrated world model within the policy parameters, allowing the agent to anticipate outcomes and refine its decision-making process internally.
Experimental results across four benchmarks (BFCL-v4, tau^2-Bench, VitaBench, and FinMCP-Bench) demonstrate that EnvACE consistently outperforms existing environment-scaling baselines. By internalizing environment dynamics, the model achieves more transferable and robust performance across diverse tool-use scenarios. Furthermore, the study shows that this internalized world model provides significant benefits at test time; agents can perform private rehearsals to evaluate multiple candidate actions before committing to a final execution, leading to improved task success rates without requiring additional external environment interactions.
This research offers a scalable alternative to traditional agent training, which is often bottlenecked by the need for complex, verifiable, or costly external environments. By shifting the burden of environment modeling from external infrastructure to the policy itself, EnvACE enables more efficient training and provides a mechanism for agents to perform 'lookahead' reasoning at inference time. This approach paves the way for developing highly capable agents that can operate effectively in environments where real-time feedback is either unavailable or prohibitively expensive.
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.
Sam: They describe these tasks using the term "POMDP." What does that actually mean?
Alex: It stands for "Partially Observable Markov Decision Process." The plain-language version is this: the agent is making decisions while only seeing part of the picture. Think of it like playing a card game where you can't see your opponent's hand—you have to reason about what's probably there, not what you know for certain.
Sam: And they use something called "Role-wise GRPO" to keep the two roles from interfering with each other?
Alex: Right. Rather than giving the agent one blended score, it calculates separate grades for how well it performed as the decision-maker and how well it performed as the simulator. That way, it can improve at each role independently without one muddying the other.
Sam: Does running more rehearsal attempts always lead to better results, or is there a point where it stops helping?
Alex: The paper suggests a moderate number of rehearsals provides the clearest gains. Think of it like a student checking their work—going through it twice is genuinely useful, but checking it ten times rarely changes the answer and just wastes time.
Sam: I noticed performance actually dips slightly if the agent rehearses too many times. Is that just confusion, or is there a more specific reason?
Alex: The researchers suggest that too many rehearsal steps make the input very long, which may push beyond the model's effective working memory. It's a bit like trying to hold too many things in your head at once—eventually, you start dropping the earlier details.
Sam: So the "scratchpad" gets too crowded and the agent loses the thread of the original task. Are there other limitations worth flagging?
Alex: A few. The authors note they only tested this approach up to a certain model size—roughly eight billion parameters. Whether the same benefits hold for much larger models is still an open question.
Sam: So it works well at this scale, but we'd need more testing to know if it holds up for the largest AI systems in use today.
Alex: Exactly. They also focused specifically on tool-use tasks—situations where the agent interacts with defined software interfaces. Whether this approach transfers to more open-ended environments is something the field still needs to explore.
Sam: It sounds like the key insight wasn't just "more data" or "more compute," but a smarter way of organizing what the agent already knows.
Alex: That's a fair summary. By embedding an understanding of how the environment behaves directly into the agent's own reasoning process, the system becomes more capable of handling complex, multi-step tasks without needing constant external feedback. It's a meaningful step toward agents that can operate more independently—though there's clearly more work ahead on scaling and broader applications.
Sam: A compelling look at how we might move away from needing a perfect external simulator for every new task. Thanks for walking me through it, Alex.
Alex: It was a pleasure. Thanks for listening to ResearchPod.