Low-Bit N-Gram Embeddings for Language Models
TL;DR - Quantizing n-gram embedding tables to four bits cuts their memory use substantially while retaining nearly all their language-modeling benefit, offering a practical efficiency improvement for models with large n-gram memories.
- Four-bit tables saved about 75% of table memory while preserving over 99% of validation-loss gains in models trained from scratch.
- DeepSeek-V4.1-Flash and Qwen3.8-Flash-Next saw 47–55% table-memory savings with perplexity increases below 1.2%.
- Brief fine-tuning recovered significant performance when using fewer than four bits.
- Reinvesting saved memory into larger tables could outperform full-precision tables while still using less memory.