Research map / Large language models / Language, safety and interpretability
RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers
Bailin Wang, Richard Shin, Xiaodong Liu, Oleksandr Polozov, Matthew Richardson
University of Edinburgh · University of California, Berkeley · Microsoft
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- Spider leaderboard exact match accuracy (dev) 69.7 · rank 9 of 12 papers
- WikiSQL leaderboard execution accuracy 78.8 · rank 9 of 13 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add schema linking relations (ablation) | RAT-SQL · Spider dev | exact match accuracy: 40.37 -> 55.13 | Improved |
| add schema graph relations (ablation) | RAT-SQL · Spider dev | exact match accuracy: 35.59 -> 55.13 | Improved |
| add value-based linking (ablation) | RAT-SQL · Spider dev | exact match accuracy: 55.13 -> 60.54 | Improved |
| add BERT | RAT-SQL · Spider test | exact match accuracy: 57.2 -> 65.6 | Improved |
| add BERT | RAT-SQL · Spider dev | exact match accuracy: 62.7 -> 69.7 | Improved |
| add alignment loss (earlier experiments, shallower model) (ablation) | RAT-SQL · Spider dev | exact match accuracy: 53.0 -> 55.4 | Improved |
| add alignment loss to final deeper model (ablation) | RAT-SQL · Spider dev | exact match accuracy | No clear effect |
| provide oracle columns (ablation) | RAT-SQL · Spider dev | exact match accuracy: 62.7 -> 69.8 | Improved |
| provide oracle sketch (ablation) | RAT-SQL · Spider dev | exact match accuracy: 62.7 -> 73.0 | Improved |
| provide both oracle sketch and oracle columns (ablation) | RAT-SQL · Spider dev | exact match accuracy: 62.7 -> 99.4 | Improved |
| add BERT | RAT-SQL · Spider dev paraphrase consistency | exact match consistency: 0.59 -> 0.67 | Improved |
| add BERT (versus other models with BERT) | RAT-SQL · Spider dev vs test gap | exact match accuracy: dev 69.7 vs RYANSQL V2 + BERT 70.6; test 65.6 vs 60.6 | Mixed |
Later papers that compared with this method
5 later accepted papers report RATSQL as a baseline in their results tables; 3 of them report a better number on most of the results they share with it.
- CSS: A Large-scale Cross-schema Chinese Text-to-SQL Medical Dataset (ACL 2023 · better on 4 of 4 shared results)
- Re-appraising the Schema Linking for Text-to-SQL (ACL 2023 · better on 1 of 1 shared result)
- Data Augmentation with Hierarchical SQL-to-Question Generation for Cross-domain Text-to-SQL Parsing (EMNLP 2021 · better on 2 of 2 shared results)
- DuoRAT: Towards Simpler Text-to-SQL Models (NAACL 2021 · better on 0 of 1 shared result)
- Re-examining the Role of Schema Linking in Text-to-SQL (EMNLP 2020 · better on 0 of 2 shared results)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in controlled text generation
How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsing (ACL 2019 · similarity 0.92)
- DuoRAT: Towards Simpler Text-to-SQL Models (NAACL 2021 · similarity 0.92)
- Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task (EMNLP 2018 · similarity 0.92)
- Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing (EMNLP 2020 · similarity 0.91)
- S²SQL: Injecting Syntax to Question-Schema Interaction Graph Encoder for Text-to-SQL Parsers (ACL 2022 · similarity 0.91)
- ShadowGNN: Graph Projection Neural Network for Text-to-SQL Parser (NAACL 2021 · similarity 0.91)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.