GraphSkillEvo:图结构智能体技能的进化优化
研究论文 · 2026/09/21
技能可以通过提供任务特定的程序性指导来提升大语言模型(LLM)智能体的性能,而技能优化则通过迭代改进进一步提升其效果。然而,现有技能优化方法通常将技能表示为非结构化的自然语言指令,带来两个关键挑战:1)非结构化技能往往缺乏明确的工作流级指导且包含大量冗余,使LLM难以执行;2)无约束自然语言技能的庞大搜索空间使技能优化效果不佳。为解决这些挑战,我们提出将技能表示为图结构化的自然语言产物。在图结构化技能中,每个节点表示一个执行步骤及其操作指导,有向边编码步骤之间依赖上下文的转移。与非结构化技能相比,图结构化技能能够提供清晰的工作流级指导。此外,所提出的图结构化技能还能促进技能优化。基于这种结构化表示,我们提出GraphSkillEvo,一种基于种群的进化优化框架,为图结构化技能配备变异和交叉算子。通过维护多个候选技能并组合有效组件,GraphSkillEvo能够比纯基于LLM的迭代自我改进更广泛、更全面地探索结构化技能空间。在五个智能体基准上的大量实验表明,GraphSkillEvo持续优于强技能优化基线SkillOpt,在GPT-5.4-nano上平均准确率提升4.01%,在GPT-5.4上提升1.76%。我们的代码见https://github.com/ruisun7/GraphSkillEvo。
该工作针对LLM智能体技能优化中非结构化表示导致的执行困难和搜索空间过大问题,提出图结构化技能表示与基于种群的进化优化框架,在多个基准上取得一致提升,为技能优化提供了结构化、可进化的新思路。
Skills can improve the performance of Large Language Model (LLM) agents by providing task-specific procedural guidance, while skill optimization further improves their effectiveness through iterative refinement. However, existing skill optimization methods typically represent skills as unstructured natural-language instructions, creating two key challenges: 1) Unstructured skills often lack explicit workflow-level guidance and contain substantial redundancy, making them difficult for LLMs to execute; 2) the vast search space of unconstrained natural-language skills makes skill optimization ineffective. To address these challenges, we propose representing skills as graph-structured natural-language artifacts. In graph-structured skills, each node represents an execution step together with its operational guidance, while directed edges encode context-dependent transitions between steps. Compared to unstructured skills, graph-structured skills can provide clear workflow-level guidance. Moreover, the proposed graph-structured skill can also facilitate skill optimization. Building on this structured representation, we introduce GraphSkillEvo, a population-based evolutionary optimization framework with mutation and crossover operators for graph-structured skills. By maintaining multiple candidate skills and combining effective components, GraphSkillEvo enables broader and more comprehensive exploration of the structured skill space than purely LLM-based iterative self-refinement. Extensive experiments across five agent benchmarks demonstrate that GraphSkillEvo consistently outperforms the strong skill optimization baseline SkillOpt, improving average accuracy by 4.01% on GPT-5.4-nano and 1.76% on GPT-5.4. Our code is available at https://github.com/ruisun7/GraphSkillEvo.