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

On the Periodic Behavior of Neural Network Training with Batch Normalization and Weight Decay

Ekaterina Lobacheva, Maxim Kodryan, Nadezhda Chirkova, Andrey Malinin, Dmitry P. Vetrov

TL;DR

This paper reveals a surprising periodic behavior in neural network training when using Batch Normalization (BN) and Weight Decay (WD) together. This phenomenon explains previously contradictory views on training dynamics and shows that training can enter cycles of instability and recovery, rather than simply converging or diverging.

What Problem Does This Paper Address?

Modern deep learning heavily relies on techniques like Batch Normalization (BN) and Weight Decay (WD) to train complex neural networks. However, the precise interplay between BN and WD, especially concerning the norm of network weights, has led to conflicting theories. Some research suggests that BN and WD lead to a stable equilibrium where training converges, while others highlight that their combination can cause training instability, potentially leading to divergence. This paper aims to reconcile these opposing views by investigating the dynamics of neural network training under this common combination of regularization techniques.

Methods

The authors investigate the periodic behavior by first simplifying the problem to fully scale-invariant neural networks trained with standard Stochastic Gradient Descent (SGD) and constant learning rates. This allows for a clearer understanding of the underlying mechanism. They then analyze the dynamics of the weight norm, identifying a "centripetal force" from weight decay and a "centrifugal force" from the loss gradients (amplified by BN's scale-invariance). To theoretically ground their findings, they introduce the concept of "δ-jumps" to quantify training destabilization and derive conditions under which these jumps occur. Finally, they extend their analysis to more practical settings, including networks with non-scale-invariant weights, momentum, data augmentation, and different optimizers like Adam.

Datasets

The experiments were conducted using the CIFAR-10 and CIFAR-100 datasets.

Key Insights and Ideas

  • Periodic Training Cycles: The most striking finding is that training with BN and WD can lead to regular cycles of destabilization and recovery. Instead of diverging or converging to a single point, the training process enters a periodic loop.
  • Reconciling Contradictory Theories: This periodic behavior explains why some studies observed stable convergence (equilibrium presumption) while others noted instability (instability presumption). Both are partially correct, describing different phases within a training cycle.
  • The "Centripetal" vs. "Centrifugal" Dance: The core mechanism involves a dynamic interplay between weight decay (pulling weight norms down) and the loss gradients (pushing weight norms up due to BN's scale-invariance). This tug-of-war creates the observed oscillations.
  • "δ-Jumps" as a Measure of Destabilization: The authors introduce a theoretical concept of "δ-jumps" to quantify when adjacent training steps become significantly different, signaling the onset of instability.
  • Warm-up Stage: Before entering the consistent periodic behavior, networks often exhibit a "warm-up" stage where they adjust their weight norms to a suitable range for the periodic cycles to emerge.
  • Performance Benefits: Interestingly, the destabilization episodes within the periodic behavior can lead to improved test error, suggesting that these cycles might be beneficial for generalization.

Key Results

  • The paper demonstrates the periodic behavior across various configurations, including different learning rates, weight decay values, and network architectures (ConvNet, ResNet).
  • Theoretical analysis using "δ-jumps" provides conditions for destabilization and relates the frequency of periods to hyperparameters.
  • Empirical studies confirm that the periodic behavior persists even with practical modifications like momentum, data augmentation, trainable last layers, and the Adam optimizer.
  • The study shows that the periodic behavior is absent when the weight norm is artificially fixed, highlighting its dependence on the dynamic interplay of BN and WD.

Limitations and Future Work

  • Scope of Architectures: The study primarily focuses on convolutional neural networks for image classification. While the authors believe the findings extrapolate to other architectures and tasks, further validation is needed.
  • Specific Instability Source: The paper focuses on instability induced by BN and WD. Other factors contributing to training instability in very large networks with multiple normalization and feature normalization layers are not explored.
  • Computational Cost: The authors note that conducting this research required significant GPU hours, which has an environmental impact.
  • Future Directions: The authors suggest exploring the impact of other normalization techniques and optimizers, as well as investigating the extreme cases of destabilization where training might fail completely. They also point to the potential for further research into the interplay of various factors that can lead to training instability.

Summary updated

BibTeX
@inproceedings{lobacheva2021periodic,
  author = {Ekaterina Lobacheva and Maxim Kodryan and Nadezhda Chirkova and Andrey Malinin and Dmitry P. Vetrov},
  title = {{On the Periodic Behavior of Neural Network Training with Batch Normalization and Weight Decay}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=B6uDDaDoW4a},
}
Figure