How Can We Effectively Expand the Vocabulary of LLMs with 0.01GB of Target Language Text?

Atsuki Yamaguchi, Aline Villavicencio, Nikolaos Aletras
6/17/2024
cs.CLcs.AI

No official code found. Best implementation: gucci-j/lowres-cve (9 stars, MIT, last commit 2025-08-04). 1 more below.

Abstract

Large language models (LLMs) have shown remarkable capabilities in many languages beyond English. Yet, LLMs require more inference steps when generating non-English text due to their reliance on English-centric tokenizers and vocabulary, resulting in higher usage costs to non-English speakers. Vocabulary expansion with target language tokens is a widely used cross-lingual vocabulary adaptation approach to remedy this issue. Despite its effectiveness in inference speedup, previous work on vocabulary expansion has focused on high-resource settings assuming access to a substantial amount of target language data to effectively initialize the embeddings of the new tokens and adapt the LLM to the target language. However, vocabulary expansion in low-resource settings has yet to be explored. In this article, we investigate vocabulary expansion in low-resource settings by considering embedding initialization methods and continual pre-training strategies. Through extensive experiments across typologically diverse languages, tasks and models, we establish a set of strategies to perform vocabulary expansion for faster inference, while striving to maintain competitive downstream performance to baselines. This is achieved with only 30K sentences ($\sim$0.01GB text data) from the target language.

View on arXivView PDF

Code Implementations(2)

gucci-j/lowres-cveCommunity100%
MIT

Computational Linguistics - How Can We Effectively Expand the Vocabulary of LLMs with 0.01GB of Target Language Text?

90Shell, PythonSep 6, 20241 years agoMIT
gucci-j/lowres-cvaCommunity100%
MIT

Code for "Vocabulary Expansion for Low-resource Cross-lingual Transfer"

00PythonJun 17, 20242 years agoMIT

Similar Papers

Cite this paper

@article{yamaguchi2024effectively,
  title  = {How Can We Effectively Expand the Vocabulary of LLMs with 0.01GB of Target Language Text?},
  author = {Atsuki Yamaguchi and Aline Villavicencio and Nikolaos Aletras},
  year   = {2024},
  eprint = {2406.11477},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.11477v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.11477.svg)](https://codeofpaper.com/paper/2406.11477)

Discussion