Initialization is Critical to Whether Transformers Fit Composite Functions by Reasoning or Memorizing
Zhongwang Zhang, Pengxiao Lin, Zhiwei Wang, Yaoyu Zhang, Zhi-Qin John, Xu

TL;DR
This paper explores how the scale of parameter initialization in transformers influences whether they learn to reason compositionally or memorize, revealing that initialization can be tuned to favor reasoning-based solutions.
Contribution
It demonstrates that initialization scale critically affects whether transformers learn inferential or memory-based solutions, providing a new hyper-parameter to control this behavior.
Findings
Initialization scale determines reasoning vs. memorization in transformers.
Inferential solutions show low complexity bias enabling generalization.
Proposes the initialization rate $oldsymbol{b3}$ as a tunable hyper-parameter.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNeural Networks and Applications
