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

TACO:面向开放域、含歧义和跨数据库查询的文本到SQL基准

TACO: A Benchmark for Open-Domain Text-to-SQL with Ambiguous and Cross-Database Queries

Renmin University, China(中国人民大学);HKUST (GZ) / HKUST(香港科技大学(广州)/ 香港科技大学);Beijing Big Data Centre(北京大数据中心)

Chao Deng, Ju Fan, Yuyu Luo, Qinliang Xue, Meihao Fan, Yuxin Zhang, Min Zhang, Xiaofeng Jia, Jing Zhang, Xiaoyong Du

AI总结:

提出TACO基准,包含1500个真实和13000个合成示例,覆盖开放域、歧义和跨数据库查询,通过基线TACO-SQL揭示现有方法的局限性。

摘要:

文本到SQL旨在将自然语言问题转化为结构化数据库上的可执行SQL查询。现有基准主要关注具有预定义数据库模式和明确问题的封闭域设置,但在应对开放域场景的挑战(如歧义问题、未指定数据库和跨数据库查询)方面存在不足。为弥补这一差距,我们引入了TACO,一个面向开放域、含歧义和跨数据库查询的文本到SQL基准。TACO包含基于智慧城市数据服务的1,500个真实世界文本到SQL示例,以及基于大规模开放数据门户生成的13,000个高质量合成示例,涵盖交通、医疗和金融等多个领域。为构建合成示例,我们开发了一种有效的数据合成流程,保留了真实世界查询的复杂性。为展示TACO的实用性,我们引入了一个基线TACO-SQL,由问题重写、表格链接和查询规划组成,以说明TACO带来的挑战,并更好地理解现有文本到SQL方法的局限性。在TACO上使用多种近期文本到SQL方法进行的大量实验表明,尽管TACO-SQL取得了最佳结果,但现有方法与人工编写的SQL之间仍存在显著差距。这些发现凸显了开放域文本到SQL的难度,并将TACO定位为推动未来研究的有价值基准。

英文摘要:

Text-to-SQL aims to translate natural language questions into executable SQL queries over structured databases. Existing benchmarks mainly focus on closed-domain settings with predefined database schemas and well-specified questions, but they fall short in addressing the challenges of open-domain scenarios, such as ambiguous questions, unspecified databases, and cross-database querying. To bridge this gap, we introduce TACO, a benchmark for open-domain Text-to-SQL with Ambiguous and Cross-database queries. TACO consists of 1,500 real-world Text-to-SQL examples based on a smart city data service and 13,000 high-quality synthetic examples generated based on large-scale open data portals, covering diverse domains such as transportation, healthcare, and finance. To construct the synthetic examples, we develop an effective data synthesis pipeline that preserves the complexity of real-world queries. To demonstrate the utility of TACO, we introduce a baseline TACO-SQL composed of question rewriting, table linking, and query planning, to illustrate the challenges posed by TACO and to better understand the limitations of existing Text-to-SQL approaches. Extensive experiments on TACO using a variety of recent Text-to-SQL approaches show that, while TACO-SQL achieves the best results, a significant gap still remains between the existing approaches and human-written SQL. These findings highlight the difficulty of open-domain Text-to-SQL and position TACO as a valuable benchmark to drive future research.

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

↑