Task-CoEvolve:通过自适应验证任务选择实现高效的工具优化
观点分析 · 2026/08/25
我们提出了一种通过自适应验证任务选择来高效优化LLM harness的新方法。Harness优化通过基于验证性能迭代重写harness代码,在不更新模型权重的情况下实现显著的性能提升。然而,现有方法在每次迭代时都会完整评估固定的验证集,即使在harness演化过程中某些任务变得不那么有区分度,也会产生高昂的评估成本。我们提出了Task-CoEvolve,通过解决两个挑战来协同演化验证任务与harness:选择信息量大的任务以及从部分评估中估计完整集性能。Task-CoEvolve基于一个观察:候选harness意见不一致的任务比那些一致解决或失败的任务更能区分它们。它使用基于过去结果的方差加权采样,将评估集中在能力边界附近的任务上,采样分布随harness演化而调整。然后,它通过考虑采样概率从采样任务中估计完整集分数,从而在评估不同子集的情况下实现跨迭代的一致比较。在在线文本分类和Terminal-Bench 2.1上的实验表明,Task-CoEvolve始终优于基于子集的基线,并匹配完整集搜索的最终性能,同时将优化过程中的评估次数减少了80%。代码将在https://github.com/Agent4Science-UTokyo/Task-CoEvolve发布。
该论文提出了一种新颖的harness优化方法,通过自适应选择验证任务显著降低评估成本,同时保持性能,具有实际应用价值。
We present a novel approach to efficient LLM harness optimization through adaptive validation task selection. Harness optimization iteratively rewrites the harness code based on validation performance, enabling substantial performance gains without updating the underlying model weights. Existing approaches, however, evaluate a fixed validation set in full at every iteration, incurring substantial evaluation costs even on tasks that become less discriminative as the harness evolves. We propose Task-CoEvolve, which co-evolves the validation tasks with the harness by addressing two challenges: selecting informative tasks and estimating full-set performance from partial evaluations. Task-CoEvolve builds on the observation that tasks on which candidate harnesses disagree are more informative for distinguishing among them than tasks that are consistently solved or failed. It uses variance-weighted sampling based on past outcomes to focus evaluation on tasks near the capability frontier, with the sampling distribution adapting as the harness evolves. It then estimates full-set scores from the sampled tasks by accounting for their sampling probabilities, enabling consistent comparisons across iterations despite evaluating different subsets. Experiments on online text classification and Terminal-Bench 2.1 show that Task-CoEvolve consistently outperforms subset-based baselines and matches the final performance of full-set search while reducing the number of evaluations during optimization by 80%. Code will be released at https://github.com/Agent4Science-UTokyo/Task-CoEvolve.