mlsanityData to 7 Oct 2026

Initialization is Critical to Whether Transformers Fit Composite Functions by Reasoning or Memorizing

arXiv 2405.05409 ↗First posted 8 May 2024cs.LGcited by 15

Not on the map. Why?

Abstract (arXiv)

Transformers have shown impressive capabilities across various tasks, but their performance on compositional problems remains a topic of debate. In this work, we investigate the mechanisms of how transformers behave on unseen compositional tasks. We discover that the parameter initialization scale plays a critical role in determining whether the model learns inferential (reasoning-based) solutions, which capture the underlying compositional primitives, or symmetric (memory-based) solutions, which simply memorize mappings without understanding the compositional structure. By analyzing the information flow and vector representations within the model, we reveal the distinct mechanisms underlying these solution types. We further find that inferential (reasoning-based) solutions exhibit low complexity bias, which we hypothesize is a key factor enabling them to learn individual mappings for single anchors. We validate our conclusions on various real-world datasets. Our findings provide valuable insights into the role of initialization scale in tuning the reasoning and memorizing ability and we propose the initialization rate γ to be a convenient tunable hyper-parameter in common deep learning frameworks, where 1/dinγ is the standard deviation of parameters of the layer with din input neurons.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 61 of its 89 references that are in the map. First posted on arXiv 8 May 2024.

Builds on

61 of 89 references.

References · 61

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
  6. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  7. 2022Emergent Abilities of Large Language Modelscited by 2,483
  8. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  9. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  10. 2017A Closer Look at Memorization in Deep Networkscited by 936
  11. 2022Compositional Visual Generation with Composable Diffusion Modelscited by 619
  12. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
38 more
  1. 2019On Exact Computation with an Infinitely Wide Neural Netcited by 572
  2. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
  3. 2018A Mean Field View of the Landscape of Two-Layers Neural Networkscited by 463
  4. 2018On the Global Convergence of Gradient Descent for Over-parameterized Models using Optimal Transportcited by 422
  5. 2015An Introduction to Matrix Concentration Inequalitiescited by 391
  6. 2022Training-Free Structured Diffusion Guidance for Compositional Text-to-Image Synthesiscited by 386
  7. 2019Frequency Principle: Fourier Analysis Sheds Light on Deep Neural Networkscited by 360
  8. 2022Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thoughtcited by 334
  9. 2022Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoningcited by 331
  10. 2019Compositionality decomposed: how do neural networks generalise?cited by 264
  11. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  12. 2022Transformers Learn Shortcuts to Automatacited by 260
  13. 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
  14. 2023Reduce, Reuse, Recycle: Compositional Generation with Energy-Based Diffusion Models and MCMCcited by 216
  15. 2020Understanding the Difficulty of Training Transformerscited by 210
  16. 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
  17. 2022Omnigrok: Grokking Beyond Algorithmic Datacited by 142
  18. 2022Faithful Reasoning Using Large Language Modelscited by 130
  19. 2018Mean Field Analysis of Neural Networks: A Central Limit Theoremcited by 107
  20. 2022Benchmarking Spatial Relationships in Text-to-Image Generationcited by 96
  21. 2023Compositional Abilities Emerge Multiplicatively: Exploring Diffusion Models on a Synthetic Taskcited by 91
  22. 2022A very preliminary analysis of DALL-E 2cited by 82
  23. 2020Phase diagram for two-layer ReLU neural networks at infinite-width limitcited by 65
  24. 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
  25. 2019Improving Deep Transformer with Depth-Scaled Initialization and Merged Attentioncited by 59
  26. 2022Testing Relational Understanding in Text-Guided Image Generationcited by 59
  27. 2023Mimetic Initialization of Self-Attention Layerscited by 52
  28. 2019A Comparative Analysis of the Optimization and Generalization Property of Two-layer Neural Network and Random Feature Models Under Gradient Descent Dynamicscited by 49
  29. 2019Gradient Dynamics of Shallow Univariate ReLU Networkscited by 46
  30. 2021GradInit: Learning to Initialize Neural Networks for Stable and Efficient Trainingcited by 44
  31. 2022Neurocompositional computing: From the Central Paradox of Cognition to a new generation of AI systemscited by 44
  32. 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
  33. 2020Assessing Phrasal Representation and Composition in Transformerscited by 41
  34. 2021Embedding Principle of Loss Landscape of Deep Neural Networkscited by 36
  35. 2019A type of generalization error induced by initialization in deep neural networkscited by 33
  36. 2021Towards Understanding the Condensation of Neural Networks at Initial Trainingcited by 31
  37. 2022Do Vision-Language Pretrained Models Learn Composable Primitive Concepts?cited by 31
  38. 2022DALL-E 2 Fails to Reliably Capture Common Syntactic Processescited by 31

50 most cited of 61 All 61 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 10; 2026: 3.

15 papers.

Sort:

By area: