MemOnce Cuts 1M-Context Memory Cache 1313x and Prefill Latency 6.9x
NJU · hf · 2026-11-23
Nanjing University researchers introduce MemOnce, a foundation architecture that learns scalable memory states for LLMs, targeting the linear KV-cache growth and quadratic attention cost of long-horizon, continual interaction.
Two core designs:
- Memory encoder-decoder: caches only a small subset of final-layer hidden states as compact memory, then dynamically decodes them back into per-layer KV caches.
- Memory sparse attention: adaptively retrieves relevant memory representations for each continual input, with sparse indices computed once across layers.
Experiments across model sizes, context lengths, and both pretraining and post-training adaptation show MemOnce beats Transformers and other linear-time architectures. Adapting Qwen3.5-4B cuts memory-state cache by 1313x and prefill latency by 6.9x at 1M context, lifts throughput 3.5x and overall memory performance by +5.77%, and generalizes zero-shot to downstream representation tasks competitively with specialized models.
More from Research
- World model of the virtual cell published in Cell — rbhar90 · 2026-11-23
- Feedback model depth weights show pass 2 mainly re-reads middle layers — SonglinYang4 · 2026-11-23
- Feedback model plus attention residuals shows additive gains over standard Transformer — SonglinYang4 · 2026-11-23
- Open 27B Model Diagnoses Its Own Failures and Rewrites Its Own Weights — jacek2023 · 2026-11-23
- CMU's AgentRoboCritic Grades Robot Agents Action-by-Action, Releases 12,844-Action Dataset — cx-cmu · 2026-11-23
- Model Sizes Picked 'By Vibes' — Redrawn Chart Makes the Loss Curve Look Saner — scaling01 · 2026-11-23