Lune

NeurIPS2024顶会

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

摘要

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 γ\gamma to be a convenient tunable hyper-parameter in common deep learning frameworks, where 1/dinγ1/d_{\mathrm{in}}^\gamma is the standard deviation of parameters of the layer with dind_{\mathrm{in}} input neurons.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data? 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data? 引用了 Faith and Fate: Limits of Transformers on Compositionality
  • Swing-by Dynamics in Concept Learning and Compositional Generalization 引用了 Compositional Abilities Emerge Multiplicatively: Exploring Diffusion Models on a Synthetic Task
  • Faith and Fate: Limits of Transformers on Compositionality 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • An Analysis for Reasoning Bias of Language Models with Small Initialization 引用了 Compositional Abilities Emerge Multiplicatively: Exploring Diffusion Models on a Synthetic Task
  • An Analysis for Reasoning Bias of Language Models with Small Initialization 引用了 Understanding the Difficulty of Training Transformers
  • An Analysis for Reasoning Bias of Language Models with Small Initialization 引用了 Improving Transformer Optimization Through Better Initialization
  • An Analysis for Reasoning Bias of Language Models with Small Initialization 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • An Analysis for Reasoning Bias of Language Models with Small Initialization 引用了 Faith and Fate: Limits of Transformers on Compositionality
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. Adaptive Preconditioners Trigger Loss Spikes in AdamZhiwei Bai, Zhangchen Zhou, Jiajie Zhao, Xiaolong Li 等ICML 2026 · 9 次引用
  2. Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data?Yutong Yin, Zhaoran WangICLR 2025
  3. Swing-by Dynamics in Concept Learning and Compositional GeneralizationYongyi Yang, Core Francisco Park, Ekdeep Singh Lubana, Maya Okawa 等ICLR 2025
  4. An Analysis for Reasoning Bias of Language Models with Small InitializationJunjie Yao, Zhongwang Zhang, Zhi-Qin John XuICML 2025

它引用的 Paper15

  1. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma 等NeurIPS 2022 · 22,562 次引用
  2. Faith and Fate: Limits of Transformers on CompositionalityNouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li 等NeurIPS 2023 · 728 次引用
  3. Improving Transformer Optimization Through Better InitializationXiao Shi Huang, Felipe Pérez, Jimmy Ba, Maksims VolkovsICML 2020 · 181 次引用
  4. Understanding the Difficulty of Training TransformersLiyuan Liu, Xiaodong Liu, Jianfeng Gao, Weizhu Chen 等EMNLP 2020 · 158 次引用
  5. Compositional Abilities Emerge Multiplicatively: Exploring Diffusion Models on a Synthetic TaskMaya Okawa, Ekdeep Singh Lubana, Robert P. Dick, Hidenori TanakaNeurIPS 2023 · 113 次引用

相关 Paper

  1. Attention as a HypernetworkSimon Schug, Seijin Kobayashi, Yassir Akram, João Sacramento 等ICLR 2025
  2. In-Context AlgebraEric Todd, Jannik Brinkmann, Rohit Gandikota, David BauICLR 2026 · 3 次引用
  3. Reasoning with Latent Thoughts: On the Power of Looped TransformersNikunj Saunshi, Nishanth Dikkala, Zhiyuan Li, Sanjiv Kumar 等ICLR 2025
  4. Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable TasksRahul Ramesh, Ekdeep Singh Lubana, Mikail Khona, Robert P. Dick 等ICML 2024 · 17 次引用
  5. Grokking of Implicit Reasoning in Transformers: A Mechanistic Journey to the Edge of GeneralizationBoshi Wang, Xiang Yue, Yu Su, Huan SunNeurIPS 2024 · 48 次引用
黄昏的海面,两侧是细线勾勒的悬崖