AgentMercury: Your Agent Can Synthesize Verifiable Environments for Business Scenarios at scale
Organizations: Meridian Intelligence Global Inc. · University of Massachusetts Amherst
Abstract
Agents learn to act through interaction with environments, yet the environments used for training are often manually constructed or synthesized around predefined tasks and benchmarks. This task-centric paradigm makes it difficult to scale environments that reflect realistic and evolving workflows where diverse tasks can naturally emerge from the underlying world. We introduce AgentMercury, a scalable framework for synthesizing executable environments from high-level business scenarios. Rather than constructing an environment for a specific task, AgentMercury first instantiates a persistent world with entities, services, tools, state, and executable cross-service invariants, from which diverse tasks and interaction trajectories can subsequently emerge. We construct 4,783 executable environments spanning 14 industries and 50 countries, and use them as training substrates for reinforcement learning. Despite being generated without targeting the evaluation benchmarks, policies trained on these business-oriented environments improve substantially on both enterprise workflows and out-of-domain benchmarks spanning reasoning, coding, scientific computing, and tool use. In our experiments, Qwen3.5-4B improves from 12.3 to 15.7 on EnterpriseOps-GYM and from 45.9 to 56.0 on AIME26 after training on AgentMercury environments. We further show that the construction process itself can be learned: fine-tuning Qwen3.5-35B-A3B on construction traces increases executable-world authoring success from 3.3% to 83.3% on held-out business scenarios. These results show that scenario-grounded environments can provide useful and generalizable learning signals beyond benchmark-specific training, while their construction can itself become a learnable capability.
Figures & tables
| Model | Teams | CSM | ITSM | Calendar | HR | Drive | Hybrid | Avg. | |
|---|---|---|---|---|---|---|---|---|---|
| GPT-5 | 26.3 | 36.4 | 49.0 | 18.9 | 41.3 | 17.9 | 34.0 | 23.5 | 30.9 |
| Gemini-2.5-Pro | 39.3 | 11.6 | 31.1 | 13.9 | 12.5 | 4.9 | 27.0 | 19.6 | 19.9 |
| Kimi-K2-Thinking | 30.0 | 7.1 | 51.0 | 12.2 | 15.4 | 8.2 | 39.6 | 15.7 | 22.4 |
| Qwen3-4B (Think) | 24.0 | 3.8 | 38.4 | 5.6 | 5.8 | 7.1 | 21.9 | 15.8 | 15.3 |
| Qwen3-30B (Think) | 22.0 | 5.4 | 51.9 | 6.7 | 18.3 | 7.6 | 25.7 | 15.7 | 19.1 |
| Qwen3-235B (Think) | 28.0 | 4.7 | 38.1 | 9.3 | 15.7 | 7.8 | 23.8 | 17.7 | 18.1 |
| Model | AIME26 | HMMT | LCB | SciCode | Tau3- Airline | Tau3- Retail | Tau3- Telecom | BFCL | GPQA- Diamond |
|---|---|---|---|---|---|---|---|---|---|
| Qwen3.5-4B | 45.9 1.7 | 28.5 1.2 | 36.6 2.8 | 22.6 0.1 | 48.8 2.1 | 70.4 1.0 | 92.5 1.0 | 30.3 1.8 | 76.5 0.7 |
| Qwen3.5-4B + GRPO + Ours | 56.0 1.8 | 35.4 1.6 | 44.0 1.2 | 25.7 0.7 | 58.7 0.8 | 73.6 1.3 | 91.9 1.3 | 31.7 1.5 | 77.5 0.6 |
| Qwen3.5-35B-A3B | 91.0 0.3 | 77.0 0.9 | 74.3 2.2 | 29.7 1.5 | 39.1 10.6 | 52.7 22.1 | 49.1 49.8 | 31.1 1.3 | 82.8 3.0 |
| Qwen3.5-35B-A3B + GRPO + Ours | 91.9 2.1 | 80.0 0.7 | 79.0 0.5 | 29.9 1.7 | 52.5 5.2 | 57.1 8.3 | 68.9 20.5 | 42.5 0.3 | 85.0 0.5 |
| Qwen3.5-35B-A3B + SAO + Ours | 92.2 1.9 | 83.3 3.1 | 78.6 1.0 | 28.3 1.9 | 50.9 8.1 | 55.7 10.2 | 65.5 23.8 | 42.1 0.1 | 84.0 1.0 |
| Model | Zero-shot | Recipe |
|---|---|---|
| Claude Opus 4.8 | 83.3% | 80.0% |
| GPT-5.4 | 66.7% | 66.7% |
| DeepSeek-V4-Pro | 83.3% | 86.7% |
| GLM-5.2 | 80.0% | 76.7% |
| Mean (API models) | 78.3% | 77.5% |
| Qwen3.5-35B-A3B | 3.3% | 20.0% |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Statistic | Value |
|---|---|
| Tasks | 43,300 |
| Executable worlds / companies | 4,326 |
| Task seeds per world | 10 |
| Unique industries | 2,287 |
| Unique tools | 842 |
| Unique state tables | 222 |
| Statistic | Full | Trained | Coverage |
| Tasks | 43,300 | 3,200 | 7.4% |
| Environments | 4,326 | 2,313 | 53.5% |
| Industries | 2,287 | 1,438 | 62.9% |
| Tools | 842 | 638 | 75.8% |
| State tables | 222 | 137 | 61.7% |
| Service combinations | 148 | 93 | 62.8% |
| Parameter | Value |
|---|---|
| Tensor parallelism | 2 |
| Pipeline / context / expert parallelism | 1 / 1 / 1 |
| Sequence parallelism | Enabled |
| Recomputation | Full, uniform, 1 layer |
| Attention backend | FlashAttention |
| Attention softmax precision | FP32 |
| Parameter | Value |
|---|---|
| Max response length | 16,384 |
| SGLang context length | 24,576 |
| Rollout temperature | 1.0 |
| End-of-turn token | <|im_end|> |
| Partial rollout | Enabled |
| Reasoning / tool parser | Qwen3 / Qwen3-Coder |
| Parameter | Value |
|---|---|
| Maximum MCP turns | 20 |
| Maximum generation tokens / turn | 8,192 |
| Arena backend | Local (in-process) |
| Probe tool | Calendar |
| Environment creation throttle | 8 |
| Ready timeout | 600 s |
| Parameter | Value |
|---|---|
| Reward implementation | AgentMercury rl_reward.py |
| Reward aggregator | Fraction |
| Behavior penalty | Enabled |
| Reward judge | DeepSeek-V4-Flash |
| Judge temperature | 0.0 |
| Judge max tokens | 4,000 |
| Parameter | Value |
|---|---|
| Advantage estimator | GRPO |
| Surrogate | Decoupled-PPO ( icepop ) |
| -clip / -clip-high | 0.20 / 0.28 |
| Entropy coefficient | 0 |
| GRPO std normalization | Disabled |
| Per-token loss | Enabled |
| Parameter | Value |
|---|---|
| Base model | Qwen3.5-4B |
| Training corpus | AgentMercury investigation corpus |
| Number of tasks | 43,300 |
| Seeds per environment | 10 |
LLM Agent Training
Large language model agent training teaches models to plan, use tools, and learn from multi-step interaction with environments.
See all 586 papers