Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representations
Not on the map. Why?
Abstract (arXiv)
Sequence-to-sequence (seq2seq) models are prevalent in semantic parsing, but have been found to struggle at out-of-distribution compositional generalization. While specialized model architectures and pre-training of seq2seq models have been proposed to address this issue, the former often comes at the cost of generality and the latter only shows limited success. In this paper, we study the impact of intermediate representations on compositional generalization in pre-trained seq2seq models, without changing the model architecture at all, and identify key aspects for designing effective representations. Instead of training to directly map natural language to an executable form, we map to a reversible or lossy intermediate representation that has stronger structural correspondence with natural language. The combination of our proposed intermediate representations and pre-trained models is surprisingly effective, where the best combinations obtain a new state-of-the-art on CFQ (+14.8 accuracy points) and on the template-splits of three text-to-SQL datasets (+15.0 to +19.4 accuracy points). This work highlights that intermediate representations provide an important and potentially overlooked degree of freedom for improving the compositional generalization abilities of pre-trained seq2seq models.
Key facts. Cited by 55 papers in the map (data through 14 Oct 2026). Builds on 36 of its 49 references that are in the map. First posted on arXiv 15 Apr 2021.
Builds on
36 of 49 references.
References · 36
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
- 2018Universal Transformerscited by 647
- 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 424
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 284
- 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
- 2019The Evolved Transformercited by 180
- 2016Language to Logical Form with Neural Attentioncited by 158
24 more
- 2019Good-Enough Compositional Data Augmentationcited by 158
- 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
- 2018Improving Text-to-SQL Evaluation Methodologycited by 135
- 2016Data Recombination for Neural Semantic Parsingcited by 111
- 2018Coarse-to-Fine Decoding for Neural Semantic Parsingcited by 110
- 2017Learning a Neural Semantic Parser from User Feedbackcited by 99
- 2019Compositional generalization through meta sequence-to-sequence learningcited by 99
- 2020SmBoP: Semi-autoregressive Bottom-up Semantic Parsingcited by 97
- 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
- 2020Compositional Generalization via Neural-Symbolic Stack Machinescited by 80
- 2020Span-based Semantic Parsing for Compositional Generalizationcited by 77
- 2020Learning Compositional Rules via Neural Program Synthesiscited by 74
- 2019Compositional generalization in a deep seq2seq model by separating syntax and semanticscited by 56
- 2020Compositional Generalization by Learning Analytical Expressionscited by 53
- 2018Rearranging the Familiar: Testing Compositional Generalization in Recurrent Networkscited by 51
- 2019Compositional Generalization for Primitive Substitutionscited by 48
- 2020The EOS Decision and Length Extrapolationcited by 46
- 2019Learning to Infer Program Sketchescited by 44
- 2020Improving Compositional Generalization in Semantic Parsingcited by 42
- 2020Compositional Generalization via Semantic Taggingcited by 32
- 2019SEQ^3: Differentiable Sequence-to-Sequence-to-Sequence Autoencoder for Unsupervised Abstractive Sentence Compressioncited by 27
- 2020Hierarchical Poset Decoding for Compositional Generalization in Languagecited by 26
- 2020Revisiting Iterative Back-Translation from the Perspective of Compositional Generalizationcited by 19
- 2018Decoupling Structure and Lexicon for Zero-Shot Semantic Parsingcited by 11
Built on by
Citing papers per year: 2021: 17; 2022: 15; 2023: 18; 2024: 3; 2025: 2.
55 papers.
Sort:
By area:
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 163
- 2021ExT5: Towards Extreme Multi-Task Scaling for Transfer Learningcited by 161
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2022Compositional Semantic Parsing with Large Language Modelscited by 95
- 2021Making Transformers Solve Compositional Taskscited by 72
- 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 68
- 2023How Do In-Context Examples Affect Compositional Generalization?cited by 51
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
- 2022Recent Advances in Text-to-SQL: A Survey of What We Have and What We Expectcited by 47
- 2021Improving Compositional Generalization with Latent Structure and Data Augmentationcited by 46
- 2022Modern Baselines for SPARQL Semantic Parsingcited by 34
- 2021Reason first, then respond: Modular Generation for Knowledge-infused Dialoguecited by 32
38 more
- 2022Unobserved Local Structures Make Compositional Generalization Hardcited by 29
- 2021Finding needles in a haystack: Sampling Structurally-diverse Training Sets from Synthetic Data for Compositional Generalizationcited by 27
- 2022Uncontrolled Lexical Exposure Leads to Overestimation of Compositional Generalization in Pretrained Modelscited by 26
- 2022On the Compositional Generalization Gap of In-Context Learningcited by 24
- 2023Improving Generalization in Language Model-Based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-Based Techniquescited by 24
- 2022Few-shot Subgoal Planning with Language Modelscited by 22
- 2023SLOG: A Structural Generalization Benchmark for Semantic Parsingcited by 22
- 2021Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Taskscited by 19
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17
- 2021Weakly Supervised Text-to-SQL Parsing through Question Decompositioncited by 15
- 2023A Parse-Then-Place Approach for Generating Graphic Layouts from Textual Descriptionscited by 15
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practicescited by 15
- 2021On The Ingredients of an Effective Zero-shot Semantic Parsercited by 13
- 2022GraphQ IR: Unifying the Semantic Parsing of Graph Query Languages with One Intermediate Representationcited by 13
- 2023Leveraging Code to Improve In-context Learning for Semantic Parsingcited by 10
- 2021Compositional Generalization in Multilingual Semantic Parsing over Wikidatacited by 9
- 2023LeafAI: query generator for clinical cohort discovery rivaling a human programmercited by 9
- 2022Mutual Exclusivity Training and Primitive Augmentation to Induce Compositionalitycited by 8
- 2023Learning to Substitute Spans towards Improving Compositional Generalizationcited by 8
- 2021LAGr: Labeling Aligned Graphs for Improving Systematic Generalization in Semantic Parsingcited by 7
- 2022Towards Generalizable and Robust Text-to-SQL Parsingcited by 7
- 2021Grounded Graph Decoding Improves Compositional Generalization in Question Answeringcited by 6
- 2021Learning to Generalize Compositionally by Transferring Across Semantic Parsing Taskscited by 6
- 2022Compositional Generalization and Decomposition in Neural Program Synthesiscited by 6
- 2022Generalization Differences between End-to-End and Neuro-Symbolic Vision-Language Reasoning Systemscited by 6
- 2023On Evaluating Multilingual Compositional Generalization with Translated Datasetscited by 6
- 2021Pay More Attention to History: A Context Modelling Strategy for Conversational Text-to-SQLcited by 5
- 2023Knowledge-augmented Few-shot Visual Relation Detectioncited by 5
- 2023Data Factors for Better Compositional Generalizationcited by 5
- 2024Towards Understanding the Relationship between In-context Learning and Compositional Generalizationcited by 5
- 2021Compositional Generalization in Dependency Parsingcited by 4
- 2023Structural generalization in COGS: Supertagging is (almost) all you needcited by 4
- 2023Learning to Compose Representations of Different Encoder Layers towards Improving Compositional Generalizationcited by 3
- 2023Knowledge Base Question Answering for Space Debris Queriescited by 3
- 2023Semantic-aware Contrastive Learning for More Accurate Semantic Parsingcited by 2
- 2023Laziness Is a Virtue When It Comes to Compositionality in Neural Semantic Parsingcited by 2
- 2023Layer-wise Representation Fusion for Compositional Generalizationcited by 2
- 2023An In-Context Schema Understanding Method for Knowledge Base Question Answeringcited by 1
50 most cited of 55 All 55 (JSON)
- 2025Can Constructions "SCAN" Compositionality ?24 Sep 2025
- 2025Learning to Substitute Components for Compositional Generalization28 Feb 2025
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practices13 Jun 2024
- 2024Towards Understanding the Relationship between In-context Learning and Compositional Generalization18 Mar 2024
- 2024Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddings9 Feb 2024
- 2023Leveraging Code to Improve In-context Learning for Semantic Parsing16 Nov 2023
- 2023Data Factors for Better Compositional Generalization8 Nov 2023
- 2023SLOG: A Structural Generalization Benchmark for Semantic Parsing23 Oct 2023
- 2023An In-Context Schema Understanding Method for Knowledge Base Question Answering22 Oct 2023
- 2023Structural generalization in COGS: Supertagging is (almost) all you need21 Oct 2023
- 2023A Parse-Then-Place Approach for Generating Graphic Layouts from Textual Descriptions24 Aug 2023
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesis26 Jul 2023
38 more
- 2023Layer-wise Representation Fusion for Compositional Generalization20 Jul 2023
- 2023On Evaluating Multilingual Compositional Generalization with Translated Datasets20 Jun 2023
- 2023Learning to Substitute Spans towards Improving Compositional Generalization5 Jun 2023
- 2023Knowledge Base Question Answering for Space Debris Queries31 May 2023
- 2023Improving Generalization in Language Model-Based Text-to-SQL Semantic Parsing: Two Simple Semantic Boundary-Based Techniques27 May 2023
- 2023Learning to Compose Representations of Different Encoder Layers towards Improving Compositional Generalization20 May 2023
- 2023How Do In-Context Examples Affect Compositional Generalization?8 May 2023
- 2023Laziness Is a Virtue When It Comes to Compositionality in Neural Semantic Parsing7 May 2023
- 2023LeafAI: query generator for clinical cohort discovery rivaling a human programmer13 Apr 2023
- 2023Knowledge-augmented Few-shot Visual Relation Detection9 Mar 2023
- 2023Semantic-aware Contrastive Learning for More Accurate Semantic Parsing19 Jan 2023
- 2022Uncontrolled Lexical Exposure Leads to Overestimation of Compositional Generalization in Pretrained Models21 Dec 2022
- 2022Mutual Exclusivity Training and Primitive Augmentation to Induce Compositionality28 Nov 2022
- 2022A Short Survey of Systematic Generalization22 Nov 2022
- 2022On the Compositional Generalization Gap of In-Context Learning15 Nov 2022
- 2022Generalization Differences between End-to-End and Neuro-Symbolic Vision-Language Reasoning Systems26 Oct 2022
- 2022Towards Generalizable and Robust Text-to-SQL Parsing23 Oct 2022
- 2022Compositional Semantic Parsing with Large Language Models29 Sep 2022
- 2022Recent Advances in Text-to-SQL: A Survey of What We Have and What We Expect22 Aug 2022
- 2022Few-shot Subgoal Planning with Language Models28 May 2022
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsing24 May 2022
- 2022GraphQ IR: Unifying the Semantic Parsing of Graph Query Languages with One Intermediate Representation24 May 2022
- 2022LAGr: Label Aligned Graphs for Better Systematic Generalization in Semantic Parsing19 May 2022
- 2022Modern Baselines for SPARQL Semantic Parsing27 Apr 2022
- 2022Compositional Generalization and Decomposition in Neural Program Synthesis7 Apr 2022
- 2022Unobserved Local Structures Make Compositional Generalization Hard15 Jan 2022
- 2021Pay More Attention to History: A Context Modelling Strategy for Conversational Text-to-SQL16 Dec 2021
- 2021Improving Compositional Generalization with Latent Structure and Data Augmentation14 Dec 2021
- 2021Weakly Supervised Text-to-SQL Parsing through Question Decomposition12 Dec 2021
- 2021ExT5: Towards Extreme Multi-Task Scaling for Transfer Learning22 Nov 2021
- 2021Reason first, then respond: Modular Generation for Knowledge-infused Dialogue9 Nov 2021
- 2021Learning to Generalize Compositionally by Transferring Across Semantic Parsing Tasks9 Nov 2021
- 2021Grounded Graph Decoding Improves Compositional Generalization in Question Answering5 Nov 2021
- 2021On The Ingredients of an Effective Zero-shot Semantic Parser15 Oct 2021
- 2021LAGr: Labeling Aligned Graphs for Improving Systematic Generalization in Semantic Parsing14 Oct 2021
- 2021Compositional Generalization in Dependency Parsing13 Oct 2021
- 2021Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Tasks30 Sep 2021
- 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specifications11 Sep 2021
50 newest of 55 All 55 (JSON)
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 163
- 2021ExT5: Towards Extreme Multi-Task Scaling for Transfer Learningcited by 161
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2022Compositional Semantic Parsing with Large Language Modelscited by 95
- 2021Making Transformers Solve Compositional Taskscited by 72
- 2021Natural SQL: Making SQL Easier to Infer from Natural Language Specificationscited by 68
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
- 2022Recent Advances in Text-to-SQL: A Survey of What We Have and What We Expectcited by 47
- 2021Improving Compositional Generalization with Latent Structure and Data Augmentationcited by 46
- 2022Modern Baselines for SPARQL Semantic Parsingcited by 34
- 2021Reason first, then respond: Modular Generation for Knowledge-infused Dialoguecited by 32
- 2022Unobserved Local Structures Make Compositional Generalization Hardcited by 29
12 most cited of 54 All 54 (JSON)
- 2025Can Constructions "SCAN" Compositionality ?24 Sep 2025
- 2025Learning to Substitute Components for Compositional Generalization28 Feb 2025
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practices13 Jun 2024
- 2024Towards Understanding the Relationship between In-context Learning and Compositional Generalization18 Mar 2024
- 2024Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddings9 Feb 2024
- 2023Leveraging Code to Improve In-context Learning for Semantic Parsing16 Nov 2023
- 2023Data Factors for Better Compositional Generalization8 Nov 2023
- 2023SLOG: A Structural Generalization Benchmark for Semantic Parsing23 Oct 2023
- 2023An In-Context Schema Understanding Method for Knowledge Base Question Answering22 Oct 2023
- 2023Structural generalization in COGS: Supertagging is (almost) all you need21 Oct 2023
- 2023A Parse-Then-Place Approach for Generating Graphic Layouts from Textual Descriptions24 Aug 2023
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesis26 Jul 2023
12 newest of 54 All 54 (JSON)