A Simple Baseline that Questions the Use of Pretrained-Models in Continual Learning

Paul Janson, Wenxuan Zhang, Rahaf Aljundi, Mohamed Elhoseiny
10/10/2022
cs.CVcs.LG

Official code: Pauljanson002/pretrained-cl (6 stars, Python, last commit 2022-10-09).

Abstract

With the success of pretraining techniques in representation learning, a number of continual learning methods based on pretrained models have been proposed. Some of these methods design continual learning mechanisms on the pre-trained representations and only allow minimum updates or even no updates of the backbone models during the training of continual learning.

Show full abstract

In this paper, we question whether the complexity of these models is needed to achieve good performance by comparing them to a simple baseline that we designed. We argue that the pretrained feature extractor itself can be strong enough to achieve a competitive or even better continual learning performance on Split-CIFAR100 and CoRe 50 benchmarks. To validate this, we conduct a very simple baseline that 1) use the frozen pretrained model to extract image features for every class encountered during the continual learning stage and compute their corresponding mean features on training data, and 2) predict the class of the input based on the nearest neighbor distance between test samples and mean features of the classes; i.e., Nearest Mean Classifier (NMC). This baseline is single-headed, exemplar-free, and can be task-free (by updating the means continually). This baseline achieved 88.53% on 10-Split-CIFAR-100, surpassing most state-of-the-art continual learning methods that are all initialized using the same pretrained transformer model. We hope our baseline may encourage future progress in designing learning systems that can continually add quality to the learning representations even if they started from some pretrained weights.

View on arXivView PDF

Code Implementations(1)

A Simple Baseline that Questions the Use of Pretrained-Models in Continual Learning (Accepted at DistShift workshop at Neurips 2022)

60PythonOct 9, 20224 years ago

Similar Papers

Cite this paper

@article{janson2022simple,
  title  = {A Simple Baseline that Questions the Use of Pretrained-Models in Continual Learning},
  author = {Paul Janson and Wenxuan Zhang and Rahaf Aljundi and Mohamed Elhoseiny},
  year   = {2022},
  eprint = {2210.04428},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.04428}
}

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

Discussion