Skip to main content
QUICK REVIEW

[Paper Review] Improving Online Continual Learning Performance and Stability with Temporal Ensembles

Albin Soutif--Cormerais, Antonio Carta|arXiv (Cornell University)|Jun 29, 2023
Domain Adaptation and Few-Shot LearningComputer Science3 citations
TL;DR

This paper proposes using a lightweight temporal ensemble via exponential moving average (EMA) of model weights to improve performance and stability in online continual learning. By ensembling models from different training stages without altering training, EMA boosts accuracy by up to 9.3% and significantly reduces the stability gap and task-recency bias across benchmarks like Split-CIFAR100 and Split-MiniImageNet.

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.

Motivation & Objective

  • Address performance degradation and instability in online continual learning due to data non-stationarity and catastrophic forgetting.
  • Investigate whether model ensembling—particularly temporal ensembling—can mitigate the stability gap observed during continual evaluation.
  • Reduce task-recency bias, a common issue in class-incremental learning where models favor recent tasks.
  • Develop a memory-efficient ensembling method that maintains high performance without increasing training complexity.
  • Demonstrate that EMA ensembling provides gains beyond those from continual learning techniques alone, including improvements in online i.i.d. settings.

Proposed method

  • Apply exponential moving average (EMA) of model weights at inference time to form a temporal ensemble, using a momentum hyperparameter tuned to distribution shift speed.
  • Use EMA as a test-time model instead of the final trained model, combining predictions from multiple checkpoints along the training trajectory.
  • Integrate EMA with existing replay-based continual learning methods (e.g., RAR, iCaRL) without modifying their training procedures.
  • Tune the EMA momentum to match the rate of distribution shift, enabling better adaptation to concept drift in streaming data.
  • Evaluate using continual evaluation protocols to measure stability metrics like WC-Acc and RAG (Relative Accuracy Gap).
  • Compare EMA performance against single-model baselines and i.i.d. settings to isolate gains from ensembling vs. continual learning mechanisms.

Experimental results

Research questions

  • RQ1Can temporal ensembling via EMA significantly improve performance and stability in online continual learning?
  • RQ2Does EMA ensembling reduce the stability gap observed during continual evaluation, especially at the start of new tasks?
  • RQ3To what extent does EMA mitigate task-recency bias in class-incremental learning settings?
  • RQ4Are the performance gains from EMA due to improved generalization or specific to continual learning dynamics?
  • RQ5Can a lightweight, memory-efficient EMA-based ensembling method outperform standard single-model inference without altering training?

Key findings

  • EMA ensembling improves final accuracy by up to 9.3% on Split-MiniImageNet when combined with RAR, significantly closing the performance gap with i.i.d. baselines.
  • The stability gap—defined as performance drop at the start of new tasks—is drastically reduced, with WC-Acc (worst-case accuracy) and RAG (Relative Accuracy Gap) metrics showing consistent improvements.
  • Task-recency bias is visibly reduced: the EMA model shows a flatter accuracy curve across tasks, with a 4.7% performance gap between RAR and i.i.d._w/tr on Split-CIFAR100 reduced to 1.8% when using EMA.
  • EMA provides consistent gains across multiple methods and datasets, with higher improvements in continual learning than in i.i.d. settings, except on Split-CIFAR10, where gains are equivalent.
  • The gains from EMA are not solely due to continual learning mechanisms, as similar improvements are observed in i.i.d. settings, but are amplified in continual learning due to functional diversity across models.
  • The EMA model achieves better stability by reducing variance in predictions, smoothing fluctuations from small-batch training and task shifts, as confirmed by detailed analysis of single-task shift dynamics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.