DUET:评测者一起进化
被优化的东西在变,评价它的标准就会过时。
主流 agent 优化方法都把评测者当成常量:用它的分数去改 agent,自己却一动不动。DUET 指出这个假设会随 agent 变强而失效——弱 agent 的失败很显眼,强 agent 的错藏在看起来合理的产物里。于是它把评测者本身也变成优化目标,让两者轮流进化。
Most agent-optimisation methods treat the evaluator as a constant: its scores update the agent, while the evaluator itself never moves. DUET points out that this assumption decays as the agent improves — a weak agent fails visibly, a strong one fails inside plausible-looking artifacts. So it makes the grader an optimisation target too, and lets the two evolve in turns.
问题:评测者被当成常量
Problem: the grader treated as a constant
GEPA、SkillOpt 这类方法共用同一套流程:执行 agent、评测输出、用分数或评语更新 agent 组件。论文把执行任务的叫 solver,把评测它的叫 grader,并指出整个循环的效果直接取决于 grader 反馈的质量。
Methods such as GEPA and SkillOpt share one loop: run the agent, evaluate the output, update the agent components using the scores or critiques. The paper calls the task-performing side the solver and the evaluating side the grader, and notes that the loop's effectiveness depends directly on the quality of the grader's feedback.
缺口不是「grader 不够准」,而是grader 被当成静止的。这个假设在 solver 变强之后就不成立了:弱 solver 的失败显而易见,强 solver 会产出看起来合理、需要细看才发现错误的结果。原有 grader 捕捉不到这些新失败模式与更细的质量差异,反馈的信息量随之下降。开放式任务尤其严重——多条执行路径都可能有效,质量取决于完整的执行过程与产物,而不是单一参考答案。
The gap is not that the grader is inaccurate; it is that the grader is treated as static. That assumption breaks as the solver improves: a weak solver fails obviously, while a strong one produces results that look reasonable and only reveal their errors on closer inspection. The original grader misses those new failure modes and finer quality differences, so its feedback carries less information. This bites hardest on open-ended tasks, where several execution paths can be valid and quality depends on the full process and artifacts rather than a single reference answer.
于是两个问题互相耦合:agent 该怎么进化,以及在 agent 不断进化时该怎么评测它。论文的答案是让两者一起进化——评测从固定的反馈源,变成一等优化目标。
So two questions couple: how should the agent evolve, and how should we evaluate an agent that keeps evolving? The answer here is to evolve both — evaluation stops being a fixed feedback source and becomes a first-class optimisation target.
方法:三步闭环与三条纪律
Method: a three-step loop and three rules
形式化很克制:只优化 solver 的组件 θ 与 grader 的组件 φ(系统提示、技能库,或两者),底层模型、工具与执行环境全部冻结。训练不使用参考答案或真值标签;单独的标注验证集只用于 checkpoint 选择与早停。
The formal setup is deliberately narrow: only the solver's component θ and the grader's component φ are optimised (a system prompt, a skill library, or both), while the underlying models, tools and environments stay frozen. Training uses no reference answers and no ground-truth labels; a separate labelled validation set is used only for checkpoint selection and early stopping.
| 设计要素 | Design element | 怎么做 | How it works | 为什么 | Why |
|---|---|---|---|---|---|
| 自适应选任务 | Adaptive task selection | 用同一任务相邻两次评测的分数差 r 等于 s(k) 减 s(k−1) 的绝对值衡量训练价值,在滑动窗口内取均值,再叠加 SW-UCB 的探索项挑批;热身阶段先用轮询保证每个任务跑过两次。 | Training value is measured by the score change between two consecutive runs of the same task — the absolute difference of s(k) and s(k−1) — averaged over a sliding window and combined with a SW-UCB exploration term; a round-robin warm-up runs every task twice first. | 分数还在变意味着任务还在暴露新的 solver 行为或 grader 弱点;分数稳定说明它已饱和或当前太难。 | A score that still moves means the task is still exposing new solver behaviour or grader weaknesses; a stable score means it is saturated or currently too hard. |
| 交替更新 | Alternating updates | 奇数轮只改 grader,偶数轮只改 solver。 | Only the grader changes on odd rounds, only the solver on even rounds. | 同时改两边会同时改变求解行为和评测策略,无法判断是谁带来的变化。 | Changing both at once alters both the solving behaviour and the evaluation policy, so the cause of any change becomes unattributable. |
| 有界更新 | Bounded update | 把编辑预算当文本学习率,限制单次修订的离散改动条数,并随轮次余弦递减(4 降到 2)。更新 agent 被要求只做证据支持的最小修订,并避免任务专属规则。 | An edit budget acts as a textual learning rate, capping discrete changes per revision and decaying on a cosine schedule (4 down to 2). The update agent is asked to make the smallest evidence-supported revision and to avoid task-specific rules. | 早期允许大改以探索新机制,后期只允许可归因的细修,避免过拟合到单个任务。 | Broad changes early allow exploration, while late rounds only permit attributable refinements, limiting overfitting to individual tasks. |
更新模块本身也是一个会用工具的 agent:它读本轮证据与全部历史,被要求先核对 grader 的反馈与执行产物是否一致,然后才提出修订。论文还让它检索网页上的相关实践——这是全文最不可复现的一环,后文会展开。
The update module is itself a tool-using agent: it reads the round evidence and the full history, is asked to verify the grader's feedback against the execution artifacts first, and only then proposes a revision. The paper also has it search the web for relevant current practices — the least reproducible element in the whole pipeline, revisited below.
实验设置:四个 benchmark
Setup: four benchmarks
四个 benchmark 横跨表格操作、经济价值任务、多轮客服与检索增强问答。它们的指标语义各不相同,因此不能横向比较绝对值。
The four benchmarks span spreadsheet manipulation, economically valuable tasks, multi-turn customer service and retrieval-augmented QA. Their metrics mean different things, so absolute values are not comparable across them.
| Benchmark | 规模与划分 | Size and split | 任务类型 | Task type | 指标 | Metric |
|---|---|---|---|---|---|---|
| SpreadsheetBench Verified | 400 题(275 单元格级、125 工作表级);60 训练 / 20 验证 / 320 测试 | 400 tasks (275 cell-level, 125 sheet-level); 60 train / 20 val / 320 test | 按自然语言指令修改真实 Excel 工作簿 | Editing real Excel workbooks from natural-language instructions | 任务准确率(所有被评单元格一致) | Task accuracy (all evaluated cells match) |
| GDPval | 参考交付物含 Excel 的全部 60 题 | All 60 tasks whose reference deliverable includes an Excel workbook | 经济价值任务 | Economically valuable tasks | 与人类金标准交付物的成对胜率 | Pairwise win rate against the human gold deliverable |
| τ²-Bench | 150 题(航空、零售、电信) | 150 tasks (airline, retail, telecom) | 有状态环境中的多轮客服,模拟用户与领域工具 | Multi-turn customer service in a stateful environment with a simulated user | 成功率 | Success rate |
| Finance Agent Benchmark | 126 题 | 126 tasks | 需要检索与引用的长文本金融问答 | Long-form financial QA requiring retrieval and citations | 七个 rubric 维度的评委均分 | Mean judge score over seven rubric dimensions |
默认 solver 与 grader 都用 Claude Opus 4.8,跑 3 个随机种子;更新模块基于 GitHub Copilot CLI。超参按 benchmark 规模启发式选取:批大小 8 / 4 / 8 / 8,SW-UCB 窗口 20 / 8 / 10 / 10,最大轮数 50 / 40 / 30 / 30,探索系数 0.01,停等耐心 10 轮。全部实验在一台 Azure VM 上完成(8 物理核、64 GB 内存、Windows 11,表格实验依赖本地 Excel),金融 benchmark 跑一次约 15 小时。
Both the solver and the grader default to Claude Opus 4.8 across 3 random seeds, with the update module running on GitHub Copilot CLI. Hyperparameters are chosen heuristically per benchmark: batch size 8 / 4 / 8 / 8, SW-UCB window 20 / 8 / 10 / 10, maximum rounds 50 / 40 / 30 / 30, exploration coefficient 0.01 and stopping patience 10 rounds. Everything runs on a single Azure VM (8 physical cores, 64 GB RAM, Windows 11, with a local Excel install for the spreadsheet work); one finance run takes roughly 15 hours.
grader 的评测方式是成对一致率:grader 独立给两个输出打分,偏向参考更优的输出得 1 分,平局 0.5 分,反向 0 分。评测集这样构造——Finance 与 GDPval 先用 Claude Opus 4.8 为每题生成多个候选,再用 benchmark 参考评测器确定相对质量,保留偏好可靠的对并进一步挑出「表面线索偏向较差输出」的难例;τ² 与 Spreadsheet 的原生评测器只给二值结果,就用不同模型各生成一个输出,保留一对一错的对。
Grader performance is measured by pairwise agreement: the grader scores each output independently and earns 1 for preferring the reference-preferred output, 0.5 for a tie and 0 for an inversion. The evaluation sets are built accordingly — for Finance and GDPval, multiple candidates are generated per task and ranked by the benchmark reference evaluator, keeping only reliable preferences and further selecting cases where surface cues favour the worse output; for τ² and Spreadsheet, whose native evaluators are binary, one output per task is generated by a different model so each pair has exactly one correct answer.
主结果:solver 在四个 benchmark 上都最强
Results: the strongest solver on all four benchmarks
起点是空提示的 solver 与 grader——也就是说,DUET 从一个没有任何领域知识的评测者开始优化。
The starting point is an empty-prompt solver and grader — DUET begins with an evaluator that has no domain knowledge at all.
| 方法 | Method | Finance | τ²-Bench | GDPval | SpreadsheetBench |
|---|---|---|---|---|---|
| 未优化起点 | Unoptimised A0 | 92.8 | 80.3 | 47.6 | 72.6 |
| SkillOpt | 94.0 | 84.7 | 48.8 | 81.6 | |
| GEPA | 94.4 | 83.3 | 50.7 | 82.8 | |
| DUET | 96.5 | 89.4 | 52.2 | 84.7 | |
| SkillOpt(参考评测器) | 95.7 | 83.9 | 47.1 | 83.4 | |
| GEPA(参考评测器) | 95.9 | 82.0 | 50.7 | 83.0 | |
| DUET(参考评测器) | 96.0 | 86.1 | 54.9 | 84.7 |
表里有个容易被读错的地方。参考无关的 DUET 在 Finance(96.5)与 τ²-Bench(89.4)上超过了使用 benchmark 参考评测器的基线(95.7 与 95.9、83.9 与 82.0),这正是作者强调的点。但它在 GDPval 上低于自己的 oracle 变体(52.2 对 54.9),在 SpreadsheetBench 上与 oracle 变体打平。所以准确的表述是「参考无关的共同进化不逊于使用参考评测器的基线」,而不是「参考无关总是更好」。
One row is easy to misread. Reference-free DUET beats the baselines that use the benchmark reference evaluator on Finance (96.5 against 95.7 and 95.9) and τ²-Bench (89.4 against 83.9 and 82.0) — the point the authors emphasise. But it sits below its own oracle variant on GDPval (52.2 against 54.9) and ties it on SpreadsheetBench. The accurate reading is that reference-free co-evolution is no worse than baselines given a reference evaluator, not that reference-free is always better.
另外两项属性值得记下:把优化目标从系统提示扩展到提示与技能库之后,τ²-Bench 上进一步提升到 91.9(仅提示时为 89.4);换成 Claude Sonnet 4.6 后 Finance 上从 89.6 升到 91.3,结论方向不变。
Two further properties are worth noting. Extending the optimisable target from the system prompt to prompt plus skill library lifts τ²-Bench to 91.9 (from 89.4 with prompt only). And on Claude Sonnet 4.6 the Finance score rises from 89.6 to 91.3, so the direction survives a model swap.
评测者真的变好了吗
Did the grader actually improve
这是全文最需要仔细读的一节。grader 的成对一致率在四个 benchmark 上的变化是这样的:
This is the section that most rewards careful reading. Here is how grader pairwise agreement moves across the four benchmarks:
作者自己给出了解释,而且解释是合理的:τ²-Bench 与 SpreadsheetBench 的原生评测器只给二值成败,因此只能构造「一对一错」的偏好对,初始 grader 已经能识别这类粗粒度差异,真正能体现判断力提升的细分比较根本没有出现在评测集里。反过来说也成立——「共同进化能显著提升评测者」这一结论,目前只在两个 benchmark 上被验证。
The authors offer an explanation, and it holds up: the native evaluators for τ²-Bench and SpreadsheetBench return only binary success or failure, so the only pairs available are one-correct-one-wrong — a difference the initial grader already recognises. The subtler comparisons that would reveal better judgement never appear in those evaluation sets. The converse also holds: the claim that co-evolution materially improves the evaluator is currently verified on two benchmarks, not four.
消融:三组对照
Ablations: three controls
三组消融都在 Finance Agent Benchmark 上做,方向一致,而且都指向同一个结论:收益主要来自 grader 侧(67.9 升到 75.0),solver 侧的差异反而很小。
All three ablations run on Finance Agent Benchmark. They point the same way, and toward the same conclusion: most of the movement is on the grader side (67.9 up to 75.0), while the solver differences stay small.
还有一个容易被忽略的细节:第一组消融里,「先优化 grader 再冻结、然后优化 solver」这种顺序式做法已经拿到了大部分 solver 收益(95.7,对比交替的 96.5),交替带来的增量主要体现在 grader 侧(68.8 到 75.0)。正文没有对这个差别展开。
One easily missed detail: in the first ablation, the sequential scheme — optimise the grader first, freeze it, then optimise the solver — already captures most of the solver gain (95.7 against 96.5 for alternation). What alternation adds shows up mainly on the grader side (68.8 to 75.0), a difference the text does not unpack.
批判性评估
Critical assessment
DUET 的贡献不是又一种提示优化技巧,而是把一句工程直觉落成了可执行流程:当被优化的对象在变,评价它的标准也会过时。
DUET's contribution is not another prompt-optimisation trick. It is taking an engineering intuition and making it executable: when the thing being optimised keeps changing, the standard that scores it goes stale.
一句话:把评测者放进优化循环,用两条纪律守住它——每轮只改一边以便归因,只做证据支持的最小修订以便不跑偏;但要自己算一遍优化成本,因为论文没算。 In one line: put the evaluator inside the optimisation loop and hold it with two rules — change one side per round so effects stay attributable, and make only the smallest evidence-supported revision so it does not drift; then do the cost arithmetic yourself, because the paper does not.