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

Rebalancing Batch Normalization for Exemplar-Based Class-Incremental Learning

Sungmin Cha, Sungjun Cho, Dasol Hwang, Sunwon Hong, Moontae Lee, Taesup Moon

Abstract

Standard Batch Normalization (BN) layers often fail in Class-Incremental Learning (CIL) because training mini-batches are heavily skewed toward new data. This imbalance causes both BN statistics and learnable affine parameters to become biased, leading to catastrophic forgetting of past tasks. We present Task-Balanced Batch Normalization (TBBN), a hyperparameter-free method that creates a virtual balanced batch during training. By rebalancing the influence of current and past tasks, TBBN stabilizes the model's internal representations without adding inference overhead.

The Challenge of Normalization in CIL

In Class-Incremental Learning, models learn new classes sequentially. To mitigate forgetting, state-of-the-art methods typically maintain a small exemplar memory of old data. However, during training, a standard mini-batch is dominated by new samples. For instance, a batch might contain 48 new samples but only 16 old ones.

Batch Normalization is designed for stationary data distributions. In the non-stationary environment of CIL, BN's internal statistics (mean $\mu$ and variance $\sigma^2$) and its learnable affine parameters (scale $\gamma$ and shift $\beta$) become biased toward the current task. When the model later encounters old classes, the BN layers apply incorrect normalization, degrading performance.

Visualization of task distributions and the mixture distribution under normalization.

Task-Balanced Batch Normalization (TBBN)

The proposed TBBN method balances the influence of current and past tasks within the normalization layer itself. It operates through several key steps:

  1. Task-Adaptive Balancing: The algorithm automatically calculates a ratio $r$ based on the number of current samples ($B_c$), past samples ($B_p$), and the current task count ($t$).
  2. Reshape and Repeat: To create a "virtual balanced batch," the current task's feature maps are reshaped (split into $r$ smaller virtual samples), while the past tasks' feature maps are repeated $r$ times.
  3. Balanced Statistics and Gradients: TBBN computes empirical statistics on this virtual batch, ensuring running statistics are not hijacked by the current task. Furthermore, backpropagation through this virtual batch ensures that learnable affine parameters ($\gamma, \beta$) receive equally weighted gradients from past and present data.

Crucially, TBBN behaves exactly like vanilla BN during inference, requiring no extra memory or computation at deployment.

Key Insights: The Role of Affine Bias

A significant finding of this work is that catastrophic forgetting in BN is not solely due to biased statistics. The learnable affine parameters ($\gamma$ and $\beta$) also play a critical role. Even if statistics are perfectly balanced, biased affine parameters can still ruin performance.

Comparison of different update strategies across tasks. Updating both statistics and affine parameters (red) significantly outperforms updating statistics alone (light blue).

As shown in the figure above, updating both $(\mu, \sigma^2)$ and $(\gamma, \beta)$ provides a substantial performance boost over updating statistics alone, highlighting the necessity of TBBN's holistic rebalancing approach.

Experimental Results

TBBN was evaluated on CIFAR-100, ImageNet-100, and a "Dissimilar Tasks" benchmark. It consistently outperformed vanilla BN and Continual Normalization (CN) across various frameworks (LUCIR, PODNet, SS-IL) and architectures (ResNet, ShuffleNet, MobileNet).

  • ImageNet-100 (SS-IL): Final accuracy improved from 49.56% (BN) to 51.30% (TBBN), with forgetting reduced from 21.20% to 19.58%.
  • Dissimilar Tasks: TBBN improved the final accuracy of basic Fine-Tuning by nearly 4% over vanilla BN, demonstrating robustness to large domain shifts.

Conclusion and Future Work

TBBN serves as a versatile, drop-in replacement for BN in exemplar-based incremental settings. While it introduces some training-time overhead (approx. 1.6x GPU memory and 1.3x time), it provides significant stability gains with zero inference cost. Future work may explore reducing the training-time memory footprint and extending the method to exemplar-free incremental learning.

Summary updated

BibTeX
@inproceedings{cha2023rebalancing,
  author = {Sungmin Cha and Sungjun Cho and Dasol Hwang and Sunwon Hong and Moontae Lee and Taesup Moon},
  title = {{Rebalancing 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