Self-Updatable Large Language Models by Integrating Context into Model Parameters
Yu Wang, Xinshuang Liu, Xiusi Chen, Sean O'Brien, Junda Wu, Julian McAuley
TL;DR
This work tackles the challenge of integrating in-time, small-scale experiences into large language models without increasing parameter or storage overhead. It introduces SELF-PARAM, which embeds context directly into model parameters by minimizing the $KL$ divergence between a context-enabled original model and a context-free target model, using a context-aware target sentence set generated from an instruct model and regularized with unrelated data. Through extensive experiments on single, batch, sequential context injections and conversational recommendation, SELF-PARAM consistently outperforms strong baselines and approaches the upper bound set by context-plus-question prompts, all with zero additional storage. The results demonstrate a scalable, efficient approach to evolving LLMs in dynamic environments, enabling robust memory of recent events and retention of past experiences for long-term applicability.
Abstract
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.
