Robust Text-to-SQL Generation with Execution-Guided Decoding
Preprint
Abstract
We consider the problem of neural semantic parsing, which translates natural language questions into executable SQL queries. We introduce a new mechanism, execution guidance, to leverage the semantics of SQL. It detects and excludes faulty programs during the decoding procedure by conditioning on the execution of partially generated program. The mechanism can be used with any autoregressive generative model, which we demonstrate on four state-of-the-art recurrent or template-based semantic parsing models. We demonstrate that execution guidance universally improves model performance on various text-to-SQL datasets with different scales and query complexity: WikiSQL, ATIS, and GeoQuery. As a result, we achieve new state-of-the-art execution accuracy of 83.8% on WikiSQL.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- TypeSQL: Knowledge-Based Type-Aware Neural Text-to-SQL Generation2018
- Improved Image Captioning via Policy Gradient optimization of SPIDEr2017
- Learning a Neural Semantic Parser from User Feedback2017
- A Syntactic Neural Model for General-Purpose Code Generation2017
- Abstract Syntax Networks for Code Generation and Semantic Parsing2017
- Learning executable semantic parsers for natural language understandingCommunications of the ACM, 2016
- Deep Reinforcement Learning for Dialogue Generation2016
- Sequence-to-Sequence Learning as Beam-Search Optimization2016
- Effective Approaches to Attention-based Neural Machine Translation2015