arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.35616cs.CL
收藏

编码智能体的分层技能演化

Hierarchical Skill Evolution for Coding Agent

Jun Gao, Yun Peng, Changhai Zhou, Yuhan Zhu, Xiangyu Zeng, Shiyang Zhang Yuhua Zhou, Luozheng Qin, Qian Qiao, Xiaoteng Ma, Baian Chen Weiyi Shang, Zhen Ming Jac… 展开作者

Jun Gao, Yun Peng, Changhai Zhou, Yuhan Zhu, Xiangyu Zeng, Shiyang Zhang Yuhua Zhou, Luozheng Qin, Qian Qiao, Xiaoteng Ma, Baian Chen Weiyi Shang, Zhen Ming Jack Jiang, Lizhi Liao, Xiaoxue Ren

AI总结:

提出分层技能演化(HSE)方法,通过分层证据聚合提炼编码技能,在SWE-bench等基准上验证其可跨场景迁移并提升编码智能体性能。

摘要:

技能为智能体提供可复用的经验,用于指导未来决策而无需修改底层模型。然而,编码轨迹常与任务及仓库特定上下文纠缠,难以提炼出可在多样编码环境中泛化的过程性技能。为解决此问题,我们提出分层技能演化(Hierarchical Skill Evolution, HSE),其通过分层证据聚合逐步从编码轨迹中提炼过程性知识。HSE首先从单个轨迹中提取任务级证据,接着在同一仓库内聚合重复出现的证据,形成仓库特定的技能候选,最终跨仓库整合一致模式,得到可在各仓库间迁移的技能。该演化由外部写者-评估者循环驱动,该循环生成并评估技能,同时保持底层编码模型冻结;循环从外部更新写者与评估者策略,以改进后续技能生成与评估。此分层结构逐步过滤任务特定细节,同时保留可在多样编码环境中泛化的过程。成功轨迹为未来任务提供可复用指导,失败轨迹则揭示重复出现的失败模式,指导规避与恢复。我们在SWE-bench Verified和DeepSWE上评估HSE,使用GLM-5.2搭配Pi和Claude Code harness,以及GPT-5.5和Opus 4.8搭配Pi。在两个基准上,仅从SWE-Gym演化出的10项技能可在所有评估设置中提升编码性能,证明其可跨基准、编码模型和智能体harness迁移。我们进一步从目标基准轨迹演化技能库,无需验证器反馈,仅依赖学习到的评估器进行候选评估,通过基准定制技能实现额外性能提升。

英文摘要:

Skills provide agents with reusable experience to guide future decisions without modifying the underlying model. However, coding trajectories are often entangled with task- and repository-specific contexts, making it challenging to distill procedural skills that generalize across diverse coding environments. To address this challenge, we present Hierarchical Skill Evolution (HSE), which progressively distills procedural knowledge from coding trajectories through hierarchical evidence aggregation. HSE first extracts task-level evidence from individual trajectories, then aggregates recurring evidence within the same repository to form repository-specific skill candidates, and finally consolidates consistent patterns across repositories into transferable skills across repositories. The evolution is driven by an external writer-evaluator loop that generates and assesses skills while keeping the underlying coding model frozen. The loop externally updates the writer and evaluator policies to improve subsequent skill generation and assessment. This hierarchy progressively filters task-specific details while preserving procedures that generalize across diverse coding environments. Successful trajectories yield reusable guidance for future tasks, while failed trajectories reveal recurring failure modes that guide avoidance and recovery. We evaluate HSE on SWE-bench Verified and DeepSWE, using GLM-5.2 across Pi and Claude Code harnesses and GPT-5.5 and Opus 4.8 with Pi. Across both benchmarks, 10 skills evolved solely from SWE-Gym improve coding performance across all evaluated settings, demonstrating transfer across benchmarks, coding models, and agent harnesses. We further evolve the skill library from target-benchmark trajectories without verifier feedback, relying solely on the learned evaluator for candidate assessment and achieving additional gains through benchmark-tailored skills.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