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

用于文本到SQL生成的一次性学习

One-Shot Learning for Text-to-SQL Generation

SAP Labs Korea(SAP韩国实验室);Seoul National University(首尔国立大学)

Dongjun Lee, Jaesik Yoon, Jongyun Song, Sanggil Lee, Sungroh Yoon

摘要:

大多数用于文本到SQL生成的深度学习方法仅限于WikiSQL数据集,该数据集仅支持非常简单的查询。最近,基于模板和序列到序列的方法被提出来支持复杂查询,包括连接查询,嵌套查询和其他类型。然而,Finegan-Dollak等人(2018)证明了这两种方法都缺乏生成看不见的模板的SQL的能力。在本文中,我们提出了一个基于模板的一次性学习模型的文本到SQL生成,使该模型可以生成SQL的一个未经训练的模板的基础上一个单一的例子。首先,我们使用匹配网络对SQL模板进行分类,该匹配网络由我们的新架构候选搜索网络增强。然后,我们使用指针网络填充预测模板中的变量槽。我们表明,我们的模型在两个方面优于各种文本到SQL数据集的最先进方法:1)训练模板的SQL生成准确性,以及2)基于单个示例对未见过的SQL模板的适应性,而无需任何额外的训练。

英文摘要:

Most deep learning approaches for text-to-SQL generation are limited to the WikiSQL dataset, which only supports very simple queries. Recently, template-based and sequence-to-sequence approaches were proposed to support complex queries, which contain join queries, nested queries, and other types. However, Finegan-Dollak et al. (2018) demonstrated that both the approaches lack the ability to generate SQL of unseen templates. In this paper, we propose a template-based one-shot learning model for the text-to-SQL generation so that the model can generate SQL of an untrained template based on a single example. First, we classify the SQL template using the Matching Network that is augmented by our novel architecture Candidate Search Network. Then, we fill the variable slots in the predicted template using the Pointer Network. We show that our model outperforms state-of-the-art approaches for various text-to-SQL datasets in two aspects: 1) the SQL generation accuracy for the trained templates, and 2) the adaptability to the unseen SQL templates based on a single example without any additional training.

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

↑