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

JSPLIT:一种基于分类法的模型上下文协议提示膨胀解决方案

JSPLIT: A Taxonomy-based Solution for Prompt Bloating in Model Context Protocol

Emanuele Antonioni, Stefan Markovic, Anirudha Shankar, Jaime Bernardo, Lovro Markovic, Silvia Pareti, Benedetto Proietti

AI总结:

针对MCP工具增多导致的提示膨胀问题,提出基于层次分类法的JSPLIT框架,按查询筛选相关工具,显著减小提示大小并提升高复杂度环境下的工具选择准确率与任务成功率。

摘要:

人工智能系统持续演进与发展,用户期望也随之不断提高,对超越简单文本交互的大型语言模型(LLM)交互需求日益增长。当今应用常要求LLM与外部工具交互,标志着向更复杂的智能体系统转变。为支持这一趋势,模型上下文协议(MCP)等标准应运而生,使智能体能够通过在提示中包含每个工具能力的规范来访问工具。尽管这种方法扩展了智能体的能力,但也引入了日益严重的问题:提示膨胀。随着工具数量增加,提示变得更长,导致提示令牌成本高昂、延迟增加,以及因选择与提示无关的工具而导致任务成功率下降。为解决此问题,我们提出JSPLIT,一个分类驱动框架,旨在帮助智能体在使用大量MCP工具时更有效地管理提示大小。JSPLIT将工具组织为层次化分类法,并利用用户提示,基于查询和分类结构识别并仅包含最相关的工具。本文中,我们描述了分类法的设计、工具选择算法以及用于评估JSPLIT的数据集。结果表明,JSPLIT显著减小提示大小,同时不明显损害智能体有效响应的能力。随着智能体可用工具数量大幅增长,JSPLIT甚至提高了智能体的工具选择准确性,有效降低成本,同时在高复杂度智能体环境中提高任务成功率。

英文摘要:

AI systems are continually evolving and advancing, and user expectations are concurrently increasing, with a growing demand for interactions that go beyond simple text-based interaction with Large Language Models (LLMs). Today's applications often require LLMs to interact with external tools, marking a shift toward more complex agentic systems. To support this, standards such as the Model Context Protocol (MCP) have emerged, enabling agents to access tools by including a specification of the capabilities of each tool within the prompt. Although this approach expands what agents can do, it also introduces a growing problem: prompt bloating. As the number of tools increases, the prompts become longer, leading to high prompt token costs, increased latency, and reduced task success resulting from the selection of tools irrelevant to the prompt. To address this issue, we introduce JSPLIT, a taxonomy-driven framework designed to help agents manage prompt size more effectively when using large sets of MCP tools. JSPLIT organizes the tools into a hierarchical taxonomy and uses the user's prompt to identify and include only the most relevant tools, based on both the query and the taxonomy structure. In this paper, we describe the design of the taxonomy, the tool selection algorithm, and the dataset used to evaluate JSPLIT. Our results show that JSPLIT significantly reduces prompt size without significantly compromising the agent's ability to respond effectively. As the number of available tools for the agent grows substantially, JSPLIT even improves the tool selection accuracy of the agent, effectively reducing costs while simultaneously improving task success in high-complexity agent environments.

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

↑