Scaling Agent Learning via Experience Synthesis

Zhaorun Chen, Zhuokai Zhao, Kai Zhang, Bo Liu, Qi Qi, Yifan Wu, Tarun Kalluri, Xuefei Cao, Yuanhao Xiong, Haibo Tong, Huaxiu Yao, Hengduo Li, Jiacheng Zhu, Xian Li, Dawn Song, Bo Li, Jason E Weston, Dat Huynh

Reinforcement Learning (RL) is often considered the "holy grail" for autonomous agents, promising a reliable path toward continuous self-improvement. However, training a Large Language Model (LLM) agent in real-world or highly realistic simulated environments is a logistical nightmare. These environments are typically slow, expensive to run, difficult to reset, and plagued by sparse or noisy reward signals.

To address these critical bottlenecks, researchers have introduced DREAMGYM, a unified framework designed to synthesize diverse experiences at scale. By building a "synthetic gym," DREAMGYM allows agents to train extensively and effectively before ever interacting with a real-world environment.

The Bottleneck of Traditional RL Rollouts

Traditional RL relies heavily on "rollouts"—allowing an agent to take actions within an environment and observe the outcomes. For LLM-based agents, relying exclusively on real-environment rollouts is prohibitively difficult due to four main factors:

  1. Cost and Speed: Real environments, such as live web browsers or complex 3D simulators, are computationally heavy and slow to respond.
  2. Task Scarcity: Standard benchmarks usually offer a fixed, limited set of instructions, restricting the agent's ability to explore diverse scenarios.
  3. Unreliable Feedback: Dynamic interfaces (like live web pages) can change unexpectedly. A moved button or a delayed network response can corrupt the reward signal, leading to unstable learning.
  4. Infrastructure Complexity: Setting up RL-ready environments often requires orchestrating complex Docker containers or virtual machines, which scale poorly.

The core premise of DREAMGYM is that agents do not need a perfectly realistic environment to learn effectively; they primarily need interaction data that is diverse, informative, and causally grounded.

The DREAMGYM Framework

DREAMGYM replaces the cumbersome "Real Environment" with a scalable Reasoning Experience Model.

The DREAMGYM architecture featuring the Reasoning Experience Model, Replay Buffer, and Curriculum Task Generator.

The framework is built on three core components:

  • Reasoning Experience Model: Instead of simulating raw pixels or complex HTML DOMs, this model operates in an abstract textual state space. It utilizes Chain-of-Thought (CoT) reasoning to predict the next state and reward based on the agent's action. If an agent takes an invalid action, the model explicitly reasons through the failure, providing a dense, consistent gradient for learning.
  • Experience Replay Buffer: To ground the model and prevent hallucinated transitions, DREAMGYM employs a Retrieval-Augmented Generation (RAG) approach. It retrieves similar trajectories from a buffer—initially seeded with offline real-world data—to guide its state transitions accurately.
  • Curriculum Task Generator: This module continuously identifies tasks where the agent struggles (measured by "reward entropy"). It then dynamically generates progressively harder variations of these tasks, keeping the agent in the optimal "Goldilocks zone" for learning.

Key Insights and Performance Breakthroughs

The researchers evaluated DREAMGYM across distinct domains, including WebShop (e-commerce), ALFWorld (embodied household tasks), and WebArena-Lite (realistic web interactions). The agents were tested using various backbones, including Llama-3.2-3B, Llama-3.1-8B, and Qwen-2.5-7B.

Efficiency and Sim-to-Real Transfer

By training in an abstract textual space, the experience model ignores irrelevant noise (like UI formatting or ads) and focuses purely on the causal logic of the task. This abstraction makes training remarkably sample-efficient.

Training efficiency and success rate comparisons across different models and methods, highlighting DREAMGYM's superior performance in less time.

As shown in the performance comparisons, DREAMGYM drastically reduces the total training effort. It cuts GPU hours and sampling time to roughly 1/3 to 1/5 of what traditional RL requires, while simultaneously achieving higher success rates.

Furthermore, the framework introduces a powerful "Sim-to-Real" (S2R) warm start. By pre-training an agent in the synthetic gym and subsequently fine-tuning it with a small amount of real-environment data (DREAMGYM-S2R), the agent reaches performance levels unattainable by training on real data alone.

Unlocking Complex Environments

  • WebArena Breakthrough: On WebArena—an environment notoriously difficult for traditional RL due to its lack of scalable reset mechanisms—DREAMGYM-trained agents outperformed all baselines by over 30%.
  • Zero-Real-Data Parity: In RL-ready environments like WebShop, DREAMGYM matched the performance of state-of-the-art RL algorithms (like PPO and GRPO) using zero real-world interactions during the RL phase.

Limitations and Future Directions

While DREAMGYM represents a significant leap forward, it is not without limitations. The authors note a "domain gap" when transferring policies from web-based tasks to embodied environments like ALFWorld, indicating that the current meta-representation is not yet universally applicable. Additionally, the experience model still relies on a small seed of offline real-world data (roughly 2k–10k samples) to learn initial domain dynamics.

Future work will likely focus on scaling the experience model to larger LLMs and exploring multi-modal experience synthesis—incorporating visual tokens to handle increasingly complex, GUI-heavy tasks. Ultimately, DREAMGYM provides a highly scalable, efficient blueprint for the future of autonomous agent training.

Summary updated

BibTeX
@inproceedings{chen2026scaling,
  author = {Zhaorun Chen and Zhuokai Zhao and Kai Zhang and Bo Liu and Qi Qi and Yifan Wu and Tarun Kalluri and Xuefei Cao and Yuanhao Xiong and Haibo Tong and Huaxiu Yao and Hengduo Li and Jiacheng Zhu and Xian Li and Dawn Song and Bo Li and Jason E Weston and Dat Huynh},
  title = {{Scaling Agent Learning via Experience Synthesis}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=cf7qpBwttr},
}
Figure