Low-Bit N-Gram Embeddings for Language Models
Not on the map. Why?
Abstract (arXiv)
Many recent open-weight language models use n-gram embedding tables to improve performance. These tables store learned representations of short token sequences, such as pairs or triples of consecutive tokens, which the model retrieves during processing. However, they can require substantial memory: DeepSeek-V4.1-Flash, for example, allocates 196 billion parameters to its Engram n-gram memory. We therefore investigate whether this memory cost can be reduced while preserving the performance improvement that the tables provide. We propose storing n-gram embeddings at low precision and systematically investigate different quantization methods and bit allocations across tables. Across nanochat-, Llama-, and GPT-2-family models trained from scratch, four-bit tables save approximately 75% of table memory while preserving more than 99% of the validation-loss improvement from adding the tables. Using fewer bits leads to a larger drop in performance, although we find that a short fine-tuning phase recovers a significant part of this loss. In addition, reinvesting the saved memory in larger tables can improve performance beyond that of the original full-precision tables while still using less memory. These table memory savings also extend to large existing models: on DeepSeek-V4.1-Flash and Qwen3.8-Flash-Next, low-bit tables save 47-55% of table memory, with perplexity increases of less than 1.2% and largely preserved downstream task performance. These findings establish low-bit precision as a practical way to reduce the memory requirements of n-gram embeddings and use the saved capacity to improve model performance.
Key facts. Cited by 2 papers in the map (data through 24 Nov 2026). Builds on 24 of its 33 references that are in the map. Submitted 22 Oct 2026.
Builds on
24 of 33 references.
References · 24
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,866
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,771
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,336
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,388
- 2016Pointer Sentinel Mixture Modelscited by 3,344
- 2021Improving language models by retrieving from trillions of tokenscited by 1,328
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 835
- 2024Byte Latent Transformer: Patches Scale Better Than Tokenscited by 174
- 2015Compressing Neural Networks with the Hashing Trickcited by 154
- 2019Large Memory Layers with Product Keyscited by 134
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 102
- 2025Nemotron-CLIMB: CLustering-based Iterative Data Mixture Bootstrapping for Language Model Pre-trainingcited by 83
12 more
- 2019Compositional Embeddings Using Complementary Partitions for Memory-Efficient Recommendation Systemscited by 70
- 2017Hash Embeddings for Efficient Word Representationscited by 58
- 2024Memory Layers at Scalecited by 55
- 2025Over-Tokenized Transformer: Vocabulary is Generally Worth Scalingcited by 52
- 2019Mixed Dimension Embeddings with Application to Memory-Efficient Recommendation Systemscited by 44
- 2017Compressing Word Embeddings via Deep Compositional Code Learningcited by 39
- 2025Scaling Embedding Layers in Language Modelscited by 26
- 2019Post-Training 4-bit Quantization on Embedding Tablescited by 24
- 2022N-Grammer: Augmenting Transformers with latent n-gramscited by 18
- 2026Tensorizing Engram: Sharing Latents Across N-Gram Embeddings is Beneficial in LLMscited by 10
- 2026Beyond N-gram: Data-Aware X-GRAM Extraction for Efficient Embedding Parameter Scalingcited by 3
- 2026FactorEngram: Factorized N-gram Memory with Basis-Level Gating for Language Modelscited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026Chorus: Shared N-gram Embeddings with Layer-wise Adaptation17 Nov 2026
- 2026Placing LLM Lookup Tables by Per-Layer Prefetch Deadlines10 Nov 2026