How Vocabulary Sharing Facilitates Multilingualism in LLaMA?

Fei Yuan, Shuai Yuan, Zhiyong Wu, Lei Li

Abstract

Large Language Models (LLMs) such as LLaMA are primarily trained on English-centric corpora, yet they demonstrate surprising proficiency in non-English languages. This paper investigates the mechanisms behind this inherent multilingualism, focusing on the role of vocabulary sharing. By analyzing 101 languages, the authors categorize linguistic performance into four distinct quadrants: Reciprocal, Altruistic, Selfish, and Stagnant. The study reveals that fine-tuning only the embedding layer (Embed FT) can effectively "unlock" latent multilingual capabilities while remaining more parameter-efficient and resistant to overfitting than full-parameter fine-tuning. Additionally, a novel post-tokenization technique is introduced to mitigate "information dilution" in over-tokenized stagnant languages.

Introduction

Despite non-English data comprising less than 10% of training sets for models like LLaMA, these models often exhibit cross-lingual competence. The authors hypothesize that this is driven by vocabulary sharing—the overlap of sub-word tokens across languages. This research aims to understand how to leverage this sharing to fine-tune models for new languages efficiently without compromising existing capabilities or wasting massive amounts of compute on full-parameter updates.

Methodology: The Multilingual Capability Quadrant

The researchers evaluated 101 languages using two primary metrics: Bilingual Performance (improvement in the target language) and Multilingual Performance (the transfer effect on other languages). This led to the creation of the Multilingual Capability Quadrant to categorize the landscape of multilingualism.

The Multilingual Capability Quadrant categorizes languages based on their bilingual and multilingual performance gains during fine-tuning.

The quadrants are defined as follows:

  • Reciprocal: Mostly Indo-European languages where training on one benefits others due to shared vocabulary and structure.
  • Altruistic: "Selfless" languages where training boosts other languages significantly, sometimes at the cost of the target language's own score due to oscillatory hallucinations.
  • Selfish: Training improves the specific target language but provides no cross-lingual benefits.
  • Stagnant: Languages (e.g., Khmer, Lao) where standard fine-tuning fails to yield significant improvements.

Efficiency of Embedding Fine-Tuning

A key finding is the effectiveness of Embed FT, where only the embedding layer is updated while the transformer backbone remains frozen. This method is compared against full fine-tuning (Full FT) across various data sizes to measure both efficiency and robustness.

Comparison of Embed FT and Full FT across different data sizes, showing that Embed FT maintains superior multilingual performance and competitive bilingual results.

As shown in the evaluation, Embed FT performs comparably to Full FT in bilingual tasks but is significantly more robust in preserving general multilingual performance. While Full FT tends to overfit the specific bilingual task as data size increases—leading to a sharp decline in general multilingual capabilities—Embed FT maintains a high level of cross-lingual logic.

Addressing the Over-Tokenization Trap

"Stagnant" languages often suffer from "information dilution." Because LLaMA utilizes Byte-Pair Encoding (BBPE), rare scripts are decomposed into long sequences of bytes. For instance, a single word in a script like Khmer might be represented by over 10 tokens. This high token-to-meaning ratio makes it difficult for the model to learn patterns.

To solve this, the authors introduced a prefix removal technique. By stripping redundant byte-prefixes (like the [227] prefix in certain UTF-8 encodings), they created more compact representations. This simple adjustment resulted in an average improvement of 2.5 spBLEU points for stagnant languages, surpassing the gains from more complex methods like full fine-tuning or standard vocabulary expansion.

Conclusion

This study demonstrates that English-centric LLMs contain significant "hidden" multilingual logic that can be accessed through targeted, parameter-efficient fine-tuning. By understanding the quadrant in which a language resides, researchers can apply the most effective training strategy—whether it be simple embedding updates for reciprocal languages or prefix-removal for stagnant ones. This provides a cost-effective roadmap for extending the reach of LLMs to a wider array of global languages.

Summary updated

BibTeX
@inproceedings{yuan2024how,
  author = {Fei Yuan and Shuai Yuan and Zhiyong Wu and Lei Li},
  title = {{How Vocabulary Sharing Facilitates Multilingualism in LLaMA?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.721},
}
Figure