Augmented Normalization: Differentiating the Generalized Geometric Median

Tyler King, Ser-Nam LimOPT @ NeurIPS 2025

TL;DR

This paper introduces Augmented Normalization (AugNorm), a new normalization technique that uses a generalized geometric median (GGM) as its statistic. AugNorm offers improved robustness to distribution shifts, particularly in challenging scenarios like subpopulation shifts, while maintaining competitive performance on standard datasets.

What Problem Does This Paper Address?

Deep neural networks often struggle when the distribution of the test data differs from the training data, a phenomenon known as distribution shift. Normalization layers, like Batch Normalization (BatchNorm), are crucial for stabilizing training and improving performance, but they typically rely on fixed statistics (e.g., mean and variance) that can be sensitive to these shifts. Existing methods for improving robustness often focus on modifying the training objective (e.g., Distributionally Robust Optimization - DRO) but less on architectural changes. This paper addresses the need for normalization techniques that are inherently more robust to distribution shifts, especially subpopulation shifts, without requiring changes to the optimization framework.

Methods

The core contribution is Augmented Normalization (AugNorm), a novel feature transformation method. Instead of relying on fixed statistics like mean and variance, AugNorm normalizes activations around a generalized geometric median (GGM). The GGM is defined as the minimizer of a convex function that interpolates between common statistics like the mean (when $\phi=2$) and the median (when $\phi=1$). This generalization allows for a smoother, more robust statistic.

Key aspects of the method include:

  • Generalized Geometric Median (GGM): This is the central novel statistic. It's defined as $\arg \min_y \sum_i |x_i - y|^\phi$, where $\phi$ is a tunable parameter.
  • Differentiable GGM: The paper presents techniques to compute gradients through the argmin operation, which is crucial for backpropagation. This is achieved using explicit gradient derivations, making it computationally efficient.
  • Differentiable $\phi$: They also introduce a variant where the parameter $\phi$ itself is made trainable, allowing the model to learn the optimal normalization statistic.

Datasets

  • CIFAR-10: Used for in-distribution performance benchmarking. Standard 80/20 train-test split.
  • CelebA: Used for evaluating performance under subpopulation shift. This dataset consists of human face recognition images, with a focus on the "blond hair" attribute to create distribution shifts. A 70/30 train-validation/testing split was used.

Key Insights and Ideas

  • Beyond Mean/Median: The GGM offers a flexible way to define normalization statistics, bridging the gap between the mean (sensitive to outliers) and the median (can suffer from sparse gradients).
  • Robustness through Smoothness: By using a GGM, AugNorm provides a smoother, more noise-robust test statistic that avoids the optimization difficulties associated with median-based methods.
  • Drop-in Replacement: AugNorm is designed as a "drop-in" replacement for BatchNorm, meaning it can be integrated into existing architectures and training pipelines with minimal effort.
  • Complementary to Robust Optimization: AugNorm doesn't replace robust optimization techniques like DRO/DORO but can amplify their benefits, especially in subpopulation shift scenarios.

Key Results

  • CIFAR-10 (In-distribution): AugNorm with $\phi=1.5$ (AN-1.5) achieved performance comparable to BatchNorm across various architectures (ResNet-18, MobileNet-V2, DenseNet121, VGG19, EfficientNet-B0), with some models showing slight improvements (e.g., MobileNet-V2 gained ~0.7%). Median normalization (equivalent to $\phi=1$) consistently underperformed by 2-3%.
  • CelebA (Subpopulation Shift):
    • AugNorm (AN-1.5) and its differentiable $\phi$ variant (DiffPhi) significantly improved worst-case test accuracies under various DRO-based training strategies (e.g., CVaR-DORO, $\chi^2$-DORO), often by 3-5%.
  • While AN-1.5 and DiffPhi improved worst-case performance, they sometimes led to a slight decrease in average accuracy on CelebA, particularly when combined with outlier-specific methods like DORO. This suggests AugNorm biases the model towards worst-case scenarios.
  • The differentiable $\phi$ variant generally performed better than fixed $\phi=1.5$ on $\chi^2$-based architectures, while AN-1.5 was better for CVaR variants.

Limitations and Future Work

  • Hyperparameter Tuning: The paper primarily uses a fixed $\phi=1.5$ for AN-1.5. Future work suggests rigorous hyperparameter tuning of $\phi$ could further improve test accuracy.
  • Dataset Scale: The authors suggest expanding experiments to larger and more varied datasets (e.g., CivilComments-Wilds, CIFAR-10-C) to further validate AugNorm's robust performance.
  • Average vs. Worst-Case Trade-off: The observed trade-off between average and worst-case accuracy on CelebA warrants further investigation, especially when AugNorm is combined with other robust training methods.

Summary updated

BibTeX
@inproceedings{king2025augmented,
  author = {Tyler King and Ser-Nam Lim},
  title = {{Augmented Normalization: Differentiating the Generalized Geometric Median}},
  booktitle = {OPT @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=3avfjKQyBF},
}
Figure