谷歌发布EnvHarness:将静态Agent环境变为自适应训练场
Google AI Introduces EnvHarness: A Programmable Layer That Turns Static Agent Environments Into Adaptive Training Worlds
做Agent训练和评估的同学必看,EnvHarness用可编程包装层把静态环境变成自适应训练场,还附完整组件和开源代码,值得直接上手复现。
A team of researchers from Google Cloud AI Research, Washington University in St. Louis and UNC Chapel Hill has released EnvHarness, a programmable layer that turns a static agent benchmark into one that adapts to the policy training on it. LLM agents now learn less from curated text and more from interactive environments, but those environments are hand-built and frozen: they behave identically no matter which agent is acting or how much it has improved. The usual fix is to generate new environments, which pins you to domain-specific pipelines and LLM-written verifiers that have to be over-generated and filtered. EnvHarness inverts the move. It wraps an existing environment in plug-in components that operate strictly through the standard reset() / step() interface, changing where an episode starts, what the agent may do, and what it sees, while the underlying simulator, tasks, and human-built verifier stay untouched. An LLM designer called EnvRigger writes those wrappers automatically against flaws it diagnoses in the policy’s own rollouts. Across five benchmarks in four domains, skills mined this way gain up to 9.0 points on held-out tasks with 9.8% fewer execution steps.
来自谷歌云AI研究、圣路易斯华盛顿大学和北卡罗来纳大学教堂山分校的研究团队发布了EnvHarness,这是一个可编程层,能将静态的智能体基准测试转变为适应于在其上训练的策略的基准。LLM智能体现在更多地从交互式环境中学习,而非精心策划的文本,但这些环境是手工构建且固定的:无论哪个智能体在行动或它进步了多少,它们的行为都相同。通常的解决方法是生成新环境,但这会将你限制在特定领域的管道和必须过度生成并过滤的LLM编写的验证器上。EnvHarness反其道而行之。它通过插件组件包裹现有环境,这些组件严格通过标准的reset()/step()接口操作,改变情节开始的位置、智能体可以做什么以及它看到什么,而底层模拟器、任务和人工构建的验证器保持不变。一个名为EnvRigger的LLM设计器会根据其在策略自身回滚中诊断出的缺陷自动编写这些包装器。在四个领域的五个基准测试中,以这种方式挖掘的技能在保留任务上最多提升9.0分,且执行步骤减少9.8%。
Is it deployable?
它可以部署吗?
Yes, if you already run an agent eval loop. EnvHarness ships as Apache-2.0 Python with reproduction drivers for six environments. A new benchmark joins by implementing one interface (reset / step / observe / evaluate / get_env_state / save_state / from_state); nothing downstream changes. The hard prerequisite is a resettable environment, which rules out live user accounts and physical robots.
是的,如果你已经运行了一个智能体评估循环。EnvHarness以Apache-2.0许可的Python形式发布,并附带六个环境的复现驱动程序。新基准通过实现一个接口(reset / step / observe / evaluate / get_env_state / save_state / from_state)加入;下游无需任何更改。硬性前提是可重置的环境,这排除了实时用户账户和物理机器人。
https://arxiv.org/pdf/2608.19880
https://arxiv.org/pdf/2608.19880
Environments that stop teaching
停止教学的环境
LLM agents now learn less from curated text and more from interactive environments. Those environments are hand-built and static: they behave identically no matter which agent acts or how much it has improved, so they cannot target a policy’s weakness and have nothing left to teach once solved.
LLM智能体现在更多地从交互式环境中学习,而非精心策划的文本。这些环境是手工构建且静态的:无论哪个智能体在行动或它进步了多少,它们的行为都相同,因此它们无法针对策略的弱点,一旦解决就没有什么可教的了。
The usual answer is generating more environments. The EnvHarness paper names two costs: generation pipelines are domain-specific and do not transfer, and LLM-written verifiers must be over-generated and heavily filtered without ever being fully trustworthy.
通常的答案是生成更多环境。EnvHarness论文指出了两个成本:生成管道是特定领域的,不能转移;LLM编写的验证器必须过度生成并大量过滤,但永远无法完全可信。
Wrapping, not authoring
包装,而非创作
The research team proposes the opposite move. An agent harness makes a frozen LLM capable through plug-in tools, memory and skills. EnvHarness applies that idea to the other side of the loop, wrapping a frozen environment in plug-in components that operate strictly through the standard reset() / step() interface.
研究团队提出了相反的做法。一个代理工具集使冻结的LLM通过插件工具、记忆和技能变得有能力。EnvHarness将这一想法应用于循环的另一侧,将冻结的环境包裹在插件组件中,这些组件严格通过标准的reset() / step()接口操作。
Formally, a component is a transformation E' = w(E) that rewrites the state, action, observation and transition terms. The reward term is deliberately left out. Because no intervention reaches the simulator backend, every reshaped task keeps its original, human-built verifier, and because nothing touches benchmark-specific code, one implementation covers every domain.
形式上,组件是一个变换 E' = w(E),它重写状态、动作、观察和转移项。奖励项被有意排除在外。因为没有干预到达模拟器后端,每个重塑的任务都保留其原始的人工构建的验证器,并且因为没有触及特定于基准的代码,一个实现覆盖所有领域。
Three components ship, and they compose freely:
三个组件随附,它们可以自由组合:
- Stage replays a fixed action list after reset(), so the episode starts somewhere else. Hiding the target mug in a closed drawer forces search instead of reach.
- Contract installs per-step hooks on the action, transition and observation axes: block an action, rewrite a response, truncate an observation.
- Chain composes a second environment into the same episode under a shared step budget, with the composite verdict being the conjunction of both verifiers.
- Stage在reset()后重放一个固定的动作列表,因此情节从其他地方开始。将目标杯子藏在关闭的抽屉中迫使搜索而非伸手可及。
- Contract在动作、转移和观察轴上安装每步钩子:阻止一个动作,重写一个响应,截断一个观察。
- Chain将第二个环境组合到同一情节中,共享步骤预算,复合判定是两个验证器的合取。
EnvRigger: the designer loop
EnvRigger:设计者循环
Components are policy-agnostic; choosing them is not. EnvRigger treats the policy as a black box and runs four stages: it observes five baseline rollouts, diagnoses a systemic flaw, writes components as real Python, and validates on five fresh rollouts. Unsolvable and trivially solvable candidates are both rejected, with up to five revision rounds per task. Generated hooks compile in an isolated subprocess, so a bad mutation becomes a recorded trace rather than a dead run.
组件与策略无关;选择它们则不然。EnvRigger将策略视为黑盒,运行四个阶段:观察五次基线回放,诊断系统性缺陷,将组件编写为真实Python,并在五次新回放上验证。无法解决和琐碎可解决的候选都被拒绝,每个任务最多进行五轮修订。生成的钩子在隔离的子进程中编译,因此不良突变成为记录轨迹而非死运行。
Performance
性能
Across ALFWorld, WebArena, SWE-bench Verified, OfficeQA and SpreadsheetBench, skills mined with ReasoningBank-style induction beat both controls on untouched held-out tasks.
在ALFWorld、WebArena、SWE-bench Verified、OfficeQA和SpreadsheetBench上,使用ReasoningBank风格归纳挖掘的技能在未触及的保留任务上击败了两个对照组。
ALFWorld average rises from 62.4 to 68.3 against original-environment skills, with +9.0 points on the out-of-distribution split. SWE-bench Verified resolved rate moves 49.88 → 52.58 while average steps fall 55.01 → 49.61, the paper’s 9.8% efficiency claim. On SpreadsheetBench and WebArena, skills from unmodified environments land below the no-skill baseline; reshaping is what makes mining worthwhile. Against domain-specific generators, EnvHarness beats SWE-smith by 2.46 points with 5.11 fewer steps.
ALFWorld平均分从62.4升至68.3,相对于原始环境技能,分布外分割上提升+9.0分。SWE-bench Verified解决率从49.88升至52.58,而平均步骤从55.01降至49.61,这是论文中9.8%效率提升的声明。在SpreadsheetBench和WebArena上,来自未修改环境的技能低于无技能基线;重塑使挖掘变得有价值。与领域特定生成器相比,EnvHarness以5.11个更少的步骤击败SWE-smith 2.46分。
Under GRPO on Qwen3-8B-base, RL in reshaped environments beats RL in the originals on three of four metrics (ALFWorld in-distribution 81.4 → 87.9), with a small regression on the OOD split (89.6 → 88.8). Environment scaling reaches 54.79 at 300 environments versus 52.13 for originals and 50.37 for generated ones, because the designer co-evolves each batch against the current policy. And asked to steer per-task success rate into [0.4, 0.6], in-band coverage rises from 6% to 80%.
在Qwen3-8B-base上的GRPO下,重塑环境中的强化学习在四项指标中的三项上优于原始环境(ALFWorld分布内81.4→87.9),在OOD分割上略有下降(89.6→88.8)。环境扩展在300个环境时达到54.79,而原始环境为52.13,生成环境为50.37,因为设计者会根据当前策略共同演化每一批环境。当被要求将每任务成功率引导至[0.4, 0.6]区间时,带内覆盖率从6%提升至80%。
Key Takeaways
关键要点
- EnvHarness wraps frozen environments through reset()/step() only, so verifiers stay human-built.
- Three components — Stage, Contract, Chain — cover start state, interaction rules, and episode composition.
- EnvRigger diagnoses policy flaws from rollouts and writes targeted wrappers, validating on fresh rollouts.
- Gains hold across five benchmarks: +9.0 points OOD on ALFWorld, 9.8% fewer steps on SWE-bench Verified.
- Apache-2.0 code is live; the cost is designer tokens and a hard requirement for resettable environments.
- EnvHarness仅通过reset()/step()包装冻结环境,因此验证器保持人工构建。
- 三个组件——Stage、Contract、Chain——覆盖起始状态、交互规则和回合组成。
- EnvRigger从回放中诊断策略缺陷并编写有针对性的包装器,在新回放上验证。
- 收益在五个基准上保持一致:ALFWorld上OOD提升+9.0分,SWE-bench Verified上步骤减少9.8%。
- Apache-2.0代码已上线;成本是设计者令牌和对可重置环境的硬性要求。
Check out the Paper, GitHub Repo and Project Page. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
查看论文、GitHub仓库和项目页面。此外,欢迎在Twitter上关注我们,别忘了加入我们的150k+ML SubReddit并订阅我们的通讯。等等!你在Telegram上吗?现在你也可以在Telegram上加入我们。
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us
需要与我们合作推广你的GitHub仓库或Hugging Face页面或产品发布或网络研讨会等吗?联系我们
The post Google AI Introduces EnvHarness: A Programmable Layer That Turns Static Agent Environments Into Adaptive Training Worlds appeared first on MarkTechPost.
这篇帖子《Google AI推出EnvHarness:将静态代理环境转变为自适应训练世界的可编程层》首次出现在MarkTechPost上。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力