Continual Normalization for Non-Stationary Streams

45 concepts24 papers3 proposals

In deep learning, Batch Normalization (BN) is a foundational tool for stabilizing training. By calculating the mean and variance of activations across a mini-batch, BN ensures that features remain stably scaled throughout the network. However, BN relies on a critical assumption: that training data is independent and identically distributed (i.e., i.i.d.).

When a model faces a non-stationary data stream—such as in continual learning, test-time adaptation, or federated learning—this i.i.d. assumption collapses. As a model sequentially learns new tasks or encounters correlated data bursts, standard normalization layers become a primary, yet often overlooked, driver of catastrophic forgetting. A growing body of research focuses on diagnosing why standard normalization fails in these environments and designing alternative "continual normalization" strategies to fix it.

The Hidden Driver of Catastrophic Forgetting

Most classical continual learning algorithms focus entirely on preserving network weights. They use gradient constraints, parameter regularization, or functional distillation to ensure that the weights learned for Task A are not overwritten by Task B.

However, as Lyu et al. observe, a neural network's internal representations depend on two distinct components: the optimization of weights via gradients, and the tracking of activation statistics via raw sample distributions. Standard weight-regularization techniques are fundamentally blind to the latter. Even if an algorithm perfectly freezes a model's weights, the model can still experience catastrophic forgetting if its normalization layers lose the statistical context required to process older inputs.

This tension creates a severe architectural mismatch. As Oren et al. demonstrate, standard regularization techniques frequently conflict with modern residual architectures precisely because of how batch normalization layers behave during sequential tasks. Empirically, layers that track data distribution statistics are among the most susceptible to performance degradation during task shifts (Zhao et al.). When input distributions change drastically, the accumulated global statistics become misaligned with the historical task data, scrambling the network's internal feature distributions (Mirzadeh et al.).

The Mechanism of Recency Bias

Why exactly does batch normalization fail when data distributions shift? The issue lies in how running statistics are updated.

Standard BN tracks the global mean and variance of a dataset using an exponential moving average (EMA) during training. In a sequential learning environment, the mini-batches for the current task are heavily skewed toward the new data distribution (Cha et al.). If a robot or an autonomous vehicle encounters a stream of non-i.i.d. data—such as a long sequence containing only a single object class or a sudden shift to rainy weather—the current batch statistics become highly biased (Lomonaco et al., Kalb et al.).

Because the EMA continually prioritizes recent updates, it exhibits a severe recency bias (Lyu et al.). The running statistics are rapidly overwritten by the properties of the most recent task, effectively erasing the statistical memory of prior domains (Ayromlou et al.). During inference, when the model is asked to evaluate an old task, it applies the newly biased mean and variance to the old weights. This mismatch causes inter-task statistical interference (Pham et al.): the activations are scaled incorrectly, and the model fails to recognize features it previously mastered.

Standard Sequential Training:
[Task 1 Data] ---> BN Updates Stats (Mean 1, Var 1) ---> Model learns Task 1
[Task 2 Data] ---> BN Overwrites Stats (Mean 2, Var 2) -> Model forgets Task 1 Context

Inference on Task 1:
[Task 1 Data] ---> Applied to (Mean 2, Var 2) ---------> Activation Mismatch / Failure

This problem even extends to knowledge distillation frameworks. In exemplar-free continual learning, a common pattern is to freeze a "teacher" model to guide the "student" model. Yet, Szatkowski et al. show that keeping a teacher's normalization layers completely static generates a noisy distillation signal because the static layers fail to account for the shifting mean and variance of the new incoming data. Conversely, attempting to stabilize normalization by simply averaging statistics from previous training iterations fails because the underlying network weights are constantly evolving, making historical averages mathematically incompatible with the current model state (Cao et al.).

To resolve this, researchers have developed three primary strategies: eliminating batch dependencies, rebalancing online statistics, and treating normalization layers as explicit statistical repositories.

Strategy 1: Eliminating Batch Dependencies

