DORO: Distributional and Outlier Robust Optimization

Runtian Zhai, Chen Dan, J. Zico Kolter, Pradeep Ravikumar

The Problem: Subpopulation Shift and the Outlier Trap

In many machine learning applications, models suffer from subpopulation shift. This occurs when a model performs well on average but fails significantly on specific minority groups—for example, a facial recognition system that works for the majority but has high error rates for certain demographic subpopulations.

To address this, researchers often turn to Distributionally Robust Optimization (DRO). Instead of minimizing the average loss (Empirical Risk Minimization, or ERM), DRO minimizes the loss on the "worst-case" distribution. Intuitively, DRO forces the model to pay more attention to the examples it gets wrong.

The Catch: Real-world datasets are messy and contain outliers, such as mislabeled images, corrupted data, or extreme anomalies. Because outliers are inherently "hard" for a model to learn, they produce the highest loss. Standard DRO blindly assigns these instances massive weights, causing the model to "overfit" to noise rather than helping the minority groups it was intended to protect. This leads to poor generalization and extreme training instability.

The Solution: Distributional and Outlier Robust Optimization (DORO)

The authors propose DORO, a framework that combines the subpopulation focus of DRO with the resilience of robust statistics.

The Core Idea

DORO modifies the standard DRO objective by introducing an adaptive "filtering" mechanism. It operates on the assumption that a small fraction ($\epsilon$) of the training data consists of unhelpful outliers.

Density plot illustrating how DORO ignores the extreme high-loss outliers compared to standard DRO.

During training, DORO identifies the "hardest" instances (those with the highest loss). While standard DRO would give these instances maximum weight, DORO recognizes them as potential outliers and effectively ignores the top $\epsilon$ fraction of the loss distribution. It focuses its optimization efforts on the "sub-tail"—the legitimate minority samples that are struggling, but aren't outright anomalies.

How It Works

  1. The Math: The authors instantiate DORO for the Cressie-Read family of divergences, which includes popular methods like CVaR and $\chi^2$-DRO. They derive a dual form of the risk function that can be optimized efficiently using standard gradient-based methods.
  2. The Algorithm: In each training batch, the algorithm sorts the losses, finds an optimal threshold to separate potential outliers from the "worst-off" legitimate samples, and updates the model parameters using only the relevant data.

Key Insights and Results

The authors evaluated DORO across three distinct domains: tabular data (COMPAS), vision (CelebA), and NLP (CivilComments-Wilds).

  • DRO's "Aha" Moment: The authors empirically proved that DRO's notorious instability is a direct result of outliers. On a "clean" version of the COMPAS dataset, standard DRO worked beautifully. Adding just a small amount of label noise caused it to collapse.
  • Domain-Oblivious: Crucially, DORO works without needing to know which group a sample belongs to during training. It simply uses the loss values as a proxy for identifying both minority groups and outliers.

DORO consistently outperformed both standard ERM and standard DRO in worst-case accuracy across all datasets:

  • Accuracy Boost: On the CelebA dataset, standard CVaR achieved a worst-case accuracy of 66.44%. CVaR-DORO boosted this to 72.17%.
  • Training Stability: Standard DRO methods are notoriously "jumpy" during training. DORO significantly smoothed the training curves. For example, on CelebA, the standard deviation of test accuracy across epochs dropped from 11.53% (CVaR) to 4.03% (CVaR-DORO).
Worst-case accuracy over epochs showing stable training curves for DORO variants compared to ERM.

Limitations and Future Work

While highly effective, DORO introduces a few new challenges:

  • Hyperparameter Sensitivity: The framework relies on $\epsilon$ (the expected fraction of outliers). While the authors provide heuristics for choosing it, the model's performance remains sensitive to this value.
  • The Model Selection Dilemma: Choosing which epoch's model to save is difficult without knowing group labels on the validation set. Doing this in a truly domain-oblivious way remains an open challenge.
  • Broader Applications: While this paper focused on the Cressie-Read family, the high-level idea of "filtering the tail" could theoretically be applied to other subpopulation shift algorithms like Group DRO or adversarial reweighting.

Summary updated

BibTeX
@inproceedings{zhai2021doro,
  author = {Runtian Zhai and Chen Dan and J. Zico Kolter and Pradeep Ravikumar},
  title = {{DORO: Distributional and Outlier Robust Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=s2s_Uo19so},
}
Figure