Continual Learning Using a Kernel-Based Method Over Foundation Models

Saleh Momeni, Sahisnu Mazumder, Bing Liu
12/20/2024
cs.LGcs.AIcs.CL

Official code: SalehMomeni/KLDA (14 stars, last commit 2025-02-25).

Abstract

Continual learning (CL) learns a sequence of tasks incrementally. This paper studies the challenging CL setting of class-incremental learning (CIL). CIL has two key challenges: catastrophic forgetting (CF) and inter-task class separation (ICS). Despite numerous proposed methods, these issues remain persistent obstacles. This paper proposes a novel CIL method, called Kernel Linear Discriminant Analysis (KLDA), that can effectively avoid CF and ICS problems. It leverages only the powerful features learned in a foundation model (FM). However, directly using these features proves suboptimal. To address this, KLDA incorporates the Radial Basis Function (RBF) kernel and its Random Fourier Features (RFF) to enhance the feature representations from the FM, leading to improved performance. When a new task arrives, KLDA computes only the mean for each class in the task and updates a shared covariance matrix for all learned classes based on the kernelized features. Classification is performed using Linear Discriminant Analysis. Our empirical evaluation using text and image classification datasets demonstrates that KLDA significantly outperforms baselines. Remarkably, without relying on replay data, KLDA achieves accuracy comparable to joint training of all classes, which is considered the upper bound for CIL performance. The KLDA code is available at https://github.com/salehmomeni/klda.

View on arXivView PDF

Code Implementations(1)

SalehMomeni/KLDAOfficial100%

code and resources for our paper "Achieving Joint Training Accuracy in Continual Learning" in AAAI2025

141Shell, PythonDec 15, 20241 years ago

Similar Papers

Cite this paper

@article{momeni2024continual,
  title  = {Continual Learning Using a Kernel-Based Method Over Foundation Models},
  author = {Saleh Momeni and Sahisnu Mazumder and Bing Liu},
  year   = {2024},
  eprint = {2412.15571},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.15571v1}
}

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

Discussion