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

Wasserstein distributional robustness of neural networks

Xingjian Bai, Guangyi He, Yifan Jiang, Jan Oblój · DOI

Introduction

Deep neural networks (DNNs) have achieved remarkable success across various domains, yet they remain notoriously fragile. A primary concern is their vulnerability to adversarial attacks—small, often imperceptible perturbations to input data that cause models to misclassify with high confidence. Traditionally, research has focused on pointwise attacks, where a fixed perturbation budget is applied uniformly to every data point. However, real-world uncertainty is rarely uniform. This paper explores distributional threat models using Wasserstein Distributionally Robust Optimization (DRO), offering a more flexible and realistic framework for measuring neural network security.

The Distributional Threat Model

Unlike pointwise models that restrict changes to individual samples (e.g., limiting pixel changes to 2%), distributional threat models allow an attacker to distribute a total "perturbation budget" non-uniformly across an entire dataset. An attacker might choose to significantly alter some images while leaving others untouched, provided the overall average change—measured by the Wasserstein distance—remains within a specified limit $\delta$.

While theoretically more robust, these models are mathematically complex and computationally demanding. Traditional methods relying on duality are often too slow for practical large-scale evaluation. This research addresses these challenges by shifting the focus to first-order sensitivity analysis.

Methodology: Sensitivity Analysis and First-Order Approximations

The authors leverage sensitivity analysis for Wasserstein DRO to simplify the evaluation process. Instead of solving a full min-max optimization problem for every budget level, they utilize first-order Taylor expansions to estimate how a model's loss changes as the attack budget $\delta$ increases.

First-order approximations of the value function $V(\delta)$ for different threat models. The linear approximation $V(0) + \delta \Upsilon$ (orange) provides a reliable estimate of the actual value (blue) for small to medium perturbation budgets.

As shown in the figure above, these asymptotic bounds—denoted as $\mathcal{R}^l$ (lower) and $\mathcal{R}^u$ (upper)—are highly accurate for small budgets. This allows for rapid estimation of a model's robustness without the need for exhaustive iterative attacks.

Key Technical Innovations

  • W-PGD (Wasserstein Projected Gradient Descent): A specialized attack algorithm tailored for distributional threats.
  • ReDLR (Rectified Difference of Logits Ratio) Loss: A novel loss function designed for distributional attackers. Standard losses like Cross-Entropy are inefficient here because they encourage the attacker to waste budget on points already misclassified. ReDLR directs the budget toward "flipping" samples that are near the decision boundary.

Empirical Results and Speed

The researchers evaluated their methods on the CIFAR-10 dataset using models from RobustBench, a repository of state-of-the-art robust networks. The findings highlight two critical points:

  1. Distributional Attacks are More Potent: Models that appear robust under standard pointwise attacks often fail under distributional shifts. For instance, a model maintaining ~58% accuracy under standard attacks saw its performance drop to ~45% when subjected to the authors' distributional framework.
  2. Dramatic Speedups: The first-order approximation method is significantly faster than existing benchmarks. While standard tools like AutoAttack can take between 175 and 2,369 seconds to evaluate a mini-batch of 100 images, the proposed bounds are computed in just 0.17 to 1.46 seconds—a speedup of roughly 50 times.

Conclusion

By shifting from pointwise to distributional threat models and utilizing first-order approximations, this work provides a faster, more flexible way to measure neural network security. The proposed ReDLR loss and asymptotic bounds offer a viable "smoke test" for model robustness during training and evaluation. While the bounds are most accurate for small budgets, they provide a crucial link between adversarial robustness, Knightian uncertainty, and general model generalization, paving the way for more resilient AI systems.

Summary updated

BibTeX
@inproceedings{bai2023wasserstein,
  author = {Xingjian Bai and Guangyi He and Yifan Jiang and Jan Oblój},
  title = {{Wasserstein distributional robustness of neural networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=KfOUAlraMP},
}
Figure