SADGA: Structure-Aware Dual Graph Aggregation Network for Text-to-SQL
Ruichu Cai, Jinjie Yuan, Boyan Xu, Zhifeng Hao
Abstract
The Text-to-SQL task, aiming to translate the natural language of the questions into SQL queries, has drawn much attention recently. One of the most challenging problems of Text-to-SQL is how to generalize the trained model to the unseen database schemas, also known as the cross-domain Text-to-SQL task. The key lies in the generalizability of (i) the encoding method to model the question and the database schema and (ii) the question-schema linking method to learn the mapping between words in the question and tables/columns in the database schema. Focusing on the above two key issues, we propose a Structure-Aware Dual Graph Aggregation Network (SADGA) for cross-domain Text-to-SQL. In SADGA, we adopt the graph structure to provide a unified encoding model for both the natural language question and database schema. Based on the proposed unified modeling, we further devise a structure-aware aggregation method to learn the mapping between the question-graph and schema-graph. The structure-aware aggregation method is featured with Global Graph Linking, Local Graph Linking, and Dual-Graph Aggregation Mechanism. We not only study the performance of our proposal empirically but also achieved 3rd place on the challenging Text-to-SQL benchmark Spider at the time of writing.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
13 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL cites GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
- RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL cites Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Training
- RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL cites RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL
- RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL cites Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQL
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites Graphix-T5: Mixing Pre-trained Transformers with Graph-Aware Layers for Text-to-SQL Parsing
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at Scale cites TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
- GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing cites Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing
- GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing cites TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
- Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Training cites GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
- Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Training cites TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction cites GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsing
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction cites Graphix-T5: Mixing Pre-trained Transformers with Graph-Aware Layers for Text-to-SQL Parsing
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction cites RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction cites Re-examining the Role of Schema Linking in Text-to-SQL
- Graphix-T5: Mixing Pre-trained Transformers with Graph-Aware Layers for Text-to-SQL Parsing cites RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL
- RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL cites Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing
- Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing cites TaBERT: Pretraining for Joint Understanding of Textual and Tabular Data
Cited by top-tier papers13
- DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-CorrectionMohammadreza Pourreza, Davood RafieiNeurIPS 2023 · 909 citations
- RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLHaoyang Li, Jing Zhang, Cuiping Li, Hong ChenAAAI 2023 · 343 citations
- Graphix-T5: Mixing Pre-trained Transformers with Graph-Aware Layers for Text-to-SQL ParsingJinyang Li, Binyuan Hui, Reynold Cheng, Bowen Qin et al.AAAI 2023 · 164 citations
- OmniSQL: Synthesizing High-quality Text-to-SQL Data at ScaleHaoyang Li, Shang Wu, Xiaokang Zhang, Xinmei Huang et al.VLDB 2025 · 90 citations
- RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLJiexing Qi, Jingyao Tang, Ziwei He, Xiangpeng Wan et al.EMNLP 2022 · 73 citations
Builds on9
- TaBERT: Pretraining for Joint Understanding of Textual and Tabular DataPengcheng Yin, Graham Neubig, Wen-tau Yih, Sebastian RiedelACL 2020 · 417 citations
- Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic ParsingXi Victoria Lin, Richard Socher, Caiming XiongEMNLP Findings 2020 · 186 citations
- Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-TrainingPeng Shi, Patrick Ng, Zhiguo Wang, Henghui Zhu et al.AAAI 2021 · 124 citations
- Re-examining the Role of Schema Linking in Text-to-SQLWenqiang Lei, Weixin Wang, Zhixin Ma, Tian Gan et al.EMNLP 2020 · 71 citations
- GraPPa: Grammar-Augmented Pre-Training for Table Semantic ParsingTao Yu, Chien-Sheng Wu, Xi Victoria Lin, Bailin Wang et al.ICLR 2021 · 59 citations
Related papers
- RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL ParsersBailin Wang, Richard Shin, Xiaodong Liu, Oleksandr Polozov et al.ACL 2020 · 39 citations
- S²SQL: Injecting Syntax to Question-Schema Interaction Graph Encoder for Text-to-SQL ParsersBinyuan Hui, Ruiying Geng, Lihan Wang, Bowen Qin et al.ACL Findings 2022 · 66 citations
- G³R: A Graph-Guided Generate-and-Rerank Framework for Complex and Cross-domain Text-to-SQL GenerationYanzheng Xiang, Qian-Wen Zhang, Xu Zhang, Zejie Liu et al.ACL Findings 2023 · 3 citations
- LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local RelationsRuisheng Cao, Lu Chen, Zhi Chen, Yanbin Zhao et al.ACL 2021
- UCS-SQL: Uniting Content and Structure for Enhanced Semantic Bridging In Text-to-SQLZhenhe Wu, Zhongqiu Li, Jie Zhang, Zhongjiang He et al.ACL Findings 2025 · 4 citations
