SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learning

By Xiaojun Xu, Chang Liu, Dawn Song. 2017

508 citations recorded by the source corpus.

Synthesizing SQL queries from natural language is a long-standing open problem and has been attracting considerable interest recently. Toward solving the problem, the de facto approach is to employ a sequence-to-sequence-style model. Such an approach will necessarily require the SQL queries to be serialized. Since the same SQL query may have multiple equivalent serializations, training a sequence-to-sequence-style model is sensitive to the choice from one of them. This phenomenon is documented as the "order-matters" problem. Existing state-of-the-art approaches rely on reinforcement learning to reward the decoder when it generates any of the equivalent serializations. However, we observe that the improvement from reinforcement learning is limited. In this paper, we propose a novel approach, i.e., SQLNet, to fundamentally solve this problem by avoiding the sequence-to-sequence structure when the order does not matter. In particular, we employ a sketch-based approach where the sketch contains a dependency graph so that one prediction can be done by taking into consideration only the previous predictions that it depends on. In addition, we propose a sequence-to-set model as well as the column attention mechanism to synthesize the query based on the sketch. By combining all these novel techniques, we show that SQLNet can outperform the prior art by 9% to 13% on the WikiSQL task.

Subfields: Artificial Intelligence, Management Science and Operations Research

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. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Caiming Xiong
  4. Percy Liang
  5. Graham Neubig
  6. Jonathan Berant
  7. Jianfeng Gao
  8. Richard Socher

In Management Science and Operations Research

  1. M. Pourreza
  2. Davood Rafiei
  3. Tao Yu
  4. Dragomir R. Radev
  5. Rui Zhang
  6. Wen-tau Yih
  7. Zifan Li
  8. Pengcheng Yin

Citations in the corpus