揭秘智能体技能:为何有效,又为何失效

·

研究论文 · 2026/08/19

技能作为一种在推理时通过结构化知识包增强LLM代理的实用方法已显示出有效性,但现有评估主要关注聚合任务成功率,忽略了技能何时有效、为何有效以及何处失效的问题。通过跨多个基准、代理框架和LLM的受控实验,我们隔离了表示、结果标注、检索难度和跨框架鲁棒性的影响。结合定量实验与配对轨迹分析的对比研究,我们规范了8,135条试验记录,并从240条开放编码记录中保留了238个有效唯一标签,将观察结果归纳为三个高层次类别和十二种技能使用模式。研究发现,技能在嘈杂轨迹成为稳定执行的过程锚时有效;在匹配比较中,技能比工作流记忆提高6.06分;过程锚定占技能案例的65.7%,而显式知识注入仅占4.5%,表明技能主要稳定行动而非注入缺失事实。检索是独立瓶颈:当池从5增至100时,实际使用精度从29.6%降至3.3%。混淆干扰物损害离线识别,但下游成功保持稳定;精确的真实调用既不充分也非必要。技能在脆弱假设、不兼容上下文或适应不足时失效。这些发现将评估推进到聚合成功率之外,并指导可靠的自我进化代理。

该研究通过严谨的受控实验和对比分析,深入剖析了技能在LLM代理中的工作机制与失效条件,提供了超越聚合成功率的细致评估,对理解和改进技能方法具有重要指导意义。

Skills have emerged as a practical and effective approach for enhancing LLM agents at inference time through structured packages of knowledge. However, existing evaluations largely measure whether skills improve aggregated task success, leaving a more fundamental question underexplored: \textbf{When do skills help, why do they work, and where do they fail?} Through controlled experiments across various benchmarks, agent harnesses and LLMs, we isolate the effects of representation, outcome annotation, retrieval difficulty, and cross-framework robustness of skills. To further answer this question, we design a contrastive study that combines controlled quantitative experiments with paired trajectory analysis. We normalize 8,135 trial records from controlled experiments and retain 238 valid unique labels from 240 open-coded records. We consolidate these observations into a taxonomy of three high-level categories and twelve skill-use modes: skills work when noisy trajectories become procedural anchors that stabilize execution. Skills improve over Workflow Memory by 6.06 points in matched comparisons. Procedural anchoring accounts for 65.7\% of skill cases, versus 4.5\% for explicit knowledge injection, showing that skills stabilize action rather than inject missing facts. Retrieval is a separate bottleneck: as pools grow from 5 to 100, actual-use precision falls from 29.6\% to 3.3\%. Confusable distractors impair offline identification, yet downstream success remains stable; exact ground-truth invocation is neither sufficient nor necessary. Skills fail under brittle assumptions, incompatible contexts, or insufficient adaptation. These findings move evaluation beyond aggregate success rates and guide reliable self-evolving agents.

阅读原文

参与讨论