工作日早上 7 点读 AI,周日早上 8 点读周报订阅邮件

METAL LAB

AgentMercury: Your Agent Can Synthesize Verifiable Environments for Business Scenarios at scale

arXiv:2608.206342026-08-24

AI不再为单个任务搭环境,而是直接生成整个商业世界,让训练场自己扩展规模

AgentMercury不是手工为某个具体任务搭建环境,而是从高层商业场景出发,先构建出包含服务、状态、跨服务规则的一整套持续存在的可执行世界,再从这个世界中自然衍生出多样的任务。研究团队用这种方法生成的4,783个可执行环境来做强化学习训练,结果显示即便训练环境完全没有针对评测基准设计,模型在企业工作流和推理、编程等完全不相关的基准测试上都有提升。研究还表明,构建世界这件事本身也可以被训练成一种可学习的能力。

METAL LAB 解读图

从商业场景到训练信号:AgentMercury的工作流程

证据状态已报告实测结果

  1. 商业场景σ描述特定行业与国家背景的高层输入
  2. Planet:世界构建生成包含服务图谱、状态模式、初始状态和跨服务不变式的可执行世界w
  3. 任务实例化在同一个世界中通过不同的状态注入和评分标准衍生出多样任务u
  4. 策略与环境交互策略调用工具、推动状态转移并接收观察,循环往复
  5. 确定性评分与强化学习基于SQL对任务规则和世界不变式进行检验计算奖励,并用GRPO/SAO更新策略
这是 METAL LAB 制作的解读图,并非论文作者提供的原图。

他们做了什么

  1. 论文指出现有智能体训练环境通常围绕特定任务或基准手工构建,难以规模化反映真实多变的业务工作流。
  2. AgentMercury引入了一个名为Planet的角色,先把商业场景σ转化为包含公司身份、服务图谱、状态模式、初始状态和跨服务不变式的完整可执行世界w,之后再从同一个世界中衍生出多个具体任务。
  3. 团队构建并发布了涵盖14个行业、50个国家的4,783个可执行环境,并用其中衍生出的43,300个任务语料,通过GRPO强化学习训练Qwen3.5-4B策略模型。
  4. 团队还用29,823条来自世界构建过程记录的样本对Qwen3.5-35B-A3B进行微调,让模型学会仅凭新的商业简报就能编写出可执行的世界。
  5. 评判构建是否成功采用了严格标准:生成的世界必须通过全部12项结构验证器才算成功(即oracle通过率)。
