Class-incremental Learning using a Sequence of Partial Implicitly Regularized Classifiers

Sobirdzhon Bobiev, Albina Khusainova, Adil Khan, S. M. Ahsan Kazmi

Overview

Artificial Neural Networks (ANNs) excel at learning from large datasets provided all at once. However, they struggle with Class-Incremental Learning (CIL), where new classes are introduced sequentially. In this setting, ANNs suffer from catastrophic forgetting: as they learn new information, they overwrite the weights necessary to recognize previous classes, leading to a sharp decline in performance on old tasks.

This paper proposes a modular approach to class-incremental learning by training a sequence of specialized, independent classifiers on top of a frozen feature extractor. By freezing previous classifiers and using a memory buffer to provide "negative" examples for new tasks, the method effectively eliminates catastrophic forgetting and significantly outperforms state-of-the-art baselines on the CIFAR100 dataset.

Methods

The authors propose a "divide and conquer" architecture that moves away from training a single, ever-expanding classifier head. Their approach, illustrated in Figure 1, consists of several key components:

The proposed architecture featuring a frozen feature extractor and a sequence of modular classifiers.
  1. Frozen Feature Extractor: They use a pretrained EfficientNet-B0 (trained on ImageNet) as a fixed backbone. This ensures the underlying representation of data doesn't drift or "forget" how to extract features.
  2. Modular Classifiers ($C_i$): For every new group of classes (a "task"), a small, separate classifier is created.
  3. Sequential Freezing: Once a classifier $C_i$ is trained for its specific task, its weights are frozen. During the next training session ($i+1$), only the new classifier $C_{i+1}$ is trainable.
  4. Implicit Regularization via Memory Buffer: To ensure the new classifier $C_{i+1}$ doesn't produce high activation values for old classes, the authors use a small memory buffer of samples from previous tasks. These old samples act as "negative examples" during training, forcing the new classifier to output low values for them.
  5. Concatenation & Bias Correction (BiC): At inference, the outputs of all classifiers are concatenated. Because the model is trained on imbalanced data (many new samples vs. few buffer samples), it tends to be biased toward newer classes. The authors apply a Bias Correction (BiC) layer—a simple linear transformation—to the logits of the new classes to level the playing field.

Datasets and Evaluation

The method was evaluated on the CIFAR100 dataset, a standard benchmark for image classification. To simulate incremental learning, the 100 classes were split into 5 parts (20 classes/task), 10 parts (10 classes/task), and 20 parts (5 classes/task). The authors also tested various memory buffer sizes (500, 1000, and 2000 samples) to evaluate performance under strict memory constraints.

Key Insights

  • Freezing as a Defense: By freezing previous classifiers, the "forgetting" of those specific classes is mathematically reduced to zero. The challenge shifts from retaining old knowledge to integrating new knowledge without causing false positives.
  • Classifiers as "Partial" Experts: Each classifier is "partial" because it only knows its own classes. However, because it is trained to output low values for old classes (via the buffer), the ensemble cooperates effectively through a simple softmax.
  • Efficiency in Training: Since only one small classifier head is trained at a time, the number of trainable parameters at any given step is much lower than standard methods that update the entire network.
  • The Power of a Fixed Backbone: The paper reinforces the idea that for many CIL tasks, a robust, pretrained feature extractor is sufficient, and the "learning" should happen primarily at the classification head level.

Key Results

The proposed method outperformed strong baselines like GDumb and Experience Replay (ER) with BiC across all settings, as shown in Figure 4.

Accuracy comparison on CIFAR100 across different memory buffer sizes (500, 1000, and 2000 samples).
  • Accuracy Boost: On CIFAR100 split into 5 parts with a 2000-sample memory, the proposed method achieved 67.83% accuracy, compared to 57.89% for ER w/ BiC and 48.24% for GDumb.
  • Resilience to Small Memory: The gap between this method and others actually widened as the memory buffer got smaller. With only 500 samples (10-part split), the method maintained 56.45% accuracy, outperforming the next best method by 14%.
  • Ablation Success: Removing the "freezing" mechanism or the BiC layer resulted in significant performance drops, proving both components are vital.

Limitations and Future Work

  • Backbone Dependency: The method relies heavily on the quality of the pretrained feature extractor. If the incremental tasks involve data very different from the pretraining set, the frozen features might not be discriminative enough.
  • Linear Scaling of Heads: While each classifier head is small, the number of heads grows linearly with the number of tasks. For thousands of tasks, this could eventually lead to memory or latency issues during inference.
  • Future Directions: The authors suggest exploring more complex ways to combine these specialized classifiers beyond simple concatenation and softmax.

Summary updated

BibTeX
@inproceedings{bobiev2022class,
  author = {Sobirdzhon Bobiev and Albina Khusainova and Adil Khan and S. M. Ahsan Kazmi},
  title = {{Class-incremental Learning using a Sequence of Partial Implicitly Regularized Classifiers}},
  booktitle = {Flairs},
  year = {2022},
  doi = {10.32473/flairs.v35i.130549},
}
Figure