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

UNITE:用于 Text-to-SQL 评估的统一基准

UNITE: A Unified Benchmark for Text-to-SQL Evaluation

AWS AI Labs(亚马逊云科技人工智能实验室)
Wuwei Lan, Zhiguo Wang, Anuj Chauhan, Henghui Zhu, Alexander Li, Jiang Guo, Sheng Zhang, Chung-Wei Hang, Joseph Lilien, Yiqun Hu, Lin Pan, Mingwen Dong, Jun Wan… 展开作者

Wuwei Lan, Zhiguo Wang, Anuj Chauhan, Henghui Zhu, Alexander Li, Jiang Guo, Sheng Zhang, Chung-Wei Hang, Joseph Lilien, Yiqun Hu, Lin Pan, Mingwen Dong, Jun Wang, Jiarong Jiang, Stephen Ash, Vittorio Castelli, Patrick Ng, Bing Xiang

AI总结:

本文提出统一 Text-to-SQL 评估基准 UNITE,整合多领域公开数据集并扩大 SQL 模式与数据库覆盖,通过评测六个 SOTA 解析器揭示域外泛化、解码策略与问题-模式建模的效果及组合泛化挑战。

摘要:

一个实用的 text-to-SQL 系统应当能够在多种多样的自然语言问题、未见过的数据库模式以及新颖的 SQL 查询结构上良好泛化。为了全面评估 text-to-SQL 系统,我们提出了一个用于 Text-to-SQL 评估的统一基准(UNIfied benchmark for Text-to-SQL Evaluation,UNITE)。它由公开可用的 text-to-SQL 数据集组成,包含来自 12 多个领域的自然语言问题、来自 3.9K 多种模式的 SQL 查询以及 29K 个数据库。与广泛使用的 Spider 基准相比,我们引入了约 120K 个额外样本,并使 SQL 模式(例如比较类和布尔类问题)增加到三倍。我们在新基准上对六个最先进(SOTA)text-to-SQL 解析器进行了系统研究,结果表明:1)Codex 在域外数据集上表现出奇地好;2)专门设计的解码方法(例如约束束搜索)能够同时提升域内和域外设置下的性能;3)显式建模问题与模式之间的关系可进一步改进 Seq2Seq 模型。更重要的是,我们的基准呈现了面向组合泛化和鲁棒性问题的关键挑战——这些 SOTA 模型尚不能很好地应对。我们的代码和数据处理脚本可在 https://github.com/awslabs/unified-text2sql-benchmark 获取。

英文摘要:

A practical text-to-SQL system should generalize well on a wide variety of natural language questions, unseen database schemas, and novel SQL query structures. To comprehensively evaluate text-to-SQL systems, we introduce a UNIfied benchmark for Text-to-SQL Evaluation (UNITE). It is composed of publicly available text-to-SQL datasets, containing natural language questions from more than 12 domains, SQL queries from more than 3.9K patterns, and 29K databases. Compared to the widely used Spider benchmark, we introduce $\sim$120K additional examples and a threefold increase in SQL patterns, such as comparative and boolean questions. We conduct a systematic study of six state-of-the-art (SOTA) text-to-SQL parsers on our new benchmark and show that: 1) Codex performs surprisingly well on out-of-domain datasets; 2) specially designed decoding methods (e.g. constrained beam search) can improve performance for both in-domain and out-of-domain settings; 3) explicitly modeling the relationship between questions and schemas further improves the Seq2Seq models. More importantly, our benchmark presents key challenges towards compositional generalization and robustness issues -- which these SOTA models cannot address well. Our code and data processing script are available at https://github.com/awslabs/unified-text2sql-benchmark

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

↑