arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.03992cs.CRcs.AI
收藏

代理工具选择的定量认证

Quantitative Certification of Agentic Tool Selection

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Jehyeok Yeon, Isha Chaudhary, Gagandeep Singh

AI总结:

本文提出LLMCert-T框架,通过统计方法为代理工具选择流程提供高置信度的正确性上限,揭示当前LLM代理在干扰选择和Top-N饱和规格下的脆弱性。

摘要:

大型语言模型(LLMs)越来越多地部署在代理系统中,其中一项基本任务是将用户意图映射到相关外部工具。工具选择错误可能导致严重后果,如未经授权的数据访问,即使不修改代理的底层模型。现有评估在经过筛选的良性基准上测量性能。然而,管道在部署中的行为取决于代理实际遇到的工具池,这在开放注册表中由第三方塑造。我们引入LLMCert-T,这是首个统计框架,能够返回高置信度的上限概率,即在现实的工具分布下,工具选择流程满足声明的安全规范。LLMCert-T将工具选择评估建模为伯努利估计问题,从安全规范固定的分布中抽取插入工具序列。为了评估对现实部署条件的鲁棒性,我们将此分布实例化为一个随机过程,按轮次生成插入工具序列,每轮根据代理上一轮的选择进行条件。LLMCert-T将每轮结果汇总为一个单侧Clopper-Pearson上界,该上界表示规范被满足的概率。通过将此上界作为具有统计保证的证书返回,LLMCert-T使安全声明变得直观、可操作且可跨模型、检索器、缓解措施和注册表政策进行比较。在流行的BFCL和OpenAPI工具池中,LLMCert-T显示当前LLM代理在干扰选择和Top-N饱和规格下仍很脆弱:其认证正确性上限降至约20%,远低于其干净池的下限。

英文摘要:

Large language models (LLMs) are increasingly deployed in agentic systems, where a fundamental task is mapping user intents to relevant external tools. Errors in tool selection can have severe outcomes, such as unauthorized data access, even without modifying the agent's underlying model. Existing evaluations measure performance on curated, benign benchmarks. However, a pipeline's behavior in deployment depends on the tool pool the agent actually encounters, which in open registries is shaped by third parties. We introduce LLMCert-T, the first statistical framework that returns \textbf{high-confidence upper bounds on the probability that a tool-selection pipeline satisfies a declared safety specification under a realistic tool distribution}. LLMCert-T models tool-selection evaluation as a Bernoulli estimation problem, drawing inserted-tool sequences from a distribution that the safety specification fixes. To evaluate robustness against realistic deployment conditions, we instantiate this distribution as a stochastic process that generates inserted-tool sequences round by round, conditioning each round on the agent's selection in the previous round. LLMCert-T aggregates the per-trial outcomes into a one-sided Clopper-Pearson upper bound on the probability that the specification is satisfied. By returning this bound as a certificate with statistical guarantees over the inserted-tool sequence distribution, LLMCert-T makes safety claims intuitive, actionable, and comparable across models, retrievers, mitigations, and registry policies. Across popular BFCL and OpenAPI tool pools, LLMCert-T shows that current LLM agents remain fragile under Distractor Selection and Top-N Saturation specifications: their certified correctness upper bounds drop to approximately 20\%, far below their clean-pool lower bounds.

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

↑