Skip to content
NewA calmer, faster ZeroHour

Conditional Program stores LLM n-gram lookup tables at two bits

Original title: N-Gram Memories at Two Bits: Quantizing Lookup Tables in Large Language Models

Hugging Face daily papersby Donghoon Han, Minseop Jung, Dong Woo Kwak ()1 min read
AI summary · x-ai/grok-4.7Summaries by Vani AI

For DeepSeek, the method cuts table storage from 203GB to 51GB versus keeping full embeddings.

Conditional Program compresses conditional n-gram memory so only requested rows are reconstructed, using a short code, a local scale, and a shared reconstruction program. A Gaussian trellis instantiation with two-bit codes lowered output KL by 41–63% relative to 2-bit round-to-nearest. Across three trained n-gram memory families, the shared trellis beat fitted codebooks and low-rank residual variants at matched storage. For DeepSeek, table storage fell from 203GB to 51GB.

Key facts
  • Two-bit codes cut output KL 41–63% versus 2-bit round-to-nearest.
  • Analysis covered three trained n-gram memory families.
  • Shared trellis beat fitted codebooks and low-rank residual variants tested.
  • DeepSeek table storage dropped from 203GB to 51GB.
  • Rows stay independently decodable via short codes and local scales.
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at huggingface.co

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.

Hugging Face daily papers

By Donghoon Han, Minseop Jung, Dong Woo Kwak · huggingface.co

Read the full article at Hugging Face daily papers

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.