N-Gram Memories at Two Bits: Quantizing Lookup Tables in Large Language Models
Not on the map. Why?
Abstract (arXiv)
Conditional memory expands language-model capacity through selective lookup, but the full embedding table must remain available for every possible input. We introduce Conditional Program (CP), a compressed representation that reconstructs only the rows an input requests. CP represents each row by a short code and a local scale, with a reconstruction program shared across the table. We instantiate this representation with a Gaussian trellis, norm restoration and independently decodable row records. CP's two-bit code lowers output KL by 41--63% relative to 2-bit round-to-nearest. Analysis across three trained n-gram memory families shows that Gaussian-like coordinate statistics coexist with learned relationships among rows; at matched storage budgets, the shared trellis outperforms the fitted codebooks and low-rank residual variants we test. For DeepSeek, it reduces table storage from 203GB to 51GB, leaving room for larger workloads when the table is kept on GPU.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Builds on 21 of its 32 references that are in the map. Submitted 15 Oct 2026.
Builds on
21 of 32 references.
References · 21
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 2,115
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,450
- 2024QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMscited by 717
- 2024SpinQuant: LLM quantization with learned rotationscited by 530
- 2023QuIP: 2-Bit Quantization of Large Language Models With Guaranteescited by 452
- 2024QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebookscited by 429
- 2024Extreme Compression of Large Language Models via Additive Quantizationcited by 268
- 2023Microscaling Data Formats for Deep Learningcited by 195
- 2019Large Memory Layers with Product Keyscited by 134
- 2024QTIP: Quantization with Trellises and Incoherence Processingcited by 118
- 2019Compositional Embeddings Using Complementary Partitions for Memory-Efficient Recommendation Systemscited by 70
- 2021TT-Rec: Tensor Train Compression for Deep Learning Recommendation Modelscited by 60
9 more
- 2021FBGEMM: Enabling High-Performance Low-Precision Deep Learning Inferencecited by 45
- 2019Post-Training 4-bit Quantization on Embedding Tablescited by 24
- 2020Mixed-Precision Embedding Using a Cachecited by 22
- 2026Scaling Embeddings Outperforms Scaling Experts in Language Modelscited by 18
- 2023The Cost of Compression: Investigating the Impact of Compression on Parametric Knowledge in Language Modelscited by 12
- 2026Tensorizing Engram: Sharing Latents Across N-Gram Embeddings is Beneficial in LLMscited by 10
- 2024Mixed-Precision Embeddings for Large-Scale Recommendation Modelscited by 6
- 2025CARVQ: Corrective Adaptor with Group Residual Vector Quantization for LLM Embedding Compressioncited by 5
- 2022Clustering the Sketch: A Novel Approach to Embedding Table Compressioncited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Placing LLM Lookup Tables by Per-Layer Prefetch Deadlines10 Nov 2026