The most direct way to prevent a non-stationary stream from corrupting batch statistics is to remove the dependence on the batch dimension entirely. Group Normalization (GN) computes means and variances across channels within a single sample, making its operations independent of batch size or temporal correlations.

As Charlin et al. demonstrate, replacing batch-dependent layers with group-based normalization provides an immediate boost to model stability in non-stationary environments, as it prevents recent samples from corrupting global metrics. However, completely abandoning batch statistics can sometimes reduce a model's capacity to handle complex distribution shifts compared to architectures that leverage batch-level context (Wang et al.).

To find a middle ground, researchers have proposed hybrid layers. Pham et al. introduced Continual Normalization (CN), which sequentially stacks Group Normalization and Batch Normalization. By first normalizing features within a group, CN reduces the structural variance of the features before they reach the BN layer. This dual-stage approach balances the model's ability to learn new features (plasticity) with a strong resistance to inter-task statistical interference (stability), a finding echoed by Kalb et al. in incremental domain adaptation settings.

Strategy 2: Rebalancing and Multi-Centroid Tracking

If an architecture must retain batch normalization, the update logic must be altered to prevent the current task from dominating the running statistics.

One approach is to artificially restore balance to the data stream. For instance, Cha et al. developed Task-Balanced Batch Normalization (TBBN). TBBN uses virtual reshape and repeat operations during training to construct a balanced batch representation, ensuring that the running mean and variance are not mathematically hijacked by an influx of new class data.

Another approach is to maintain multiple sets of statistics simultaneously. In test-time adaptation (TTA), data often arrives in highly correlated, "clumpy" distributions (e.g., a video stream showing the same object for hundreds of frames). Updating a single global set of statistics in this scenario creates a winner-take-all problem where the model over-specializes to the local cluster. To combat this, Tomar et al. present UnMix-TNS, a method that maintains $K$ distinct normalization statistics online. By dynamically "un-mixing" incoming data into its appropriate statistical bucket, the model adapts to local shifts without suffering from catastrophic forgetting.

Similarly, Lyu et al. propose AdaB$^2$N, which applies a Bayesian strategy during training and a modified momentum approach during testing to dynamically balance the preservation of historical statistics with the integration of new data. On a broader scale, Ding et al. note that in federated learning, calculating batch normalization statistics locally on edge devices rather than globally allows individual nodes to retain knowledge of their local distributions without being overwhelmed by a global average.

Strategy 3: Normalization as a Statistical Memory

Rather than viewing the sensitivity of normalization layers as a liability, a final class of methods treats these layers as a valuable repository of historical data distributions.

Because normalization layers explicitly capture the mean and variance of the domains they encounter, they contain an implicit map of the historical data space. Ayromlou et al. leverage this property for data-free class incremental learning. By employing specialized continual normalization layers that actively prevent the loss of earlier task statistics, the authors can perform model inversion to synthesize high-fidelity images of old classes without violating data privacy regulations. The stable internal representation provided by the preserved statistics acts as a guide, ensuring that the synthesized data matches the original training distributions.

Furthermore, when raw data cannot be stored, the statistics themselves can be regularized. Zhang et al. demonstrate that applying adaptive distillation directly to the normalization and statistical layers serves as an effective proxy for preserving historical data. By forcing the student network's normalization layers to remain close to the historical statistics of the teacher, the model successfully integrates new domains while maintaining the internal representational stability required to remember the past.

Key Foundational Work

Rehearsal-Free Continual Learning over Small Non-I.I.D. Batches (2020) — contributed 2 concept elements to this direction.
In Defense of the Learning Without Forgetting for Task Incremental Learning (2021) — contributed 1 concept elements to this direction.
Cross-Iteration Batch Normalization (2021) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_continual_normalization_3c596b9c,
  title = {continual normalization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/continual-normalization/rdr_3c596b9cc42243699e3e41f441fc0ad3},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_continual_normalization_3c596b9c_v1,
  title = {continual normalization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/continual-normalization/rdr_3c596b9cc42243699e3e41f441fc0ad3/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake