MEMORYLLM: Towards Self-Updatable Large Language Models

Abstract

Existing Large Language Models (LLMs) usually remain static after deployment, which might make it hard to inject new knowledge into the model. We aim to build models containing a considerable portion of self-updatable parameters, enabling the model to integrate new knowledge effectively and efficiently. To this end, we introduce MEMORYLLM, a model that comprises a transformer and a fixed-size memory pool within the latent space of the transformer. MEMORYLLM can self-update with text knowledge and memorize the knowledge injected earlier. Our evaluations demonstrate the ability of MEMORYLLM to effectively incorporate new knowledge, as evidenced by its performance on model editing benchmarks. Meanwhile, the model exhibits long-term information retention capacity, which is validated through our custom-designed evaluations and long-context benchmarks. MEMORYLLM also shows operational integrity without any sign of performance degradation even after nearly a million memory updates. Our code and model are open-sourced at https://github.com/wangyu-ustc/MemoryLLM.

Cite

Text

Wang et al. "MEMORYLLM: Towards Self-Updatable Large Language Models." International Conference on Machine Learning, 2024.

Markdown

[Wang et al. "MEMORYLLM: Towards Self-Updatable Large Language Models." International Conference on Machine Learning, 2024.](https://mlanthology.org/icml/2024/wang2024icml-memoryllm/)

BibTeX

@inproceedings{wang2024icml-memoryllm,
  title     = {{MEMORYLLM: Towards Self-Updatable Large Language Models}},
  author    = {Wang, Yu and Gao, Yifan and Chen, Xiusi and Jiang, Haoming and Li, Shiyang and Yang, Jingfeng and Yin, Qingyu and Li, Zheng and Li, Xian and Yin, Bing and Shang, Jingbo and Mcauley, Julian},
  booktitle = {International Conference on Machine Learning},
  year      = {2024},
  pages     = {50453-50466},
  volume    = {235},
  url       = {https://mlanthology.org/icml/2024/wang2024icml-memoryllm/}
}