GenEnv: Difficulty-Aligned Co-Evolution Between LLM Agents and Environment Simulators

Jiacheng Guo, Ling Yang, Peter Chen, Qixin Xiao, Yinjie Wang, Xinzhe Juan, Jiahao Qiu, Ke Shen, Mengdi Wang

TL;DR

GenEnv introduces a co-evolutionary framework where an LLM agent and a generative environment simulator train together in a two-player curriculum game. By dynamically adjusting task difficulty to target the agent's "zone of proximal development" via an $\alpha$-Curriculum Reward, GenEnv boosts 7B model performance by up to 40.3% and outperforms static data augmentation methods using 3.3× less data.

What Problem Does This Paper Address?

Training capable Large Language Model (LLM) agents for complex, interactive tasks like web navigation or tool use is severely bottlenecked by data. Collecting real-world interaction trajectories is slow, expensive, and difficult to parallelize.

To circumvent this, researchers often rely on static, pre-collected datasets or offline synthetic data generation. However, these static corpora represent a fixed snapshot of the world. As the agent learns and improves, a static dataset fails to adapt to the agent's evolving weaknesses, leading to highly inefficient training and poor generalization.

Methods

GenEnv addresses this bottleneck by replacing static datasets with a Data-Evolving Paradigm, framing agent training as a two-player co-evolutionary game between an Agent Policy ($\pi_{\text{agent}}$) and an Environment Policy ($\pi_{\text{env}}$).

A comparison between the traditional training paradigm and the proposed GenEnv framework.

The training loop operates in three iterative phases:

  1. Online Generation & Interaction: The environment simulator ($\pi_{\text{env}}$) generates a batch of task variations on-the-fly. The agent ($\pi_{\text{agent}}$) attempts to solve them, producing interaction traces.
  2. Dual Update:
  3. The Agent is optimized to maximize task success using Group Relative Policy Optimization (GRPO).
  4. The Environment is optimized using Reward-Weighted Regression (RWR) based on a novel $\alpha$-Curriculum Reward.
  5. Aggregation: Valid interaction traces and successful environment generations are funneled back into growing training pools for the next epoch.

The Secret Sauce: $\alpha$-Curriculum Reward

Instead of trying to defeat the agent, the simulator is rewarded for finding the agent's "breaking points." The $\alpha$-Curriculum Reward uses a bell-shaped function:

$$R_{\text{env}}(\hat{p}) = \exp(-\beta(\hat{p} - \alpha)^2)$$

Where $\hat{p}$ is the agent's empirical success rate on a batch of tasks, and $\alpha$ is the target difficulty (set to $0.5$). This mathematical formulation penalizes the simulator if the tasks are too easy ($\hat{p} \rightarrow 1$) or completely impossible ($\hat{p} \rightarrow 0$), keeping the generation strictly within the agent's optimal learning zone.

Datasets

The authors evaluated GenEnv across five diverse, established benchmarks targeting tool use, embodied interaction, and real-world planning:

  • API-Bank: Measures function-calling and tool-augmented reasoning.
  • ALFWorld: Aligns textual instructions with embodied environments.
  • BFCL (Berkeley Function-Calling Leaderboard): Evaluates long-context, multi-turn tool use.
  • Bamboogle: A compositional multi-hop QA benchmark.
  • TravelPlanner: Examines end-to-end planning in realistic travel scenarios.

Key Insights and Ideas

  • Intermediate Difficulty Maximizes Learning: The authors provide a theoretical proof showing that the expected squared gradient norm for a REINFORCE-style update is maximized when the task success probability is exactly $1/2$. Tasks of intermediate difficulty inherently provide the strongest mathematical learning signal.
  • Data Targeting Trumps Data Volume: Generating data dynamically tailored to an agent's current capability provides a cleaner, more effective learning signal than massive, untargeted datasets generated offline by state-of-the-art teacher models (like Gemini 2.5 Pro).
  • Curriculum Emerges Naturally: Without any hand-crafted difficulty schedules or manual intervention, the environment simulator naturally learns to scale task complexity—generating longer task descriptions and requiring longer reasoning chains—as the agent becomes more proficient.

Key Results

GenEnv achieves remarkable data efficiency and cross-benchmark performance gains:

  • Outperforming 7B Baselines: GenEnv (built on Qwen2.5-7B) achieved massive absolute performance gains over standard baselines, including +40.3% on ALFWorld, +34.8% on BFCL, and +17.5% on API-Bank.
  • Beating Larger Models: With an average cross-benchmark score of 53.6, the 7B GenEnv model matched or outperformed substantially larger models trained on static data, including Qwen3-14B (44.9), Llama 3.1-70B (46.4), and Llama 3.1-405B (47.9).
  • Superior Data Efficiency: On the BFCL benchmark, GenEnv outperformed a strong Gemini 2.5 Pro offline data augmentation baseline while using 3.3× less synthetic data.
GenEnv's cross-benchmark gains and data efficiency compared to larger models and static augmentation pipelines.

Limitations and Future Work

While highly effective, GenEnv relies on regularizing the environment updates with a KL penalty to prevent the simulator from drifting into uninterpretable task spaces or overfitting to transient performance spikes.

The authors suggest that future work should explore expanding this difficulty-aligned adaptive simulation framework to even more open-ended environments and complex multi-agent orchestration domains where real-world data collection is entirely prohibitive.

Summary updated

BibTeX
@inproceedings{guo2026genenv,
  author = {Jiacheng Guo and Ling Yang and Peter Chen and Qixin Xiao and Yinjie Wang and Xinzhe Juan and Jiahao Qiu and Ke Shen and Mengdi Wang},
  title = {{GenEnv: Difficulty-Aligned Co-Evolution Between LLM Agents and Environment Simulators}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=W0Cx9tJ1x9},
}
Figure