arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.17046cs.AI
收藏

动态系统指令与工具暴露用于高效代理LLM

Dynamic System Instructions and Tool Exposure for Efficient Agentic LLMs

Uria Franko

AI总结:

通过动态系统指令和工具暴露技术,ITR显著减少LLM代理的上下文令牌使用和运行成本,提升工具路由准确性,适用于长期自主代理。

摘要:

大型语言模型(LLM)代理在每个回合中通常需要多次重新读取长系统指令和大型工具目录,这会增加成本、代理偏离概率、延迟和工具选择错误。我们提出了指令-工具检索(ITR),这是一种RAG变体,每一步仅检索最小的系统提示片段和必要的最小工具子集。ITR构建了一个动态运行时系统提示,并暴露了一个带有置信度门控回退的缩小工具集。使用一个内部一致的基准测试,ITR将每步上下文令牌减少了95%,正确工具路由提高了32%的相对值,并将端到端回合成本降低了70%相对于一个整体基线。这些节省使代理能够在上下文限制内运行2-20倍的循环。节省随着代理步骤的数量而累积,使ITR特别有价值于长期运行的自主代理。我们详细说明了该方法、评估协议、消融实验和实际部署的操作指导。

英文摘要:

Large Language Model (LLM) agents often run for many steps while re-ingesting long system instructions and large tool catalogs each turn. This increases cost, agent derailment probability, latency, and tool-selection errors. We propose Instruction-Tool Retrieval (ITR), a RAG variant that retrieves, per step, only the minimal system-prompt fragments and the smallest necessary subset of tools. ITR composes a dynamic runtime system prompt and exposes a narrowed toolset with confidence-gated fallbacks. Using a controlled benchmark with internally consistent numbers, ITR reduces per-step context tokens by 95%, improves correct tool routing by 32% relative, and cuts end-to-end episode cost by 70% versus a monolithic baseline. These savings enable agents to run 2-20x more loops within context limits. Savings compound with the number of agent steps, making ITR particularly valuable for long-running autonomous agents. We detail the method, evaluation protocol, ablations, and operational guidance for practical deployment.

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

↑