mlsanityData to 14 Oct 2026

Memorize or generalize? Searching for a compositional RNN in a haystack

arXiv 1802.06467 ↗First posted 18 Feb 2018cs.AI cs.LG cs.NEcited by 41

Not on the map. Why?

Abstract (arXiv)

Neural networks are very powerful learning systems, but they do not readily generalize from one task to the other. This is partly due to the fact that they do not learn in a compositional way, that is, by discovering skills that are shared by different tasks, and recombining them to solve new problems. In this paper, we explore the compositional generalization capabilities of recurrent neural networks (RNNs). We first propose the lookup table composition domain as a simple setup to test compositional behaviour and show that it is theoretically possible for a standard RNN to learn to behave compositionally in this domain when trained with standard gradient descent and provided with additional supervision. We then remove this additional supervision and perform a search over a large number of model initializations to investigate the proportion of RNNs that can still converge to a compositional solution. We discover that a small but non-negligible proportion of RNNs do reach partial compositional solutions even without special architectural constraints. This suggests that a combination of gradient descent and evolutionary strategies directly favouring the minority models that developed more compositional approaches might suffice to lead standard RNNs towards compositional solutions.

Key facts. Cited by 41 papers in the map (data through 14 Oct 2026). First posted on arXiv 18 Feb 2018.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

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

41 papers.

Sort:

By area:

  1. 2021The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformerscited by 117
  2. 2022State-of-the-art generalisation research in NLP: A taxonomy and reviewcited by 98
  3. 2021Making Transformers Solve Compositional Taskscited by 72
  4. 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
  5. 2022Transformers in Time-series Analysis: A Tutorialcited by 46
  6. 2021On the proper role of linguistically-oriented deep net analysis in linguistic theorizingcited by 43
  7. 2021Pointer Value Retrieval: A new benchmark for understanding the limits of neural network generalizationcited by 29
  8. 2023Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Taskscited by 22
  9. 2021Inducing Transformer's Compositional Generalization Ability via Auxiliary Sequence Prediction Taskscited by 19
  10. 2023Dissecting Chain-of-Thought: Compositionality through In-Context Filtering and Learningcited by 19
  11. 2021Improving Compositional Generalization in Classification Tasks via Structure Annotationscited by 12
  12. 2021Compositional Attention: Disentangling Search and Retrievalcited by 12
29 more
  1. 2022LogicInference: A New Dataset for Teaching Logical Inference to seq2seq Modelscited by 12
  2. 2022CTL++: Evaluating Generalization on Never-Seen Compositional Patterns of Known Functions, and Compatibility of Neural Representationscited by 12
  3. 2023The Validity of Evaluation Results: Assessing Concurrence Across Compositionality Benchmarkscited by 12
  4. 2022Induced Natural Language Rationales and Interleaved Markup Tokens Enable Extrapolation in Large Language Modelscited by 10
  5. 2023Monotonic Location Attention for Length Generalizationcited by 9
  6. 2024Benchmarking GPT-4 on Algorithmic Problems: A Systematic Evaluation of Prompting Strategiescited by 9
  7. 2022Mutual Exclusivity Training and Primitive Augmentation to Induce Compositionalitycited by 8
  8. 2021On the Interplay Between Fine-tuning and Composition in Transformerscited by 6
  9. 2021Iterative Decoding for Compositional Generalization in Transformerscited by 6
  10. 2023Visual Referential Games Further the Emergence of Disentangled Representationscited by 5
  11. 2022Does Entity Abstraction Help Generative Transformers Reason?cited by 3
  12. 2024Overcoming classic challenges for artificial neural networks by providing incentives and practicecited by 3
  13. 2021How Do Neural Sequence Models Generalize? Local and Global Context Cues for Out-of-Distribution Predictioncited by 2
  14. 2022Meta-Referential Games to Learn Compositional Learning Behaviourscited by 2
  15. 2024A Neural Rewriting System to Solve Algorithmic Problemscited by 2
  16. 2024Compositional learning of functions in humans and machinescited by 2
  17. 2024Attention-based Iterative Decomposition for Tensor Product Representationcited by 2
  18. 2024IWISDM: Assessing instruction following in multimodal models at scalecited by 2
  19. 2024From Words to Worlds: Compositionality for Cognitive Architecturescited by 1
  20. 2024MLissard: Multilingual Long and Simple Sequential Reasoning Benchmarkscited by 1
  21. 2021Relational Weight Priors in Neural Networks for Abstract Pattern Learning and Language Modellingcited by 0
  22. 2022A Short Survey of Systematic Generalizationcited by 0
  23. 2023Self-Organising Neural Discrete Representation Learning `a la Kohonencited by 0
  24. 2023Modularity Trumps Invariance for Compositional Robustnesscited by 0
  25. 2024Lissard: Long and Simple Sequential Reasoning Datasetscited by 0
  26. 2024Discrete Dictionary-based Decomposition Layer for Structured Representation Learningcited by 0
  27. 2025Iterative In-Context Learning to Enhance LLMs Abstract Reasoning: The Case-Study of Algebraic Taskscited by 0
  28. 2025Can Constructions "SCAN" Compositionality ?cited by 0
  29. 2026Generalization in LLM Problem Solving: The Case of the Shortest Pathcited by 0