2019

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

Wang, Bailin, Shin, Richard, Liu, Xiaodong et al.

Understand

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.

Reading the bibliography…