Online Continual Learning through Mutual Information Maximization

Yiduo Guo, Bing Liu, Dongyan Zhao

Summary

OCM (Online Continual learning through Mutual information maximization) tackles catastrophic forgetting by forcing neural networks to learn "holistic" features rather than just task-specific ones. By maximizing mutual information between inputs and representations, the model builds a more robust foundation that remains useful—and less prone to being overwritten—as new tasks arrive in a data stream.

The Challenge: Catastrophic Forgetting and Feature Bias

In Continual Learning (CL), an AI model learns a sequence of tasks. The ultimate challenge is Catastrophic Forgetting (CF): as the model learns a new task, it often overwrites the parameters essential for previous tasks.

The authors argue that a primary culprit is "feature bias" caused by the standard Cross-Entropy (CE) loss. CE is "lazy"—it only learns the bare minimum features needed to distinguish current classes. For example, if Task 1 is distinguishing black dogs from white cats, the model might only learn to detect "color." When Task 2 introduces colorful pigs and chickens, the "color" feature becomes useless. The model must then drastically change its feature extractor to succeed at Task 2, which inevitably destroys its ability to perform Task 1.

This paper focuses on the Online Class-Incremental Learning (CIL) setting, where data arrives in a single-pass stream and the model must eventually recognize all classes without being told which task a test image belongs to.

Proposed Method: OCM

The authors propose OCM, which moves beyond simple classification loss by incorporating Mutual Information (MI) maximization. Their approach relies on three main pillars:

  1. Learning Holistic Representations: Instead of just minimizing classification error, OCM maximizes the MI between the input image and its feature representation. This forces the model to preserve as much information about the input as possible, capturing "holistic" features that might be useful for future, unseen tasks.
  2. Knowledge Preservation: To prevent forgetting, OCM maximizes the MI between the current model's features and those of a frozen "previous" model. This ensures that the way the model "sees" old classes doesn't drift too much while learning new ones.
  3. The "Local Rotation" Trick: Estimating MI accurately usually requires large batches of data, which isn't possible in online learning (where batches are tiny). OCM introduces a novel data augmentation: it splits images and rotates the halves independently to create 16 "pseudo-classes." This effectively inflates the batch size for the MI estimator (InfoNCE), providing a tighter, more reliable bound for optimization.

The overall architecture involves a feature extractor, a classifier, and a projection head used specifically for the MI calculations.

Architecture of OCM

Key Innovations

  • MI as a Regularizer for Future-Proofing: By maximizing mutual information, the model is essentially told: "Don't just look for what makes these two classes different; learn everything important about what these images are."
  • Solving the Small-Batch Problem: The use of local rotations to create pseudo-classes is a clever workaround for the mathematical requirements of MI estimation. It allows the model to benefit from self-supervised learning techniques even in a constrained online setting.
  • Eigenvalue Evidence: The authors used spectral analysis to show that OCM's representations have more significant eigenvalues than baselines. This mathematically demonstrates that OCM learns more diverse and comprehensive features.

Experimental Results

The researchers evaluated OCM against 10 state-of-the-art baselines across four standard benchmarks: MNIST, CIFAR10, CIFAR100, and TinyImageNet. OCM consistently and significantly outperformed all baselines across every dataset and memory buffer size.

  • Accuracy Boost: On CIFAR10 (with a 1k memory buffer), OCM achieved 77.2% accuracy, outperforming the best baseline (SCR at 64.1%) by a massive 13.1%.
  • Consistency: Even on the complex TinyImageNet with 100 tasks, OCM maintained a clear lead, showing it scales well to long sequences of tasks.
  • Forgetting Rate: OCM showed substantially lower forgetting rates compared to traditional replay methods like ER or MIR.
Accuracy results across datasets

Limitations and Future Directions

While OCM is highly effective, it still relies on experience replay (storing a small buffer of old samples). While MI maximization makes those samples much more effective, the model is not yet entirely "buffer-free."

The authors also note that this paper focuses strictly on the online mode. They believe the MI maximization framework is applicable to batch continual learning as well and intend to explore that in future research. Additionally, while OCM is efficient, the added complexity of the MI heads and augmentations does mean it is slightly slower than the simplest baselines (like ER), though it remains faster than more complex gradient-based selection methods.

Summary updated

BibTeX
@inproceedings{guo2022online,
  author = {Yiduo Guo and Bing Liu and Dongyan Zhao},
  title = {{Online Continual Learning through Mutual Information Maximization}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=SNh9O0DM3QG},
}
Figure