world

MemOnce cuts LLM memory cache 1,313x at 1M context in preprint

Researchers released MemOnce on Hugging Face, compressing Qwen3.5-4B's 1M-token cache from 32 GB to 25 MB with 6.9x faster prefill and 3.5x speedup.

MemOnce cuts LLM memory cache 1,313x at 1M context in preprint

Researchers from Nanjing University and the University of Science and Technology of China have published MemOnce, a memory architecture that compresses the state cache of a Qwen3.5-4B model by 1,313x at a 1-million-token context window—shrinking the GPU footprint from 32 GB to roughly 25 MB. Released as a Hugging Face paper on November 23, the approach pairs that compression with 6.9x faster prefill, 3.5x higher throughput, and a +5.77-point gain over the full-context baseline across five memory benchmarks.

How final-layer caching bypasses KV bloat

Standard Transformers store full key-value (KV) caches across every layer, turning 1M-token sessions into a VRAM bottleneck even for small 4B models. Instead of pruning KV tensors uniformly across layers, MemOnce uses a memory encoder-decoder that stores only a compact subset of final-layer hidden states and decodes them on demand back into per-layer KV caches during attention. Paired with memory sparse attention—whose lookup indices are computed once—end-to-end retrieval runs in 64.2 milliseconds, which the authors position as 12x faster than M+ and 17x faster than typical RAG pipelines.

Benchmark gains vs. early preprint caveats

Across five evaluation suites (MemBench, LoCoMo, LongMemEval, and two PersonaMem splits), MemOnce 4B averaged 60.07 compared with 54.30 for full-context Qwen3.5-4B, after pretraining sweeps from 150M to 1.0B parameters on eight H100 GPUs. Still, developers should treat the headline 1,313x figure cautiously: it is a single-team preprint that has not yet undergone independent reproduction or testing on 70B+ frontier-scale models.

Macro and micro consequences for AI infrastructure

At the macro level, shrinking 1M-context state to 25 MB challenges the assumption that long-context agents require massive server VRAM pools or multi-second vector-database RAG round trips. At the micro level, local-AI builders and mobile/edge teams could fit multi-million-token personal histories onto consumer GPUs if the encoder-decoder pattern generalizes across open-weight model families.

Who wins and who faces pressure

Edge-inference developers, laptop-LLM users, and multi-turn agent builders gain a promising blueprint for cheap long-horizon memory. Standalone vector-DB and RAG-middleware startups face substitution risk for session-history workloads if native model-state compression beats external retrieval on both latency and accuracy.

What to watch next

Two verification steps matter most: independent open-source replications on Qwen3.5-4B and larger 30B–70B checkpoints, and whether inference engines like vLLM or llama.cpp adopt final-layer on-demand KV decoding.

// sources

// WebZona Studio products

Need a product or service that does not exist yet?

Pitch your idea in our "50 Hours" program — every month we build one community idea free for everyone. Or explore our released products.

// comments (0)

// no comments yet.