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

Accelerating Training of Deep Neural Networks with a Standardization Loss

Jasmine Collins, Jona Ballé, Jonathon ShlensarXiv 2019

TL;DR

This paper introduces Standardization Loss, a simple auxiliary objective that encourages neural network activations to follow a standardized Gaussian distribution. By replacing explicit architectural layers like Batch Normalization with this loss, the authors achieve significant training acceleration across various architectures while maintaining robustness to small batch sizes and zero overhead at inference time.

What Problem Does This Paper Address?

Training deep neural networks is notoriously slow and difficult without normalization. Techniques like Batch Normalization (BN) have become industry standards because they stabilize activation distributions, allowing for higher learning rates and faster convergence.

However, BN comes with heavy baggage:

  1. Batch Size Dependency: It performs poorly with small batches because its statistics become noisy.
  2. Training Complexity: It requires tracking moving averages of means and variances for use during inference, which aren't part of the actual training objective.
  3. Inference Overhead: Data-dependent methods like Layer or Group Normalization require extra computation during every prediction step.

The authors sought a "drop-in" alternative that provides the acceleration benefits of normalization without these architectural and computational constraints.

Methods

The core idea is to move normalization from the network architecture to the loss function.

Instead of forcing activations to be normalized at every layer, the authors add a secondary Standardization Loss to the primary objective (like cross-entropy). This loss is defined as the Kullback-Leibler (KL) divergence between the distribution of activations $P(x)$ and a target standardized Gaussian distribution $\mathcal{N}(x; 0, I)$.

Assuming the activations are roughly Gaussian, the authors derive an analytical form for this loss based on the mean ($\mu$) and variance ($\sigma^2$) of the activations: $$D_{KL}(P(x) || \mathcal{N}(x; 0, I)) = \frac{1}{2} \sum_{i=1}^{n} (\mu_i^2 + \sigma_i^2 - \log(\sigma_i^2) - 1)$$

During training, this loss is calculated at each layer and added to the total objective. At test-time, the loss is simply removed, meaning the model runs exactly like a standard, unnormalized network but with the benefit of having learned "well-behaved" weights.

Datasets

The authors evaluated their method across a diverse set of tasks and scales:

  • MNIST: Used for initial proof-of-concept on small Multi-Layer Perceptrons (MLPs) and Convolutional Neural Networks (CNNs).
  • ModelNet40: A 3D point cloud classification dataset used to test large-scale MLPs (specifically the PointNet architecture).
  • ImageNet: The standard large-scale image classification benchmark, used to test modern CNN architectures including Inception-v2, ResNet-50, and MobileNet-v1.

Key Insights and Ideas

  • Soft Constraint vs. Hard Requirement: Unlike BN, which forces every batch to be normalized, Standardization Loss encourages it. This subtle shift makes the model much more resilient to the noisy statistics of small batch sizes.
  • Inference Efficiency: Because the normalization is "baked into" the weights during training via the loss function, there is no need for moving averages or extra normalization passes during deployment. This is ideal for memory-constrained edge devices.
  • Universal Applicability: The method is architecture-invariant. While BN is tricky to apply to Recurrent Neural Networks (RNNs) and Group Norm is specific to CNNs, a loss-based approach can theoretically be applied to any layer in any network.
  • The "Aha" Moment: Adding a secondary constraint (the standardization loss) actually makes the primary task (classification) converge faster. As seen in Figure 1, the red line (standardization loss) drops much faster than the black baseline.
Standardization loss accelerates convergence for 3-layer CNN trained on MNIST.

Key Results

  • Significant Speedups: On ImageNet, the method achieved a 2.8x speedup for Inception-v2 and a 2.2x speedup for ResNet-50 compared to unnormalized baselines.
  • PointNet Acceleration: For 3D point cloud tasks, it provided a 2.2x speedup, showing it works well for large-scale MLPs.
  • Batch Size Robustness: In experiments with MobileNet-v1 (Figure 7), Standardization Loss maintained stable performance even at tiny batch sizes (2 or 4 images), where Batch Normalization's accuracy plummeted.
Top-1 validation accuracy across different batch sizes.

Limitations and Future Work

  • Asymptotic Accuracy Gap: While the method is much faster than no normalization, it generally achieves slightly lower final accuracy than Batch Normalization. The authors suggest this might be because BN enforces normalization from the very first step, whereas a loss-based approach takes time to "settle."
  • Hyperparameter Tuning: The method introduces one new hyperparameter—the weight of the standardization loss—which requires some tuning (though Figure 2 suggests it is robust across several orders of magnitude).
  • Future Directions: The authors suggest extending this to encourage other properties, such as sparsity (using a Laplace target distribution) or decorrelation (whitening), which could further improve representational power.

Summary updated

BibTeX
@misc{collins2019accelerating,
  author = {Jasmine Collins and Jona Ballé and Jonathon Shlens},
  title = {{Accelerating Training of Deep Neural Networks with a Standardization Loss}},
  year = {2019},
  eprint = {1903.00925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.00925},
}
Figure