Rectification-based Knowledge Retention for Continual Learning

Pravendra Singh, Pratik Mazumder, Piyush Rai, Vinay P. Namboodiri · DOI

Abstract

Deep learning models suffer from catastrophic forgetting when trained in an incremental learning setting. In this work, we propose a novel approach to address the task incremental learning problem, which involves training a model on new tasks that arrive in an incremental manner. The task incremental learning problem becomes even more challenging when the test set contains classes that are not part of the train set, i.e., a task incremental generalized zero-shot learning problem. Our approach can be used in both the zero-shot and non zero-shot task incremental learning settings. Our proposed method uses weight rectifications and affine transformations in order to adapt the model to different tasks that arrive sequentially. Specifically, we adapt the network weights to work for new tasks by "rectifying" the weights learned from the previous task. We learn these weight rectifications using very few parameters. We additionally learn affine transformations on the outputs generated by the network in order to better adapt them for the new task. We perform experiments on several datasets in both zero-shot and non zero-shot task incremental learning settings and empirically show that our approach achieves state-of-the-art results. Specifically, our approach outperforms the state-of-the-art non zero-shot task incremental learning method by over 5% on the CIFAR-100 dataset. Our approach also significantly outperforms the state-of-the-art task incremental generalized zero-shot learning method by absolute margins of 6.91% and 6.33% for the AWA1 and CUB datasets, respectively. We validate our approach using various ablation studies.

Introduction

Standard deep learning models are inherently "forgetful." When trained on a new task, they typically overwrite weights optimized for previous tasks, leading to a sharp performance drop known as catastrophic forgetting. This paper introduces Rectification-based Knowledge Retention (RKR), a framework designed for Task Incremental Learning. RKR addresses both standard incremental learning and the more complex Generalized Zero-Shot Learning (GZSL) setting, where models must recognize unseen classes related to those encountered during training.

The RKR Framework

The core of RKR is a minimalist approach to task adaptation. Instead of retraining the entire network or expanding it significantly, RKR employs two lightweight tuning mechanisms for each new task:

  1. Weight Rectifications ($R$): The model keeps the base weights ($\Theta$) from the initial task fixed. For each subsequent task, it learns a "rectification" matrix ($R$) that is added to the base weights. To maintain efficiency, RKR uses low-rank matrix factorization, learning two smaller matrices whose product approximates $R$, thereby minimizing parameter growth.
  2. Affine Transformations (Scaling): The model learns task-specific scaling factors for the intermediate feature maps of every layer. This helps the network re-calibrate its internal representations to better suit the specific features of the current task.
The RKR mechanism applied to a convolutional layer, showing weight rectification and output scaling.

At test time, the model utilizes the task label to activate the corresponding rectifications and scaling factors, allowing a single base model to serve multiple tasks with high precision.

Experimental Results

The authors evaluated RKR across standard benchmarks including CIFAR-100, ImageNet-1K, and GZSL datasets like AWA1 and CUB. RKR consistently outperformed existing state-of-the-art (SOTA) methods:

  • CIFAR-100: RKR achieved a 5.1% absolute margin improvement over the previous best method (CCLL), maintaining high accuracy even as the number of classes increased.
  • ImageNet-1K: The method outperformed SOTA by 3.1% in top-5 accuracy while adding only 0.5% extra parameters per task.
  • Zero-Shot Learning: On the AWA1 and CUB datasets, RKR surpassed the previous SOTA by 6.91% and 6.33%, respectively.
Comparison of RKR against state-of-the-art methods on CIFAR-100, demonstrating superior accuracy retention.

Key Insights and Limitations

Ablation studies revealed that while weight rectifications are effective on their own, the addition of output scaling provides a significant boost, particularly in zero-shot settings. Furthermore, initializing parameters for a new task using the previous task's weights (forward knowledge transfer) further improved performance.

However, RKR is a "Task Incremental" method, meaning it requires task labels at inference time to select the correct parameters. Additionally, the quality of the initial "base network" training is critical to the success of subsequent rectifications.

Conclusion

RKR offers a highly efficient solution to catastrophic forgetting. By adjusting just a fraction of the parameters (approx. 0.5% per task), it achieves state-of-the-art results with negligible computational overhead, making it ideal for resource-constrained incremental learning applications.

Summary updated

BibTeX
@inproceedings{singh2021rectification,
  author = {Pravendra Singh and Pratik Mazumder and Piyush Rai and Vinay P. Namboodiri},
  title = {{Rectification-based Knowledge Retention for Continual Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01503},
}
Figure