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

Loss-Aware Distributionally Robust Optimization via Trainable Optimal Transport Ambiguity Sets

Jonas Ohnemus, Marta Fochesato, Riccardo Zuliani, John Lygeros

Introduction

Distributionally Robust Optimization (DRO) is a powerful paradigm for data-driven decision-making under uncertainty. However, standard DRO models often err on the side of extreme caution. By treating all sources of uncertainty as equally threatening, they can become overly conservative and sub-optimal. This paper introduces an end-to-end pipeline that uses the specific loss function of a task to "shape" the uncertainty set. By doing so, the framework reduces unnecessary conservatism while maintaining statistical reliability through data-driven bootstrapping.

The Problem: The Cost of "Loss-Blind" Robustness

In real-world scenarios, we rarely have access to the true probability distribution of our data; instead, we rely on empirical samples. DRO addresses this by optimizing against the worst-case scenario within an "ambiguity set"—a collection of distributions that are statistically "close" to the observed data.

The most common metric for defining this closeness is Optimal Transport (OT), which effectively creates a "ball" of distributions around the empirical data. However, the standard OT-DRO pipeline separates uncertainty quantification from the downstream optimization task. It is "loss-blind," constructing a uniform, spherical boundary that guards against distribution shifts in every possible direction equally.

The authors argue that this uniform approach is overkill. In many tasks, certain directions of uncertainty are merely "nuisance features" that do not impact the final loss, while others are highly critical. By treating all directions equally, standard OT-DRO wastes its "robustness budget" protecting against irrelevant shifts, leading to decisions that are excessively safe and practically sub-optimal.

Methodology: An End-to-End Bilevel Framework

To bridge the gap between uncertainty quantification and optimization, the authors propose a Loss-Aware OT-DRO framework formulated as a bilevel optimization program:

  1. The Lower Level (Optimization): This mirrors the standard DRO problem. Given a specific geometry (shape) for the ambiguity set, the model finds the decision parameters that minimize the worst-case expected loss.
  2. The Upper Level (Learning): This phase chooses the parameters of the ambiguity set itself (e.g., the weights in a Mahalanobis distance) to minimize the resulting loss, subject to a strict coverage constraint.

Key Innovations

  • Trainable Geometry: Instead of relying on a fixed Euclidean distance, the authors parameterize the transportation cost—the "effort" required to move probability mass. This allows the ambiguity set to stretch along directions that are less relevant to the loss and tighten along critical ones.
  • Data-Driven Bootstrapping: To ensure the learned ambiguity set still contains the true distribution with high probability (the coverage constraint), the framework employs a bootstrap-based resampling approach to simulate various possible "true" distributions.
  • Nonsmooth Differentiation: Differentiating through an optimization problem is notoriously difficult because the solution map is not always smooth. The authors leverage the recently introduced nonsmooth conservative implicit function theorem to calculate hypergradients, establishing convergence to a critical point of the bilevel problem.

Experimental Validation

The paper evaluates the proposed method using synthetic datasets across two classic problems:

  • Portfolio Optimization: Allocating assets to maximize profit while hedging against tail-risk, measured via Conditional Value at Risk (CVaR).
  • Linear Regression: Learning a regressor robust to distribution shifts in input features and noise.

Synthetic data was deliberately chosen because it allows the researchers to compute the "true" out-of-sample risk and definitively verify whether the true distribution falls within the learned ambiguity sets—metrics that are impossible to confirm with real-world data where the true distribution remains unknown.

Key Findings and Insights

  • Targeted Robustness: The method's "aha" moment lies in its handling of nuisance features. When data contains high-variance features irrelevant to the task, the trainable geometry learns to ignore them, focusing the robustness budget entirely where it matters.
  • Reduced Conservatism and Better Performance: In portfolio optimization, the loss-aware method significantly lowered the worst-case CVaR compared to standard isotropic baselines. In linear regression, the learned models achieved lower expected absolute error on unseen data.
  • Reliable Coverage: Despite shrinking the ambiguity set in certain directions, the bootstrap penalty successfully ensured that the true distribution remained within the set at the desired confidence level (e.g., 90%).
  • Scalability and Differentiability: The relative improvements were even more pronounced in higher-dimensional settings. Furthermore, by framing the OT-DRO problem as a general-purpose differentiable layer, the authors pave the way for plugging this robust optimization technique directly into modern deep learning frameworks like PyTorch or JAX.

Limitations and Future Directions

While the results are promising, the authors acknowledge a few limitations. First, the bootstrap-based coverage constraint is heuristic; there is currently a lack of rigorous theoretical lower bounds for coverage under this specific resampling method. Second, the upper-level learning problem is non-convex, meaning the optimization could potentially get stuck in local minima depending on initialization. Finally, solving a bilevel problem introduces computational overhead. While the authors report wall-clock times in milliseconds for their experimental examples, scaling this end-to-end pipeline to massive datasets or highly complex neural network architectures remains an important challenge for future research.

Summary updated

BibTeX
@inproceedings{ohnemus2026loss,
  author = {Jonas Ohnemus and Marta Fochesato and Riccardo Zuliani and John Lygeros},
  title = {{Loss-Aware Distributionally Robust Optimization via Trainable Optimal Transport Ambiguity Sets}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=K1EPPO9t2c},
}
Figure