RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers

By Bailin Wang, Richard Shin, Xiaodong Liu, Oleksandr Polozov, Matthew Richardson. 2019

858 citations recorded by the source corpus.

When translating natural language questions into SQL queries to answer questions from a database, contemporary semantic parsing models struggle to generalize to unseen database schemas. The generalization challenge lies in (a) encoding the database relations in an accessible way for the semantic parser, and (b) modeling alignment between database columns and their mentions in a given query. We present a unified framework, based on the relation-aware self-attention mechanism, to address schema encoding, schema linking, and feature representation within a text-to-SQL encoder. On the challenging Spider dataset this framework boosts the exact match accuracy to 57.2%, surpassing its best counterparts by 8.7% absolute improvement. Further augmented with BERT, it achieves the new state-of-the-art performance of 65.6% on the Spider leaderboard. In addition, we observe qualitative improvements in the model’s understanding of schema linking and alignment. Our implementation will be open-sourced at https://github.com/Microsoft/rat-sql.

Subfields: Artificial Intelligence, Information Systems, Information Retrieval & Search, Natural Language Processing

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

In Information Systems

  1. Miltiadis Allamanis
  2. Rishabh Singh
  3. Charles Sutton
  4. Uri Alon
  5. Graham Neubig
  6. Marc Brockschmidt
  7. Oleksandr Polozov
  8. Xinyun Chen

In Information Retrieval & Search

  1. Sebastian Riedel
  2. Wen-tau Yih
  3. Hannaneh Hajishirzi
  4. Luke S. Zettlemoyer
  5. Jonathan Berant
  6. Ji-rong Wen
  7. Danqi Chen
  8. Wayne Xin Zhao

In Natural Language Processing

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

Citations in the corpus