mlsanityData to 7 Oct 2026

Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Tasks

arXiv 2109.15256 ↗First posted 30 Sep 2021cs.CL cs.AI cs.LGcited by 19

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 350
  4. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
  5. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  6. 2019Good-Enough Compositional Data Augmentationcited by 158
  7. 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
  8. 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
  9. 2020A Benchmark for Systematic Generalization in Grounded Language Understandingcited by 108
  10. 2017Building machines that adapt and compute like brainscited by 99
  11. 2019Compositional generalization through meta sequence-to-sequence learningcited by 98
  12. 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
14 more
  1. 2020Learning Compositional Rules via Neural Program Synthesiscited by 74
  2. 2020Learning to Recombine and Resample Data for Compositional Generalizationcited by 65
  3. 2021Meta-Learning to Compositionally Generalizecited by 62
  4. 2021Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representationscited by 55
  5. 2020Compositional Generalization by Learning Analytical Expressionscited by 53
  6. 2018Rearranging the Familiar: Testing Compositional Generalization in Recurrent Networkscited by 51
  7. 2019Compositional Generalization for Primitive Substitutionscited by 48
  8. 2020Improving Compositional Generalization in Semantic Parsingcited by 42
  9. 2018Memorize or generalize? Searching for a compositional RNN in a haystackcited by 41
  10. 2020Compositional Generalization via Semantic Taggingcited by 32
  11. 2018Jump to better conclusions: SCAN both left and rightcited by 29
  12. 2019CNNs found to jump around more skillfully than RNNs: Compositional generalization in seq2seq convolutional networkscited by 22
  13. 2020Revisiting Iterative Back-Translation from the Perspective of Compositional Generalizationcited by 19
  14. 2020*-CFQ: Analyzing the Scalability of Machine Learning on a Compositional Taskcited by 16

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 7; 2023: 4; 2024: 4; 2025: 2; 2026: 1.

19 papers.

Sort:

By area:

  1. 2022State-of-the-art generalisation research in NLP: A taxonomy and reviewcited by 97
  2. 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
  3. 2021Improving Compositional Generalization with Latent Structure and Data Augmentationcited by 46
  4. 2022Uncontrolled Lexical Exposure Leads to Overestimation of Compositional Generalization in Pretrained Modelscited by 26
  5. 2022On the Compositional Generalization Gap of In-Context Learningcited by 24
  6. 2022Improving Systematic Generalization Through Modularity and Augmentationcited by 13
  7. 2024Language-Guided World Models: A Model-Based Approach to AI Controlcited by 12
  8. 2022Mutual Exclusivity Training and Primitive Augmentation to Induce Compositionalitycited by 8
  9. 2024From Frege to chatGPT: Compositionality in language, cognition, and deep neural networkscited by 7
  10. 2023Data Factors for Better Compositional Generalizationcited by 5
  11. 2024Towards Understanding the Relationship between In-context Learning and Compositional Generalizationcited by 5
  12. 2023Learning to Compose Representations of Different Encoder Layers towards Improving Compositional Generalizationcited by 3
7 more
  1. 2023Layer-wise Representation Fusion for Compositional Generalizationcited by 2
  2. 2026Representational Homomorphism Predicts and Improves Compositional Generalization In Transformer Language Modelcited by 2
  3. 2023Syntax-Guided Transformers: Elevating Compositional Generalization and Grounding in Multimodal Environmentscited by 1
  4. 2024Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddingscited by 1
  5. 2025A Compressive-Expressive Communication Framework for Compositional Representationscited by 1
  6. 2022A Short Survey of Systematic Generalizationcited by 0
  7. 2025A Neuroscience-Inspired Dual-Process Model of Compositional Generalizationcited by 0