Mitigating Forgetting in Online Continual Learning with Neuron Calibration

Haiyan Yin, Peng Yang, Ping Li

TL;DR

The paper introduces NCCL (Neuron Calibration for online Continual Learning), a lightweight framework designed to mitigate catastrophic forgetting. By adding "calibration modules" to standard neural network layers and employing an interleaved optimization strategy that regularizes these calibrated units rather than just raw weights, NCCL achieves state-of-the-art performance across multiple benchmarks while adding minimal computational overhead.

The Challenge of Online Continual Learning

In the world of AI, Online Continual Learning (OCL) is a grueling marathon. Unlike standard training where a model sees a shuffled dataset multiple times, OCL requires a model to learn from a one-pass stream of data across sequential tasks.

The primary enemy in this setting is catastrophic forgetting: as the model learns Task B, it tends to overwrite the parameters essential for Task A. Researchers face the classic stability-plasticity dilemma—the model must be "plastic" enough to learn new information quickly, but "stable" enough to preserve old knowledge. While "replay-based" methods (which keep a tiny buffer of old samples) help, they often struggle with data imbalance and fail to find the optimal balance between stability and plasticity.

The NCCL Framework

To address these challenges, the authors propose NCCL, which shifts the focus from regularizing raw weights to regularizing "calibrated neurons."

Detailed architecture of the Weight and Feature Calibration Modules

The framework consists of two main components that mathematically adjust the transformation functions of the network layers:

  1. Weight Calibration Module (WCM): Learns a trainable "soft mask" (scaling factors) applied directly to the layer weights.
  2. Feature Calibration Module (FCM): Learns to scale the output feature maps.

Interleaved Optimization

Instead of updating all parameters simultaneously, NCCL uses a specialized two-step loop:

  • Inner Loop: The base model weights are updated to absorb new knowledge from the current data stream and a small replay buffer.
  • Outer Loop: The calibrator parameters are updated using a specialized loss function ($L_c$) on the replay memory. This loss uses Elastic Weight Consolidation (EWC) to penalize changes to parameters that were important for past tasks, alongside Knowledge Distillation to ensure the model's predictions remain consistent over time.

Crucially, these calibrators are task-agnostic and shared across all tasks, allowing the model to exploit relationships between different datasets rather than isolating them.

Key Insights and Ideas

  • Regularizing the "Calibrated" Value: The core "aha moment" of the paper is that regularizing the product of the weights and the calibrators is more effective than regularizing the weights alone. By applying the chain rule to the Fisher Information Matrix, the authors ensure that the most vital "calibrated paths" are preserved.
  • Stability via Scaling: The calibrators act as a prioritized weighting system. During the forward pass, they scale values for inference; during the backward pass, they act as a regularizer that guides the optimization path.
  • Lightweight Flexibility: The calibration modules are incredibly efficient, adding very little bulk to the underlying architecture.
Parameter overhead of NCCL across different architectures

As shown in the table above, for Convolutional Neural Networks (CNNs) like ResNet18, the parameter increase is only about 10-15%. For Multi-Layer Perceptrons (MLPs), the overhead is remarkably low—less than 1%.

Experimental Results

The authors evaluated NCCL on four diverse and challenging benchmarks: Permuted MNIST (20 tasks), Split CIFAR-100 (20 tasks), Split miniImageNet (17 tasks), and Split CORe50 (a real-world object recognition benchmark with 10 tasks).

NCCL consistently outperformed existing state-of-the-art methods (like GEM, MIR, and CTN) across all key metrics:

  • Accuracy (ACC): NCCL showed an average improvement of 4.67% over previous best methods.
  • Forgetting Measure (FM): It reduced forgetting by an average of 1.62%, demonstrating superior stability.
  • Learning Accuracy (LA): It improved the ability to learn new tasks by 2.79%.
  • Memory Efficiency: Even with a very small replay buffer (only 50 samples per task), NCCL maintained high performance, often beating methods that relied on much larger buffers.

Limitations and Future Work

While the results are impressive, the authors note a few areas for further exploration:

  • Architecture Diversity: The current study focuses on feed-forward networks (MLPs and CNNs). Extending this calibration approach to recurrent (RNN) or recursive structures is a promising future direction.
  • Task Boundaries: The paper operates in a "task-incremental" setting where task boundaries are known. Adapting NCCL to "class-incremental" settings—where the model doesn't know when a task has changed—would be a significant next step.
  • Domain Breadth: Evaluation was primarily focused on image classification. Testing the framework on Natural Language Processing (NLP) or Reinforcement Learning (RL) tasks remains an open area for future research.

Summary updated

BibTeX
@inproceedings{yin2021mitigating,
  author = {Haiyan Yin and Peng Yang and Ping Li},
  title = {{Mitigating Forgetting in Online Continual Learning with Neuron Calibration}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure