Deep Fusion Memory:面向大语言模型的块级参数化记忆架构
摘要
Deep Fusion Memory(DFM)是一种块级参数化记忆架构,通过因果记忆预测器从上下文生成记忆,并以门控交叉注意力融入隐藏状态,推理时无需显式检索。其构建训练数据所需的检索查询减少32倍、检索条目减少2048倍。在六个问答任务上,DFM 在 Mistral-7B-v0.3 和 Qwen3-8B-Base 上分别比最强基线提升12.71%和11.19%。
摘要由模型根据原文撰写,以原文为准。
正文 · 原文
Large language models need effective ways to acquire and use external knowledge beyond what they retain from pretraining. Continued pretraining risks catastrophic forgetting, while retrieval at inference time can add substantial overhead. External parametric memory avoids online retrieval, but constructing its training data requires extensive offline search, and output-level interpolation provides only shallow fusion. We introduce Deep Fusion Memory (DFM), a parametric memory architecture that reduces this construction workload and incorporates learned memory into intermediate hidden states. A causal memory predictor learns to generate memory from the preceding context, using retrieved chunk embeddings from the corpus as supervision. The predicted memory is shared across tokens within each chunk and fused into their hidden states through gated cross-attention. Memory prediction and fusion are trained end to end with the backbone frozen, and inference requires no explicit retrieval. Compared with existing parametric memory approaches, which often construct token-level memory targets, DFM requires 32times fewer retrieval queries and 2048times fewer retrieved items to construct its training data. Across six QA tasks, DFM performs better over the strongest baseline by 12.71% on Mistral-7B-v0.3 and 11.19% on Qwen3-8B-Base. Beyond QA, domain adaptation yields average gains of 6.51 and 4.38 points over Qwen3-4B-Base and Qwen3-8B-Base, respectively.
注意转载授权 · 阅读原文
来源:Hugging Face Daily Papers · huggingface.co
引用原文
Hugging Face Daily Papers. Deep Fusion Memory: A Chunk-Level Parametric Memory for Large Language Models[EB/OL]. (2026-10-18)[访问日期]. https://huggingface.co/papers/2610.25100.