SAPT: A Shared Attention Framework for Parameter-Efficient Continual Learning of Large Language Models

Weixiang Zhao, Shilong Wang, Yulin Hu, Yanyan Zhao, Bing Qin +4 more
1/16/2024
cs.CL

No official code found. Best implementation: circle-hit/SAPT (40 stars, last commit 2025-01-13).

Abstract

The continual learning (CL) ability is vital for deploying large language models (LLMs) in the dynamic world. Existing methods devise the learning module to acquire task-specific knowledge with parameter-efficient tuning (PET) block and the selection module to pick out the corresponding one for the testing input, aiming at handling the challenges of catastrophic forgetting and knowledge transfer in CL. However, these methods tend to address only one of the challenges, ignoring the potential of aligning the two modules to effectively address catastrophic forgetting and knowledge transfer simultaneously. To this end, we propose a novel Shared Attention Framework (SAPT), to align the PET learning and selection via the Shared Attentive Learning \& Selection module. Extensive Experiments on two CL benchmarks demonstrate the superiority of SAPT. Moreover, SAPT consistently demonstrates its superiority when we scale it to different model sizes (from 770M to 13B), different model architectures (T5 and LLaMA-2) and unseen tasks.

View on arXivView PDF

Code Implementations(1)

circle-hit/SAPTCommunity59%

Code for ACL 2024 accepted paper titled "SAPT: A Shared Attention Framework for Parameter-Efficient Continual Learning of Large Language Models"

409Shell, PythonMay 28, 20241 years ago

Similar Papers

Cite this paper

@article{zhao2024sapt,
  title  = {SAPT: A Shared Attention Framework for Parameter-Efficient Continual Learning of Large Language Models},
  author = {Weixiang Zhao and Shilong Wang and Yulin Hu and Yanyan Zhao and Bing Qin and Xuanyu Zhang and Qing Yang and Dongliang Xu and Wanxiang Che},
  year   = {2024},
  eprint = {2401.08295},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.08295v3}
}

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/2401.08295.svg)](https://codeofpaper.com/paper/2401.08295)

Discussion