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

Ning Li, Bethany Keller, Mark Butler, Daniel Cer
11/7/2020
8 citations
cs.AI

Official code: salesforce/WikiSQL (1,802 stars, HTML, BSD-3-Clause, last commit 2025-10-06).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

salesforce/WikiSQLOfficial100%
BSD-3-Clause

A large annotated semantic parsing corpus for developing natural language interfaces.

1,802331HTML, PythonAug 11, 20171 years agoBSD-3-Clause
databasedatasetmachine-learningnatural-languagenatural-language-interface+1 more

Similar Papers

Cite this paper

@article{li2020seqgensql,
  title  = {SeqGenSQL -- A Robust Sequence Generation Model for Structured Query Language},
  author = {Ning Li and Bethany Keller and Mark Butler and Daniel Cer},
  year   = {2020},
  eprint = {2011.03836},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.03836}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.03836.svg)](https://codeofpaper.com/paper/2011.03836)

Discussion