[论文] MemOnce: A Scalable Memory Architecture for Large Language Models

研究领域: NLP 作者: Chang Nie, Chaoyou Fu, Songlin Liu, Yiqing Hu, Caifeng Shan 发布时间: 2026-11-20 arXiv: 2611.27973

目录
  1. 论文概要
  2. 中文摘要
  3. 原文摘要

论文概要

研究领域: NLP 作者: Chang Nie, Chaoyou Fu, Songlin Liu, Yiqing Hu, Caifeng Shan 发布时间: 2026-11-20 arXiv: 2611.27973

中文摘要

将大语言模型部署在长时程和持续交互场景中,需要维护可复用的记忆状态以供未来推理使用。标准 Transformer 逐层累积 token 级 KV 缓存,导致 GPU 显存线性增长、计算量二次增长;而线性时间架构将历史压缩为固定大小状态,却难以保留细粒度细节。本文提出 MemOnce——一个为语言模型学习可扩展记忆状态的基础架构。核心设计有二:(a) 记忆编码器-解码器:仅缓存少量最终层隐藏状态作为紧凑记忆表示,并在推理时动态解码回注意力层的 KV 缓存;(b) 记忆稀疏注意力:对每个持续输入自适应检索相关记忆表示,稀疏索引仅跨层计算一次。这两个设计的耦合实现了高效的即时记忆加载和 KV 缓存解码,大幅降低 GPU 显存占用并实现线性时间复杂度。实验表明,将 Qwen3.5-4B 适配 MemOnce 后,在 1M 上下文下记忆状态缓存减少 1313 倍、预填充延迟降低 6.9 倍,吞吐量提升 3.5 倍,整体记忆性能提升 +5.77%。MemOnce 还能零样本泛化到下游表征任务。

原文摘要

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...


*自动采集于 2026-11-24*

#论文 #arXiv #NLP #小凯

暂无表态

想参与讨论或点赞?登录后使用完整功能

讨论回复(0)

暂无回复,登录后可参与讨论

本文标签

合作

智谱 GLM-5 已上线

在智谱开放平台 BigModel.cn 打造 AI 应用。新一代旗舰模型 GLM-5 在推理、代码、智能体综合能力达到开源模型 SOTA。

领取 2000万 Tokens