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

Diagnosing Batch Normalization in Class Incremental Learning

Minghao Zhou, Quanziang Wang, Jun Shu, Qian Zhao, Deyu MengarXiv 2022

Abstract

Class Incremental Learning (Class-IL) is plagued by catastrophic forgetting, where models abruptly lose knowledge of previous tasks while learning new ones. This paper identifies Batch Normalization (BN) as a hidden driver of this phenomenon. The authors describe a "BN dilemma" where standard BN updates bias the model toward recent data. By decoupling BN statistic updates from weight updates and employing balanced batches for normalization tracking, the proposed "BN Tricks" (BNT) achieve significant performance gains across multiple benchmarks without introducing additional hyperparameters.

Introduction

In Class-IL, an AI model learns a sequence of tasks, each containing new classes, without having full access to data from previous tasks. While research often focuses on classifier bias or feature extractor degradation, this study highlights the role of Batch Normalization (BN). BN stabilizes training by normalizing features using batch-level mean and variance. However, in incremental settings, this mechanism creates two critical issues:

  1. Representation Interference: When training on a mixture of new data and a small buffer of old data, the statistics of the new data dominate. This prevents the model from learning distinct, well-separated features for the new classes.
  2. Inference Discrepancy: During training, BN uses current batch statistics, but during testing, it uses an Exponential Moving Average (EMA) of past statistics. In Class-IL, this EMA becomes heavily biased toward the most recent task, causing the model to misclassify old samples as new ones.

The BN Tricks (BNT) Framework

To resolve the BN dilemma, the authors propose a structural modification to the training loop applicable to various rehearsal-based methods like Experience Replay (ER), DER++, and iCaRL.

Comparison of different training schemes for Experience Replay (ER). The proposed ER-BNT (e) decouples weight updates from BN statistic updates and uses a balanced batch for the BN EMA.

The BNT strategy involves three core components:

  • Separated Updates: The process of updating network weights is strictly separated from the process of updating BN layer EMA statistics.
  • Balanced EMA Updates: To maintain fairness across all seen classes, the model performs a dedicated forward pass (without backpropagation) using a balanced batch containing an equal number of samples from new and old classes to update the BN EMA.
  • Dual-Batch Weight Training: The network is trained using separate batches for new classes and buffer (old) classes. Losses are calculated independently before updating weights, while BN statistics remain fixed during this phase to prevent interference.

Experimental Results

The researchers evaluated BNT on standard benchmarks including Seq-CIFAR-10, Seq-CIFAR-100, and Seq-Tiny-ImageNet. The results demonstrate that BNT consistently boosts the performance of baseline methods.

Performance comparison on Seq-CIFAR-10. The left plot shows Average Accuracy across tasks, where ER-BNT (red line, labeled ER-Cur+Buf in this specific plot variant) significantly outperforms standard ER. The right plot shows the stability of individual task accuracies.

Key performance highlights include:

  • ER-BNT: On Seq-CIFAR-10, Average Accuracy (ACC) improved from 61.62% to 72.08%, while forgetting (Backward Transfer) was reduced from -43.82% to -23.55%.
  • DER++-BNT: On Seq-CIFAR-100, accuracy rose from 45.89% to 47.89%.
  • iCaRL-BNT: On Seq-Tiny-ImageNet, accuracy increased from 24.72% to 26.50%.

Visual analysis using t-SNE confirms that BNT helps maintain distinct feature clusters for different tasks, preventing the most recent task from "swallowing" the representation space of previous ones.

Conclusion

This research demonstrates that "forgetting" in incremental learning is often a matter of biased normalization rather than just lost weights. By simply adjusting how BN statistics are tracked and applied, models can retain significantly more knowledge from previous tasks. While currently dependent on a data buffer for balanced updates, this work opens new avenues for making neural architectures inherently more robust to non-stationary data distributions.

Summary updated

BibTeX
@misc{zhou2022diagnosing,
  author = {Minghao Zhou and Quanziang Wang and Jun Shu and Qian Zhao and Deyu Meng},
  title = {{Diagnosing Batch Normalization in Class Incremental Learning}},
  year = {2022},
  eprint = {2202.08025},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.08025},
}
Figure