Abstract
For multilingual training, we present CrossInit, an initialization method that initializes embeddings into similar geometrical structures across languages in an unsupervised manner. CrossInit leverages a common cognitive linguistic mechanism, Zipf’s law, which indicates that similar concepts across languages have similar word ranks or frequencies in their monolingual corpora. Instead of considering point-to-point alignments based on ranks, CrossInit considers the same span of consecutive ranks in each language as the Positive pairs for alignment, while others out of the span are used as Negative pairs. CrossInit then employs Contrastive Learning to iteratively refine randomly initialized embeddings for similar geometrical structures across languages. Our experiments on Unsupervised NMT, XNLI, and MLQA showed significant gains in low-resource and dissimilar languages after applying CrossInit.
Introduction
Modern multilingual models such as XLM and mBART typically begin training with a "cold start," where word embeddings for different languages are initialized randomly. While these models eventually learn cross-lingual alignments during the pre-training phase, this process is computationally intensive. Furthermore, it often fails to bridge the gap between "distant" language pairs (e.g., English and Hindi) or to support low-resource languages where data is insufficient to overcome the initial random noise.
Existing unsupervised alignment techniques often rely on brittle "point-to-point" rank alignments. For instance, assuming the 10th most frequent word in English is the exact semantic equivalent of the 10th most frequent word in Nepali is often inaccurate. CrossInit addresses this by providing a "warm start" to these models without requiring any parallel corpora or translated data.
Methodology: The CrossInit Framework
CrossInit operates in three distinct, unsupervised stages to establish a shared geometric "skeleton" for the embedding space before formal training begins.
1. Frequency Sorting
The process begins by counting word frequencies in monolingual corpora (such as Wikipedia) for each target language. Words are then ranked from most to least frequent.
2. Span-based Pairing
The core innovation of CrossInit is the shift from individual word matching to span-based alignment. Instead of matching specific ranks, the algorithm samples a span of consecutive ranks (e.g., ranks 100 through 1100).
- Positive Pairs: All words falling within this rank span across different languages are treated as positive pairs.
- Negative Pairs: Words inside the span are contrasted against words outside the span.
3. Contrastive Learning
The model employs a binary cross-entropy loss to pull the embeddings of positive span members closer together in the vector space while pushing negative members apart. This iterative refinement transforms random initializations into a coherent, shared geometric structure across all languages.
Key Insights
Zipf’s Law as a Universal Anchor
CrossInit is grounded in the linguistic observation that human languages share a common cognitive structure. Similar concepts—functional words like "and" or "the," as well as basic nouns—tend to appear with similar relative frequencies across unrelated languages.
Robustness through Spans
By aligning groups of words with similar ranks rather than individual points, the method becomes robust to local vocabulary differences. It is irrelevant if a specific concept is rank 500 in English and rank 600 in German; as long as both fall within the same broad frequency span, the model learns they belong in the same spatial neighborhood.
Geometric Persistence
A striking finding of this research is that the geometric structure established during the brief initialization phase (often taking only minutes) persists throughout the entire pre-training process. It acts as a "structural prior" that guides the model's subsequent learning.
Experimental Results
The researchers evaluated CrossInit across several standard multilingual benchmarks, including XNLI, MLQA, and Unsupervised Neural Machine Translation (UNMT).
- XNLI: CrossInit improved the average accuracy of the XLM model by 1.8%, with significant gains in distant languages like Hindi where traditional zero-shot transfer struggles.
- MLQA: The method consistently improved F1 and Exact Match (EM) scores across all 7 tested languages compared to standard XLM initialization.
- UNMT: For the challenging Nepali-English pair—characterized by different scripts and zero shared vocabulary—CrossInit nearly doubled the BLEU score compared to the baseline bi-mBART model.
- Cross-lingual Analogies: Even before language model training, the initialized embeddings could solve analogies (e.g., "King" is to "Man" as "Königin" is to "Frau") across languages.
Conclusion and Future Work
While CrossInit provides a powerful "warm start," it currently depends on the availability of comparable monolingual corpora. If corpora differ significantly in domain (e.g., medical journals vs. social media), word ranks may not align effectively. Future work will explore applying this initialization to rapid language adaptation, allowing pre-trained models to pivot quickly to new, low-resource languages.
Summary updated