An Analysis for Reasoning Bias of Language Models with Small Initialization

Junjie Yao, Zhongwang Zhang, Zhi-Qin John Xu

There is a long-standing debate in the AI community: do Large Language Models (LLMs) actually learn the underlying logical rules of language, or are they just "stochastic parrots" mimicking patterns? While much research focuses on data quality or model architecture to answer this, a recent paper investigates a more fundamental, often-overlooked factor: parameter initialization.

The researchers reveal that the scale of initial random weights acts as a "hidden knob" determining a model's task preference. Specifically, smaller initialization scales bias models toward learning logical rules and compositional functions early in training, whereas larger scales encourage the rote memorization of input-output mappings.

The "Early Bird" Reasoning Phenomenon

One of the study's core insights is that in models with small initialization, reasoning tasks are learned significantly earlier than memory tasks. The authors tracked the training loss of a GPT-2 model on two distinct datasets: PrOntoQA (a dataset of logical reasoning problems with explicit "Chains of Thought") and TinyStories (a synthetic corpus testing basic language generation and memorization).

As training begins, the model exhibits a clear "reasoning bias." The training loss for the reasoning-heavy PrOntoQA dataset drops much faster than for the generation-heavy TinyStories dataset.

Comparison of training loss between reasoning (PrOntoQA) and generation (TinyStories) tasks.

Isolating the Mechanics: Experimental Setup

To rigorously test why this happens, the researchers combined empirical experiments with theoretical analysis. They utilized standard Transformers (GPT-2) alongside simplified "Emb-MLP" models (an embedding layer plus a multi-layer perceptron) to isolate core learning dynamics.

They also introduced a custom-built Synthetic Composition Task that explicitly separates "reasoning mappings" (based on logical addition rules) from "memory mappings" (randomly assigned labels). By introducing a parameter $\gamma$ to control the initialization rate—where a higher $\gamma$ corresponds to a smaller initialization scale—they could precisely measure how starting weights influenced the model's preference for either task.

The Impact of Initialization Scale

The most striking results emerge when comparing different initialization rates ($\gamma$).

  • Large Initialization ($\gamma = 0.3$): The model shows no inherent preference for reasoning. It learns to memorize the training data but fails to generalize on reasoning tests.
  • Small Initialization ($\gamma = 0.8$): The model exhibits a massive reasoning bias. It learns the reasoning patterns almost instantly and generalizes well, while the memory task lags behind.
Loss and accuracy dynamics showing that smaller initialization (higher gamma) leads to faster reasoning learning.

Why Does Small Initialization Promote Reasoning?

Through gradient flow analysis and tracking token embeddings, the authors identified several key mechanisms driving this behavior:

  1. Label Distribution Shapes the Embedding Space: Reasoning tasks have structured label distributions (e.g., specific logical sequences), whereas memory tasks have random distributions. With small initialization, the model is sensitive enough to pick up on these structured distributions immediately. Consequently, "reasoning tokens" differentiate in the embedding space much faster than "memory tokens."
  2. Attention as an Averager: Early in training with small weights, the self-attention mechanism effectively acts as a simple "average operator." This helps the model "tag" tokens that follow reasoning anchors, facilitating the discovery of logical rules.
  3. Orthogonality vs. Hierarchy: Large initialization scales encourage "orthogonality," where the model treats every token as an independent entity to be memorized. Conversely, small scales encourage a "hierarchical" embedding structure that reflects numerical or logical order, which is essential for generalization.

This differentiation was confirmed in the GPT-2 experiments: the average cosine similarity between tokens in the reasoning dataset was highly differentiated (0.123), while tokens in the memorization dataset remained much less differentiated (0.531).

Limitations and Future Directions

While the paper provides a strong theoretical and empirical foundation, the authors acknowledge that much of the deep theoretical work was conducted on simplified models (one-layer Transformers or MLPs). The dynamics in massive, 100B+ parameter models might involve additional complexities. Furthermore, the analysis focuses heavily on the initial stages of training, leaving the evolution of these biases over multi-trillion token pre-training runs as an open question.

Ultimately, these insights suggest that we can design new initialization strategies specifically to "prime" models for complex reasoning. By tuning the hidden knob of initialization, developers could potentially reduce the massive amounts of data currently required to teach LLMs logical tasks.

Summary updated

BibTeX
@inproceedings{yao2025analysis,
  author = {Junjie Yao and Zhongwang Zhang and Zhi-Qin John Xu},
  title = {{An Analysis for Reasoning Bias of Language Models with Small Initialization}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=4HQaMUYWAT},
}
Figure