MemOnce: A Scalable Memory Architecture for Large Language Models
TL;DR - MemOnce is an LLM architecture that stores compact memory representations and reconstructs KV caches on demand. It targets efficient long-context and continual inference while preserving fine-grained information.
- Caches selected final-layer hidden states instead of layer-wise, token-level KV states.
- Retrieves relevant memories via sparse indices computed once and shared across layers.
- Achieves linear-time complexity and substantially reduces GPU memory use.
- On Qwen3.5-4B at 1M context, it reports 1,313Ă— smaller memory-state cache, 6.9Ă— lower prefill latency, 3.5Ă— higher throughput, and a 5.77% memory-performance improvement.