MemOnce aims to reduce LLM memory use for long contexts

Paper / preprint arXiv cs.CL · Reported findings, not independently verified by us.

The new MemOnce architecture is designed to help language models retain information from long interactions more efficiently for future responses. The researchers say it reduces the memory use and computation that burden conventional Transformers as contexts grow.

Transformers typically store key-value (KV) caches for individual tokens and layers. GPU memory use therefore grows linearly with context length, while computation grows quadratically. Architectures with fixed, compressed states scale linearly but can lose fine-grained details. MemOnce combines approaches: an encoder-decoder stores a small selection of final-layer hidden states as compact representations and can recreate KV caches from them when needed.

A sparse-attention mechanism also retrieves relevant memory representations for each new input. According to the description, the selected indices are computed only once across layers. In experiments spanning different model sizes, context lengths, and pretraining and post-training, the researchers report that MemOnce outperformed Transformers and other architectures.

For adapting Qwen3.5-4B at a context length of one million tokens, the researchers report a 1,313-fold reduction in the memory-state cache and 6.9-fold lower prefill latency. Throughput reportedly increased 3.5-fold, alongside a 5.77% improvement in memory performance. The abstract does not specify the hardware used or the experimental setups. Read the original source on arXiv

🇬🇧 https://arxiv.org/abs/2611.27973v1

Leave a Comment

The weekly brief: selected developments, projects and videos