Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Tasks
Not on the map. Why?
Abstract (arXiv)
Systematic compositionality is an essential mechanism in human language, allowing the recombination of known parts to create novel expressions. However, existing neural models have been shown to lack this basic ability in learning symbolic structures. Motivated by the failure of a Transformer model on the SCAN compositionality challenge (Lake and Baroni, 2018), which requires parsing a command into actions, we propose two auxiliary sequence prediction tasks that track the progress of function and argument semantics, as additional training supervision. These automatically-generated sequences are more representative of the underlying compositional symbolic structures of the input data. During inference, the model jointly predicts the next action and the next tokens in the auxiliary sequences at each step. Experiments on the SCAN dataset show that our method encourages the Transformer to understand compositional structures of the command, improving its accuracy on multiple challenging splits from <= 10% to 100%. With only 418 (5%) training instances, our approach still achieves 97.8% accuracy on the MCD1 split. Therefore, we argue that compositionality can be induced in Transformers given minimal but proper guidance. We also show that a better result is achieved using less contextualized vectors as the attention's query, providing insights into architecture choices in achieving systematic compositionality. Finally, we show positive generalization results on the groundedSCAN task (Ruis et al., 2020). Our code is publicly available at: https://github.com/jiangycTarheel/compositional-auxseq
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Builds on 26 of its 42 references that are in the map. First posted on arXiv 30 Sep 2021.
Builds on
26 of 42 references.
References · 26
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 350
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
- 2019Good-Enough Compositional Data Augmentationcited by 158
- 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
- 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
- 2020A Benchmark for Systematic Generalization in Grounded Language Understandingcited by 108
- 2017Building machines that adapt and compute like brainscited by 99
- 2019Compositional generalization through meta sequence-to-sequence learningcited by 98
- 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
14 more
- 2020Learning Compositional Rules via Neural Program Synthesiscited by 74
- 2020Learning to Recombine and Resample Data for Compositional Generalizationcited by 65
- 2021Meta-Learning to Compositionally Generalizecited by 62
- 2021Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representationscited by 55
- 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
- 2020Improving Compositional Generalization in Semantic Parsingcited by 42
- 2018Memorize or generalize? Searching for a compositional RNN in a haystackcited by 41
- 2020Compositional Generalization via Semantic Taggingcited by 32
- 2018Jump to better conclusions: SCAN both left and rightcited by 29
- 2019CNNs found to jump around more skillfully than RNNs: Compositional generalization in seq2seq convolutional networkscited by 22
- 2020Revisiting Iterative Back-Translation from the Perspective of Compositional Generalizationcited by 19
- 2020*-CFQ: Analyzing the Scalability of Machine Learning on a Compositional Taskcited by 16
Built on by
Citing papers per year: 2021: 1; 2022: 7; 2023: 4; 2024: 4; 2025: 2; 2026: 1.
19 papers.
Sort:
By area:
- 2022State-of-the-art generalisation research in NLP: A taxonomy and reviewcited by 97
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
- 2021Improving Compositional Generalization with Latent Structure and Data Augmentationcited by 46
- 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
- 2022Improving Systematic Generalization Through Modularity and Augmentationcited by 13
- 2024Language-Guided World Models: A Model-Based Approach to AI Controlcited by 12
- 2022Mutual Exclusivity Training and Primitive Augmentation to Induce Compositionalitycited by 8
- 2024From Frege to chatGPT: Compositionality in language, cognition, and deep neural networkscited by 7
- 2023Data Factors for Better Compositional Generalizationcited by 5
- 2024Towards Understanding the Relationship between In-context Learning and Compositional Generalizationcited by 5
- 2023Learning to Compose Representations of Different Encoder Layers towards Improving Compositional Generalizationcited by 3
7 more
- 2023Layer-wise Representation Fusion for Compositional Generalizationcited by 2
- 2026Representational Homomorphism Predicts and Improves Compositional Generalization In Transformer Language Modelcited by 2
- 2023Syntax-Guided Transformers: Elevating Compositional Generalization and Grounding in Multimodal Environmentscited by 1
- 2024Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddingscited by 1
- 2025A Compressive-Expressive Communication Framework for Compositional Representationscited by 1
- 2022A Short Survey of Systematic Generalizationcited by 0
- 2025A Neuroscience-Inspired Dual-Process Model of Compositional Generalizationcited by 0
- 2026Representational Homomorphism Predicts and Improves Compositional Generalization In Transformer Language Model26 Jan 2026
- 2025A Neuroscience-Inspired Dual-Process Model of Compositional Generalization25 Jul 2025
- 2025A Compressive-Expressive Communication Framework for Compositional Representations31 Jan 2025
- 2024From Frege to chatGPT: Compositionality in language, cognition, and deep neural networks24 May 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
- 2024Language-Guided World Models: A Model-Based Approach to AI Control24 Jan 2024
- 2023Data Factors for Better Compositional Generalization8 Nov 2023
- 2023Syntax-Guided Transformers: Elevating Compositional Generalization and Grounding in Multimodal Environments7 Nov 2023
- 2023Layer-wise Representation Fusion for Compositional Generalization20 Jul 2023
- 2023Learning to Compose Representations of Different Encoder Layers towards Improving Compositional Generalization20 May 2023
- 2022Uncontrolled Lexical Exposure Leads to Overestimation of Compositional Generalization in Pretrained Models21 Dec 2022
7 more
- 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
- 2022State-of-the-art generalisation research in NLP: A taxonomy and review6 Oct 2022
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsing24 May 2022
- 2022Improving Systematic Generalization Through Modularity and Augmentation22 Feb 2022
- 2021Improving Compositional Generalization with Latent Structure and Data Augmentation14 Dec 2021
- 2022State-of-the-art generalisation research in NLP: A taxonomy and reviewcited by 97
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
- 2021Improving Compositional Generalization with Latent Structure and Data Augmentationcited by 46
- 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
- 2022Improving Systematic Generalization Through Modularity and Augmentationcited by 13
- 2022Mutual Exclusivity Training and Primitive Augmentation to Induce Compositionalitycited by 8
- 2024From Frege to chatGPT: Compositionality in language, cognition, and deep neural networkscited by 7
- 2023Data Factors for Better Compositional Generalizationcited by 5
- 2024Towards Understanding the Relationship between In-context Learning and Compositional Generalizationcited by 5
- 2023Learning to Compose Representations of Different Encoder Layers towards Improving Compositional Generalizationcited by 3
- 2023Layer-wise Representation Fusion for Compositional Generalizationcited by 2
12 most cited of 18 All 18 (JSON)
- 2026Representational Homomorphism Predicts and Improves Compositional Generalization In Transformer Language Model26 Jan 2026
- 2025A Neuroscience-Inspired Dual-Process Model of Compositional Generalization25 Jul 2025
- 2025A Compressive-Expressive Communication Framework for Compositional Representations31 Jan 2025
- 2024From Frege to chatGPT: Compositionality in language, cognition, and deep neural networks24 May 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
- 2023Data Factors for Better Compositional Generalization8 Nov 2023
- 2023Syntax-Guided Transformers: Elevating Compositional Generalization and Grounding in Multimodal Environments7 Nov 2023
- 2023Layer-wise Representation Fusion for Compositional Generalization20 Jul 2023
- 2023Learning to Compose Representations of Different Encoder Layers towards Improving Compositional Generalization20 May 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
12 newest of 18 All 18 (JSON)