NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Class Incremental Learning with Task-Specific Batch Normalization and Out-of-Distribution Detection

Xuchen Xie, Yiqiao Qiu, Run Lin, Weishi Zheng, Ruixuan Wang · OpenReview

TL;DR

This paper tackles the challenge of "catastrophic forgetting" in class incremental learning (CIL) for image classification. They introduce a novel framework that uses task-specific Batch Normalization (BN) layers and an "unknown" class for out-of-distribution (OOD) detection to predict task identities, enabling effective learning of new classes without losing knowledge of old ones. This approach achieves state-of-the-art performance while being more parameter-efficient than existing methods.

What Problem Does This Paper Address?

Deep learning models excel at image classification but struggle when faced with sequential learning of new classes, a scenario common in real-world applications due to data availability or privacy constraints. This sequential learning, known as incremental learning, often leads to "catastrophic forgetting," where the model's performance on previously learned classes drastically degrades as it learns new ones. This is a trade-off between "plasticity" (learning new information) and "stability" (retaining old information).

Incremental learning is broadly divided into two paradigms:

  • Task Incremental Learning (TIL): The model knows which task a given image belongs to (task-ID) during testing. This allows for using multiple specialized classifier heads, one for each task.
  • Class Incremental Learning (CIL): The model does not know the task-ID during testing. This is a more challenging and practical scenario.

Existing CIL methods often struggle to balance plasticity and stability, or they lead to significant parameter growth. To adapt TIL methods (which are more effective due to task-specific heads) to CIL, a mechanism to predict the task-ID is needed. This paper addresses this gap by proposing a CIL framework that leverages task-specific BN and an OOD detection mechanism for task-ID prediction.

Methods

The core of the proposed method lies in two key innovations:

  1. Task-Specific Batch Normalization (BN) and Classifier Heads:
    • Instead of using a single, shared BN layer and classifier for all tasks, the authors introduce task-specific BN layers and classifier heads.
  2. When a new task arrives, a new task-specific BN layer and classifier head are added. The shared convolutional backbone remains frozen, preserving learned features.
  3. BN layers are chosen because they have significantly fewer parameters than convolutional kernels, leading to efficient parameter growth.
  4. Task-specific BN helps normalize feature distributions for each task independently, enhancing plasticity and stability.
  5. Out-of-Distribution (OOD) Detection for Task-ID Prediction:
    • To overcome the lack of task-ID in CIL, they augment each task-specific classifier head with an "unknown" class.
  6. During training, samples from other tasks are mapped to this "unknown" class. This teaches the classifier heads to recognize out-of-task samples.
  7. During inference, the model passes the input through all task-specific sub-models. The task-ID is predicted by selecting the classifier head that assigns the lowest probability to its "unknown" class. This head is considered the most appropriate for the input.
  8. An "OOD Detection Alignment Stage" is introduced to fine-tune classifier heads, ensuring consistent "unknown" class outputs across tasks and improving task-ID prediction accuracy.

Datasets

The authors evaluated their method on four publicly available datasets:

  • Medical Image Datasets:
    • Skin8
    • Path16
  • Natural Image Datasets:
    • CIFAR100
    • CUB200

Key Insights and Ideas

  • BN as a Lightweight Adaptor: The paper highlights that BN layers, despite their simplicity, are powerful tools for adapting to new data distributions. By making them task-specific, they can effectively manage the trade-off between plasticity and stability without significant parameter overhead.
  • "Unknown" Class as a Universal OOD Detector: Introducing a dedicated "unknown" class in each classifier head provides a unified mechanism for OOD detection. This allows the model to learn to distinguish between in-task and out-of-task samples, which is crucial for task-ID prediction in CIL.
  • Bridging TIL and CIL: The proposed OOD detection strategy effectively bridges the gap between TIL and CIL. By enabling accurate task-ID prediction, it allows the benefits of multi-head TIL approaches to be realized in the more challenging CIL setting.
  • Parameter Efficiency: The method's reliance on task-specific BN and classifier heads, rather than expanding the entire network, leads to significantly fewer trainable parameters per task compared to many existing methods, making it more memory-efficient.

Key Results

  • State-of-the-Art Performance: The proposed method achieved state-of-the-art performance on the Skin8, Path16, CIFAR100, and CUB200 datasets across various task settings (10 and 20 tasks).
  • Improved Accuracy: On CIFAR100 (10 tasks), the method achieved an Avg-ACC of 80.34%, second only to MORE. On CUB200 (10 tasks), it achieved the best Last-ACC of 42.33%.
  • Robust Task-ID Prediction: The task-ID prediction accuracy remained stable even with an increasing number of tasks (up to 50 tasks on CIFAR100), with Last-TP consistently above 68%.
  • Parameter Efficiency: The method requires only about 15K additional trainable parameters per task, which is substantially fewer than methods like MORE (70,000 parameters) or DynaER (11.2M parameters per task).
  • Scalability: The method demonstrated good scalability, with training time, inference time, and model parameters growing less rapidly than baselines like DynaER as the number of tasks increased.

Limitations and Future Work

  • Memory Buffer Requirement: The method still requires a memory buffer for replaying old-task samples. The authors suggest that feature replay (using generated features from previous tasks) could be a more storage-efficient alternative.
  • Transformer Adaptability: While the approach is broadly applicable to BN-based architectures, adapting it to Transformer-based models might require using task-specific Layer Normalization or other normalization strategies.
  • Computational Overhead in Alignment: The OOD Detection Alignment Stage requires retraining all existing classifier heads, which introduces computational overhead. Future work could explore alleviating this by leveraging stored features or generated pseudo-features for fine-tuning, rather than raw images.

Summary updated

BibTeX
@misc{xie2024class,
  author = {Xuchen Xie and Yiqiao Qiu and Run Lin and Weishi Zheng and Ruixuan Wang},
  title = {{Class Incremental Learning with Task-Specific Batch Normalization and Out-of-Distribution Detection}},
  year = {2024},
  eprint = {2411.00430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.00430},
}
Figure