Figure 1: AgentMercury synthesizes diverse, scalable, and verifiable business environments at scale. (a) The synthesized environment spans 14 industries and 50 countries, covering 4,783 environments with anonymized to prevent hallucination. (b) Comparison of environment scale and multi-service depth with existing agent environments (Trivedi et al., 2024; Wu et al., 2026; Shi et al., 2026; Dong et al., 2026); AgentMercury occupies the regime that is both large-scale and multi-service. (c) Each environment contains rich, stateful structure, including multiple services, tools, state tables, and deterministic SQL-based verifiers that enforce cross-service constraints.
Figure 1: AgentMercury synthesizes diverse, scalable, and verifiable business environments at scale. (a) The synthesized environment spans 14 industries and 50 countries, covering 4,783 environments with anonymized to prevent hallucination. (b) Comparison of environment scale and multi-service depth with existing agent environments (Trivedi et al., 2024; Wu et al., 2026; Shi et al., 2026; Dong et al., 2026); AgentMercury occupies the regime that is both large-scale and multi-service. (c) Each environment contains rich, stateful structure, including multiple services, tools, state tables, and deterministic SQL-based verifiers that enforce cross-service constraints.
Table 1: Result on EnterpriseOps-Gym (Malay et al., 2026). We evaluate whether training on environments and tasks synthesized by AgentMercury improves agent performance across model scales and policy optimization methods. Results are reported for both Qwen3.5-4B and Qwen3.5-35B-A3B models, with GRPO (Shao et al., 2024) and SAO (Hou et al., 2026) considered as alternative RL algorithms. † signifies that the result are derived from EnterpriseOps-Gym.
ModelTeamsCSMEmailITSMCalendarHRDriveHybridAvg.
GPT-5 †26.336.449.018.941.317.934.023.530.9
Gemini-2.5-Pro †39.311.631.113.912.54.927.019.619.9
Kimi-K2-Thinking †30.07.151.012.215.48.239.615.722.4
Qwen3-4B (Think) †24.03.838.45.65.87.121.915.815.3
Qwen3-30B (Think) †22.05.451.96.718.37.625.715.719.1
Qwen3-235B (Think) †28.04.738.19.315.77.823.817.718.1
Qwen3.5-4B20.8±2.59.2±2.323.9±3.06.8±1.010.4±2.59.5±2.86.2±1.611.7±1.712.3±0.2
Qwen3.5-4B + GRPO + Ours23.0±1.65.6±1.533.3±0.97.4±1.113.1±1.610.8±4.315.6±3.117.0±1.115.7±0.6
Qwen3.5-35B-A3B33.9±3.87.6±2.553.2±2.314.6±1.018.6±0.911.4±1.535.9±5.423.5±1.724.8±0.6
Qwen3.5-35B-A3B + GRPO + Ours39.8±4.111.1±0.953.8±7.515.6±1.621.9±1.917.7±0.941.2±3.923.7±1.128.1±1.4
Qwen3.5-35B-A3B + SAO + Ours39.1±2.312.5±2.854.8±2.116.5±0.522.6±0.517.7±1.439.1±4.424.1±2.428.3±1.5
Figure 2: From scenario-grounded world construction to agent interaction. (A) Planet transforms a high-level business scenario σ into an executable world w, constructing its company identity, service graph, state schema, seeded initial state s0, and world-level invariants ℛ. A task is then instantiated from the resulting world through task-specific state seeding and a rubric. (B) Within the constructed world, a policy acts from the interaction history, producing actions that deterministically transition the environment from st to st+1, while observations ωt+1 are exposed through the observation interface. The resulting trajectory is evaluated post-episode using the task rubric and, where applicable, the world-level invariants. The formulation thus separates world construction, task instantiation, interaction, and evaluation.
Figure 2: From scenario-grounded world construction to agent interaction. (A) Planet transforms a high-level business scenario σ into an executable world w, constructing its company identity, service graph, state schema, seeded initial state s0, and world-level invariants ℛ. A task is then instantiated from the resulting world through task-specific state seeding and a rubric. (B) Within the constructed world, a policy acts from the interaction history, producing actions that deterministically transition the environment from st to st+1, while observations ωt+1 are exposed through the observation interface. The resulting trajectory is evaluated post-episode using the task rubric and, where applicable, the world-level invariants. The formulation thus separates world construction, task instantiation, interaction, and evaluation.
Table 2: Out-of-domain evaluation across mathematical reasoning, coding, scientific computing, tool use, and agentic benchmarks. We report mean ± standard deviation over three independent evaluation runs (N=3). Qwen3.5-4B and Qwen3.5-35B-A3B are evaluated before and after RL training on tasks synthesized by AgentMercury.
ModelAIME26HMMTLCBSciCodeTau3- AirlineTau3-AirlineTau3- RetailTau3-RetailTau3- TelecomTau3-TelecomBFCLGPQA- DiamondGPQA-Diamond
Tau3-
Airline
Tau3-
Retail
Tau3-
Telecom
GPQA-
Diamond
Qwen3.5-4B45.9±1.728.5±1.236.6±2.822.6±0.148.8±2.170.4±1.092.5±1.030.3±1.876.5±0.7
Qwen3.5-4B + GRPO + Ours56.0±1.835.4±1.644.0±1.225.7±0.758.7±0.873.6±1.391.9±1.331.7±1.577.5±0.6
Qwen3.5-35B-A3B91.0±0.377.0±0.974.3±2.229.7±1.539.1±10.652.7±22.149.1±49.831.1±1.382.8 ±3.0
Qwen3.5-35B-A3B + GRPO + Ours91.9±2.180.0±0.779.0±0.529.9±1.752.5±5.257.1±8.368.9±20.542.5±0.385.0±0.5
Qwen3.5-35B-A3B + SAO + Ours92.2±1.983.3±3.178.6±1.028.3±1.950.9±8.155.7±10.265.5±23.842.1±0.184.0±1.0
Figure 3: Out-of-domain benchmark performance across training checkpoints for Qwen3.5-4B + GRPO + Ours. The dashed line denotes the base-model performance, while error bars show the standard deviation over three independent evaluation runs. The gradual improvement across heterogeneous benchmarks indicates that the policy learned from AgentMercury environments acquires transferable capabilities beyond the training environments.
Figure 3: Out-of-domain benchmark performance across training checkpoints for Qwen3.5-4B + GRPO + Ours. The dashed line denotes the base-model performance, while error bars show the standard deviation over three independent evaluation runs. The gradual improvement across heterogeneous benchmarks indicates that the policy learned from AgentMercury environments acquires transferable capabilities beyond the training environments.
Table 3: Authoring executable worlds from high-level business briefs. We report oracle-pass rates over 30 held-out briefs. A world is counted as successful only when it passes all 12 structural validators. Zero-shot provides only the business brief, while Recipe additionally provides an invariant digest and a trimmed construction exemplar.
ModelZero-shotRecipe
Claude Opus 4.883.3%80.0%
GPT-5.466.7%66.7%
DeepSeek-V4-Pro83.3%86.7%
GLM-5.280.0%76.7%
Mean (API models)78.3%77.5%
Qwen3.5-35B-A3B3.3%20.0%
Qwen3.5-35B-A3B + AgentMercury83.3%10.0%
Figure 4: Training dynamics of Qwen3.5-4B + GRPO + Ours. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio over training steps. The increasing reward together with decreasing truncation and near-zero degeneration indicates that policy improvement is not accompanied by substantial response collapse or pathological generation.
Figure 4: Training dynamics of Qwen3.5-4B + GRPO + Ours. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio over training steps. The increasing reward together with decreasing truncation and near-zero degeneration indicates that policy improvement is not accompanied by substantial response collapse or pathological generation.
Table 4: Composition of the synthesized task corpus used for RL. Statistics are computed over all 43,300 tasks.
StatisticValue
Tasks43,300
Executable worlds / companies4,326
Task seeds per world10
Unique industries2,287
Unique tools842
Unique state tables222
Service combinations148
Tools per world10–26 (16.1 avg.)
Services per task1–5 (2.9 avg.)
Assertions per task2–10 (5.4 avg.)
Figure 5: Overview of the synthesized environments, sampled training footprint, and task lifecycle in AgentMercury. (A) The full corpus contains 43,300 investigation tasks instantiated from 4,326 synthetic company environments, spanning 2,287 industries, 842 tools, 222 state tables, and 148 service combinations. (B) Across 200 RL training steps, the agent observes 3,200 tasks (7.4% of the full task corpus) while retaining broad coverage of environments, industries, tools, state tables, and service combinations through shuffled sampling. (C) Each training instance follows a structured lifecycle from a high-level business scenario to executable world construction, task instantiation, multi-step tool interaction, deterministic post-episode verification, and reward-based policy optimization. The resulting framework separates world construction from task sampling, allowing a single synthesized environment to support multiple seeded tasks while providing verifiable learning signals for agent training.
Figure 5: Overview of the synthesized environments, sampled training footprint, and task lifecycle in AgentMercury. (A) The full corpus contains 43,300 investigation tasks instantiated from 4,326 synthetic company environments, spanning 2,287 industries, 842 tools, 222 state tables, and 148 service combinations. (B) Across 200 RL training steps, the agent observes 3,200 tasks (7.4% of the full task corpus) while retaining broad coverage of environments, industries, tools, state tables, and service combinations through shuffled sampling. (C) Each training instance follows a structured lifecycle from a high-level business scenario to executable world construction, task instantiation, multi-step tool interaction, deterministic post-episode verification, and reward-based policy optimization. The resulting framework separates world construction from task sampling, allowing a single synthesized environment to support multiple seeded tasks while providing verifiable learning signals for agent training.
Table 5: Coverage of the tasks that received gradients during the reported RL run relative to the full synthesized corpus. These statistics used only for GRPO algorithm.
StatisticFullTrainedCoverage
Tasks43,3003,2007.4%
Environments4,3262,31353.5%
Industries2,2871,43862.9%
Tools84263875.8%
State tables22213761.7%
Service combinations1489362.8%
Figure 6: Structural analysis of the synthesized task space. (a) A t-SNE projection of task descriptions based on TF-IDF features shows substantial textual clustering, but the clusters do not correspond to meaningful task metadata such as domain, persona, or task shape. (b) In contrast, projecting the same tasks using their exposed tool sets reveals clear domain-specific structure, indicating that the primary source of task variation lies in the executable tool surface rather than in task language. (c) Distribution of nearest-neighbor cosine similarity in the TF-IDF space, showing that although the overall task space is broad, most tasks still have a highly similar counterpart. (d) The number of exposed tools takes only five values, {10,14,18,22,26}, revealing a discrete task-shape lattice induced by the core tool set and the number of additional resources.
Figure 6: Structural analysis of the synthesized task space. (a) A t-SNE projection of task descriptions based on TF-IDF features shows substantial textual clustering, but the clusters do not correspond to meaningful task metadata such as domain, persona, or task shape. (b) In contrast, projecting the same tasks using their exposed tool sets reveals clear domain-specific structure, indicating that the primary source of task variation lies in the executable tool surface rather than in task language. (c) Distribution of nearest-neighbor cosine similarity in the TF-IDF space, showing that although the overall task space is broad, most tasks still have a highly similar counterpart. (d) The number of exposed tools takes only five values, {10,14,18,22,26}, revealing a discrete task-shape lattice induced by the core tool set and the number of additional resources.
Table 6: Model-parallelism and memory configuration used for Qwen3.5-4B policy optimization.
ParameterValue
Tensor parallelism2
Pipeline / context / expert parallelism1 / 1 / 1
Sequence parallelismEnabled
RecomputationFull, uniform, 1 layer
Attention backendFlashAttention
Attention softmax precisionFP32
Dropout0
Max tokens per GPU24,576
Figure 7: Training dynamics of Qwen3.5-35B-A3B with GRPO and AgentMercury. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio throughout training. The increasing reward is accompanied by a steady reduction in truncation, while degenerate responses remain negligible.
Figure 7: Training dynamics of Qwen3.5-35B-A3B with GRPO and AgentMercury. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio throughout training. The increasing reward is accompanied by a steady reduction in truncation, while degenerate responses remain negligible.
Table 7: Rollout and fully-asynchronous execution configuration.
ParameterValue
Max response length16,384
SGLang context length24,576
Rollout temperature1.0
End-of-turn token<|im_end|>
Partial rolloutEnabled
Reasoning / tool parserQwen3 / Qwen3-Coder
SGLang memory fraction0.8
Max running requests64
Fully asynchronous trainingEnabled
Actor / rollout GPUs2 / 6
Max staleness4
Rollout in-flight cap64
Minimum fresh-token ratio0.75
Weight update interval1
Fault toleranceEnabled
Figure 8: Training dynamics of Qwen3.5-35B-A3B with SAO and AgentMercury. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio throughout training. SAO exhibits a sustained reward increase together with a substantial reduction in truncation, while degenerate responses remain close to zero.
Figure 8: Training dynamics of Qwen3.5-35B-A3B with SAO and AgentMercury. We report the raw reward, response length, truncated-response ratio, and degenerate-response ratio throughout training. SAO exhibits a sustained reward increase together with a substantial reduction in truncation, while degenerate responses remain close to zero.
Table 8: Configuration of the executable MCP environments used during policy optimization.
ParameterValue
Maximum MCP turns20
Maximum generation tokens / turn8,192
Arena backendLocal (in-process)
Probe toolCalendar
Environment creation throttle8
Ready timeout600 s
Reset timeout180 s
Table 9: Reward and verification configuration used during RL training.
ParameterValue
Reward implementationAgentMercury rl_reward.py
Reward aggregatorFraction
Behavior penaltyEnabled
Reward judgeDeepSeek-V4-Flash
Judge temperature0.0
Judge max tokens4,000
Truncated-sample handlingRetained during cold start
Table 10: GRPO and optimizer configuration for Qwen3.5-4B.
ParameterValue
Advantage estimatorGRPO
SurrogateDecoupled-PPO (icepop)
ϵ-clip / ϵ-clip-high0.20 / 0.28
Entropy coefficient0
GRPO std normalizationDisabled
Per-token lossEnabled
Global batch size128
Rollout batch size16
Samples per prompt8
Dynamic sampling filterZero-std reward groups dropped
OptimizerAdam
β1 / β20.9 / 0.98
Learning rate1×10−6
Learning-rate scheduleConstant
Warmup0
Weight decay0
Gradient accumulationFP32
Table 11: Model and corpus configuration for the Qwen3.5-4B RL experiment.
ParameterValue
Base modelQwen3.5-4B
Training corpusAgentMercury investigation corpus
Number of tasks43,300
Seeds per environment10

