mlsanityData to 7 Oct 2026

A mathematical theory of balancing relational generalization and memorization

arXiv 2605.22972 ↗First posted 21 May 2026cs.LG cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Humans, animals, and modern machine learning models exhibit impressive abilities to learn complex behaviors and generalize these behaviors to unseen situations. This ability requires us to learn rules and regularities that allow for such generalizations. At the same time, in most complex environments, any rule will have its exceptions. How do learning systems balance between learning general regularities and memorizing exceptions? We argue that a lack of task paradigms has hindered the study of this essential ability. To address this gap, we introduce a novel task, transitive inference with exceptions, that tests for relational generalization and memorization of an exception to the relational rule. We then analytically characterize the behavior of a simple, theoretically tractable model of neural network learning (kernel ridge regression) across a broad family of representations and task parameters. We find that these models can balance between relational generalization and memorization, but unlike for transitive inference without an exception, successful generalization is sensitive to the specific representational geometry. We explain why this task is more challenging mechanistically by drawing on our analytical theory. Finally, we validate our theoretical insights in pretrained language models that are finetuned on ordered relations, finding that these models successfully generalize according to the transitive rule, but also make the kinds of systematic mistakes predicted by our theory. Overall, our theory shows how learning systems can balance between relational generalization and memorization, explains how this can go wrong, and emphasizes the need for new task paradigms designed to probe this ability.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 51 of its 116 references that are in the map. First posted on arXiv 21 May 2026.

Builds on

51 of 116 references.

References · 51

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
  4. 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
  5. 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,445
  6. 2018Relational inductive biases, deep learning, and graph networkscited by 1,341
  7. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  8. 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 722
  9. 2018On Lazy Training in Differentiable Programmingcited by 671
  10. 2017The Implicit Bias of Gradient Descent on Separable Datacited by 649
  11. 2019Benign Overfitting in Linear Regressioncited by 544
  12. 2019The generalization error of random features regression: Precise asymptotics and double descent curvecited by 410
38 more
  1. 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
  2. 2024LoRA Learns Less and Forgets Lesscited by 313
  3. 2020Kernel and Rich Regimes in Overparametrized Modelscited by 302
  4. 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
  5. 2020Implicit Bias of Gradient Descent for Wide Two-layer Neural Networks Trained with the Logistic Losscited by 267
  6. 2019Compositionality decomposed: how do neural networks generalise?cited by 264
  7. 2018Characterizing Implicit Bias in Terms of Optimization Geometrycited by 259
  8. 2022Language models show human-like content effects on reasoning taskscited by 171
  9. 2020Spectral Bias and Task-Model Alignment Explain Generalization in Kernel Regression and Infinitely Wide Neural Networkscited by 166
  10. 2024Do Large Language Models Latently Perform Multi-Hop Reasoning?cited by 165
  11. 2020Benign overfitting in ridge regressioncited by 152
  12. 2022A Kernel-Based View of Language Model Fine-Tuningcited by 118
  13. 2020Optimal Regularization Can Mitigate Double Descentcited by 107
  14. 2024Revisiting Catastrophic Forgetting in Large Language Model Tuningcited by 93
  15. 2018An analytic theory of generalization dynamics and transfer learning in deep linear networkscited by 84
  16. 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
  17. 2023Compositional Generalization from First Principlescited by 62
  18. 2020Gradient descent follows the regularization path for general lossescited by 57
  19. 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
  20. 2023Provable Compositional Generalization for Object-Centric Learningcited by 41
  21. 2025Scaling Laws for Forgetting during Finetuning with Pretraining Data Injectioncited by 35
  22. 2023The Relational Bottleneck as an Inductive Bias for Efficient Abstractioncited by 26
  23. 2023When can transformers reason with abstract symbols?cited by 23
  24. 2023Discovering modular solutions that generalize compositionallycited by 22
  25. 2021Out-of-Distribution Generalization in Kernel Regressioncited by 21
  26. 2024When does compositional structure yield compositional generalization? A kernel theorycited by 19
  27. 2024Interaction Asymmetry: A General Principle for Learning Composable Abstractionscited by 19
  28. 2021The Interplay Between Implicit Bias and Benign Overfitting in Two-Layer Linear Networkscited by 18
  29. 2024On The Specialization of Neural Modulescited by 14
  30. 2023Inductive biases of multi-task learning and finetuning: multiple regimes of feature reusecited by 9
  31. 2025Scaling can lead to compositional generalizationcited by 7
  32. 2025Predicting kernel regression learning curves from only raw data statisticscited by 6
  33. 2023An Agnostic View on the Cost of Overfitting in (Kernel) Ridge Regressioncited by 5
  34. 2026A Theory of How Pretraining Shapes Inductive Bias in Fine-Tuningcited by 5
  35. 2025Beyond Benign Overfitting in Nadaraya-Watson Interpolatorscited by 2
  36. 2025Learning richness modulates equality reasoning in neural networkscited by 2
  37. 2026Linearization Explains Fine-Tuning in Large Language Modelscited by 2
  38. 2023The Topology of Pokercited by 1

50 most cited of 51 All 51 (JSON)

Built on by

Not cited yet.