Adapters for Altering LLM Vocabularies: What Languages Benefit the Most?

HyoJung Han, Akiko Eriguchi, Haoran Xu, Hieu Hoang, Marine Carpuat +1 more
10/1/2024

No official code found. Best implementation: h-j-han/VocADT (6 stars, MIT, last commit 2025-02-22).

Abstract

Vocabulary adaptation, which integrates new vocabulary into pre-trained language models, enables expansion to new languages and mitigates token over-fragmentation. However, existing approaches are limited by their reliance on heuristics or external embeddings. We propose VocADT, a novel method for vocabulary adaptation using adapter modules that are trained to learn the optimal linear combination of existing embeddings while keeping the model's weights fixed. VocADT offers a flexible and scalable solution without depending on external resources or language constraints. Across 11 languages-with diverse scripts, resource availability, and fragmentation-we demonstrate that VocADT outperforms the original Mistral model and other baselines across various multilingual tasks including natural language understanding and machine translation. We find that Latin-script languages and highly fragmented languages benefit the most from vocabulary adaptation. We further fine-tune the adapted model on the generative task of machine translation and find that vocabulary adaptation is still beneficial after fine-tuning and that VocADT is the most effective.

View on arXivView PDF

Code Implementations(1)

h-j-han/VocADTCommunity100%
MIT

Vocabulary Adapters for Altering LLM Vocabularies - What Languages Benefit the Most? at ICLR2025

61Shell, PythonOct 10, 20241 years agoMIT

Similar Papers

Cite this paper

@article{han2024adapters,
  title  = {Adapters for Altering LLM Vocabularies: What Languages Benefit the Most?},
  author = {HyoJung Han and Akiko Eriguchi and Haoran Xu and Hieu Hoang and Marine Carpuat and Huda Khayrallah},
  year   = {2024},
  eprint = {2410.09644},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.09644},
  journal = {ICLR 2024 2024}
}

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/2410.09644.svg)](https://codeofpaper.com/paper/2410.09644)

Discussion