Hugging Face Blog

Large-scale Near-deduplication Behind BigCode

arXiv AI
Nov 6

Enhancing Local and Global Structure in Compressed AI Agent Memory

The paper introduces locality‑aware quantization (LAQ), a new compression technique for AI agent memory that preserves both local and global structure of embedded text. LAQ improves local fidelity (L) and, more importantly, raises global fidelity (G) across all tested runs, outperforming seven other quantizers while maintaining search efficiency and evidence recall. The method is validated on large‑scale datasets, including a million passages and external FinDER memory.

By Henry Han
arXiv Machine Learning
Oct 16

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

The paper introduces Conditional Program (CP), a compressed representation for large language model memory tables that reconstructs only the rows requested by an input. CP encodes each row with a short two‑bit code and a local scale, using a shared reconstruction program based on a Gaussian trellis. Experiments on three n‑gram memory families show CP reduces output KL divergence by 41–63% compared to 2‑bit round‑to‑nearest, and for DeepSeek it cuts table storage from 203 GB to 51 GB, enabling larger workloads on GPU.

By Donghoon Han, Minseop Jung, Dong Woo Kwak, SeungJae Lee, Junhoo Lee