Abstract
Adapting English-centric Large Language Models (LLMs) to new languages requires expanding their vocabulary to improve tokenization efficiency. A critical challenge in this process is the initialization of new token embeddings. This paper presents the Convex Hull Theory, which posits that initializing new embeddings as weighted combinations of existing ones preserves the model's original performance. We introduce Constrained Word2Vec (CW2V), a data-driven method that adheres to this theory using only target-language monolingual data. Our experiments across multiple languages and tasks demonstrate that CW2V and simple multivariate Gaussian initializations significantly outperform standard baselines in both convergence speed and zero-shot performance.
Introduction
The dominance of English in the training data of state-of-the-art LLMs results in high tokenization fertility for other languages, where single words are fragmented into numerous tokens. This increases computational costs and degrades model performance. While vocabulary expansion can mitigate fertility, the "initialization gap"—how to set the initial values for new embeddings—remains a hurdle. Current approaches often rely on external cross-lingual resources which may not be available for low-resource languages.
Methodology
We provide a theoretical framework showing that keeping new embeddings within the "convex hull" of the original embedding space ensures stable model behavior. Specifically, if a new embedding is a convex combination of existing ones, the model's greedy output distribution for the source language is preserved.
Building on this theory, we propose Constrained Word2Vec (CW2V). CW2V uses a Skip-gram architecture with a softmax constraint to ensure that new embeddings are strictly weighted averages of source embeddings. This method requires only raw text in the target language (sourced from datasets like SANGRAHA and OSCAR), making it highly accessible and independent of external bilingual dictionaries.
Experimental Results
The proposed methods were evaluated using RoBERTa and LLaMA 2 across Hindi, Tamil, Russian, and German. Key metrics included accuracy and F1 scores on benchmarks such as XNLI, WikiANN, and SQuAD/IndicQA.
Our findings indicate that:
- Initialization Matters: Staying within the convex hull prevents the generation of incoherent text immediately post-expansion.
- Superior Convergence: CW2V and Multivariate initializations reach high performance levels significantly faster than Random or Univariate methods during the fine-tuning process.
- Zero-Shot Gains: On LLaMA 2 (7B), CW2V improved zero-shot machine translation scores (CHRF) from 11.17 (OFA baseline) to 17.02.
- Tokenization Efficiency: For Tamil, expanding the vocabulary reduced fertility from 28.80 to 2.83, drastically improving processing efficiency.
Discussion and Limitations
Despite the success of CW2V, "catastrophic forgetting" of the source language remains a significant challenge. Continual pre-training on a target language causes an initial sharp decline in English performance, which is only partially mitigated by good initialization. Future work will focus on minimizing this "English tax" and extending evaluations to more diverse architectures and complex tasks.
Conclusion
This study establishes the importance of the convex hull in embedding initialization and provides a practical, resource-efficient tool in CW2V. These findings offer a path forward for more effective and efficient adaptation of LLMs to the world's diverse languages.
Summary updated