EnvHarness:唤醒静态世界以促进智能体学习
研究论文 · 2026/08/21
EnvHarness 是一种可编程的插件层,通过包装静态环境来重塑其行为,无需修改底层逻辑,从而为 LLM 智能体提供动态、自适应的训练环境。EnvRigger 组件通过观察目标策略的执行轨迹,诊断其缺陷并合成新的环境组件,并通过新的回滚验证。在四个领域的五个基准测试中,EnvHarness 在保留原始验证器的同时,显著提升了智能体的性能,最高提升 9.0 分,且执行步骤减少 9.8%,并为强化学习提供了更优的优化信号,支持策略与环境的持续协同进化。
本文提出了一种新颖的环境生成方法,解决了现有静态环境无法适应智能体学习需求的问题,具有广泛的适用性和显著的性能提升,对 LLM 智能体训练和强化学习领域有重要价值。
LLM agents learn by interacting with environments, yet these environments are hand-built and static: blind to an agent's weaknesses, and quickly left behind as it improves. While recent environment generation methods attempt to address this, they require domain-specific pipelines, rely on expensive or unreliable verifiers, and still produce static environments. To alleviate the engineering burden of rebuilding environments from scratch, we propose Environment Harness (EnvHarness), a programmable layer of plug-in components that wraps a static environment to reshape its behavior without modifying the underlying logic. Operating through standard interfaces, EnvHarness applies across diverse domains while ensuring every reshaped environment retains its original verifier. To automate this process, we introduce EnvRigger, which treats the target policy as a black box, observing its execution trajectories to synthesize EnvHarness components targeting diagnosed flaws, and validating them via fresh rollouts. Across five benchmarks in four domains, EnvHarness outperforms both original environments and domain-specific environment generation pipelines, achieving up to a 9.0-point improvement on held-out instances with 9.8% fewer execution steps. Furthermore, EnvHarness provides a superior optimization signal for reinforcement learning, enabling continuous, targeted co-evolution of the policy and its environment.