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

用于复杂和跨域文本到SQL生成的子句式和递归解码

Clause-Wise and Recursive Decoding for Complex and Cross-Domain Text-to-SQL Generation

SAP Labs Korea(SAP韩国研究院)

Dongjun Lee

摘要:

大多数用于文本到SQL生成的深度学习方法仅限于WikiSQL数据集,该数据集仅支持对单个表的非常简单的查询。我们关注Spider数据集,这是一个复杂的跨域文本到SQL任务,其中包括对多个表的复杂查询。在本文中,我们提出了一个SQL子句式解码神经架构与自注意为基础的数据库模式编码器,以解决蜘蛛任务。每个子句特定的解码器由一组子模块组成,这些子模块由每个子句的语法定义。此外,我们的模型递归地支持嵌套查询。当在Spider数据集上进行评估时,我们的方法在测试集和开发集中分别获得了4.6%和9.8%的准确率增益。此外,我们表明,我们的模型是更有效地预测复杂和嵌套的查询比以前的工作。

英文摘要:

Most deep learning approaches for text-to-SQL generation are limited to the WikiSQL dataset, which only supports very simple queries over a single table. We focus on the Spider dataset, a complex and cross-domain text-to-SQL task, which includes complex queries over multiple tables. In this paper, we propose a SQL clause-wise decoding neural architecture with a self-attention based database schema encoder to address the Spider task. Each of the clause-specific decoders consists of a set of sub-modules, which is defined by the syntax of each clause. Additionally, our model works recursively to support nested queries. When evaluated on the Spider dataset, our approach achieves 4.6\% and 9.8\% accuracy gain in the test and dev sets, respectively. In addition, we show that our model is significantly more effective at predicting complex and nested queries than previous work.

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

↑