Read Between the Layers: Leveraging Multi-Layer Representations for Rehearsal-Free Continual Learning with Pre-Trained Models

Kyra Ahrens, Hans Hergen Lehmann, Jae Hee Lee, Stefan Wermter
12/13/2023
cs.LGcs.CV

No official code found. Best implementation: ky-ah/LayUP (4 stars, MIT, last commit 2024-11-20).

Abstract

We address the Continual Learning (CL) problem, wherein a model must learn a sequence of tasks from non-stationary distributions while preserving prior knowledge upon encountering new experiences. With the advancement of foundation models, CL research has pivoted from the initial learning-from-scratch paradigm towards utilizing generic features from large-scale pre-training. However, existing approaches to CL with pre-trained models primarily focus on separating class-specific features from the final representation layer and neglect the potential of intermediate representations to capture low- and mid-level features, which are more invariant to domain shifts. In this work, we propose LayUP, a new prototype-based approach to CL that leverages second-order feature statistics from multiple intermediate layers of a pre-trained network. Our method is conceptually simple, does not require access to prior data, and works out of the box with any foundation model. LayUP surpasses the state of the art in four of the seven class-incremental learning benchmarks, all three domain-incremental learning benchmarks and in six of the seven online continual learning benchmarks, while significantly reducing memory and computational requirements compared to existing baselines. Our results demonstrate that fully exhausting the representational capacities of pre-trained models in CL goes well beyond their final embeddings.

View on arXivView PDF

Code Implementations(1)

ky-ah/LayUPCommunity100%
MIT
41PythonNov 21, 20231 years agoMIT

Similar Papers

Cite this paper

@article{ahrens2023read,
  title  = {Read Between the Layers: Leveraging Multi-Layer Representations for Rehearsal-Free Continual Learning with Pre-Trained Models},
  author = {Kyra Ahrens and Hans Hergen Lehmann and Jae Hee Lee and Stefan Wermter},
  year   = {2023},
  eprint = {2312.08888},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.08888v3}
}

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

Discussion