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

SeqGenSQL --一种结构化查询语言的健壮序列生成模型

SeqGenSQL -- A Robust Sequence Generation Model for Structured Query Language

UC Berkeley(加州大学伯克利分校);Google Research(谷歌研究院)

Ning Li, Bethany Keller, Mark Butler, Daniel Cer

摘要:

我们探索使用T5(Raffel et al.(2019))将自然语言问题直接转换为SQL语句。与存储在数据库内的信息接口的通用自然语言需要将自然语言问题灵活地转换成数据库查询。性能最好的文本到SQL系统通过首先将问题转换为中间逻辑形式(LF)来完成这项任务(Lyu et al.(2020))。虽然LF提供了方便的中间表示并简化了查询生成,但它们引入了额外的复杂性和注释需求。然而,直接将问题转换为SQL语句的弱监督建模已经证明在没有LF提供的脚手架的情况下更加困难(Min等人(2019))。我们使用T5(Raffel et al.(2019))将问题直接转换为SQL语句,T5是一种预先训练的文本到文本生成模型,经过修改以支持指针生成器风格的解码(见et al.(2017))。我们探索使用问题扩充表模式信息和使用自动生成的银训练数据。由此产生的模型在WikiSQL(Zhong et al.(2017))测试数据集上实现了90.5%的执行准确率,这是弱监督SQL生成的最新技术。与现有技术相比,性能绝对提高了6.6%(Min等人(2019)),接近使用LF的最先进系统的性能。

英文摘要:

We explore using T5 (Raffel et al. (2019)) to directly translate natural language questions into SQL statements. General purpose natural language that interfaces to information stored within databases requires flexibly translating natural language questions into database queries. The best performing text-to-SQL systems approach this task by first converting questions into an intermediate logical form (LF) (Lyu et al. (2020)). While LFs provide a convenient intermediate representation and simplify query generation, they introduce an additional layer of complexity and annotation requirements. However, weakly supervised modeling that directly converts questions to SQL statements has proven more difficult without the scaffolding provided by LFs (Min et al. (2019)). We approach direct conversion of questions to SQL statements using T5 (Raffel et al. (2019)), a pre-trained textto-text generation model, modified to support pointer-generator style decoding (See et al. (2017)). We explore using question augmentation with table schema information and the use of automatically generated silver training data. The resulting model achieves 90.5% execution accuracy on the WikiSQL (Zhong et al. (2017)) test data set, a new state-of-the-art on weakly supervised SQL generation. The performance improvement is 6.6% absolute over the prior state-of-the-art (Min et al. (2019)) and approaches the performance of state-ofthe-art systems making use of LFs.

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

↑