LW2G: Learning Whether to Grow for Prompt-based Continual Learning

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Feng, Qian, Zhou, Da-wei, Zhao, Hanbin, Zhang, Chao, Dong, Jiahua, Dai, Dengxin, Qian, Hui
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916816216915968
author Feng, Qian
Zhou, Da-wei
Zhao, Hanbin
Zhang, Chao
Dong, Jiahua
Dai, Dengxin
Qian, Hui
author_facet Feng, Qian
Zhou, Da-wei
Zhao, Hanbin
Zhang, Chao
Dong, Jiahua
Dai, Dengxin
Qian, Hui
contents Recent Prompt-based Continual learning (PCL) has achieved remarkable performance with pre-trained models. These approaches expand a prompt pool by adding a new set of prompts while learning and select the correct set during inference. Previous studies have revealed that learning task-wised prompt sets individually and low selection accuracy pose challenges to the performance of PCL. In this paper, we propose a plug-in method, $\textbf{L}$earning $\textbf{W}$hether $\textbf{t}$o $\textbf{G}$row $\textbf{(LW2G)}$, which leverages the disparities between tasks to form an effective and efficient prompt sets pool, thereby achieving intra-task knowledge sharing and cooperation and avoiding the unbounded increase in the cost of the prompt pool. Specifically, a shared set is utilized when several tasks share certain commonalities, and a new set is added when there are significant differences between the new and previous tasks. To achieve this, we develop a metric called Hinder Forward Capability (HFC) to measure the hindrance imposed on learning new tasks by surgically modifying the original gradient onto the orthogonal complement of the old feature space. With HFC, an automated scheme, Dynamic Growing Approach, adaptively learns whether to grow with a dynamic threshold. Furthermore, we design a gradient-based constraint to ensure consistency between the updating prompts and pre-trained knowledge. Extensive experiments show the effectiveness of our method. Code is available at https://github.com/RAIAN08/LW2G.
format Preprint
id arxiv_https___arxiv_org_abs_2409_18860
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LW2G: Learning Whether to Grow for Prompt-based Continual Learning
Feng, Qian
Zhou, Da-wei
Zhao, Hanbin
Zhang, Chao
Dong, Jiahua
Dai, Dengxin
Qian, Hui
Computer Vision and Pattern Recognition
Recent Prompt-based Continual learning (PCL) has achieved remarkable performance with pre-trained models. These approaches expand a prompt pool by adding a new set of prompts while learning and select the correct set during inference. Previous studies have revealed that learning task-wised prompt sets individually and low selection accuracy pose challenges to the performance of PCL. In this paper, we propose a plug-in method, $\textbf{L}$earning $\textbf{W}$hether $\textbf{t}$o $\textbf{G}$row $\textbf{(LW2G)}$, which leverages the disparities between tasks to form an effective and efficient prompt sets pool, thereby achieving intra-task knowledge sharing and cooperation and avoiding the unbounded increase in the cost of the prompt pool. Specifically, a shared set is utilized when several tasks share certain commonalities, and a new set is added when there are significant differences between the new and previous tasks. To achieve this, we develop a metric called Hinder Forward Capability (HFC) to measure the hindrance imposed on learning new tasks by surgically modifying the original gradient onto the orthogonal complement of the old feature space. With HFC, an automated scheme, Dynamic Growing Approach, adaptively learns whether to grow with a dynamic threshold. Furthermore, we design a gradient-based constraint to ensure consistency between the updating prompts and pre-trained knowledge. Extensive experiments show the effectiveness of our method. Code is available at https://github.com/RAIAN08/LW2G.
title LW2G: Learning Whether to Grow for Prompt-based Continual Learning
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2409.18860