Opera:面向长周期编程智能体的语言评论框架

·

研究论文 · 2026/10/10

长时程编程智能体需要及时纠正,但当反馈误判正在进行的工作或未能解决根本问题时,反馈可能无效甚至有害。现有批评者专注于评估轨迹和生成反馈,但很少追踪反馈交付后发生的情况。我们提出 Opera,一个言语批评框架,将每次纠正视为持续存在的笔记,并持续跟进直到所诊断的问题得到解决。Opera 通过周期性和事件驱动触发器决定何时审查,使用类型化操作符诊断问题,在交付前依据可见证据审核反馈,并追踪智能体后续行动以区分单纯服从与实际解决。作为测试时批评者,Opera 在 Terminal-Bench 2.1、SWE-Bench Pro 子集和 DeepSWE v1.1 上,跨四个策略模型,将非批评智能体的解决率分别提升最多 12.4、15.0 和 8.9 个百分点,并在所有三个基准上取得竞争性批评基线中最高的平均解决率,同时在策略模型自我批评时也能提升其表现。除推理外,Opera 引导的 rollout 提供近似同策略训练数据:在其上微调 Qwen3.5-9B,在留出的 SWE-Bench Pro 仓库上解决率提升 10.2 个百分点,且推理时无需批评者,与在更强模型 rollout 上微调的效果相当,同时在切换 harness(即从 Openhands 到 Terminus-2)时保持性能,而后者会显著降低性能。我们的代码见:https://github.com/dongyuanjushi/Opera。

该工作针对长时程编程智能体中反馈可能无效或有害的问题,提出持续跟进纠正的批评框架,并在多个基准上显著提升解决率,同时提供可训练数据,具有实用价值。

Long-horizon coding agents need timely corrections, yet feedback can be ineffective or even harmful when it misjudges ongoing work or fails to address the underlying problem. Existing critics focus on evaluating trajectories and generating feedback, but rarely track what happens after feedback is delivered. We present Opera, a verbal critic framework that treats each correction as a persistent note, followed until the diagnosed problem is resolved. Opera decides when to review through periodic and event-driven triggers, diagnoses issues with typed operators, audits feedback against visible evidence before delivery, and tracks the agent's subsequent actions to distinguish mere compliance from actual resolution. As a test-time critic, Opera improves the resolve rate of non-critic agents by up to 12.4, 15.0, and 8.9 percentage points on Terminal-Bench 2.1, a SWE-Bench Pro subset, and DeepSWE v1.1, respectively, across four policy models, and achieves the highest mean resolve rate among competitive critic baselines on all three benchmarks, and also improves policy models when the policy critiques itself. Beyond inference, Opera-guided rollouts provide approximately on-policy training data: fine-tuning Qwen3.5-9B on them improves its resolve rate on held-out SWE-Bench Pro repositories by 10.2 percentage points without a critic at inference time, matching fine-tuning on rollouts from a stronger model, while preserving its performance when switching harness, i.e., from Openhands to Terminus-2, which the latter substantially degrades. Our code is available at: https://github.com/dongyuanjushi/Opera.

阅读原文

参与讨论