Supervised Contrastive Replay: Revisiting the Nearest Class Mean Classifier in Online Class-Incremental Continual Learning

By Zheda Mai, Ruiwen Li, Hyunwoo J. Kim, Scott Sanner. 2021

237 citations recorded by the source corpus.

Online class-incremental continual learning (CL) studies the problem of learning new classes continually from an online non-stationary data stream, intending to adapt to new data while mitigating catastrophic forgetting. While memory replay has shown promising results, the recency bias in online learning caused by the commonly used Softmax classifier remains an unsolved challenge. Although the Nearest-Class-Mean (NCM) classifier is significantly undervalued in the CL community, we demonstrate that it is a simple yet effective substitute for the Softmax classifier. It addresses the recency bias and avoids structural changes in the fully-connected layer for new classes. Moreover, we observe considerable and consistent performance gains when replacing the Softmax classifier with the NCM classifier for several state-of-the-art replay methods.To leverage the NCM classifier more effectively, data embeddings belonging to the same class should be clustered and well-separated from those with a different class label. To this end, we contribute Supervised Contrastive Replay (SCR), which explicitly encourages samples from the same class to cluster tightly in embedding space while pushing those of different classes further apart during replay-based training. Overall, we observe that our proposed SCR substantially reduces catastrophic forgetting and outperforms state-of-the-art CL methods by a significant margin on a variety of datasets.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Representation & Self-Supervised Learning, Meta & Continual Learning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. De-chuan Zhan
  2. Han-Jia Ye
  3. Jun Zhu
  4. Da-Wei Zhou
  5. Hang Su
  6. Xingxing Zhang
  7. Liyuan Wang
  8. Ziwei Liu

In Computer Vision and Pattern Recognition

  1. Dacheng Tao
  2. Han-Jia Ye
  3. Jun Zhu
  4. De-chuan Zhan
  5. Ziwei Liu
  6. Luc Van Gool
  7. Bernt Schiele
  8. Andrea Vedaldi

In Representation & Self-Supervised Learning

  1. Han-Jia Ye
  2. De-chuan Zhan
  3. Rahaf Aljundi
  4. Da-Wei Zhou
  5. Dacheng Tao
  6. Tinne Tuytelaars
  7. Matteo Boschini
  8. Simone Calderara

In Meta & Continual Learning

  1. Xingxing Zhang
  2. Liyuan Wang
  3. Jun Zhu
  4. Hang Su
  5. Han-Jia Ye
  6. De-chuan Zhan
  7. Da-Wei Zhou
  8. Simone Calderara

Citations in the corpus