arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.17653cs.AIcs.DB
收藏

PV-SQL:数据库探查与基于规则的验证相结合用于文本到SQL代理

PV-SQL: Synergizing Database Probing and Rule-based Verification for Text-to-SQL Agents

Purdue University(普渡大学)

Yuan Tian, Tianyi Zhang

AI总结:

PV-SQL通过探查和验证组件提升文本到SQL系统的上下文理解能力,实验显示其在执行准确率和有效效率上优于现有基准,且消耗更少token。

摘要:

文本到SQL系统常常在深入上下文理解方面遇到困难,特别是对于具有微妙要求的复杂查询。我们提出了PV-SQL,一种代理框架,通过两个互补组件:探查和验证来解决这些问题。探查组件迭代生成探查查询以从数据库中检索具体记录,解决值格式、列语义和表间关系的歧义,以构建更丰富的上下文理解。验证组件采用基于规则的方法提取可验证条件并构建可执行检查表,使SQL能够进行迭代优化,有效减少缺失约束。在BIRD基准测试中,PV-SQL在执行准确率上比最佳文本到SQL基线高出5%,有效效率分数提高20.8%,同时消耗更少token。

英文摘要:

Text-to-SQL systems often struggle with deep contextual understanding, particularly for complex queries with subtle requirements. We present PV-SQL, an agentic framework that addresses these failures through two complementary components: Probe and Verify. The Probe component iteratively generates probing queries to retrieve concrete records from the database, resolving ambiguities in value formats, column semantics, and inter-table relationships to build richer contextual understanding. The Verify component employs a rule-based method to extract verifiable conditions and construct an executable checklist, enabling iterative SQL refinement that effectively reduces missing constraints. Experiments on the BIRD benchmarks show that PV-SQL outperforms the best text-to-SQL baseline by 5% in execution accuracy and 20.8% in valid efficiency score while consuming fewer tokens.

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

↑