paper-with-me

홈 › Papers

An Efficient Multilingual Language Model Compression through Vocabulary Trimming

2023-05-24 · Asahi Ushio, Yi Zhou, Jose Camacho-Collados

Multilingual language model (LM) have become a powerful tool in NLP especially for non-English languages. Nevertheless, model parameters of multilingual LMs remain large due to the larger embedding matrix of the vocabulary covering tokens in different languages. On the contrary, monolingual LMs can be trained in a target language with the language-specific vocabulary only, but this requires a large budget and availability of reliable corpora to achieve a high-quality LM from scratch. In this paper, we propose vocabulary-trimming (VT), a method to reduce a multilingual LM vocabulary to a target language by deleting irrelevant tokens from its vocabulary. In theory, VT can compress any existing multilingual LM to build monolingual LMs in any language covered by the multilingual LM. In our experiments, we show that VT can retain the original performance of the multilingual LM, while being smaller in size (in general around 50% of the original vocabulary size is enough) than the original multilingual LM. The evaluation is performed over four NLP tasks (two generative and two classification tasks) among four widely used multilingual LMs in seven languages. Finally, we show that this methodology can keep the best of both monolingual and multilingual worlds by keeping a small size as monolingual models without the need for specifically retraining them, and even limiting potentially harmful social biases.

📄 PDF Abstract BibTeX arXiv:2305.15020

Code (1)

asahi417/lm-vocab-trimmer 공식 구현

Tasks

Language ModelingLanguage ModellingModel Compression

Similar Papers 제목 키워드 기반

On Multilingual Encoder Language Model Compression for Low-Resource Languages

2025-05-22 · Daniil Gurgurov, Michal Gregor, Josef van Genabith, Simon Ostermann

In this paper, we combine two-step knowledge distillation, structured pruning, truncation, and vocabulary trimming for extremely compressing multilingual encoder-only language models for low-resource languages. Our novel…

Knowledge DistillationLanguage ModelingLanguage ModellingModel Compression+5

An Analysis of BPE Vocabulary Trimming in Neural Machine Translation

2024-03-30 · Marco Cognetta, Tatsuya Hiraoka, Naoaki Okazaki, Rico Sennrich 외

We explore threshold vocabulary trimming in Byte-Pair Encoding subword tokenization, a postprocessing step that replaces rare subwords with their component subwords. The technique is available in popular tokenization lib…

Machine TranslationTranslation

Jamo Pair Encoding: Subcharacter Representation-based Extreme Korean Vocabulary Compression for Efficient Subword Tokenization

2020-05-01 · LREC 2020 5 · Sangwhan Moon, Naoaki Okazaki

In the context of multilingual language model pre-training, vocabulary size for languages with a broad set of potential characters is an unsolved problem. We propose two algorithms applicable in any unsupervised multilin…

Language ModelingLanguage Modelling

Balancing Coverage and Draft Latency in Vocabulary Trimming for Faster Speculative Decoding

2026-03-05 · Ofir Ben Shoham arxiv

Speculative decoding accelerates inference for Large Language Models by using a lightweight draft model to propose candidate tokens that are verified in parallel by a larger target model. Prior work shows that the draft …

SkMTEB: Slovak Massive Text Embedding Benchmark and Model Adaptation

2026-06-11 · Marek Šuppa, Andrej Ridzik, Daniel Hládek, Natália Kňažeková 외 arxiv

We introduce SkMTEB, the first comprehensive MTEB-style text embedding benchmark for Slovak, a low-resource West Slavic language, comprising 31 datasets across 7 task types -- nearly 4$\times$ the depth of existing multi…