Data Factors for Better Compositional Generalization
Not on the map. Why?
Abstract (arXiv)
Recent diagnostic datasets on compositional generalization, such as SCAN (Lake and Baroni, 2018) and COGS (Kim and Linzen, 2020), expose severe problems in models trained from scratch on these datasets. However, in contrast to this poor performance, state-of-the-art models trained on larger and more general datasets show better generalization ability. In this work, to reconcile this inconsistency, we conduct an empirical analysis by training Transformer models on a variety of training sets with different data factors, including dataset scale, pattern complexity, example difficulty, etc. First, we show that increased dataset complexity can lead to better generalization behavior on multiple different generalization challenges. To further understand this improvement, we show two axes of the benefit from more complex datasets: they provide more diverse examples so compositional understanding becomes more effective, and they also prevent ungeneralizable memorization of the examples due to reduced example repetition frequency. Finally, we explore how training examples of different difficulty levels influence generalization differently. On synthetic datasets, simple examples invoke stronger compositionality than hard examples do. On larger-scale real language datasets, while hard examples become more important potentially to ensure decent data coverage, a balanced mixture of simple and hard examples manages to induce the strongest generalizability. The code and data for this work are available at https://github.com/owenzx/data4comp
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 40 of its 63 references that are in the map. First posted on arXiv 8 Nov 2023.
Builds on
40 of 63 references.
References · 40
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2018Annotation Artifacts in Natural Language Inference Datacited by 656
- 2022Beyond neural scaling laws: beating power law scaling via data pruningcited by 519
- 2020Dataset Cartography: Mapping and Diagnosing Datasets with Training Dynamicscited by 423
- 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 350
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
28 more
- 2019Compositionality decomposed: how do neural networks generalise?cited by 264
- 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
- 2022Scaling Laws and Interpretability of Learning from Repeated Datacited by 147
- 2018Improving Text-to-SQL Evaluation Methodologycited by 133
- 2020Task-Oriented Dialogue as Dataflow Synthesiscited by 122
- 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
- 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
- 2019Compositional generalization through meta sequence-to-sequence learningcited by 98
- 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
- 2020Learning to Recombine and Resample Data for Compositional Generalizationcited by 65
- 2021Meta-Learning to Compositionally Generalizecited by 62
- 2021The paradox of the compositionality of natural language: a neural machine translation case studycited by 58
- 2021Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representationscited by 55
- 2018Rearranging the Familiar: Testing Compositional Generalization in Recurrent Networkscited by 51
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
- 2019Compositional Generalization for Primitive Substitutionscited by 48
- 2020Improving Compositional Generalization in Semantic Parsingcited by 42
- 2022Characterizing Intrinsic Compositionality in Transformers with Tree Projectionscited by 40
- 2020Compositional Generalization via Semantic Taggingcited by 32
- 2021Sequence-to-Sequence Learning with Latent Neural Grammarscited by 30
- 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
- 2022Revisiting the Compositional Generalization Abilities of Neural Sequence Modelscited by 20
- 2021Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Taskscited by 19
- 2020*-CFQ: Analyzing the Scalability of Machine Learning on a Compositional Taskcited by 16
- 2022Mutual Exclusivity Training and Primitive Augmentation to Induce Compositionalitycited by 8
Built on by
Citing papers per year: 2025: 5.
5 papers.
- 2025Does Data Scaling Lead to Visual Compositional Generalization?cited by 13
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignmentcited by 3
- 2025Systematic Generalization in Language Models Scales with Information Entropycited by 2
- 2025Losing our Tail, Again: (Un)Natural Selection & Multilingual LLMscited by 1
- 2025Data Distributional Properties As Inductive Bias for Systematic Generalizationcited by 0
- 2025Does Data Scaling Lead to Visual Compositional Generalization?9 Jul 2025
- 2025Losing our Tail, Again: (Un)Natural Selection & Multilingual LLMs5 Jul 2025
- 2025Systematic Generalization in Language Models Scales with Information Entropy19 May 2025
- 2025Data Distributional Properties As Inductive Bias for Systematic Generalization27 Feb 2025
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignment16 Feb 2025