基础设施 4.0 · 优秀 2026-11-20 · 论文

MemOnce: A Scalable Memory Architecture for Large Language Models

MemOnce 针对长程持续交互里 KV cache 线性增长计算二次膨胀的问题,提出可学习的记忆状态架构:只缓存少量末层隐状态作为压缩记忆,按需解码回 KV cache,并用跨层只算一次的稀疏索引做记忆检索在 Qwen3.5-4B 上改造后,1M 上下文下记忆状态缓存缩小 1313 倍prefill 延迟降 6.9 倍,吞吐提升 3.5 倍,记忆任务成绩反升 5.77%对关注长上下文推理成本与 agent 记忆系统设计的人,这是一篇值得对照的架构论文

打开原文回到归档

MemOnce: A Scalable Memory Architecture for Large Language Models

  • ID: 9965f17e
  • 原文链接: https://arxiv.org/abs/2611.27973
  • PDF: https://arxiv.org/pdf/2611.27973v1
  • 作者: Chang Nie, Chaoyou Fu, Songlin Liu, Yiqing Hu, Caifeng Shan
  • 日期: 2026-11-20
  • 更新: 2026-11-20
  • 分类: infra
  • 来源类型: paper
  • 标签: memory, kv-cache, long-context, architecture
  • 质量评分: 4/5
  • 抓取时间: 2026-11-24T04:20:39Z

中文导读

MemOnce 针对长程持续交互里 KV cache 线性增长计算二次膨胀的问题,提出可学习的记忆状态架构:只缓存少量末层隐状态作为压缩记忆,按需解码回 KV cache,并用跨层只算一次的稀疏索引做记忆检索在 Qwen3.5-4B 上改造后,1M 上下文下记忆状态缓存缩小 1313 倍prefill 延迟降 6.9 倍,吞吐提升 3.5 倍,记忆任务成绩反升 5.77%对关注长上下文推理成本与 agent 记忆系统设计的人,这是一篇值得对照的架构论文

为什么值得关注

MemOnce:可学习记忆状态架构,1M 上下文缓存缩小 1313 倍吞吐提升 3.5 倍

长上下文推理成本与 agent 记忆系统设计可以直接对照这篇"压缩记忆 + 按需解码回 KV cache"的思路;数字锚定在 1M 上下文下 1313 倍缓存缩减、prefill 降 6.9 倍、吞吐升 3.5 倍。

关键信息

  • 论文标题:MemOnce: A Scalable Memory Architecture for Large Language Models
  • 作者:Chang Nie, Chaoyou Fu, Songlin Liu, Yiqing Hu, Caifeng Shan
  • arXiv:https://arxiv.org/abs/2611.27973
  • 发布时间:2026-11-20
  • arXiv 分类:cs.CL
  • 关联标签:memory, kv-cache, long-context, architecture
  • 备注:Project Page: https://clare-nie.github.io/MemOnce

English Abstract

Deploying large language models (LLMs) in long-horizon and continual interactions requires maintaining reusable memory states for future inference, posing challenges for existing architectures. Standard Transformers accumulate layer-wise, token-level KV caches, incurring linear GPU memory growth and quadratic computational complexity as the context expands. In contrast, linear-time architectures compress history into fixed-size states, but struggle to retain fine-grained details. We introduce MemOnce, a foundation architecture that learns scalable memory states for language models. 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. Coupling these two designs enables efficient on-the-fly memory loading and KV cache decoding, drastically reducing the GPU memory footprint and achieving linear-time complexity. We conduct extensive experiments to show that MemOnce outperforms Transformers and other architectures across varying model sizes, context lengths, and training paradigms (pretraining and post-training adaptation). In particular, adapting Qwen3.5-4B with MemOnce reduces memory state cache by 1313$\times$ and prefill latency by 6.9$\times$ at 1M context, and improves throughput by 3.5$\times$ and overall memory performance by +5.77%. Finally, MemOnce generalizes zero-shot to downstream representation tasks, achieving competitive results against specialized models.

English Summary

MemOnce is a foundation architecture that learns scalable memory states for long-horizon and continual LLM interactions. A memory encoder-decoder 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, while memory sparse attention retrieves relevant memories per input with sparse indices computed only once across layers. Adapting Qwen3.5-4B with MemOnce reduces the memory-state cache by 1313x and prefill latency by 6.9x at 1M context, improves throughput 3.5x and overall memory performance by +5.77%, outperforming standard Transformers and linear-time architectures across model sizes, context lengths, and both pretraining and post-training adaptation.

Obsidian Notes

  • 内容由 opencli arxiv paper 拉取 arXiv 元数据与摘要生成。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。