Generalized Few-Shot Continual Learning with Contrastive Mixture of Adapters

Yawen Cui, Zitong Yu, Rizhao Cai, Xun Wang, Alex C. Kot +1 more
2/12/2023
cs.CV

Official code: yawencui/CMoA (11 stars, last commit 2024-11-04).

Abstract

The goal of Few-Shot Continual Learning (FSCL) is to incrementally learn novel tasks with limited labeled samples and preserve previous capabilities simultaneously, while current FSCL methods are all for the class-incremental purpose. Moreover, the evaluation of FSCL solutions is only the cumulative performance of all encountered tasks, but there is no work on exploring the domain generalization ability. Domain generalization is a challenging yet practical task that aims to generalize beyond training domains. In this paper, we set up a Generalized FSCL (GFSCL) protocol involving both class- and domain-incremental situations together with the domain generalization assessment. Firstly, two benchmark datasets and protocols are newly arranged, and detailed baselines are provided for this unexplored configuration. We find that common continual learning methods have poor generalization ability on unseen domains and cannot better cope with the catastrophic forgetting issue in cross-incremental tasks. In this way, we further propose a rehearsal-free framework based on Vision Transformer (ViT) named Contrastive Mixture of Adapters (CMoA). Due to different optimization targets of class increment and domain increment, the CMoA contains two parts: (1) For the class-incremental issue, the Mixture of Adapters (MoA) module is incorporated into ViT, then cosine similarity regularization and the dynamic weighting are designed to make each adapter learn specific knowledge and concentrate on particular classes. (2) For the domain-related issues and domain-invariant representation learning, we alleviate the inner-class variation by prototype-calibrated contrastive learning. The codes and protocols are available at https://github.com/yawencui/CMoA.

View on arXivView PDF

Code Implementations(1)

yawencui/CMoAOfficial100%
110PythonFeb 7, 20231 years ago

Similar Papers

Cite this paper

@article{cui2023generalized,
  title  = {Generalized Few-Shot Continual Learning with Contrastive Mixture of Adapters},
  author = {Yawen Cui and Zitong Yu and Rizhao Cai and Xun Wang and Alex C. Kot and Li Liu},
  year   = {2023},
  eprint = {2302.05936},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.05936v1}
}

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

Discussion