Ghost Noise for Regularizing Deep Neural Networks

Atli Kosson, Dongyang Fan, Martin Jaggi

Abstract

Batch Normalization (BN) with small "ghost" batches acts as a strong regularizer due to the injection of statistical noise, but it suffers from a train-test discrepancy caused by samples biasing their own statistics, a phenomenon termed "self-dependency." This paper isolates this "ghost noise" and introduces Ghost Noise Injection (GNI), a technique that applies this noise directly without the detrimental discrepancy. GNI outperforms standard normalization techniques and generalizes to non-BN architectures, achieving 78.84% accuracy on CIFAR-100 and providing consistent gains on ImageNet-1k and Vision Transformers.

Introduction: The Problem of Self-Dependency

Batch Normalization (BN) is a cornerstone of deep learning, providing stability and acting as a regularizer. Ghost Batch Normalization (GBN) intentionally calculates statistics over small sub-batches to increase stochasticity and improve generalization. However, GBN introduces a significant train-test discrepancy. In small batches, a single sample heavily influences its own mean and variance calculations. During inference, the network uses fixed population statistics, leading to a mismatch between training and test activations. This creates a trade-off: smaller batches provide better regularization through noise but worsen the train-test discrepancy.

Methodology: Decoupling Noise from Normalization

To resolve this trade-off, the authors decouple the regularization effect from the normalization operation. By modeling GBN as a "double normalization" process, they extract the exact noise profile generated by small batches.

Ghost Noise Injection (GNI)

GNI is the primary contribution. Instead of normalizing over a fixed small batch, GNI takes a standard batch-normalized input and injects shift (additive) and scale (multiplicative) noise. This noise is calculated from a randomly sampled subset of the batch (with replacement). This random sampling breaks the self-dependency while maintaining stable training.

Analytical GNI (AGNI)

The authors also derived theoretical probability distributions for this noise—a Normal distribution for shift and a Chi-squared distribution for scale. This allows for a purely mathematical application of ghost noise, similar to Gaussian Dropout.

Empirical vs. analytical distributions of shift and scale noise at different training stages.

Key Results and Architectural Versatility

GNI demonstrates superior performance across multiple benchmarks and architectures. On CIFAR-100 with a ResNet-18, GNI achieves 78.84% accuracy, outperforming standard BN (77.10%) and the best GBN configuration (78.20%). On ImageNet-1k, GNI improves top-1 accuracy to 77.98% from a baseline of 77.43%.

Validation accuracy comparison of GBN, XBN, GNI, and various dropout methods across different ghost batch sizes and noise configurations.

Crucially, GNI is not limited to BN-based models. It provides consistent performance boosts to Normalization-Free ResNets, Vision Transformers (Simple ViT), and ConvMixers. For instance, applying GNI to a Normalization-Free ResNet on CIFAR-10 boosted accuracy from 84.31% to 86.18%.

Discussion and Limitations

The success of GNI highlights that the regularization benefits of small batches are primarily due to a specific noise profile rather than the normalization itself. Unlike standard i.i.d. noise injection (like Dropout), GNI captures adaptive, channel-specific variance fluctuations.

While GNI is highly effective, it introduces a slight computational overhead due to the random sampling of sub-batches. Furthermore, while AGNI provides a theoretical foundation, it currently lags slightly behind empirical GNI in performance, likely because it does not yet perfectly capture the complex spatial and batch variance dynamics across different layers. Future work aims to refine these analytical models to achieve the benefits of GNI with zero empirical sampling overhead.

Summary updated

BibTeX
@inproceedings{kosson2024ghost,
  author = {Atli Kosson and Dongyang Fan and Martin Jaggi},
  title = {{Ghost Noise for Regularizing Deep Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i12.29228},
}
Figure