NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Continual Normalization: Rethinking Batch Normalization for Online Continual Learning

Quang Pham, Chenghao Liu, Steven C. H. Hoi

Introduction

Batch Normalization (BN) is a staple of deep learning, widely used to facilitate training and improve generalization. However, in the realm of continual learning, it inadvertently triggers "catastrophic forgetting" by biasing its internal statistics toward the most recent task. This paper introduces Continual Normalization (CN), a simple yet powerful replacement that stacks Group Normalization and Batch Normalization to balance learning new skills with preserving old ones.

The Problem: The Cross-Task Normalization Effect

In standard machine learning, we assume data is "i.i.d." (independent and identically distributed)—essentially, a giant, well-mixed soup of examples. In Online Continual Learning (CL), this assumption fails. Data arrives in a non-stationary stream of distinct tasks; once the model moves to Task B, it rarely sees Task A again.

The authors identify a hidden culprit in CL performance: Batch Normalization. BN relies on "running statistics" (mean and variance) to normalize data. In a streaming setting, these statistics quickly become heavily biased toward the current task. When the model is later asked to perform an old task, it tries to normalize that old data using the new, biased statistics. The authors term this the cross-task normalization effect, noting that it significantly amplifies catastrophic forgetting.

The Solution: Continual Normalization (CN)

The authors propose Continual Normalization (CN) as a "plug-and-play" replacement for BN. CN is a two-stage process applied to a feature map that captures the best of both spatial and batch-level normalization.

Comparison of normalization methods showing Continual Normalization as a combination of Group and Batch Norm.
  1. Spatial Normalization (Group Norm): First, the model applies Group Normalization (GN). GN normalizes pixels within a single sample across groups of channels. Because it doesn't look at other samples in the batch, it is inherently "adaptive" and avoids cross-task bias.
  2. Batch Normalization: The GN-normalized features are then passed through a standard BN layer (without the usual affine transformation parameters, which are moved to the end of the CN block).

By combining these, CN captures the best of both worlds: the spatial normalization of GN provides stability and reduces forgetting, while the batch-level normalization of BN facilitates "knowledge sharing" across different samples in the mini-batch (which is especially useful when using an episodic memory or replay buffer).

Experimental Setup

The researchers evaluated CN across a wide range of benchmarks to ensure robustness:

  • Toy Benchmarks: Permuted MNIST (pMNIST).
  • Standard CL Benchmarks: Split CIFAR-10, Split CIFAR-100, and Split Mini-ImageNet.
  • Large-Scale/Complex Benchmarks: Split Tiny-ImageNet.
  • Real-World Scenarios: COCOseq and NUS-WIDEseq, which focus on long-tailed online continual learning (where some classes are much rarer than others).

Key Insights and Results

CN consistently outperformed BN and other alternatives (like Batch Renormalization or Switchable Norm) across various CL strategies, including Experience Replay (ER) and Dark Experience Replay++ (DER++).

Accuracy across tasks on Split CIFAR-10 and Split Tiny ImageNet, demonstrating CN's superiority over standard BN.
  • Accuracy Boost and Reduced Forgetting: On Split CIFAR-100, CN improved Average Accuracy (ACC) by roughly 3-4% over standard BN. In Class-Incremental settings on Split Tiny-ImageNet, CN significantly lowered the Forgetting Measure (FM) compared to BN, especially as the memory buffer size increased.
  • The BN Paradox: The authors highlight that BN is great for "plasticity" (learning new things quickly by smoothing the optimization landscape) but terrible for "stability" (keeping old knowledge). CN bridges this gap.
  • The Role of Depth: Through a toy experiment on pMNIST, the authors found that the variance of hidden features becomes increasingly inaccurate in deeper layers of the network. This suggests that deeper layers are more responsible for the cross-task normalization effect.
  • Efficiency and Stability: Despite adding a step, CN is computationally efficient. In training time tests, it added only about 3.7% overhead compared to BN, whereas more complex alternatives like Switchable Norm added nearly 29%. Furthermore, while BN was found to be highly unstable in certain class-incremental settings, CN remained consistent.

Limitations and Future Work

The primary limitation of CN is the introduction of a new hyperparameter: the number of groups ($G$) for the internal GN component. While the authors found $G=32$ to be a solid default, they noted that in specific scenarios (like long-tailed data), smaller group sizes might perform better.

Ultimately, CN is "orthogonal" to most CL research. This means it can easily be combined with more advanced architectural changes or sophisticated replay strategies to push the state-of-the-art in learning systems that aim to learn continuously without forgetting the past.

Summary updated

BibTeX
@inproceedings{pham2022continual,
  author = {Quang Pham and Chenghao Liu and Steven C. H. Hoi},
  title = {{Continual Normalization: Rethinking Batch Normalization for Online Continual Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=5sPNQsH5HE},
}
Figure