Vocabulary Pruning for Efficient Language Models

69 concepts49 papers1 proposal

In deep learning models—particularly Transformers—the vocabulary size ($V$) dictates the dimensions of two massive matrices: the input embedding layer and the final token classification layer. Together, these layers require $2 \times V \times d$ parameters, where $d$ is the hidden dimension of the model.

For models with large vocabularies, these layers consume a staggering portion of the total parameter budget. As Yehui Tang et al. point out in Rethinking Optimization and Architecture for Tiny Language Models, this "vocabulary tax" can account for up to 37% of a 1-billion parameter model's total footprint. Vocabulary pruning aims to reclaim this wasted capacity, transforming bloated, general-purpose models into lean, task-optimized architectures.

Trimming Multilingual and Domain Excess

Massively multilingual models are inherently heavy because they must accommodate hundreds of distinct languages and scripts. However, when deploying a model for a specific task or language pair, the vast majority of these tokens become dead weight.

By identifying and removing tokens irrelevant to the target language group, researchers can dramatically compress models without degrading performance. For instance, Asahi Ushio et al. demonstrated in Efficient Multilingual Language Model Compression through Vocabulary Trimming that trimming unused tokens can compress multilingual language models by up to 60% while retaining original performance. Similarly, Alan Ansell et al. introduced a method called BISTILLATION in Distilling Efficient Language-Specific Models for Cross-Lingual Transfer, which prunes the embedding matrix to retain only tokens relevant to a specific language pair, yielding substantial efficiency gains.

This approach applies equally to specialized domains. In machine translation, Devansh Gautam et al. leveraged vocabulary pruning in CoMeT: Towards Code-Mixed Translation Using Parallel Monolingual Sentences to optimize multilingual models for specific language pairs. In the realm of code models, Jieke Shi et al. showed in Compressing Pre-trained Models of Code into 3 MB that treating vocabulary size as a tunable hyperparameter allows for extreme compression that standard weight pruning techniques often fail to address.

Reallocating the Budget for Tiny Models

On resource-constrained edge devices, every megabyte matters. When the vocabulary size is aggressively shrunk, the parameter savings can be directly reallocated to the core transformer blocks, enhancing the model's reasoning capacity rather than its token storage.

Sanqiang Zhao et al. explored this in Extremely Small BERT Models from Mixed-Vocabulary Training, shrinking a vocabulary from 30,000 to 5,000 tokens to eliminate millions of parameters while maintaining high performance via character-level fallbacks. This strategy ensures that a model's limited capacity is focused on learning contextual representations rather than managing a massive token space, a mechanism also validated by Yahan Yang et al. in Bootstrapping Small & High Performance Language Models with Unmasking-Removal Training Policy.

How to Prune Without Breaking Semantics

Simply deleting tokens from a pre-trained model risks breaking its internal representations and tokenization logic. To safely compress the token space, researchers employ several structured strategies:

  1. Morphological Supervision: Instead of dropping tokens at random, pruning can target linguistically nonsensical subword splits. Thomas Bauwens developed a method called BPE-knockout in BPE-knockout: Pruning Pre-existing BPE Tokenisers with Backwards-compatible Morphological Semi-supervision, which prunes subwords that cross morpheme boundaries while keeping underlying character representations consistent.
  2. Information-Theoretic Objectives: Mathematical frameworks like submodular optimization can be used to compress categorical features and vocabularies based on information-theoretic objectives rather than simple frequency heuristics, as shown by Mohammadhossein Bateni et al. in Categorical Feature Compression via Submodular Optimization.
  3. Semantic Alignment: To adapt models to new target languages efficiently, Giovanni Puccetti et al. introduced Semantic Alignment Vocabulary Adaptation (SAVA) in Optimizing LLMs for Italian: Reducing Token Fertility and Enhancing Efficiency Through Vocabulary Adaptation, mapping a small helper model's embedding space onto a larger model to prune parameters while reducing token fertility.

By treating the vocabulary not as a fixed property of the data, but as a dynamic, compressible layer of the network architecture, vocabulary pruning provides a highly effective lever for shrinking models to fit the constraints of real-world deployment.

Key Foundational Work

Vocabulary-based acoustic model trim down and task adaptation (2000) — contributed 1 concept elements to this direction.
Translation Model Pruning via Usage Statistics for Statistical Machine Translation (2007) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_vocabulary_pruning_21d7c1d7,
  title = {vocabulary pruning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/vocabulary-pruning/rdr_21d7c1d72f6544f7a76e7f25e6510c0e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_vocabulary_pruning_21d7c1d7_v1,
  title = {vocabulary pruning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/vocabulary-pruning/rdr_21d7c1d72f6544f7a76e7f25e6510c0e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake