mlsanityData to 14 Oct 2026

Learning to Substitute Components for Compositional Generalization

arXiv 2502.20834 ↗First posted 28 Feb 2025cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Despite the rising prevalence of neural language models, recent empirical evidence suggests their deficiency in compositional generalization. One of the current de-facto solutions to this problem is compositional data augmentation, which aims to introduce additional compositional inductive bias. However, existing handcrafted augmentation strategies offer limited improvement when systematic generalization of neural language models requires multi-grained compositional bias (i.e., not limited to either lexical or structural biases alone) or when training sentences have an imbalanced difficulty distribution. To address these challenges, we first propose a novel compositional augmentation strategy called Component Substitution (CompSub), which enables multi-grained composition of substantial substructures across the entire training set. Furthermore, we introduce the Learning Component Substitution (LCS) framework. This framework empowers the learning of component substitution probabilities in CompSub in an end-to-end manner by maximizing the loss of neural language models, thereby prioritizing challenging compositions with elusive concepts and novel contexts. We extend the key ideas of CompSub and LCS to the recently emerging in-context learning scenarios of pre-trained large language models (LLMs), proposing the LCS-ICL algorithm to enhance the few-shot compositional generalization of state-of-the-art (SOTA) LLMs. Theoretically, we provide insights into why applying our algorithms to language models can improve compositional generalization performance. Empirically, our results on four standard compositional generalization benchmarks(SCAN, COGS, GeoQuery, and COGS-QL) demonstrate the superiority of CompSub, LCS, and LCS-ICL, with improvements of up to 66.5%, 10.3%, 1.4%, and 8.8%, respectively.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 69 of its 89 references that are in the map. First posted on arXiv 28 Feb 2025.

Builds on

69 of 89 references.

References · 69

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2022Training language models to follow instructions with human feedbackcited by 15,971
  5. 2024The Llama 3 Herd of Modelscited by 14,715
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  8. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  9. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  10. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
  11. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  12. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
38 more
  1. 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
  2. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
  3. 2019Invariant Risk Minimizationcited by 1,854
  4. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
  5. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,407
  6. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
  7. 2022Transformers learn in-context by gradient descentcited by 732
  8. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  9. 2023Learning to Compress Prompts with Gist Tokenscited by 390
  10. 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
  11. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 284
  12. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 263
  13. 2017OpenNMT: Open-source Toolkit for Neural Machine Translationcited by 251
  14. 2019Good-Enough Compositional Data Augmentationcited by 158
  15. 2020Compositional Generalization and Natural Language Variation: Can a Semantic Parsing Approach Handle Both?cited by 147
  16. 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 139
  17. 2018Improving Text-to-SQL Evaluation Methodologycited by 135
  18. 2016Data Recombination for Neural Semantic Parsingcited by 111
  19. 2019Compositional generalization through meta sequence-to-sequence learningcited by 99
  20. 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
  21. 2022Compositional Semantic Parsing with Large Language Modelscited by 95
  22. 2021Provably Strict Generalisation Benefit for Equivariant Modelscited by 91
  23. 2020On the Benefits of Invariance in Neural Networkscited by 79
  24. 2020Span-based Semantic Parsing for Compositional Generalizationcited by 77
  25. 2021Making Transformers Solve Compositional Taskscited by 72
  26. 2020Sequence-Level Mixed Sample Data Augmentationcited by 71
  27. 2021Meta-Learning to Compositionally Generalizecited by 62
  28. 2023Coverage-based Example Selection for In-Context Learningcited by 59
  29. 2021Unlocking Compositional Generalization in Pre-trained Models Using Intermediate Representationscited by 55
  30. 2023How Do In-Context Examples Affect Compositional Generalization?cited by 51
  31. 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
  32. 2019Compositional Generalization for Primitive Substitutionscited by 48
  33. 2021Tighter expected generalization error bounds via Wasserstein distancecited by 43
  34. 2024The Clever Hans Mirage: A Comprehensive Survey on Spurious Correlations in Machine Learningcited by 41
  35. 2021Disentangled Sequence to Sequence Learning for Compositional Generalizationcited by 30
  36. 2022Unobserved Local Structures Make Compositional Generalization Hardcited by 29
  37. 2021Lexicon Learning for Few-Shot Neural Sequence Modelingcited by 28
  38. 2021Finding needles in a haystack: Sampling Structurally-diverse Training Sets from Synthetic Data for Compositional Generalizationcited by 27

50 most cited of 69 All 69 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.