Introduction
Standard machine learning relies on Empirical Risk Minimization (ERM), which assumes that test data will perfectly mirror training data. In real-world deployments, this assumption frequently fails due to distribution shifts—for instance, a medical diagnostic model trained on one hospital's patient demographics might underperform when deployed at another.
Distributionally Robust Optimization (DRO) addresses this vulnerability by optimizing for the "worst-case" scenario. Instead of minimizing the average loss, DRO minimizes the maximum loss achievable by adversarially reweighting the training samples. However, solving DRO problems is notoriously difficult. Existing stochastic algorithms often suffer from biased gradient estimates, require tuning multiple sensitive hyperparameters, and struggle with slow convergence.
To overcome these hurdles, researchers introduce Prospect, a novel stochastic algorithm for DRO that achieves linear convergence with only a single tunable hyperparameter: the learning rate. By cleverly combining loss estimation to reduce bias and control variates to reduce variance, Prospect converges 2–3x faster than existing state-of-the-art methods across fairness and distribution shift benchmarks.
The Prospect Algorithm: Reducing Bias and Variance
Prospect is designed to minimize Spectral Risk Measures (SRMs), a broad class of DRO objectives that includes popular metrics like Conditional Value-at-Risk (CVaR). Its effectiveness stems from a two-pronged approach to cleaning up stochastic gradients:
- Bias Reduction via Loss Estimation: Because "worst-case" weights depend on the model's performance across the entire dataset, using a small mini-batch typically leads to biased gradient estimates. Prospect maintains a memory "table" of the most recent losses for every training example. It uses this table to estimate adversarial weights without recalculating everything. As the model converges, the table becomes increasingly accurate, asymptotically eliminating bias.
- Variance Reduction via Control Variates: Inspired by the SAGA optimizer, Prospect uses control variates to keep gradient variance low. This variance reduction allows the algorithm to use a constant learning rate while still achieving linear convergence (meaning the error drops exponentially over time).
Crucially, Prospect only requires the user to tune the learning rate, making it as "plug-and-play" as standard SGD but with the robust guarantees of DRO. Furthermore, the algorithm "decouples" the index used for the gradient update from the index used to update the loss table. This subtle theoretical move simplifies the proof of convergence while remaining highly efficient in practice. Despite maintaining a table of losses and gradients, the memory overhead for common models (like linear models or GLMs) is minimal—$\mathcal{O}(n+d)$ rather than $\mathcal{O}(nd)$.
Key Results and Empirical Performance
The authors evaluated Prospect on a diverse array of benchmarks, including tabular regression (e.g., UCI and OpenML datasets), algorithmic fairness (e.g., ensuring equitable performance across demographic groups in the Adult Census dataset), and distribution shift tasks (e.g., WILDS Amazon Reviews and iWildCam).
- Speed and Convergence: Prospect consistently outperformed baselines like LSVRG and SaddleSAGA. By exploiting the "hidden smoothness" of DRO objectives near the optimum, Prospect reaches high-precision solutions 2–3x faster in terms of passes through the data.
- Stability: In fairness tasks, Prospect demonstrated significantly higher stability. On the
diabetesdataset, it achieved a 40% relative improvement in the stability of fairness metrics compared to other stochastic methods. - Generalization: On the
iWildCambenchmark, Prospect and its variants provided stronger generalization performance, improving median group error by nearly 1 percentage point over standard saddle-point methods.
Limitations and Future Work
While Prospect offers a significant leap forward for DRO, the core theoretical guarantees for linear convergence currently rely on the loss functions being convex. Although the authors demonstrate that Prospect works well on top of frozen neural network features (acting as a "linear probe"), a full theoretical treatment for non-convex deep learning remains an open challenge.
Additionally, while $\mathcal{O}(n)$ memory is efficient for many tasks, scaling to extremely large datasets with millions of samples might require further optimizations to the loss and gradient table storage. Finally, extending these fast convergence properties beyond $f$-divergences to other types of robustness, such as those based on Wasserstein distances, represents a promising direction for future research.
Summary updated