Distributionally Robust Logistic Regression

Soroosh Shafieezadeh-Abadeh, Peyman Mohajerin Esfahani, Daniel Kuhn

TL;DR

This paper introduces a distributionally robust framework for logistic regression that minimizes the worst-case expected loss over a "ball" of possible distributions defined by the Wasserstein distance. The authors prove this approach is computationally tractable and provides a deep, principled justification for standard regularization techniques while offering superior out-of-sample performance guarantees.

What Problem Does This Paper Address?

Logistic regression is a workhorse of machine learning, but it has a well-known Achilles' heel: overfitting. When training data is sparse or noisy, the model "memorizes" the specific samples rather than learning the underlying patterns, leading to poor performance on new, unseen data.

To combat this, practitioners typically use ad hoc regularization (like $L_1$ or $L_2$ penalties). While these work well in practice, their probabilistic interpretation is often hand-wavy. This paper addresses the need for a more rigorous foundation for regularization by viewing it through the lens of Distributionally Robust Optimization (DRO). Instead of assuming the training data perfectly represents the world, the authors ask: "How would this model perform if the true data distribution were slightly different from what I observed?"

Methods

The core of the paper is the use of the Wasserstein distance to define an "ambiguity set."

  1. Wasserstein Ambiguity Sets: The authors construct a ball in the space of probability distributions, centered at the empirical distribution (the training data). The radius of this ball ($\epsilon$) represents the level of uncertainty.
  2. The Minimax Objective: They formulate a "distributionally robust" problem: find the model parameters $\beta$ that minimize the worst-case expected logloss across all distributions within that Wasserstein ball.
  3. Tractable Reformulation: Usually, "worst-case over all possible distributions" is an infinite-dimensional nightmare to solve. However, the authors prove that this problem can be reformulated as a finite-dimensional, tractable convex optimization program.
  4. Feature-Label Metric: They introduce a specific metric that accounts for both feature mismatch (noise in the data) and label uncertainty (the possibility that a training label is wrong).

Datasets

The authors validated their model using a mix of synthetic and real-world benchmarks:

  • Simulated Data: High-dimensional features following a multivariate normal distribution.
  • MNIST: The classic handwritten digit dataset (specifically binary classification tasks like 1 vs 7).
  • UCI Machine Learning Repository: Three popular datasets: Ionosphere, Thoracic Surgery, and Breast Cancer.

Key Insights and Ideas

  • Regularization is Robustness: The paper shows that standard regularized logistic regression is actually a special case of their robust model where you assume the labels in your training set are 100% correct.
  • The Meaning of $\epsilon$: In standard models, the regularization parameter is just a number you tune. In this framework, $\epsilon$ has a physical meaning: it is the radius of the Wasserstein ball, representing the maximum "distance" the true distribution can be from your training samples.
Effect of Wasserstein radius epsilon on reliability and classification rate.
  • Handling Label Noise: Unlike standard $L_1/L_2$ regularization, this model explicitly accounts for label uncertainty. This leads to a "complementary regularization term" that specifically mitigates the impact of mislabeled training data.
  • Reliability over Averages: The robust approach doesn't just aim for better average accuracy; it focuses on reducing "tail risk." It ensures the model doesn't fail catastrophically on difficult, out-of-distribution samples.

Key Results

  • Superior Accuracy: On the Ionosphere dataset, the Distributionally Robust Logistic Regression (DRLR) model achieved 87.0% accuracy, compared to 86.1% for standard regularized regression and 84.8% for classical logistic regression.
  • Dramatic Risk Reduction: The most striking results were in the Conditional Value-at-Risk (CVaR), which measures the worst-case losses. On the Breast Cancer dataset, DRLR reduced the CVaR from 20.3 (classical) and 1.3 (regularized) down to 0.9.
CVaR and CDF of logloss demonstrating tail risk reduction.
  • Confidence Bounds: The authors developed a method to provide 95% confidence intervals for the true misclassification risk, a feature missing from standard logistic regression implementations.

Limitations and Future Work

  • Light-Tail Assumption: The theoretical out-of-sample guarantees rely on the assumption that the underlying data distribution is "light-tailed" (e.g., Gaussian or exponential). The performance on extremely heavy-tailed data (like financial "black swan" events) is not explicitly guaranteed.
  • Computational Overhead: While the authors proved the model is "tractable," solving the reformulated convex program is still more computationally intensive than standard logistic regression, which might be a factor for massive-scale datasets.
  • Parameter Selection: While the paper provides a theoretical way to choose the ball radius $\epsilon$, in practice, it still often requires cross-validation, similar to standard regularization.

Summary updated

BibTeX
@inproceedings{shafieezadehabadeh2015distributionally,
  author = {Soroosh Shafieezadeh-Abadeh and Peyman Mohajerin Esfahani and Daniel Kuhn},
  title = {{Distributionally Robust Logistic Regression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
  url = {https://openreview.net/forum?id=GjMum4Cm7f},
}
Figure