arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.19793cs.AIcs.CLcs.IRcs.LG
收藏

SkillGraph:用于LLM代理工具序列推荐的图基础先验

SkillGraph: Graph Foundation Priors for LLM Agent Tool Sequence Recommendation

Hao Liu, Dongyu Li

AI总结:

本文提出SkillGraph,通过挖掘49831条成功轨迹构建有向加权执行过渡图,用于LLM代理工具选择与排序。提出的两阶段框架在ToolBench和API-Bank上取得显著提升。

摘要:

LLM代理必须从大型API库中选择工具并正确排序。现有方法仅使用语义相似性进行检索和排序,但排序依赖于工具间的数据依赖性,而这些依赖性在工具描述中缺失。因此,仅基于语义的方法在结构化工作流领域会产生负的Kendall-τ。我们引入SkillGraph,一种从49,831条成功LLM代理轨迹中挖掘出的有向加权执行过渡图,该图编码了工作流优先级规律作为可重用的图基础先验。基于此图基础先验,我们提出一个两阶段解耦框架:GS-Hybrid检索用于候选选择,以及学习的成对重排器用于排序。在ToolBench(9,965个测试实例;约16,000个工具)上,方法达到Set-F1 = 0.271和Kendall-τ = 0.096;在API-Bank上,Kendall-τ从-0.433提升到+0.613。在相同的Stage-1输入下,学习的重排器也优于LLaMA-3.1-8B的Stage-2重排器。

英文摘要:

LLM agents must select tools from large API libraries and order them correctly. Existing methods use semantic similarity for both retrieval and ordering, but ordering depends on inter-tool data dependencies that are absent from tool descriptions. As a result, semantic-only methods can produce negative Kendall-$τ$ in structured workflow domains. We introduce SkillGraph, a directed weighted execution-transition graph mined from 49,831 successful LLM agent trajectories, which encodes workflow-precedence regularities as a reusable graph foundation prior. Building on this graph foundation prior, we propose a two-stage decoupled framework: GS-Hybrid retrieval for candidate selection and a learned pairwise reranker for ordering. On ToolBench (9,965 test instances; ~16,000 tools), the method reaches Set-F1 = 0.271 and Kendall-$τ$ = 0.096; on API-Bank, Kendall-$τ$ improves from -0.433 to +0.613. Under identical Stage-1 inputs, the learned reranker also outperforms LLaMA-3.1-8B Stage-2 rerankers.

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

↑