研究结果

  • 用GRPO在AgentMercury环境上训练Qwen3.5-4B后,EnterpriseOps-GYM平均分从12.3提升到15.7(+27.6%),同时训练中完全未涉及的AIME26基准分数从45.9提升到56.0。
  • 在EnterpriseOps-Gym各子领域中,Drive从6.2升至15.6,Email从23.9升至33.3,8个领域中有7个提升,但CSM从9.2降至5.6。
  • 对于Qwen3.5-35B-A3B,GRPO使平均分从24.8提升到28.1(+13.3%),SAO使平均分从24.8提升到28.3(+14.1%),两种算法均在全部八个企业领域实现提升。
  • 微调前,Qwen3.5-35B-A3B在30个留出的商业简报上仅有3.3%能通过全部构建验证(oracle);用构建轨迹微调后通过率升至83.3%(Fisher精确检验p=1.2×10^-10),平均通过验证器数量也从原来水平升至12项中的11.5项。
  • 对比零样本与提供构建指南(recipe)两种提示方式,五个商用API模型的平均通过率相差不大(80.7%对78.0%),但对微调后的模型而言,额外提供构建指南反而使通过率从83.3%大幅降至10.0%。

可应用场景

  • 为训练企业自动化智能体(邮件、日程、人力资源、IT服务管理等)大规模生成贴近场景的训练环境
  • 需要反映广泛真实业务工作流、而非仅针对某个基准定制的强化学习训练数据的场景
  • 希望构建让模型自主编写可执行世界的流水线,减少人工逐一设计环境的负担
  • 构建用于检验智能体是否遵守跨服务规则(如库存、物流、结算之间的一致性)的评测体系

