References & Citations
Computer Science > Computation and Language
Title: RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
(Submitted on 10 Nov 2019 (v1), last revised 24 Aug 2021 (this version, v5))
Abstract: 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 this https URL
Submission history
From: Oleksandr Polozov [view email][v1] Sun, 10 Nov 2019 09:09:13 GMT (638kb,D)
[v2] Tue, 5 May 2020 02:08:16 GMT (498kb,D)
[v3] Sat, 20 Jun 2020 07:11:06 GMT (499kb,D)
[v4] Sun, 5 Jul 2020 10:03:54 GMT (499kb,D)
[v5] Tue, 24 Aug 2021 05:29:12 GMT (498kb,D)
Link back to: arXiv, form interface, contact.