mlsanityData to 7 Oct 2026

The Ups and Downs of Large Language Model Inference with Vocabulary Trimming by Language Heuristics

arXiv 2311.09709 ↗First posted 16 Nov 2023cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

Deploying large language models (LLMs) encounters challenges due to intensive computational and memory requirements. Our research examines vocabulary trimming (VT) inspired by restricting embedding entries to the language of interest to bolster time and memory efficiency. While such modifications have been proven effective in tasks like machine translation, tailoring them to LLMs demands specific modifications given the diverse nature of LLM applications. We apply two language heuristics to trim the full vocabulary - Unicode-based script filtering and corpus-based selection - to different LLM families and sizes. The methods are straightforward, interpretable, and easy to implement. It is found that VT reduces the memory usage of small models by nearly 50% and has an upper bound of 25% improvement in generation speed. Yet, we reveal the limitations of these methods in that they do not perform consistently well for each language with diminishing returns in larger models.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 10 of its 16 references that are in the map. First posted on arXiv 16 Nov 2023.

Builds on

10 of 16 references.

References · 10

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
  4. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  5. 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 712
  6. 2019WikiMatrix: Mining 135M Parallel Sentences in 1620 Language Pairs from Wikipediacited by 221
  7. 2023Monolingual or Multilingual Instruction Tuning: Which Makes a Better Alpacacited by 60
  8. 2020Load What You Need: Smaller Versions of Multilingual BERTcited by 32
  9. 2021The Highs and Lows of Simple Lexical Domain Adaptation Approaches for Neural Machine Translationcited by 4
  10. 2022The Devil is in the Details: On the Pitfalls of Vocabulary Selection in Neural Machine Translationcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.