Grammar-based Neural Text-to-SQL Generation

By Kevin Lin, Ben Bogin, Mark Neumann, Jonathan Berant, Matt Gardner. 2019

65 citations recorded by the source corpus.

The sequence-to-sequence paradigm employed by neural text-to-SQL models typically performs token-level decoding and does not consider generating SQL hierarchically from a grammar. Grammar-based decoding has shown significant improvements for other semantic parsing tasks, but SQL and other general programming languages have complexities not present in logical formalisms that make writing hierarchical grammars difficult. We introduce techniques to handle these complexities, showing how to construct a schema-dependent grammar with minimal over-generation. We analyze these techniques on ATIS and Spider, two challenging text-to-SQL datasets, demonstrating that they yield 14--18\% relative reductions in error.

Subfields: Artificial Intelligence, Information Systems and Management

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Caiming Xiong
  3. Jonathan Berant
  4. Luke S. Zettlemoyer
  5. Richard Socher
  6. Graham Neubig
  7. Percy Liang
  8. Hannaneh Hajishirzi

In Information Systems and Management

  1. Torsten Scholak
  2. Jonathan Berant
  3. Richard Socher
  4. Caiming Xiong
  5. Dzmitry Bahdanau
  6. Matt Gardner
  7. Nathan Schucher

Citations in the corpus