Vocab Diet: Reshaping the Vocabulary of LLMs with Vector Arithmetic

Yuval Reif, Guy Kaplan, Roy Schwartz · DOI

Abstract

Vocab Diet introduces a compositional approach to Large Language Model (LLM) vocabularies, replacing redundant word variations with a system of base forms and additive "transformation vectors." By leveraging the model's internal linear understanding of language, this method shrinks vocabularies by up to 10% and expands coverage to out-of-vocabulary words—all without modifying the model's core weights or sacrificing performance.

Introduction: The Problem of Vocabulary Bloat

Modern LLMs rely on subword tokenization (e.g., BPE), which treats language as a collection of discrete strings. This "string enumeration" is inherently inefficient: variations like "walk," "walking," and "Walk" are often stored as separate, atomic tokens. In the GPT-4 tokenizer, nearly 42% of English whole-word tokens are morphological variations of a base form. This bloat consumes vocabulary slots that could otherwise represent rarer words or improve multilingual support.

Analysis of vocabulary redundancy and OOV coverage potential.

Methodology: A Compositional Vocabulary Framework

The authors propose a "base + transformation" architecture that moves away from atomic tokens. The process involves four key stages:

  1. Vector Arithmetic: A word $w$ is represented as the sum of a base form embedding ($e_{base}$) and transformation vectors ($e_{trans}$). For example, "cats" = "cat" + "plural".
  2. Transformation Vectors ($V_t$): Linguistic relations are identified using the UniMorph database. Initial vectors are computed by averaging offsets between base and surface forms in the embedding space.
  3. Two-Stage Distillation: Transformation vectors are refined using knowledge distillation on a small dataset (5M tokens from FineWeb-Edu), where the original model acts as a teacher for the new compositional model.
  4. Inference & Prediction: At the input stage, tokens are decomposed. At the output stage, the model predicts base words and transformations independently before combining them into final probabilities.
Overview of the Vocab Diet pipeline from decomposition to prediction.

Key Insights: Morphological Linearity and Scaling

Using a probing method called Patchscopes, the authors confirmed that LLMs implicitly understand these composite embeddings. Even when presented with a vector sum never seen as a single token, models correctly interpret the semantic meaning. However, a scaling trade-off exists: morphological linearity tends to weaken as vocabulary size increases. Smaller models (8k–10k tokens) exhibit high compositionality, while larger models (40k+ tokens) often "memorize" inflected forms as unique units, losing linear structure.

Experimental Results

The "Vocab Diet" approach achieved significant vocabulary reduction—removing ~10,000 tokens from Llama-3 and OLMo2—while maintaining performance parity across standard benchmarks including MMLU, ARC, and HellaSwag. On English tasks, the compositional model scored an average of 62.1 compared to the baseline's 62.9. The method also proved successful across diverse languages (Arabic, German, Russian, Spanish), with a negligible decoding slowdown of only 0.8%.

Limitations and Future Work

Current limitations include a reliance on rule-based linguistic databases like UniMorph for word decomposition. Future work may involve learning these decompositions directly from raw text. Additionally, while the method handles simple inflections well, complex derivations (e.g., "walkable") remain challenging. The framework also currently assumes a one-to-one mapping, which may not capture words resulting from multiple overlapping morphological processes.

Summary updated

BibTeX
@inproceedings{reif2026vocab,
  author = {Yuval Reif and Guy Kaplan and Roy Schwartz},
  title = {{Vocab Diet: Reshaping the Vocabulary of LLMs with Vector Arithmetic}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.1618},
}
Figure