ToolMenuBench: 用于可靠高效LLM智能体的工具菜单过滤策略基准测试
ToolMenuBench: Benchmarking Tool-Menu Filtering Strategies for Reliable and Efficient LLM Agents
AI总结:
提出ToolMenuBench基准,评估多步LLM智能体中工具菜单构建策略,发现因果最小工具过滤在任务成功率、令牌使用和风险暴露间取得最佳平衡。
摘要:
工具增强的大语言模型智能体越来越多地操作大型工具库,但现有评估通常关注模型能否正确调用工具,而非可见工具菜单如何影响可靠性、效率和安全相关风险暴露。我们引入ToolMenuBench,一个用于评估多步LLM智能体中工具菜单构建的基准。ToolMenuBench变化工具菜单大小、干扰类型、状态依赖任务结构和风险暴露,并报告过滤级别和下游智能体指标,包括可见工具数量、风险工具暴露、任务成功、错误工具调用、过早动作和令牌使用。在七个模型后端、三种工具菜单大小、六种过滤方法和七种评估设置的控制评估中,CMTF将任务成功率从全部工具暴露下的32.1%提升至85.7%,同时平均令牌使用减少约98%。因果最小工具过滤实现了最强的整体权衡,相对于未过滤暴露、词汇过滤、状态感知过滤和更广泛的因果路径基线,减少了可见工具、错误工具调用、过早动作和风险工具暴露。ToolMenuBench提供了一个可重用的评估框架,用于研究智能体-界面问题:哪些工具应该可见、何时可见以及在何种成本或风险约束下可见。
英文摘要:
Tool-augmented large language model agents increasingly operate over large tool libraries, but existing evaluations often focus on whether a model can call a tool correctly rather than how the visible tool menu shapes reliability, efficiency, and safety-relevant risk exposure. We introduce ToolMenuBench, a benchmark for evaluating tool-menu construction in multi-step LLM agents. ToolMenuBench varies tool-menu size, distractor type, state-dependent task structure, and risk exposure, and reports both filter-level and downstream agent metrics, including visible-tool count, risky-tool exposure, task success, wrong-tool calls, premature actions, and token usage. In a controlled evaluation across seven model backends, three tool-menu sizes, six filtering methods, and seven evaluation settings, CMTF improves task success from 32.1% under all-tools exposure to 85.7%, while reducing average token usage by roughly 98%. Causal minimal tool filtering achieves the strongest overall tradeoff, reducing visible tools, wrong-tool calls, premature actions, and risky-tool exposure relative to unfiltered exposure, lexical filtering, state-aware filtering, and broader causal-path baselines. ToolMenuBench provides a reusable evaluation framework for studying the agent-interface problem: which tools should be visible, when they should be visible, and under what cost or risk constraints.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。