让大模型在一次任务中快速提炼通用技能,持续自我进化。
Evo-Harness: Context-to-Harness Skill Compilation for Self-Evolving Agents

- 将单次任务的混乱经验提炼为可复用的结构化技能模块。
- 在5个真实场景基准上验证,显著提升模型跨任务适应能力。
- 适合研究自进化AI Agent、在线学习与技能迁移的学者。
学习经验对构建具备自我改进能力的大语言模型(LLM)智能体至关重要。现有方法通常通过反思、记忆、规则或技能从积累的轨迹中提取知识。然而,在现实环境中,智能体持续面临新任务,往往仅有一次机会改进。这些执行产生丰富但高度嘈杂的上下文,将通用经验与任务特定的干扰混杂在一起。关键问题是,先前工作很少在复杂真实任务上验证其有效性,也未能分离出改进的根本驱动因素。为此,我们提出在线钩子学习(online harness learning),即冻结的智能体通过在连续任务中不断更新结构化钩子来实现自我提升。该范式使我们能系统研究自改进的关键因素,并通过提出的Evo-Harness实现。核心在于‘上下文到钩子’的技能编译,将噪声大的单次执行提炼为可用于跨领域和主题级适应的可复用技能钩子。为验证单次技能编译的有效性,我们在五个真实基准(TerminalBench2, SWE-bench, CL-Bench, -bench, WebArena-Infinity)上进行评估。大量分析表明Evo-Harness有效,并提供了大模型智能体如何实时高效学习的原理性理解。代码已开源。
原文摘要 · Abstract (English)
Learning from experience is critical for developing capable, self-improving large language model (LLM) agents. Existing methods typically extract knowledge from accumulated trajectories via reflection, memory, rules, or skills. However, agents in realistic environments continuously encounter novel tasks, often offering only a one-shot opportunity to improve. These executions yield rich but highly noisy contexts, entangling broadly useful lessons with task-specific artifacts. Critically, prior works rarely validate their effectiveness on complex real-world tasks or isolate the underlying drivers of improvement. To address these gaps, we formulate online harness learning, where a frozen agent improves by continually updating a structured harness across sequential tasks. This formulation enables a systematic study of key self-improvement factors through our proposed Evo-Harness. At its core, context-to-harness skill compilation distills noisy, single-shot executions into reusable skill harnesses for cross-domain and topic-level adaptation. To demonstrate the efficacy of one-shot skill compilation, we evaluate across five realistic benchmarks (TerminalBench2, SWE-bench, CL-Bench, -bench, WebArena-Infinity). Our extensive analysis demonstrates the effectiveness of Evo-Harness and provides a principled understanding of how LLM agents can effectively learn on the fly. Our code is available at https://github.com/A-EVO-Lab/a-evolve/tree/release/evo-harness.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。