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

Learnability and Algorithm for Continual Learning

Gyuhak Kim, Changnan Xiao, Tatsuya Konishi, Bing Liu

Abstract

This paper addresses the theoretical foundations of Class Incremental Learning (CIL) and introduces ROW (Replay, OOD, and WP), a novel algorithm designed to overcome the challenges of inter-task class separation. By framing CIL as a sequence of Out-of-Distribution (OOD) detection problems, the authors provide the first formal proof of CIL learnability and demonstrate state-of-the-art performance across multiple benchmarks.

Introduction

Continual Learning (CL) is the paradigm where a machine learning model learns from a sequence of tasks over time. The field is generally divided into two categories: Task Incremental Learning (TIL), where the task identity is provided at inference, and Class Incremental Learning (CIL), where the model must identify the correct class from all previously learned tasks without knowing which task the input belongs to.

CIL is significantly more challenging due to Inter-task Class Separation (ICS). Because the model does not have simultaneous access to all training data, it struggles to establish clear decision boundaries between classes from different tasks. While empirical methods have sought to mitigate this, the fundamental question of whether CIL is theoretically "learnable" remained unanswered until now.

Theoretical Framework: CIL as OOD Detection

The authors provide a formal proof that CIL is learnable by reducing it to a series of Out-of-Distribution (OOD) detection problems. The proof rests on two primary assumptions:

  1. OOD detection itself is learnable (a property recently established in computational learning theory).
  2. Catastrophic forgetting can be prevented, typically through parameter isolation techniques.

If a model can perfectly determine whether an input is "out-of-distribution" for a specific task, it can effectively route that input to the correct task-specific classifier. Thus, CIL can be viewed as an ensemble of OOD problems where the goal is to correctly identify the task membership before performing within-task classification.

The ROW Algorithm

Building on this theoretical insight, the authors propose the ROW algorithm (Replay, OOD, and WP). ROW integrates four key components to achieve robust CIL performance:

  • Replay-based OOD Training: Unlike traditional replay methods that use old data to maintain class accuracy, ROW uses a small buffer of previous task data as OOD examples. This teaches the model to distinguish current task classes from everything it has seen previously.
  • Within-Task Prediction (WP): The model maintains separate classification heads for each task, focusing on intra-task discriminative features.
  • Hard Attention to the Task (HAT): To eliminate catastrophic forgetting, ROW utilizes the HAT mechanism. This uses binary masks to "lock" the specific weights used for previous tasks, ensuring that new learning does not overwrite old knowledge.
  • Distance-Based Refinement: During inference, the model employs Mahalanobis distance—measuring the distance between an input and the distribution mean of learned classes—to refine OOD scores and improve task routing accuracy.

Additionally, the authors addressed a temporal bias in OOD training. Since early tasks have access to less diverse OOD data than later tasks, the authors introduced a fine-tuning step where all OOD heads are balanced simultaneously using the full replay buffer.

Experimental Evaluation

ROW was evaluated against 12 major baselines, including iCaRL, DER++, and MORE, across several standard benchmarks:

  • CIFAR-10 (5 tasks)
  • CIFAR-100 (10 and 20 tasks)
  • Tiny-ImageNet (5 and 10 tasks)

To ensure the validity of the results, the researchers used a DeiT-S/16 (Vision Transformer) backbone. They carefully curated the pre-training data (ImageNet) to exclude any classes found in the evaluation sets, preventing data leakage that could inflate performance metrics.

Key Results

ROW consistently outperformed all baselines. Across five experimental setups, ROW achieved an average accuracy of 73.72%, notably higher than the next best method, MORE (71.59%), and the widely used DER++ (66.89%).

Furthermore, ROW demonstrated exceptional efficiency with memory. When the replay buffer size was reduced by 50%, ROW’s performance remained stable with only a ~1% drop, whereas competing replay-based methods experienced significant degradation. While some "forgetting" is recorded in standard metrics, the authors note this is primarily due to the increasing complexity of the classification space as more classes are added, rather than a loss of previously acquired weight configurations.

Limitations and Future Work

While providing a significant theoretical and empirical leap, the study notes certain limitations:

  • Offline Constraints: The current framework assumes offline CIL with clear task boundaries and does not yet account for online or "blurry" continual learning.
  • Representation Dependency: The effectiveness of ROW is partially dependent on the quality of the pre-trained feature extractor.
  • Imbalanced Data: Future research is needed to explore how the OOD detection framework handles imbalanced class distributions within tasks.

Conclusion

By establishing the link between CIL and OOD detection, this work provides a rigorous foundation for future continual learning research. The ROW algorithm serves as a powerful proof-of-concept, demonstrating that theoretical learnability can be translated into superior empirical performance through structured OOD training and parameter isolation.

Summary updated

BibTeX
@inproceedings{kim2023learnability,
  author = {Gyuhak Kim and Changnan Xiao and Tatsuya Konishi and Bing Liu},
  title = {{Learnability and Algorithm for Continual Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=v2Xv1EbBkH},
}
Figure