SEEKR: Selective Attention-Guided Knowledge Retention for Continual Learning of Large Language Models

Jinghan He, Haiyun Guo, Kuan Zhu, Zihan Zhao, Ming Tang +1 more
11/9/2024
cs.CLcs.LG

No official code found. Best implementation: jinghan1he/SEEKR (8 stars, Apache-2.0, last commit 2024-11-09).

Abstract

Continual learning (CL) is crucial for language models to dynamically adapt to the evolving real-world demands. To mitigate the catastrophic forgetting problem in CL, data replay has been proven a simple and effective strategy, and the subsequent data-replay-based distillation can further enhance the performance. However, existing methods fail to fully exploit the knowledge embedded in models from previous tasks, resulting in the need for a relatively large number of replay samples to achieve good results. In this work, we first explore and emphasize the importance of attention weights in knowledge retention, and then propose a SElective attEntion-guided Knowledge Retention method (SEEKR) for data-efficient replay-based continual learning of large language models (LLMs). Specifically, SEEKR performs attention distillation on the selected attention heads for finer-grained knowledge retention, where the proposed forgettability-based and task-sensitivity-based measures are used to identify the most valuable attention heads. Experimental results on two continual learning benchmarks for LLMs demonstrate the superiority of SEEKR over the existing methods on both performance and efficiency. Explicitly, SEEKR achieves comparable or even better performance with only 1/10 of the replayed data used by other methods, and reduces the proportion of replayed data to 1%.

View on arXivView PDF

Code Implementations(1)

jinghan1he/SEEKRCommunity100%
Apache-2.0

[EMNLP 2024] SEEKR: Selective Attention-Guided Knowledge Retention for Continual Learning of Large Language Models

81Shell, PythonOct 1, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{he2024seekr,
  title  = {SEEKR: Selective Attention-Guided Knowledge Retention for Continual Learning of Large Language Models},
  author = {Jinghan He and Haiyun Guo and Kuan Zhu and Zihan Zhao and Ming Tang and Jinqiao Wang},
  year   = {2024},
  eprint = {2411.06171},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.06171v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.06171.svg)](https://codeofpaper.com/paper/2411.06171)

Discussion