Bayesian Nonparametrics Meets Data-Driven Distributionally Robust Optimization

Nicola Bariletto, Nhat Ho

Training machine learning models often relies on optimizing a data-driven risk criterion. However, standard approaches can suffer from poor and unstable out-of-sample performance due to distributional uncertainty. Presented at NeurIPS 2024, this research bridges the gap between Bayesian statistics and robust optimization to create a more stable framework for training machine learning models.

By utilizing Bayesian Nonparametrics—specifically the Dirichlet Process—to model uncertainty about the data-generating distribution, the authors introduce a novel framework for Distributionally Robust Optimization (DRO). Applying "smooth ambiguity-averse preferences" yields a training criterion that is more stable and performs better out-of-sample than standard empirical risk minimization, while also providing a novel Bayesian justification for classic techniques like Ridge and LASSO regression.

The Challenge of Distributional Uncertainty

Most machine learning models rely on Empirical Risk Minimization (ERM), which assumes the training data perfectly represents the real world. Unfortunately, if the training sample is small or the data-generating process is highly complex, the model can overfit to the specific distribution of the training set. This leads to poor performance when encountering slightly different data.

Distributionally Robust Optimization (DRO) attempts to resolve this by optimizing for the "worst-case" scenario within a set of plausible distributions. However, standard "min-max" DRO can often be overly pessimistic, focusing too heavily on extreme outliers. There is a clear need for a "smoother" approach that accounts for uncertainty without being paralyzed by absolute worst-case scenarios.

A Novel Robust Criterion

To address these limitations, the paper introduces a novel robust criterion, $V_{\xi^n}(\theta)$, which combines two powerful concepts:

  1. Bayesian Nonparametrics (The Dirichlet Process): Instead of assuming a single fixed distribution, a Dirichlet Process (DP) prior is placed over the space of all possible distributions. This maintains a "posterior" belief about the true data distribution, centered around the observed data.
  2. Smooth Ambiguity Aversion: Borrowing from economic decision theory, the authors apply a convex transformation ($\phi$) to the expected risk. Rather than merely minimizing the average error, the model minimizes a function that disproportionately penalizes distributions where the model performs poorly. This effectively "smooths" the transition between standard Bayesian averaging and strict worst-case optimization.
Convex transformation $\phi$ applied to expected risk

To make this infinite-dimensional problem mathematically solvable, two tractable Monte Carlo approximations are proposed:

  • Stick-Breaking Monte Carlo (SBMC): Based on the classic constructive definition of the Dirichlet Process.
  • Multinomial-Dirichlet Monte Carlo (MDMC): A more balanced version recommended for practical implementation.

Crucially, because the resulting criterion is smooth and convex, it can be optimized using standard Stochastic Gradient Descent (SGD).

Key Insights

  • The Regularization Link: One of the most elegant findings is that under specific prior settings, this Bayesian DP framework is mathematically equivalent to Ridge and LASSO regression. This provides a fresh, non-parametric Bayesian interpretation for these ubiquitous regularization techniques.
  • "Soft" Worst-Case: Unlike min-max DRO, which only cares about the single worst distribution, this method acts as a "soft" worst-case scheme. Distributions in the posterior support that result in higher risk are given more weight in the gradient updates, effectively "hedging" against them.
  • Stability over Pure Accuracy: The method specifically aims to reduce performance variability rather than just chasing the best average performance. This makes the model significantly more reliable when trained on different data subsets.

Experimental Results

The authors evaluated their method on both synthetic tasks (high-dimensional sparse linear/logistic regression, univariate Gaussian mean estimation with outliers) and real-world datasets (Pima Indian Diabetes, Wine Quality, Liver Disorders).

  • Reduced Variability: In the Pima Indian Diabetes experiment, the DP Robust method achieved nearly half the variability (standard deviation of 3.97e-05) compared to $L_1$ (LASSO) regularization (6.22e-05), while maintaining similar or better average loss.
  • Outlier Resilience: In Gaussian mean estimation with outliers, the ambiguity-averse procedure was significantly more accurate at recovering the true mean than standard Maximum Likelihood Estimation (MLE).
  • Consistent Gains: Across all real-world datasets, the robust method outperformed unregularized models and proved consistently more stable than standard $L_1$ regularization.

Limitations and Future Directions

While promising, the current framework assumes data is independent and identically distributed (i.i.d.) or exchangeable, making it unsuited for complex dependencies like time-series or graph-structured data. Additionally, practical performance depends heavily on the choice of the concentration parameter $\alpha$ and the transformation function $\phi$, necessitating deeper examination of hyperparameter configurations. Finally, while the method is amenable to SGD, extending this approach from linear and logistic models to deep neural networks remains an exciting frontier for future research.

Summary updated

BibTeX
@inproceedings{bariletto2024bayesian,
  author = {Nicola Bariletto and Nhat Ho},
  title = {{Bayesian Nonparametrics Meets Data-Driven Distributionally Robust Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=8CguPoe3TP},
}
Figure