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

Task-Balanced Batch Normalization for Exemplar-based Class-Incremental Learning

Sungmin Cha, Soonwon Hong, Moontae Lee, Taesup Moon

Abstract

Batch Normalization (BN) is a cornerstone of modern deep learning, yet it inadvertently contributes to "catastrophic forgetting" in Class-Incremental Learning (CIL). This occurs because BN statistics and learnable affine parameters become heavily biased toward the most recent task due to the inherent data imbalance between new classes and old exemplars. We introduce Task-Balanced Batch Normalization (TBBN), a hyperparameter-free training update that rebalances mini-batch statistics and gradients. TBBN consistently enhances the performance of existing CIL algorithms across multiple architectures without introducing any computational overhead during inference.

The Problem: Batch Normalization Bias in CIL

In Class-Incremental Learning, models must integrate new knowledge while retaining information from previous tasks. State-of-the-art methods often employ an "exemplar memory" to store a small subset of past data. However, standard Batch Normalization assumes that training data is independent and identically distributed (i.i.d.). In a CIL setting, the training batch is severely imbalanced, typically dominated by samples from the current task.

Visualization of feature distribution shifts and the impact of normalization across different tasks.

This imbalance "hijacks" the BN layers, causing them to calculate mean and variance statistics that reflect only the current task. Consequently, the learnable affine parameters—scale ($\gamma$) and shift ($\beta$)—are updated with biased gradients. When the model is evaluated on old classes, the normalization is incorrect, leading to a significant drop in accuracy.

Methodology: Task-Balanced Batch Normalization

TBBN restores balance during the training phase by manipulating feature maps within each mini-batch to ensure equal contribution from current and past tasks.

  • Reshape and Repeat: TBBN applies an adaptive reshape to the current task's feature maps and a repeat operation to the past tasks' feature maps. This creates a "task-balanced" virtual batch with a 1:1 ratio of current-to-past data.
  • Balanced Gradients: By computing the loss on this balanced virtual batch, the gradients for the affine parameters ($\gamma$ and $\beta$) are no longer dominated by the new task. This maintains stability for old representations while allowing plasticity for new ones.
  • Zero Inference Overhead: TBBN is a training-time modification. During inference, the model uses standard BN layers, ensuring no additional latency or memory costs in deployment.

Key Insights: The Role of Affine Parameters

A critical finding of this research is that simply fixing the mean and variance statistics is insufficient to prevent forgetting. The learnable $\gamma$ and $\beta$ parameters, despite making up less than 1% of the total model parameters, are primary drivers of bias.

Ablation study showing the performance impact of updating different components of Batch Normalization across tasks.

As shown in the ablation studies, rebalancing these affine parameters leads to substantial accuracy gains compared to only updating the running statistics. Unlike previous methods like Continual Normalization (CN), which can lose discriminative feature structure in multi-epoch settings, TBBN preserves this structure while remaining hyperparameter-free.

Experimental Results

TBBN was evaluated as a drop-in replacement for BN in several top-tier CIL algorithms, including LUCIR, PODNet, and SS-IL, across benchmarks like CIFAR-100 and ImageNet-100.

  • Performance Gains: On ImageNet-100, TBBN improved the baseline fine-tuning (FT) accuracy from 39.40% to 43.20%. When integrated with the AFC algorithm on CIFAR-100, it boosted final accuracy from 39.90% to 41.30%.
  • Robustness: The improvements were consistent across various backbones, such as ResNet-18, ShuffleNet-V2, and MobileNet-V2.
  • Reduced Bias: Qualitative analysis confirmed that TBBN significantly reduces the tendency of models to misclassify old samples as belonging to the most recent task.

Conclusion and Future Work

TBBN provides a simple yet effective "patch" for the normalization bias in CIL. While it increases training-time memory (approx. 1.6x) and time (approx. 1.3x), the benefits in accuracy and the lack of inference overhead make it a valuable tool for incremental learning. Future research may explore extending these task-balancing principles to Transformer architectures (LayerNorm) and non-vision domains.

Summary updated

BibTeX
@inproceedings{cha2023task,
  author = {Sungmin Cha and Soonwon Hong and Moontae Lee and Taesup Moon},
  title = {{Task-Balanced Batch Normalization for Exemplar-based Class-Incremental Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.01927},
}
Figure