Continual Learning: Less Forgetting, More OOD Generalization via Adaptive Contrastive Replay

Hossein Rezaei, Mohammad Sabokrou
10/9/2024
cs.LGcs.CV

No official code found. Best implementation: hossein-rezaei624/ACR (3 stars, MIT, last commit 2024-10-02).

Abstract

Machine learning models often suffer from catastrophic forgetting of previously learned knowledge when learning new classes. Various methods have been proposed to mitigate this issue. However, rehearsal-based learning, which retains samples from previous classes, typically achieves good performance but tends to memorize specific instances, struggling with Out-of-Distribution (OOD) generalization. This often leads to high forgetting rates and poor generalization. Surprisingly, the OOD generalization capabilities of these methods have been largely unexplored. In this paper, we highlight this issue and propose a simple yet effective strategy inspired by contrastive learning and data-centric principles to address it. We introduce Adaptive Contrastive Replay (ACR), a method that employs dual optimization to simultaneously train both the encoder and the classifier. ACR adaptively populates the replay buffer with misclassified samples while ensuring a balanced representation of classes and tasks. By refining the decision boundary in this way, ACR achieves a balance between stability and plasticity. Our method significantly outperforms previous approaches in terms of OOD generalization, achieving an improvement of 13.41\% on Split CIFAR-100, 9.91\% on Split Mini-ImageNet, and 5.98\% on Split Tiny-ImageNet.

View on arXivView PDF

Code Implementations(1)

MIT

Official Code For Paper "Continual Learning: Less Forgetting, More OOD Generalization via Adaptive Contrastive Replay"

30PythonOct 2, 20242 years agoMIT

Similar Papers

Cite this paper

@article{rezaei2024continual,
  title  = {Continual Learning: Less Forgetting, More OOD Generalization via Adaptive Contrastive Replay},
  author = {Hossein Rezaei and Mohammad Sabokrou},
  year   = {2024},
  eprint = {2410.07110},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.07110v1}
}

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

Discussion