TL;DR
This paper reveals that the scale of parameter initialization acts as a "tuning knob" for a model's learning preference: small initialization scales bias Large Language Models (LLMs) toward reasoning and logical rules, while larger scales favor rote memorization. By analyzing training dynamics, the authors show that structured label distributions in reasoning tasks allow token embeddings to differentiate much faster under small initialization, effectively "tagging" logical patterns before the model can succumb to memorizing noise.
What Problem Does This Paper Address?
A central debate in AI is whether LLMs truly learn underlying logical rules or simply mimic complex patterns found in their massive training data. While data-driven approaches (like specialized reasoning datasets) help, this paper investigates a more fundamental architectural lever: initialization.
Previous research suggested that small initialization scales lead to "neuron condensation," where neurons behave similarly to minimize complexity. However, it wasn't clear how this interaction between initialization and the Transformer architecture specifically fosters reasoning over memorization. The authors aim to bridge this gap by providing a theoretical framework and empirical evidence for the "reasoning bias" that emerges when models start with very small weights.
Methods
The researchers employed a two-pronged approach using both simplified and standard architectures:
- Emb-MLP: A simplified model consisting of an embedding layer followed by a multi-layer perceptron to isolate how token embeddings evolve.
- GPT-2: A standard decoder-only Transformer to validate findings in a realistic setting.
They controlled the initialization scale using a parameter $\gamma$, where weights are sampled from $N(0, d_1^{-\gamma})$. In this framework, $\gamma = 0.5$ corresponds to standard methods like He or LeCun initialization. A value of $\gamma > 0.5$ represents a "small" initialization scale.
To dissect the learning process, they used anchor functions to create synthetic tasks. These tasks involve "keys" and "anchors" hidden in sequences of noise. In a reasoning mapping, the target is a logical composition (like a sum) of the anchors. In a memory mapping, the target is a random label assigned to a specific key-anchor pair.
Datasets
- Synthetic Composition Task: A custom-built dataset where sequences contain specific "key" and "anchor" tokens. This allowed the authors to precisely measure how well a model learns rules (reasoning) versus specific input-output pairs (memory).
- PrOntoQA: A real-world dataset of question-answering examples that include explicit "chains of thought," representing high-reasoning complexity.
- TinyStories: A synthetic corpus of simple stories for children, used here to represent tasks with lower reasoning requirements but high potential for pattern memorization.
Key Insights and Ideas
- The Embedding "Head Start": The most critical finding is that reasoning tokens differentiate in the embedding space much earlier than memory tokens. Because reasoning tasks have structured label distributions (e.g., the sum of two numbers follows a predictable pattern), the gradients for these tokens are more informative.
- Memory is "Blurry" at First: For memory tasks, labels are essentially random. This results in similar gradient updates for different memory tokens, causing their embeddings to stay highly similar (high cosine similarity) and undifferentiated during early training.
- Attention as an Average Operator: Under small initialization, the first attention module initially behaves like a simple average operator. This allows the model to "tag" all tokens following a reasoning anchor with that anchor's information, facilitating the identification of logical rules.
- Low-Rank vs. Condensation: While previous work focused on neuron condensation (neurons becoming identical), this paper shows that the embedding layer reaches a low-rank state. Different tokens become linearly dependent but not identical, which is crucial for maintaining distinct word representations while still benefiting from reduced complexity.
Key Results
- Reasoning Bias Validation: As shown in Figure 1, when training on a mix of PrOntoQA and TinyStories, the loss for the reasoning-heavy PrOntoQA drops significantly faster.
- Initialization Sensitivity: In the synthetic tasks, models with small initialization ($\gamma = 0.8$) achieved near-perfect reasoning accuracy while memory accuracy lagged. Conversely, with larger initialization ($\gamma = 0.3$), the model favored memorization and failed to generalize on reasoning tests (see Figure 3).
- Embedding Structure: Cosine similarity matrices (Figure 5) show that reasoning anchors quickly establish a hierarchical, numerical order in the embedding space. Memory anchors, however, remain stuck in a high-similarity block, making them harder for the model to distinguish and learn.
Limitations and Future Work
The authors acknowledge that their theoretical analysis relies on a simplified one-layer Transformer model and specific assumptions about activation functions. While their empirical results on GPT-2 are consistent, the dynamics in much deeper, modern LLMs (like Llama 3 or GPT-4) might involve additional complexities not captured here.
Future research could explore how to dynamically adjust initialization or learning rates for different layers to perfectly balance the need for both robust reasoning and efficient knowledge memorization. Additionally, investigating how this bias interacts with different tokenization strategies remains an open question.
Summary updated