arXiv:2410.00487cs.CL2024-10ICLR被引 20

让大模型自动更新记忆,不用加参数就能记住新知识。

Self-Updatable Large Language Models by Integrating Context into Model Parameters

  • 用KL散度最小化让模型自身参数内化新知识
  • 在问答和对话推荐任务中表现优于现有方法
  • 适合需要快速适应新场景的智能系统

尽管大型语言模型取得显著进展,但快速融入小规模经验(如与周围物体交互)仍是重大挑战。两个关键因素是:(1)有效性:准确记忆近期事件;(2)保留性:回忆久远经历的能力。当前方法要么通过持续学习、模型编辑或知识蒸馏将经验嵌入参数,但难以实现快速更新与复杂交互;要么依赖外部存储实现长期保留,增加存储开销。本文提出SELF-PARAM(自更新大语言模型,参数集成),无需额外参数即可实现近似最优的有效性与长期保留性。该方法设计训练目标,最小化原始模型(可访问上下文)与目标模型(不可访问)预测间的KL散度。通过生成多样化问答对并最小化该数据集上的KL散度,将知识无缝内化至目标模型参数中。在问答与对话推荐任务上的评估表明,即使考虑非零存储成本,SELF-PARAM仍显著优于现有方法。该成果为大模型高效、可扩展地整合经验提供了新路径。

原文摘要 · Abstract (English)

Despite significant advancements in large language models (LLMs), the rapid and frequent integration of small-scale experiences, such as interactions with surrounding objects, remains a substantial challenge. Two critical factors in assimilating these experiences are (1) Efficacy: the ability to accurately remember recent events; (2) Retention: the capacity to recall long-past experiences. Current methods either embed experiences within model parameters using continual learning, model editing, or knowledge distillation techniques, which often struggle with rapid updates and complex interactions, or rely on external storage to achieve long-term retention, thereby increasing storage requirements. In this paper, we propose SELF-PARAM (Self-Updatable Large Language Models with Parameter Integration). SELF-PARAM requires no extra parameters while ensuring near-optimal efficacy and long-term retention. Our method employs a training objective that minimizes the Kullback-Leibler (KL) divergence between the predictions of an original model (with access to contextual information) and a target model (without such access). By generating diverse question-answer pairs related to the knowledge and minimizing the KL divergence across this dataset, we update the target model to internalize the knowledge seamlessly within its parameters. Evaluations on question-answering and conversational recommendation tasks demonstrate that SELF-PARAM significantly outperforms existing methods, even when accounting for non-zero storage requirements. This advancement paves the way for more efficient and scalable integration of experiences in large language models by embedding knowledge directly into model parameters.

大模型更新知识内化参数优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。