ToolGraph:面向工具调用智能体测试时扩展的Q函数
ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents
研究将工具目录编译为有向加权依赖图ToolGraph,并把图路径组合成目标条件动作价值Q(s,a,g),用于工具调用智能体的多步价值估计。在2个工具调用基准和3个骨干模型上,LLM评分器平均比PageRank检索高8.3个点,而两种纯结构估计器均低于PageRank。图构建为一次性成本,规模下与请求时成本相当。
arXiv:2611.20569v1 Announce Type: new Abstract: Tool-use agents must chain interdependent calls, yet which outputs satisfy which later inputs in a deployed catalog is not something a general-purpose language model reliably infers from tool descriptions alone. We compile that structure once into a reusable external representation. ToolGraph is a directed, weighted dependency graph over a tool catalog: parameter matching and interventional probes, which execute a candidate chain with and without its proposed predecessor, propose edges whose evidence is combined into an edge confidence. Prior work uses such graphs to retrieve tools, search for tool paths, or score the next call. We ask instead whether the same structure can supply a \emph{multi-step} value by composing graph paths into a goal-conditioned action value \(Q(s,a,g)\). We study three estimators (dynamic programming over entity sets, a GraphSAGE estimator distilled from it, and an LLM scorer conditioned on graph evidence) plus a verbalizer that returns action--goal feedback to the agent, which keeps final action selection. Across two tool-use benchmarks and three backbones, we compare value ranking against personalized-PageRank retrieval over the identical graph, and against direct and reflective agents. Composition pays off only when the estimator also reads the concrete state: the LLM estimator improves on PageRank in every benchmark--backbone setting, by \(8.3\) points on average, while the two purely structural estimators fall below it, because a value defined over tool types cannot separate a correct tool called with a wrong argument. Graph construction is a one-time cost; we report it separately rather than assume it amortized away (at our scale it is comparable to request-time cost) and sweep four knobs controlling how much graph evidence to expose against success and tokens.
来源:arXiv (AI + Vision + Imaging) · arxiv.org