arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.05237cs.CLcs.AI
收藏

SyntaxSQLNet:用于复杂任务和Cross-DomainText-to-SQL任务的树网络

SyntaxSQLNet: Syntax Tree Networks for Complex and Cross-DomainText-to-SQL Task

Yale University(耶鲁大学)

Tao Yu, Michihiro Yasunaga, Kai Yang, Rui Zhang, Dongxu Wang, Zifan Li, Dragomir Radev

摘要:

大多数现有的文本到SQL任务的研究不需要生成复杂的SQL查询多个子句或子查询,并推广到新的,看不见的数据库。在本文中,我们提出了SyntaxSQLNet,语法树网络,以解决复杂的和跨域的文本到SQL生成任务。SyntaxSQLNet使用了一个SQL特定的语法树解码器,带有SQL生成路径历史和表感知的列注意编码器。我们在Spider text-to-SQL任务上评估SyntaxSQLNet,该任务包含具有多个表的数据库和具有多个SQL子句和嵌套查询的复杂SQL查询。我们使用数据库分割设置,其中测试集中的数据库在训练期间不可见。实验结果表明,SyntaxSQLNet可以处理比以前的工作更大量的复杂SQL示例,在精确匹配准确率方面比以前的最先进模型高出7.3%。我们还表明,使用跨域增强方法,SyntaxSQLNet可以进一步将性能提高7.5%,总共提高14.8%。据我们所知,我们是第一个研究这个复杂的跨域文本到SQL任务的人。

英文摘要:

Most existing studies in text-to-SQL tasks do not require generating complex SQL queries with multiple clauses or sub-queries, and generalizing to new, unseen databases. In this paper we propose SyntaxSQLNet, a syntax tree network to address the complex and cross-domain text-to-SQL generation task. SyntaxSQLNet employs a SQL specific syntax tree-based decoder with SQL generation path history and table-aware column attention encoders. We evaluate SyntaxSQLNet on the Spider text-to-SQL task, which contains databases with multiple tables and complex SQL queries with multiple SQL clauses and nested queries. We use a database split setting where databases in the test set are unseen during training. Experimental results show that SyntaxSQLNet can handle a significantly greater number of complex SQL examples than prior work, outperforming the previous state-of-the-art model by 7.3% in exact matching accuracy. We also show that SyntaxSQLNet can further improve the performance by an additional 7.5% using a cross-domain augmentation method, resulting in a 14.8% improvement in total. To our knowledge, we are the first to study this complex and cross-domain text-to-SQL task.

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

↑