Revisiting Supervision for Continual Representation Learning

Daniel Marczak, Sebastian Cygert, Tomasz Trzcinski, Bartłomiej Twardowski

TL;DR

This paper challenges the prevailing notion that self-supervised learning (SSL) inherently produces superior representations for continual learning (CL). The authors demonstrate that supervised learning (SL) models, when augmented with a simple multi-layer perceptron (MLP) projector, can actually outperform SSL methods in CL scenarios, achieving better transferability and reduced forgetting.

What Problem Does This Paper Address?

Continual learning (CL) aims to train models on a sequence of tasks without forgetting previously learned information. While much research has focused on supervised CL, recent trends have highlighted the benefits of self-supervised learning (SSL) for building robust representations that transfer well across tasks. This has led to a perception that SSL is inherently better for representation learning in CL. However, it remains counter-intuitive that access to explicit labels (in SL) would lead to worse representations than learning from unlabeled data (in SSL). This paper questions this assumption and investigates whether supervised signals, when properly utilized, can indeed lead to superior continual representation learning.

Methods

The core of this work is the re-examination of supervised learning (SL) in the context of continual representation learning. The authors propose a simple yet effective modification: adding a multi-layer perceptron (MLP) projector during training to the supervised model, which is then discarded during evaluation. This MLP projector is a component commonly used in SSL methods to prevent representation collapse and improve transferability.

The paper compares several variations:

  • SL: Standard supervised learning with a linear head.
  • SL+MLP: Supervised learning with an MLP projector between the backbone and the linear head (discarded at test time).
  • SSL: Self-supervised learning methods like BarlowTwins and SimCLR.

They also evaluate these methods in conjunction with various continual learning strategies like LwF, CaSSLe, and PFR. Evaluation metrics include k-NN accuracy for representation quality, forgetting (F), forward transfer (FT), and task exclusion difference (EXC) to assess representation stability and retention.

Datasets

The experiments were conducted on four standard datasets:

  • CIFAR10 (C10)
  • CIFAR100 (C100)
  • SVHN
  • ImageNet100 (IN100)

These datasets were split into multiple tasks (e.g., C10/5 means CIFAR10 split into 5 tasks) to simulate continual learning scenarios.

Key Insights and Ideas

  • Supervision with an MLP can beat SSL: The most striking finding is that supervised models augmented with an MLP projector (SL+MLP) can achieve better continual representation learning performance than standard SSL methods. This directly challenges the prevailing wisdom.
  • MLP is key for SL transferability: The MLP projector significantly boosts the transferability of supervised representations, making them competitive with SSL after the initial task. This suggests that the MLP's role in preventing collapse and promoting richer feature spaces is crucial, regardless of whether the learning is supervised or self-supervised.
  • SL+MLP excels at knowledge accumulation: Unlike standard SL and even SSL, the SL+MLP approach demonstrates the ability to incrementally accumulate knowledge across tasks, leading to consistently improving performance.
  • Trade-off between stability and expressiveness: The paper highlights a potential trade-off. While SL+MLP builds more expressive representations, standard SL can exhibit higher stability in certain scenarios. This suggests that the "best" approach might depend on the specific CL objective (e.g., pure representation learning vs. downstream task performance).
  • SSL's negative EXC is surprising: The finding that SSL can exhibit negative EXC (meaning it's better to train from scratch than fine-tune) is particularly noteworthy and suggests limitations in how SSL models retain task-specific features in CL.

Key Results

  • Performance Boost: SL+MLP consistently outperforms standard SL and SSL methods in terms of task-agnostic k-NN accuracy across various datasets and task splits. For instance, in a two-task scenario, SL+MLP achieves 65.5±0.4% accuracy on the first task and 88.0±0.2% on the second, surpassing both SL (36.0±0.6%, 87.1±0.2%) and SSL (57.7±0.4%, 81.2±0.2%).
  • Reduced Forgetting: SL+MLP exhibits significantly lower representation forgetting compared to SL, and even lower than SSL.
  • Improved Feature Retention: SL+MLP shows the highest EXC scores, indicating a superior ability to retain task-specific features.
  • Enhanced Diversity: Analysis of representation spectra reveals that SL+MLP prevents neural collapse and leads to more diverse features, similar to SSL, which is beneficial for continual learning.

Limitations and Future Work

  • Stability vs. Expressiveness Trade-off: The paper notes that while SL+MLP builds stronger representations, standard SL can be more stable in low distribution shift scenarios. This suggests that further research could explore methods that balance both expressiveness and stability.
  • Downstream Task Performance: While the paper focuses on representation quality, future work could more directly evaluate the impact of these representations on downstream tasks.
  • Generalizability of MLP: The authors suggest that the positive effects of the MLP projector can be coupled with various CL methods, implying that further exploration of different CL strategies with SL+MLP is warranted.
  • Understanding MLP's Role: While the paper shows that the MLP helps, a deeper theoretical understanding of why it so effectively bridges the gap between supervised signals and robust continual representations could be a valuable future direction.

Summary updated

BibTeX
@inproceedings{marczak2024revisiting,
  author = {Daniel Marczak and Sebastian Cygert and Tomasz Trzcinski and Bartłomiej Twardowski},
  title = {{Revisiting Supervision for Continual Representation Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72658-3\_11},
}
Figure