huggingface.co web signal

MemOnce cuts Qwen3.5-4B KV cache 1313x at 1M context

TL;DR

  • Adapting Qwen3.5-4B with MemOnce reduces memory state cache by 1313x and prefill latency by 6.9x at 1M context, the paper reports.
  • Throughput improves 3.5x and overall memory performance rises +5.77% versus the full-context Qwen3.5-4B baseline across five memory benchmarks.
  • The design caches only a small subset of final-layer hidden states and decodes them back into KV caches for attention layers on demand.

A team from Nanjing University and the University of Science and Technology of China reports that its new memory architecture, MemOnce, shrinks the state cache of a Qwen3.5-4B model by 1313x at a 1M-token context. The paper, posted to Hugging Face as 'MemOnce: A Scalable Memory Architecture for Large Language Models,' pairs the compression with a 6.9x faster prefill at that length and 3.5x higher throughput, and lifts an overall memory-benchmark score by +5.77 points over the full-context Qwen3.5-4B baseline.

The mechanism, from the abstract: "MemOnce is based on two core designs: (a) Memory encoder-decoder: it caches only a small subset of final-layer hidden states as compact memory representations and dynamically decodes them back into KV caches for attention layers; (b) Memory sparse attention: for each continual input, MemOnce adaptively retrieves relevant memory representations, with the sparse indices computed only once across layers."

On the paper's memory suite, MemOnce 4B averages 60.07 across MemBench, LoCoMo, LongMemEval and two PersonaMem splits; the full-context Qwen3.5-4B baseline sits at 54.30. At 1M tokens the authors chart the GPU cache footprint at roughly 25 MB while a vanilla Transformer passes 32 GB. End-to-end memory retrieval runs in 64.2 ms, which the paper puts at 12x faster than M+ and 17x faster than RAG pipelines.

Training ran on 8 NVIDIA H100 GPUs, with pretraining scales swept from 150M to 1.0B parameters. The headline multiplier is a single-team preprint with no independent reproduction yet, and it lands amid a run of long-context efficiency work we've been tracking, including LightningMoBA's 1.2-1.6x generation-time cut over FlashMoBA.