面向大语言模型的参数内记忆增强
研究论文 · 2026/10/07
大语言模型(LLM)及基于LLM的智能体日益需要融入预训练后获得的知识,例如领域事实、用户偏好、文档和交互经验。上下文学习(ICL)及基于ICL的智能体框架虽灵活,但消耗上下文容量,并产生随上下文长度增长的重复离散编码成本。参数内记忆提供了一种互补的基底:可复用的记忆信息被表示在模型参数、适配器或其他类似参数的对象中,并在推理时组合进前向传播。本综述聚焦于在部署阶段用此类参数化记忆增强LLM的方法:一个承载记忆的参数对象在推理时被插入前向传播,无论其是在部署前还是部署期间获得。我们通过两个正交轴来组织这一领域:参数放置位置,包括嵌入层、注意力层、FFN层,或使用两层及以上时的混合方式;以及参数获取时间,区分记忆对象在部署期间获取(在线)与在部署前获取(离线)的方法。我们厘清边界、进行比较,并讨论在干扰、安全、与ICL协同设计以及递归自我改进方面的开放方向。
该综述为理解如何将预训练后知识高效融入大语言模型提供了清晰的分类框架,并指出了关键挑战与未来方向,对研究和应用均有参考价值。
Recently Large Language Models (LLMs) and LLM-based agents increasingly need to incorporate knowledge acquired after pretraining, e.g., domain facts, user preferences, documents, and interaction experience. In-context learning (ICL) and ICL-based agent harness remain flexible, but they consume context capacity and incur repeated discretized encoding cost that grows with context length. In-parameter memory offers a complementary substrate: reusable memory information is represented in model parameters, adapters, or other parameter-like objects that are composed into the forward pass at inference time. This survey focuses on methods that augment LLMs with such parametric memory at deployment: a memory-bearing parameter object is plugged into the forward pass during inference, whether it is acquired before or during deployment. We organize the landscape with two orthogonal axes: Parameter Placement, which includes Embedding, Attention, FFN layers, or Hybrid when two or more layers are used; and Parameter Acquisition Time, which distinguishes methods whose memory object is acquired during deployment (online) from those acquired before it (offline). We clarify boundaries, conduct comparisons, and discuss open directions in interference, safety, co-design with ICL, and recursive self-improvement.