Abstract: Nandini Mundra, Aditya Nanda Kishore Khandavally, Raj Dabre, Ratish Puduppully, Anoop Kunchukuttan, Mitesh M Khapra. Proceedings of the 28th Conference on Computational Natural Language Learning.
2024.
Introduction
Adapting English-centric Large Language Models (LLMs) like LLaMA 2 to new languages is a critical challenge in modern NLP. A primary bottleneck is the tokenizer; when applied to languages like Tamil or Hindi, the original English-optimized tokenizer often results in high "fertility." For instance, Tamil words may be fragmented into nearly 29 nonsensical pieces on average, compared to just 2.8 after vocabulary expansion. While adding new tokens is essential, the initialization of their corresponding embeddings is often treated as a "black box." Poor initialization can lead to "catastrophic forgetting" of the source language or extremely slow convergence during continual pre-training (CPT).
Methodology: The Convex Hull and CW2V
This research provides a theoretical foundation for embedding initialization, proving that if a new word embedding is initialized within the convex hull of existing vectors (i.e., as a weighted average), the model's original behavior remains stable.
Building on this theory, the authors introduce Constrained Word2Vec (CW2V). This method utilizes a standard Skip-gram approach to learn relationships from target-language text but crucially applies a softmax constraint. This forces every new embedding to be a convex combination of the original English embeddings, ensuring they stay in a familiar "neighborhood" for the model.
Experimental Results
The study evaluated RoBERTa (125M) and LLaMA 2 (7B) across Hindi, Tamil, Russian, and German.
Convergence and Performance
As shown in the performance plots for RoBERTa across various tasks, initialization methods that respect the original embedding distribution—such as CW2V and Multivariate initialization—reach high performance significantly faster than random or univariate methods.
For LLaMA 2, CW2V significantly outperformed the previous state-of-the-art framework, OFA. In Machine Translation, CW2V achieved a 17.02 CHRF score (English to X) compared to OFA’s 11.17.
Stability and Simplicity
A key insight is that CW2V is exceptionally effective at preserving the model's original English capabilities. On RoBERTa, it maintained an 86.0 accuracy on English XNLI even before any additional training. Furthermore, the results highlight that simpler statistical methods like Multivariate initialization can perform nearly as well as more resource-intensive techniques, suggesting that sophisticated cross-lingual alignment may not always be necessary.
Conclusion
This work demonstrates that theoretically grounded, data-driven initialization is vital for efficient language model adaptation. By constraining new embeddings to the convex hull of the original space, CW2V provides a simple yet powerful way to expand vocabularies without sacrificing model stability or requiring external bilingual resources.
Summary updated