MemOnce unveils scalable memory architecture for large language models
gpu inference
| Source: HF Papers | Original article
Researchers introduce MemOnce, a scalable memory architecture that reduces GPU memory growth for large language models during long‑horizon and continual interactions.
A new paper introduces **MemOnce**, a memory architecture designed to let large language models (LLMs) operate over very long or continual interaction windows without the prohibitive GPU costs of current designs.
Standard Transformers keep a separate key‑value (KV) cache for every layer and token, so memory usage grows linearly with the number of tokens and the computational load rises quadratically as context expands. MemOnce flips that pattern. It writes a compact, final‑layer memory state once, retrieves it a single time per query, and on‑demand expands it into the layer‑specific KV caches needed for decoding. The result is a 1,313‑fold reduction in active memory size and a 6.9‑times speed‑up in the pre‑fill stage when handling a million‑token context.
The breakthrough matters because many emerging applications—chatbots that retain conversation history, agents that learn from ongoing streams of data, or tools that synthesize long documents—require LLMs to remember and reuse information across thousands of tokens. Existing solutions force a trade‑off: either accept massive GPU footprints or compress context into fixed‑size states that discard detail. MemOnce promises both scalability and fidelity, potentially lowering the hardware barrier for developers and opening the door to richer, more persistent AI services.
The research team behind MemOnce, including Chang Nie, Chaoyou Fu and Songlin Liu, will likely release further benchmarks and open‑source code in the coming weeks. Observers should watch for integration into major model libraries, performance results on real‑world long‑context tasks, and any follow‑up work that extends the approach to multimodal or reinforcement‑learning settings. If the early gains hold, MemOnce could become a cornerstone of next‑generation, memory‑aware LLM deployments.
Sources
Back to AIPULSEN