Bootstrap Your Uncertainty: Adaptive Robust Classification Driven by Optimal-Transport

Jiawei Huang, Minming Li, Hu DingNeurIPS 2025

Deep learning models are notorious for failing under distribution shifts—when the deployment environment doesn't perfectly match the training data. A popular mathematical framework to fix this is Distributionally Robust Optimization (DRO). Instead of just minimizing the average error on the training data, DRO minimizes the worst-case error across a set of plausible test distributions, known as the uncertainty set.

However, DRO has a Goldilocks problem:

  1. Inflexible Uncertainty Sets: If the uncertainty set is too broad, the model optimizes against impossible, unrealistic "Frankenstein" distributions, hurting practical performance. If it's too narrow, it misses real-world shifts.
  2. Poor Semantic Distances: Optimal Transport (OT) is often used to define the boundaries of these uncertainty sets (e.g., Wasserstein DRO). But standard OT relies on basic distance metrics (like pixel-wise distance) that fail to capture high-level semantic similarities. Two images of the same dog might have vastly different pixel values but mean the exact same thing.
Comparison of decision boundaries on a 2D double moon dataset between standard ERM and the proposed DRO method.

To tackle the dilemma of constructing an uncertainty set that is broad enough to capture meaningful shifts but smart enough to exclude unrealistic perturbations, researchers have introduced AdaDRO (Adaptive DRO).

The AdaDRO Framework

AdaDRO frames entropy-regularized Sinkhorn DRO as a dynamic process of exploration and alignment. Instead of fixing the uncertainty set and distance metrics before training, AdaDRO evolves them during training using two key mechanisms:

Architecture of AdaDRO illustrating Semantic Calibration via Inverse OT and the Dynamic Filter for adaptive refinement.
  1. Semantic Calibration via Inverse OT: Instead of hand-crafting the transport cost (the "distance" between data points), AdaDRO learns it. Using Inverse Optimal Transport (IOT)—a technique that infers the underlying cost function from observed matching patterns—the model aligns its transport plans with ground-truth semantic matches generated via data augmentations. For example, a cropped image should semantically match the original.
  2. Adaptive Refinement (Dynamic Uncertainty Sets): The uncertainty set is defined by a "reference distribution." AdaDRO dynamically filters this distribution using an OT-based feedback loop. It evaluates how confidently the model can match source and target pairs; if a sample falls outside the true data manifold (i.e., it's an unrealistic worst-case scenario), it gets filtered out.
  3. MLMC-RT Optimization: Because dynamic uncertainty sets create a complex web of nested mathematical expectations, standard gradient descent becomes biased and intractable. The authors employ Multi-Level Monte Carlo with Randomized Truncation (MLMC-RT) to efficiently estimate gradients and mathematically guarantee convergence.

Key Insights

  • Classification is Secretly Inverse OT: The authors provide a beautiful theoretical insight: standard temperature-scaled softmax cross-entropy loss can actually be mathematically interpreted as an Inverse Optimal Transport problem. This bridges standard classification with OT theory.
  • Dynamic > Static: A static uncertainty set is a trap. By allowing the uncertainty set to co-evolve with the model's learned semantic costs, the model naturally avoids optimizing against "garbage" worst-case samples that ruin standard DRO methods.
  • Label-Agnostic Calibration is a Superpower: Because the feature-level semantic calibration relies on data augmentations rather than labels, it acts like unsupervised contrastive learning. This makes the model incredibly resilient to label noise—it learns what makes an image semantically unique regardless of whether the human annotator labeled it correctly.

Experimental Performance

The authors evaluated AdaDRO across a wide variety of benchmarks, including spurious correlations (Colored MNIST, Waterbirds), group shifts (CelebA), long-tailed generalization (CIFAR-10/100-LT, ImageNet-LT), and domain generalization (DomainBed).

Highlights include: * Spurious Correlations: On Colored MNIST, AdaDRO achieved 79.9% worst-group accuracy, crushing standard Sinkhorn DRO (72.6%) and Invariant Risk Minimization (75.3%). On Waterbirds, it reached 80.5% worst-group accuracy, matching specialized group shift methods and beating standard DRO by over 5%. * Label Noise Resilience: When 50% of the labels in CIFAR-100 were randomly corrupted, AdaDRO maintained an impressive 57.2% accuracy, whereas standard Sinkhorn DRO collapsed to 44.1%. * Theoretical Guarantees: Despite the moving targets (dynamic costs and sets), the authors proved that AdaDRO converges to a stationary point with a sample complexity that is nearly optimal for non-convex stochastic optimization.

Limitations and Future Work

The primary limitation of AdaDRO is its reliance on data augmentations (like cropping or flipping) to define the "ground-truth" semantic couplings. While this works exceptionally well for computer vision, finding effective augmentations for other domains—such as tabular data or specific time-series sensors—can be challenging. Future research could explore integrating richer, heterogeneous sources of prior knowledge beyond standard data augmentations to build even more powerful semantic couplings for the Optimal Transport engine.

Summary updated

BibTeX
@inproceedings{huang2025bootstrap,
  author = {Jiawei Huang and Minming Li and Hu Ding},
  title = {{Bootstrap Your Uncertainty: Adaptive Robust Classification Driven by Optimal-Transport}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=NFuoxl5CCc},
}
Figure