Sophrosyne: 关系数据系统的智能体探索需要适度
Sophrosyne: Agentic Exploration of Relational Data Systems Needs Moderation
AI总结:
针对LLM驱动的Text2SQL智能体在探索数据系统时过度探索的问题,提出Sophrosyne环境,通过增强API响应中的指令来引导探索,减少过度探索并提升SQL生成准确性。
摘要:
由LLM驱动的Text2SQL智能体通过工具调用探索数据系统,将自然语言意图转化为SQL。然而,为了确保安全且受限的访问,数据系统构建了具有显式API表面的环境。我们研究并分类了当前暴露的API,将其分为粗粒度或细粒度,并认为在这两者之间进行选择会带来成本效益探索与准确SQL生成之间的基本权衡。大多数数据系统暴露细粒度API,但这无意中使智能体处于劣势:它们过度探索,将不相关的模式元素纳入查询公式中,并产生不准确的结果。我们认为,抑制过度探索是有效利用这些API表面的关键,并提出了Sophrosyne,一种数据系统环境,它通过增强API响应中的指令来引导智能体的探索过程。初步结果显示,指令将过度探索减少了4.6倍,并将准确率提高了高达12.4%(约4个百分点)。
英文摘要:
Text2SQL agents powered by LLMs translate natural language intent into SQL by exploring the data system through tool calls before formulating the query. However, to ensure secure and scoped access, data systems construct environments with explicit API surfaces. We study and categorize these APIs exposed today as either coarse-grained or fine-grained and posit that choosing between them presents a fundamental tradeoff between cost-efficient exploration and accurate SQL generation. Most data systems expose fine-grained APIs, but this inadvertently disadvantages agents: they over-explore, incorporating irrelevant schema elements into their query formulation and produce inaccurate results. We argue that curbing over-exploration is key to the effective use of these API surfaces, and propose Sophrosyne, a data system environment that augments API responses with directives that guide the agent's exploration process. Initial results show that directives reduce over-exploration by 4.6x and boost accuracy by up to 12.4% (approx. 4 percentage points).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。