Data-driven Optimal Transport Cost Selection for Distributionally Robust Optimizatio

José Blanchet, Yang Kang, Fan Zhang, Karthyek Murthy

Abstract

Recently, it has been shown that several machine learning algorithms, such as square-root Lasso, Support Vector Machines, and regularized logistic regression, can be represented exactly as distributionally robust optimization (DRO) problems. The distributional uncertainty is defined as a neighborhood centered at the empirical distribution. We propose a methodology which learns such a neighborhood in a natural data-driven way. We show rigorously that our framework encompasses adaptive regularization as a particular case. Moreover, we demonstrate empirically that our proposed methodology is able to improve upon a wide range of popular machine learning estimators.

Introduction

In standard machine learning, models are typically trained under the assumption that the test data distribution will match the training data. Distributionally Robust Optimization (DRO) relaxes this assumption by training models to perform well across an "uncertainty set"—a neighborhood of distributions surrounding the empirical training data.

The geometry of this uncertainty set is usually defined by an Optimal Transport (OT) cost function. However, standard approaches often rely on fixed costs, such as Euclidean distance, which treat all features and directions of perturbation as equally important. This can lead to models that are robust to irrelevant noise while remaining vulnerable to perturbations along the data's true underlying manifold.

Methodology: Learning the Metric

To address the limitations of fixed costs, we propose a data-driven pipeline to select the optimal transport cost. Instead of a fixed distance, we utilize a Mahalanobis metric: $d_\Lambda(x, x') = \sqrt{(x-x')^T \Lambda (x-x')}$.

Illustration of manifold geometry (a) and data-driven metric learning (b) for DRO.

As shown in the figure above, standard Euclidean neighborhoods (blue circle in 'a') may inadvertently include points from different classes if they do not respect the data manifold. By learning the matrix $\Lambda$ (shown in 'b'), we identify pairs of points that should be close (similar labels) and those that should be far apart (different labels). This allows the uncertainty set to "stretch" or "compress" based on feature importance, effectively telling the DRO adversary that it is more expensive to perturb critical features than noise.

To optimize this framework, we introduce a soft-max smoothing technique and a specialized Stochastic Gradient Descent (SGD) algorithm. This allows for the simultaneous discovery of optimal model parameters ($\beta$) and the robustness penalty ($\lambda$).

Theoretical Bridge to Adaptive Regularization

A key theoretical contribution of this work is the rigorous proof that DRO with a learned Mahalanobis metric is equivalent to adaptive regularization (such as adaptive Ridge or Lasso). This provides a probabilistic foundation for why adaptive regularization techniques are so effective: they are essentially performing robust optimization over a data-informed uncertainty set.

Experimental Results

We evaluated the proposed methodology against standard Logistic Regression (LR) and $L_1$-Regularized Logistic Regression (LRL1) across several UCI Machine Learning Repository datasets, including Breast Cancer (BC), Banknote Authentication (BN), and Magic Gamma Telescope.

  • Accuracy Gains: The data-driven DRO models consistently outperformed benchmarks. On the BC dataset, accuracy improved from ~76% (standard LR) to ~95.5% (Non-Linear DRO).
  • Error Reduction: Log-exponential error was significantly lower for DRO methods, indicating higher confidence in correct predictions.
  • Stability: The data-driven cost selection resulted in more stable performance across 200 independent experimental trials compared to standard regularization methods.

Conclusion and Future Work

By learning the shape of the uncertainty set from data, we bridge the gap between robust optimization and metric learning. While the current Mahalanobis approach is powerful, it remains a linear transformation. Future research may explore deep metric learning to capture even more complex, non-linear data geometries, and extend the framework to semi-supervised settings where unlabeled data can further refine the uncertainty set's shape.

Summary updated

BibTeX
@inproceedings{blanchet2019data,
  author = {José Blanchet and Yang Kang and Fan Zhang and Karthyek Murthy},
  title = {{Data-driven Optimal Transport Cost Selection for Distributionally Robust Optimizatio}},
  booktitle = {WSC},
  year = {2019},
  doi = {10.1109/wsc40007.2019.9004785},
}
Figure