Measuring and Improving Compositional Generalization in Text-to-SQL via Component Alignment
Not on the map. Why?
Abstract (arXiv)
In text-to-SQL tasks -- as in much of NLP -- compositional generalization is a major challenge: neural networks struggle with compositional generalization where training and test distributions differ. However, most recent attempts to improve this are based on word-level synthetic data or specific dataset splits to generate compositional biases. In this work, we propose a clause-level compositional example generation method. We first split the sentences in the Spider text-to-SQL dataset into sub-sentences, annotating each sub-sentence with its corresponding SQL clause, resulting in a new dataset Spider-SS. We then construct a further dataset, Spider-CG, by composing Spider-SS sub-sentences in different combinations, to test the ability of models to generalize compositionally. Experiments show that existing models suffer significant performance degradation when evaluated on Spider-CG, even though every sub-sentence is seen during training. To deal with this problem, we modify a number of state-of-the-art models to train on the segmented data of Spider-SS, and we show that this method improves the generalization performance.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 23 of its 38 references that are in the map. First posted on arXiv 4 May 2022.
Builds on
23 of 38 references.
References · 23
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
- 2020ToTTo: A Controlled Table-To-Text Generation Datasetcited by 268
- 2020GraPPa: Grammar-Augmented Pre-Training for Table Semantic Parsingcited by 171
- 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
- 2018Improving Text-to-SQL Evaluation Methodologycited by 135
- 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
- 2021Exploring Underexplored Limitations of Cross-Domain Text-to-SQL Generalizationcited by 92
- 2020Compositional Generalization via Neural-Symbolic Stack Machinescited by 80
11 more
- 2020Span-based Semantic Parsing for Compositional Generalizationcited by 77
- 2018SyntaxSQLNet: Syntax Tree Networks for Complex and Cross-DomainText-to-SQL Taskcited by 74
- 2019Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsingcited by 74
- 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 68
- 2020Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Trainingcited by 65
- 2021Meta-Learning to Compositionally Generalizecited by 62
- 2020Compositional Generalization by Learning Analytical Expressionscited by 53
- 2020Improving Compositional Generalization in Semantic Parsingcited by 42
- 2021Structured Reordering for Modeling Latent Alignments in Sequence Transductioncited by 17
- 2019SpatialNLI: A Spatial Domain Natural Language Interface to Databases Using Spatial Comprehensioncited by 5
- 2018Transferable Natural Language Interface to Structured Queries aided by Adversarial Generationcited by 2
Built on by
Citing papers per year: 2022: 1; 2023: 9; 2024: 4; 2025: 1; 2026: 1.
16 papers.
Sort:
By area:
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 120
- 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 119
- 2022Compositional Semantic Parsing with Large Language Modelscited by 95
- 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Surveycited by 27
- 2023Improving Generalization in Language Model-Based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-Based Techniquescited by 24
- 2023Divide and Prompt: Chain of Thought Prompting for Text-to-SQLcited by 20
- 2023Semantic Decomposition of Question and SQL for Text-to-SQL Parsingcited by 14
- 2023Adapt and Decompose: Efficient Generalization of Text-to-SQL via Domain Adapted Least-To-Most Promptingcited by 8
- 2023The Role of Linguistic Priors in Measuring Compositional Generalization of Vision-Language Modelscited by 6
- 2024EHR-SeqSQL : A Sequential Text-to-SQL Dataset For Interactively Exploring Electronic Health Recordscited by 5
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
4 more
- 2023Exploring the Compositional Generalization in Context Dependent Text-to-SQL Parsingcited by 2
- 2023Semantic Parsing for Complex Data Retrieval: Targeting Query Plans vs. SQL for No-Code Access to Relational Databasescited by 1
- 2024Beyond Text-to-SQL for IoT Defense: A Comprehensive Framework for Querying and Classifying IoT Threatscited by 1
- 2026PExA: Parallel Exploration Agent for Complex Text-to-SQLcited by 1
- 2026PExA: Parallel Exploration Agent for Complex Text-to-SQL24 Apr 2026
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunities28 May 2025
- 2024A Survey on Employing Large Language Models for Text-to-SQL Tasks21 Jul 2024
- 2024Beyond Text-to-SQL for IoT Defense: A Comprehensive Framework for Querying and Classifying IoT Threats25 Jun 2024
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQL12 Jun 2024
- 2024EHR-SeqSQL : A Sequential Text-to-SQL Dataset For Interactively Exploring Electronic Health Records23 May 2024
- 2023Semantic Parsing for Complex Data Retrieval: Targeting Query Plans vs. SQL for No-Code Access to Relational Databases22 Dec 2023
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Survey27 Oct 2023
- 2023Semantic Decomposition of Question and SQL for Text-to-SQL Parsing20 Oct 2023
- 2023The Role of Linguistic Priors in Measuring Compositional Generalization of Vision-Language Models4 Oct 2023
- 2023Adapt and Decompose: Efficient Generalization of Text-to-SQL via Domain Adapted Least-To-Most Prompting1 Aug 2023
- 2023Exploring the Compositional Generalization in Context Dependent Text-to-SQL Parsing29 May 2023
4 more
- 2023Improving Generalization in Language Model-Based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-Based Techniques27 May 2023
- 2023Divide and Prompt: Chain of Thought Prompting for Text-to-SQL23 Apr 2023
- 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capability12 Mar 2023
- 2022Compositional Semantic Parsing with Large Language Models29 Sep 2022
- 2026PExA: Parallel Exploration Agent for Complex Text-to-SQLcited by 1
- 2026PExA: Parallel Exploration Agent for Complex Text-to-SQL24 Apr 2026
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 120
- 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 119
- 2022Compositional Semantic Parsing with Large Language Modelscited by 95
- 2024A Survey on Employing Large Language Models for Text-to-SQL Taskscited by 67
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Surveycited by 27
- 2023Improving Generalization in Language Model-Based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-Based Techniquescited by 24
- 2023Semantic Decomposition of Question and SQL for Text-to-SQL Parsingcited by 14
- 2023Adapt and Decompose: Efficient Generalization of Text-to-SQL via Domain Adapted Least-To-Most Promptingcited by 8
- 2024EHR-SeqSQL : A Sequential Text-to-SQL Dataset For Interactively Exploring Electronic Health Recordscited by 5
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
- 2023Exploring the Compositional Generalization in Context Dependent Text-to-SQL Parsingcited by 2
- 2023Semantic Parsing for Complex Data Retrieval: Targeting Query Plans vs. SQL for No-Code Access to Relational Databasescited by 1
12 most cited of 13 All 13 (JSON)
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunities28 May 2025
- 2024A Survey on Employing Large Language Models for Text-to-SQL Tasks21 Jul 2024
- 2024Beyond Text-to-SQL for IoT Defense: A Comprehensive Framework for Querying and Classifying IoT Threats25 Jun 2024
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQL12 Jun 2024
- 2024EHR-SeqSQL : A Sequential Text-to-SQL Dataset For Interactively Exploring Electronic Health Records23 May 2024
- 2023Semantic Parsing for Complex Data Retrieval: Targeting Query Plans vs. SQL for No-Code Access to Relational Databases22 Dec 2023
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Survey27 Oct 2023
- 2023Semantic Decomposition of Question and SQL for Text-to-SQL Parsing20 Oct 2023
- 2023Adapt and Decompose: Efficient Generalization of Text-to-SQL via Domain Adapted Least-To-Most Prompting1 Aug 2023
- 2023Exploring the Compositional Generalization in Context Dependent Text-to-SQL Parsing29 May 2023
- 2023Improving Generalization in Language Model-Based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-Based Techniques27 May 2023
- 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capability12 Mar 2023
12 newest of 13 All 13 (JSON)