Skip to main content
QUICK REVIEW

[Paper Review] Continual Learning with Foundation Models: An Empirical Study of Latent Replay

Оleksiy Ostapenko, Timothée Lesort|arXiv (Cornell University)|Apr 30, 2022
Domain Adaptation and Few-Shot LearningComputer Science9 citations
TL;DR

This paper investigates continual learning (CL) using frozen foundation models as feature extractors in the latent space, comparing latent experience replay (ER) against end-to-end fine-tuning on raw data. It finds that latent ER achieves competitive accuracy with significantly lower compute, especially when pre-trained models generalize well to out-of-distribution data, and demonstrates that data characteristics—such as task similarity and representation quality—strongly influence CL performance more than algorithmic design.

ABSTRACT

Rapid development of large-scale pre-training has resulted in foundation models that can act as effective feature extractors on a variety of downstream tasks and domains. Motivated by this, we study the efficacy of pre-trained vision models as a foundation for downstream continual learning (CL) scenarios. Our goal is twofold. First, we want to understand the compute-accuracy trade-off between CL in the raw-data space and in the latent space of pre-trained encoders. Second, we investigate how the characteristics of the encoder, the pre-training algorithm and data, as well as of the resulting latent space affect CL performance. For this, we compare the efficacy of various pre-trained models in large-scale benchmarking scenarios with a vanilla replay setting applied in the latent and in the raw-data space. Notably, this study shows how transfer, forgetting, task similarity and learning are dependent on the input data characteristics and not necessarily on the CL algorithms. First, we show that under some circumstances reasonable CL performance can readily be achieved with a non-parametric classifier at negligible compute. We then show how models pre-trained on broader data result in better performance for various replay sizes. We explain this with representational similarity and transfer properties of these representations. Finally, we show the effectiveness of self-supervised pre-training for downstream domains that are out-of-distribution as compared to the pre-training domain. We point out and validate several research directions that can further increase the efficacy of latent CL including representation ensembling. The diverse set of datasets used in this study can serve as a compute-efficient playground for further CL research. The codebase is available under https://github.com/oleksost/latent_CL.

Motivation & Objective

  • To evaluate the effectiveness of latent experience replay (ER) using frozen foundation models for continual learning (CL) compared to end-to-end fine-tuning on raw data.
  • To investigate how the pre-training data, architecture, and algorithm of foundation models affect downstream CL performance in the latent space.
  • To understand whether CL performance is primarily driven by CL algorithm design or by data and representation characteristics.
  • To assess the role of representation quality, transferability, and in-distribution vs. out-of-distribution data in determining CL success.
  • To identify practical configurations and research directions—such as representation ensembling—that can further improve latent CL performance.

Proposed method

  • Employs a large-scale empirical benchmark using 26 pre-trained vision models across diverse architectures, pre-training objectives (e.g., contrastive, masked autoencoding), and datasets.
  • Applies experience replay (ER) in both raw input space (end-to-end fine-tuning) and latent space (latent ER) to compare compute-accuracy trade-offs.
  • Uses five distinct data streams with varying degrees of similarity to the pre-training domain, including in-distribution and out-of-distribution (OOD) settings.
  • Evaluates CL performance using standard metrics: average accuracy, forgetting rate, and accuracy on the final task.
  • Analyzes representation properties such as representational similarity and transferability to explain performance differences across models and data streams.
  • Employs non-parametric classifiers (e.g., k-NN) in the latent space to test if performance gains can be achieved with minimal compute.

Experimental results

Research questions

  • RQ1How does latent ER using frozen foundation models compare to end-to-end fine-tuning in terms of compute cost and accuracy across diverse data streams?
  • RQ2To what extent do data characteristics—such as task similarity, distribution shift, and domain shift—affect CL performance, independent of the CL algorithm?
  • RQ3How do the pre-training data, algorithm, and architecture of foundation models influence the quality of latent representations for continual learning?
  • RQ4Can non-parametric classifiers in the latent space achieve competitive CL performance with negligible computational cost?
  • RQ5What role does representation ensembling play in improving latent CL performance, and in which settings is it most effective?

Key findings

  • Latent ER with frozen foundation models achieves comparable or better final accuracy than end-to-end fine-tuning on most data streams, despite requiring nearly two orders of magnitude less compute.
  • On out-of-distribution (OOD) streams, end-to-end fine-tuning significantly outperforms latent ER, indicating that fine-tuning is necessary when data distribution shifts substantially from pre-training.
  • Foundation models pre-trained on broader, more diverse data (e.g., DINO, CLIP, ImageNet-21k) yield superior latent representations, leading to better CL performance across all replay sizes.
  • Representational similarity and transferability of latent features are strong predictors of CL success, explaining why some models generalize better than others regardless of CL algorithm.
  • Non-parametric classifiers (e.g., k-NN) in the latent space achieve strong performance with negligible compute, demonstrating that forgetting can be mitigated without parameter updates.
  • Self-supervised pre-training (e.g., DINO, CLIP) enables strong zero-shot generalization to OOD domains, outperforming supervised pre-training in such settings.

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.