Abstract
Large Language Models (LLMs) frequently exhibit cross-lingual inconsistencies, correctly recalling facts in one language while hallucinating in another. This study investigates the underlying pre-training dynamics using a controlled "Petri dish" environment. We demonstrate that cross-lingual transfer depends on a "unification" process where internal representations converge across languages. Factors such as the informativeness of language as a shortcut and the ease of language extraction via tokenization play critical roles in whether a model silos knowledge or generalizes it. Our findings are validated on synthetic datasets and larger models like Gemma-2-2B.
Introduction
The phenomenon of cross-lingual hallucinations—where a model "knows" a fact in English but fails to retrieve it in Spanish—points to a fundamental gap in our understanding of how LLMs store information. Rather than treating models as static artifacts, this research explores the developmental trajectory of knowledge representation during pre-training, asking how and when a model decides to store a fact as a universal concept versus a language-specific one.
Methodology: The Petri Dish Approach
To isolate the variables governing knowledge transfer, we trained 2-million-parameter Transformer models on a synthetic Knowledge Graph (KG). This KG consists of birth and death events for 1,000 individuals, verbalized through specific templates in two synthetic languages.
By varying the proportion of parallel data (facts seen in both languages) and monolingual data, we can observe how the model's internal representations evolve. We specifically analyze the "unification" of these representations using cosine similarity of activations and gradients to visualize how the model clusters information.
Key Insights: Unification vs. Siloing
Our analysis reveals a critical "unification phase" early in training. Models that generalize well learn to group representations by the fact itself, whereas poorly generalizing models create "language silos," grouping information by language first in a "checkerboard" pattern.
Language as a Spurious Feature
A primary driver of siloing is the informativeness of the language. If a language is statistically correlated with certain types of facts, the model adopts the language as a predictive shortcut (a prior) instead of learning the universal fact. Furthermore, extractability—how easily the model can identify the language from tokens—affects this process. Character-level tokenization, which makes language detection harder, was found to improve cross-lingual transfer compared to word-level tokenization.
Results and Validation
The "unification score" introduced in this work measures how similarly a model treats parallel facts. This score shows a Pearson correlation of >0.95 with cross-lingual accuracy in synthetic environments.
As shown in the results, same-language (ID) accuracy typically reaches a plateau before cross-lingual (OOD) accuracy begins to climb, marking the onset of the unification phase. We validated these findings on the Gemma-2-2B model using the ECLeKTic dataset, where the unification score predicted cross-lingual performance with an ROC of 0.65. Additionally, in real-world languages, vocabulary overlap (Jaccard similarity) was found to be a significant predictor of translation accuracy (ρ = 0.41).
Conclusion
Cross-lingual generalization is not a guaranteed byproduct of multilingual training but a result of specific representational dynamics. By understanding the forces that drive unification—and the "spurious" shortcuts that prevent it—we can design training regimes and tokenization strategies that foster more robust and equitable multilingual LLMs, ensuring lower-resource languages are not left behind.
Summary updated