Improving Online Continual Learning Performance and Stability with Temporal Ensembles

Albin Soutif--Cormerais, Antonio Carta, Joost Van de Weijer
6/29/2023
cs.LGcs.AI

Official code: AlbinSou/online_ema (10 stars, MIT, last commit 2024-01-11).

Abstract

Neural networks are very effective when trained on large datasets for a large number of iterations. However, when they are trained on non-stationary streams of data and in an online fashion, their performance is reduced (1) by the online setup, which limits the availability of data, (2) due to catastrophic forgetting because of the non-stationary nature of the data. Furthermore, several recent works (Caccia et al., 2022; Lange et al., 2023) arXiv:2205.13452 showed that replay methods used in continual learning suffer from the stability gap, encountered when evaluating the model continually (rather than only on task boundaries). In this article, we study the effect of model ensembling as a way to improve performance and stability in online continual learning. We notice that naively ensembling models coming from a variety of training tasks increases the performance in online continual learning considerably. Starting from this observation, and drawing inspirations from semi-supervised learning ensembling methods, we use a lightweight temporal ensemble that computes the exponential moving average of the weights (EMA) at test time, and show that it can drastically increase the performance and stability when used in combination with several methods from the literature.

View on arXivView PDF

Code Implementations(1)

MIT

Code for the CoLLAs 2023 paper "Improving Online Continual Learning Performance and Stability With Temporal Ensemble"

101Shell, PythonJun 19, 20232 years agoMIT
continualdeep-learninglearningonline

Similar Papers

Cite this paper

@article{soutifcormerais2023improving,
  title  = {Improving Online Continual Learning Performance and Stability with Temporal Ensembles},
  author = {Albin Soutif--Cormerais and Antonio Carta and Joost Van de Weijer},
  year   = {2023},
  eprint = {2306.16817},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.16817v2}
}

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

Discussion