Skip to main content
QUICK REVIEW

[Paper Review] A Multi-Head Model for Continual Learning via Out-of-Distribution Replay

Gyuhak Kim, Zixuan Ke|arXiv (Cornell University)|Aug 20, 2022
Domain Adaptation and Few-Shot LearningComputer Science4 citations
TL;DR

This paper proposes MORE, a multi-head continual learning model that uses out-of-distribution (OOD) replay to build task-specific classifiers without updating previous task parameters. By leveraging a pre-trained transformer with adapter modules and hard attention to protect learned weights, MORE achieves state-of-the-art accuracy in class incremental learning while naturally enabling OOD detection.

ABSTRACT

This paper studies class incremental learning (CIL) of continual learning (CL). Many approaches have been proposed to deal with catastrophic forgetting (CF) in CIL. Most methods incrementally construct a single classifier for all classes of all tasks in a single head network. To prevent CF, a popular approach is to memorize a small number of samples from previous tasks and replay them during training of the new task. However, this approach still suffers from serious CF as the parameters learned for previous tasks are updated or adjusted with only the limited number of saved samples in the memory. This paper proposes an entirely different approach that builds a separate classifier (head) for each task (called a multi-head model) using a transformer network, called MORE. Instead of using the saved samples in memory to update the network for previous tasks/classes in the existing approach, MORE leverages the saved samples to build a task specific classifier (adding a new classification head) without updating the network learned for previous tasks/classes. The model for the new task in MORE is trained to learn the classes of the task and also to detect samples that are not from the same data distribution (i.e., out-of-distribution (OOD)) of the task. This enables the classifier for the task to which the test instance belongs to produce a high score for the correct class and the classifiers of other tasks to produce low scores because the test instance is not from the data distributions of these classifiers. Experimental results show that MORE outperforms state-of-the-art baselines and is also naturally capable of performing OOD detection in the continual learning setting.

Motivation & Objective

  • To address catastrophic forgetting in class incremental learning (CIL) by avoiding parameter updates to previous task classifiers.
  • To enable effective continual learning without relying on replay to fine-tune previous models.
  • To develop a method that simultaneously performs accurate classification and robust OOD detection in a continual learning setting.
  • To leverage pre-trained transformers with adapter modules to improve performance while preserving knowledge from prior tasks.
  • To demonstrate that multi-head models with OOD-aware classifiers outperform single-head replay-based baselines.

Proposed method

  • MORE constructs a separate, task-specific classification head for each new task using a pre-trained transformer backbone.
  • It uses a trainable adapter module inserted at each transformer layer to allow task-specific adaptation without modifying the pre-trained weights.
  • The memory buffer stores a small set of samples from each task, which are used to train a new classifier for that task.
  • The classifier is trained to assign high confidence to in-distribution (IND) samples and low confidence to out-of-distribution (OOD) samples, enabling OOD detection.
  • Hard attention (masking) is applied to protect important parameters of previous tasks from being updated during training.
  • During inference, the model selects the head with the highest activation score, enabling classification without requiring task IDs.

Experimental results

Research questions

  • RQ1Can a multi-head model with task-specific classifiers mitigate catastrophic forgetting more effectively than single-head replay-based methods?
  • RQ2Can the use of out-of-distribution (OOD) samples in the memory buffer improve both classification accuracy and OOD detection performance?
  • RQ3Does protecting previous task parameters via hard attention enable better retention of prior knowledge in continual learning?
  • RQ4Can a pre-trained transformer with adapter modules achieve strong performance in class incremental learning while enabling OOD detection?
  • RQ5How does the proposed method compare to state-of-the-art baselines in terms of average classification accuracy and incremental accuracy?

Key findings

  • MORE achieves 89.16% average classification accuracy (ACA) on CIFAR10-5T, outperforming the best baseline (iCaRL at 77.51%).
  • On CIFAR100-10T, MORE achieves 70.23% ACA and 69.79% AIA, surpassing iCaRL (59.83% ACA, 70.00% AIA) and other state-of-the-art methods.
  • On Tiny-ImageNet-10T, MORE achieves 63.06% ACA and 58.96% AIA, significantly outperforming HAT (52.33% ACA, 64.96% AIA).
  • MORE demonstrates strong OOD detection capability, with classifiers producing high scores for in-distribution samples and low scores for out-of-distribution samples.
  • The method maintains high performance across all datasets, with an average ACA of 57.80% and AIA of 69.32% across all experiments.
  • The ablation study confirms that OOD training on memory samples is critical for performance, as removing this component leads to significant accuracy drops.

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.