IMEX-Reg: Implicit-Explicit Regularization in the Function Space for Continual Learning

Prashant Shivaram Bhat, Bharath Chennamkulam Renjith, Elahe Arani, Bahram Zonooz

Abstract

Continual learning (CL) remains one of the long-standing challenges for deep neural networks due to catastrophic forgetting of previously acquired knowledge. Although rehearsal-based approaches have been fairly successful in mitigating catastrophic forgetting, they suffer from overfitting on buffered samples and prior information loss, hindering generalization under low-buffer regimes. Inspired by how humans learn using strong inductive biases, we propose IMEX-Reg to improve the generalization performance of experience rehearsal in CL under low buffer regimes. Specifically, we employ a two-pronged implicit-explicit regularization approach using contrastive representation learning (CRL) and consistency regularization. To further leverage the global relationship between representations learned using CRL, we propose a regularization strategy to guide the classifier toward the activation correlations in the unit hypersphere of the CRL. Our results show that IMEX-Reg significantly improves generalization performance and outperforms rehearsal-based approaches in several CL scenarios. It is also robust to natural and adversarial corruptions with less task-recency bias. Additionally, we provide theoretical insights to support our design decisions further.

Introduction

Deep neural networks are notoriously susceptible to catastrophic forgetting—the loss of previously acquired knowledge when learning new tasks. While experience rehearsal (ER), which stores a small subset of past data in a buffer, is a common mitigation strategy, it faces significant challenges in low-buffer regimes. In such memory-constrained environments, models often overfit to the limited buffered samples and develop a "task-recency bias," favoring the most recently learned classes. IMEX-Reg addresses these issues by incorporating strong inductive biases through a novel regularization framework.

Methodology: The IMEX-Reg Framework

IMEX-Reg (Implicit-Explicit Regularization) employs a dual strategy to stabilize learning and enhance generalization:

  1. Implicit Regularization: The framework utilizes Supervised Contrastive Learning (SupCon) as an auxiliary task. The backbone network $f$ maps inputs to a unit hypersphere via a projection head $h$, where representations of the same class are clustered together while different classes are pushed apart. This encourages the learning of generic, transferable features.
  2. Explicit Regularization:
    • Consistency Regularization: An Exponential Moving Average (EMA) of the model weights is maintained. The current model is penalized if its predictions deviate from this stable EMA version, preserving past knowledge.
  3. Geometric Alignment ($\mathcal{L}_{ecr}$): This core innovation aligns the geometric structure (activation correlations) of the classifier $g$ with that of the contrastive projection head $h$. This alignment is theoretically grounded in the Johnson-Lindenstrauss (JL) Lemma, which suggests that high-dimensional geometric relationships can be preserved when mapped to lower-dimensional spaces.
Overview of the IMEX-Reg architecture, illustrating the implicit-explicit regularization framework.

Experimental Setup

The effectiveness of IMEX-Reg was evaluated on several standard benchmarks:

  • Sequential CIFAR-10 & CIFAR-100: Standard class-incremental learning tasks.
  • Sequential TinyImageNet: A complex dataset with 200 classes.
  • Generalized Class-Incremental Learning (GCIL): A realistic scenario with blurry task boundaries and imbalanced (long-tail) class distributions.

Key Results and Insights

IMEX-Reg demonstrates superior performance across all benchmarks, particularly in low-buffer settings.

Performance comparison of IMEX-Reg against state-of-the-art rehearsal-based methods across various benchmarks and buffer sizes.
  • State-of-the-Art Performance: As shown in the results table, for Seq-TinyImageNet with a buffer of 200, IMEX-Reg achieves 24.15% accuracy, nearly tripling the performance of standard ER (8.57%) and significantly outperforming advanced baselines like DER++ (10.96%).
  • Robustness and Calibration: Beyond accuracy, IMEX-Reg exhibits lower Expected Calibration Error (ECE) and enhanced robustness to natural corruptions and adversarial attacks. This suggests that the learned features are more generic and less prone to overfitting.
  • Reduced Task-Recency Bias: Analysis of task probabilities indicates that IMEX-Reg's predictions are more balanced across all tasks compared to heavily skewed baselines.

Conclusion and Future Work

IMEX-Reg bridges the gap in low-buffer continual learning by leveraging the geometric structure of contrastive representations to guide the classifier. While the method introduces additional hyperparameters and a training overhead (approx. 1.57x), it maintains standard inference speeds and provides significant gains in generalization. Future work may explore the integration of unlabeled data to further enrich feature representations without increasing buffer requirements.

Summary updated

BibTeX
@article{bhat2024imex,
  author = {Prashant Shivaram Bhat and Bharath Chennamkulam Renjith and Elahe Arani and Bahram Zonooz},
  title = {{IMEX-Reg: Implicit-Explicit Regularization in the Function Space for Continual Learning}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=p1a6ruIZCT},
}
Figure