局限与待验证事项

  • 并非所有业务领域都从训练中获益,CSM领域训练后性能反而下降,说明收益并非在所有企业工作流上一致。
  • 世界构建微调实验仅基于30份留出的商业简报,能否推广到更广泛的行业和国家尚未得到验证。
  • 提供构建指南(recipe)并未稳定提升零样本商用模型的表现,反而大幅拉低了微调模型的表现,这种不对称现象的确切原因尚未查明。
  • 即便是GPT-5.4这样较强的模型,在30份简报中仍有约10份出现跨服务不变式放置错误,说明这仍是一个持续存在的结构性弱点。
  • 本研究没有额外训练一个学习型世界模型,而是直接把可执行环境本身当作状态转移函数,因此该方法与学习型世界模型结合使用的效果尚未验证。

为什么重要

如果训练环境能够直接从商业场景大规模自动生成,而不必逐个手工搭建,团队就能更快获得多样、贴近真实业务的智能体训练素材。构建世界的能力本身也能被训练学会,这意味着未来有可能减少人工逐一设计环境这一瓶颈。

本文术语

  • Planet · AgentMercury中把商业场景转化为包含服务、状态、规则的可执行世界的角色
  • 跨服务不变式(world-level invariant) · 整个世界应始终满足的跨服务规则,执行过程中不会被自动强制,而是事后被检验
  • GRPO / SAO · 用于训练策略模型的两种强化学习算法(组相对策略优化 / 单轮异步优化)
  • oracle通过率 · 衡量生成环境是否真正可执行的严格指标,要求同时通过全部12项结构验证器
  • 构建轨迹(construction trace) · 记录场景如何一步步被构建成可执行世界的中间数据,被用作训练模型学会搭建环境的监督信号

论文原文摘要(英文)

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.

作者 · Minbyul Jeong, Chanwoong Yoon

在 arXiv 阅读

最新论文

全部论文 →

METAL LAB 最新报道

图片来源: Minbyul Jeong et al., arXiv:2608.20634, CC BY-SA 4.0