编码智能体能否在不遗忘的情况下持续进化?

·

研究论文 · 2026/11/03

近期,harness自进化成为提升智能体性能的重要范式,已有研究表明进化智能体harness可在不修改基础模型参数的情况下有效增强能力。然而,现有方法大多在单一任务上研究智能体进化。实践中,编码智能体可能需要随时间处理多种任务类型。智能体harness能否在多个任务上持续进化而不遭受灾难性遗忘,仍是一个重要的开放问题。本文通过对持续harness自进化的全面实证研究来探究这一开放问题。我们将三个软件工程任务数据集组织成六个不同的进化方向,并应用两种代表性的harness进化方法沿这些方向进行持续进化。实验结果表明,在后续数据集上的进化会严重损害先前已见数据集上的性能。例如,使用DeepSeek-V4-Flash-0731,Meta-Harness在进化后将其在SWE-Bench上的性能提升至94.0%。然而,在FeatureBench上进一步进化后,其在SWE-Bench上的性能在第五轮时降至32.0%,相对下降66%。最后,基于实验发现,我们总结了几点见解,为智能体harness的持续自进化提供了方向。代码见https://github.com/THU-Agent/continual-harness-evolution。

该文首次实证揭示了编码智能体harness在持续进化中面临灾难性遗忘的严峻挑战,为多任务场景下的智能体进化提供了关键见解和未来研究方向,对相关领域的研究者和开发者具有重要参考价值。

Recently, harness self-evolution has emerged as an important paradigm for improving agent performance. Prior studies show that evolving the agent harness can effectively enhance agent capabilities without modifying the foundation model's parameters. We find that existing approaches largely study agent evolution on a single task. In practice, coding agents may need to handle multiple task types over time. Whether an agent harness can continuously evolve across multiple tasks without suffering from catastrophic forgetting remains an important open question. In this paper, we investigate this open question through a comprehensive empirical study of continual harness self-evolution. We organize three software engineering task datasets into six different evolution directions and apply two representative harness evolution methods to perform continual evolution along these directions. Our experimental results show that evolution on a subsequent dataset can substantially undermine the performance on previously seen datasets. For example, with DeepSeek-V4-Flash-0731, Meta-Harness improves its performance on SWE-Bench to 94.0% after evolution. However, after further evolution on FeatureBench, its performance on SWE-Bench drops to 32.0% by the fifth round, corresponding to a 66% relative decrease. Finally, based on our experimental findings, we identify several insights, providing directions for the continual self-evolution of agent harnesses. Code is available at https://github.com/THU-Agent/continual-harness-evolution.

阅读原文

参与讨论