TL;DR
Contrary to the popular belief that large language models start as unbiased "blank slates," this paper reveals that randomly initialized transformers possess strong, seed-dependent structural biases that cause extreme token preferences before any training occurs. The authors demonstrate that these birth biases persist throughout the entire training lifecycle, enabling a highly robust model fingerprinting method (SeedPrint) and providing a surprising statistical explanation for the well-known "attention-sink" phenomenon.
What Problem Does This Paper Address?
In machine learning, conventional wisdom treats untrained neural networks as featureless containers, assuming that a model's capabilities, preferences, and "personality" are shaped entirely by data during large-scale pre-training.
This paper challenges the blank-slate assumption by investigating the initialization regime of transformers. The authors address a fundamental question: Does the transformer architecture itself impose innate computational tendencies at birth? By exploring how architectural components—like activation functions and causal attention—interact at random initialization, they aim to demystify unexplained model behaviors (such as attention sinks) and provide new tools for model security and lineage tracking.
Methods
The authors systematically dissect the transformer architecture using a mix of empirical probing and mathematical modeling:
- Random Sequence Probing: They feed unstructured, randomly generated token sequences (and isotropic Gaussian vectors) into untrained models to observe next-token prediction distributions and hidden state representations.
- Architectural Ablation: To isolate the root causes of initialization bias, they evaluate transformer variants stripped down to only Multi-Layer Perceptron (MLP) blocks or only self-attention blocks.
- Mathematical Modeling: Using the infinite-width limit, they derive recurrence relations for representation similarity across deep layers to prove how asymmetric activations (like ReLU and GELU) drive geometric collapse.
- SeedPrint Fingerprinting: They introduce a novel fingerprinting algorithm. By identifying "identity dimensions"—hidden representation dimensions where two models are jointly prominent—they use Kendall-Tau correlation distributions to determine if two fully trained models share the same initialization seed.
- Variance Calibration Interventions: To test their theory on attention sinks, they introduce two architectural modifications—Positional Amplification and Positional Attenuation—which scale the attention output to neutralize position-dependent variance decay.
Datasets
The paper utilizes several standard benchmarks to train models from scratch, fine-tune them, and evaluate performance:
- OpenWebText: Used for pre-training nano-scale models (up to 10 billion tokens) to track how initialization biases survive training.
- TinyStoriesV2_cleaned & The Stack: Employed to test the robustness of the SeedPrint fingerprinting method under severe distribution shifts (synthetic children's stories vs. raw GitHub code).
- WikiText-2 & C4: Used as validation sets to measure language modeling performance (perplexity) and evaluate attention sink rates under the proposed architectural interventions.
Key Insights and Ideas
-
Transformers Are Born Biased: At random initialization, token representations severely contract along a specific, seed-dependent direction. This "inter-sequence contraction" causes the model to favor certain tokens over others by orders of magnitude before seeing any data.
Next Token Frequency -
The Asymmetry Engine: The primary driver of this representational collapse is the asymmetric nature of popular activation functions like GELU and ReLU. When inputs pass through these activations, they are pushed toward a shared direction. Symmetric activations like
tanhdo not exhibit this bias. Furthermore, LayerNorm acts as a gatekeeper, regulating variance to force inputs into GELU's asymmetric region. - Attention as a Contraction Amplifier: While self-attention alone does not initiate global representation contraction, its value aggregation mechanism acts as a powerful amplifier. It reinforces the shared directional bias introduced by the MLPs while averaging out unique, uncorrelated noise components.
- The Statistical Origin of Attention Sinks: Causal attention naturally acts as a running average, creating a systematic variance decay ($\propto 1/i$) as the sequence length increases. The very first token escapes this averaging effect, maintaining its full initial variance and acting as a massive statistical outlier from birth. This structural anomaly biases the optimization landscape, causing trained models to "latch" onto the first token as an attention sink.
Key Results
-
Extreme Token Preferences: In a randomly initialized 1.2B parameter GPT-2 model, the top-1 predicted token appeared with a striking frequency of up to 10.20% across random inputs, vastly deviating from the uniform random baseline of ~0.002%.
Token Prediction Bias Statistics -
Unbreakable Fingerprints: SeedPrint successfully distinguished models trained with identical data and curricula that differed only by their initial random seeds (maintaining p-values consistently $< 0.01$ for true descendants). Unlike prior state-of-the-art passive fingerprinting methods (like REEF or ICS), SeedPrint remained completely robust against severe domain shifts on The Stack dataset.
- Curing Attention Sinks: By implementing the Positional Attenuation strategy to equalize variance across token positions, the authors successfully reduced the model-wide attention sink rate to near-zero during pre-training. Crucially, this structural fix did not compromise language modeling performance, even yielding a slightly improved perplexity on WikiText-2 (21.02 vs. 21.33 baseline).
Limitations and Future Work
While groundbreaking, the authors note several limitations in their current work:
- Simplified Theoretical Frameworks: The mathematical proofs rely on simplified assumptions, such as infinite-width limits, uniform attention weights, and residual-free blocks, which do not perfectly mirror real-world architectures.
- Lack of Optimization Dynamics: The study primarily tracks the empirical persistence of initialization bias rather than explicitly modeling the complex mathematical interplay between these biases and gradient-based optimization during training.
- Scale Constraints: Although the authors validated their fingerprinting method on models up to the 7B parameter scale, verifying whether these structural biases behave identically in ultra-large-scale regimes (e.g., 70B+ parameters) remains an open area for future empirical verification.
Summary updated