TL;DR
This paper introduces Distributionally-Robust Learning to Optimize (DR-L2O), a framework that uses a Wasserstein ambiguity set to bridge the gap between data-driven hyperparameter tuning and worst-case algorithm design. By adjusting a single robustness radius, DR-L2O learns optimization algorithms (such as step-size schedules) that achieve excellent average-case performance on training data while maintaining certifiable robustness against out-of-distribution shifts.
What Problem Does This Paper Address?
First-order optimization methods (e.g., gradient descent, proximal gradient methods) are the computational workhorses of modern machine learning and signal processing. However, their practical performance depends heavily on hyperparameters like step-size schedules, which are traditionally tuned via tedious, trial-and-error manual effort.
Recently, two automated paradigms have emerged to address this, but both have major drawbacks:
- Learning to Optimize (L2O): Uses machine learning to tune hyperparameters based on a training dataset of problem instances. While highly effective on in-distribution data, L2O lacks theoretical guarantees and can fail catastrophically on unseen or out-of-distribution (OOD) tasks.
- Performance Estimation Problems (PEP): A computer-assisted framework that designs algorithms by optimizing for the absolute worst-case scenario. While robust, PEP is overly pessimistic, leading to conservative algorithms that underperform on typical, non-pathological problem instances.
The authors tackle this gap, introducing a framework that balances empirical data-driven performance with robust theoretical guarantees.
Methods
The authors propose DR-L2O, which minimizes the expected loss over a 1-Wasserstein ambiguity set centered around the empirical data distribution.
- Continuous Interpolation: A single parameter, the Wasserstein radius $\epsilon$, controls the trade-off. When $\epsilon = 0$, the framework reduces to vanilla L2O. As $\epsilon \to \infty$, it recovers the worst-case optimal design of PEP.
- Optimization Loop: To solve this non-convex problem, the authors use Stochastic Gradient Descent (SGD). At each step, an inner Semidefinite Program (SDP) is solved to evaluate the distributionally robust risk. The gradient with respect to the algorithm parameters ($\theta$) is computed by differentiating through the SDP's KKT conditions using implicit differentiation.
- Theoretical Guarantees: The paper provides uniform out-of-sample generalization bounds, proving that the true risk of the learned algorithm is tightly bounded by the empirical risk plus a slack term proportional to the radius.
Datasets
The framework was evaluated on three optimization benchmarks:
- Unconstrained Quadratic Minimization: Synthetic problem instances where matrices are sampled from a Marčenko-Pastur distribution.
- LASSO ($\ell_1$-regularized least squares): Synthetic sparse coding instances where the out-of-distribution shift increases the variance of the sparse signals.
- Total Variation (TV) Image Inpainting: A linear programming problem solved via Primal-Dual Hybrid Gradient (PDHG).
- In-distribution dataset: The Olivetti faces dataset (64x64 grayscale images) with 10% of pixels randomly blacked out.
- Out-of-distribution dataset: Random color images from Tiny ImageNet (converted to RGB triplets), presenting a significant distribution shift.
Key Insights and Ideas
- The Best of Both Worlds: Instead of viewing data-driven learning and worst-case analysis as opposing paradigms, DR-L2O unifies them. The Wasserstein radius acts as a continuous dial between optimism (L2O) and pessimism (PEP).
- Certifiable Robustness: Unlike standard deep learning-based L2O methods that act as black boxes, DR-L2O provides a mathematical certificate of performance. The true risk out-of-sample is guaranteed to be no worse than the worst-case PEP bound.
- Implicit Differentiation as an Enabler: By leveraging modern tools for differentiating through convex optimization layers (
diffcp), the authors turn a performance verification tool into an actionable, end-to-end learning objective.
Key Results
Across all experiments, DR-L2O successfully balanced high performance on training data with robust generalization out-of-sample:
- Out-of-Distribution Superiority: On out-of-distribution test sets, vanilla L2O performance degraded significantly with high variance. DR-L2O consistently dominated both L2O and PEP baselines for higher iteration horizons ($K$).
- Quadratic & LASSO Benchmarks: DR-L2O achieved a much higher fraction of solved problems at tight relative tolerances ($\eta = 0.001$ to $0.1$) under distribution shifts compared to vanilla L2O.
- TV Inpainting: When tested on Tiny ImageNet (OOD), the step-size schedule learned by DR-L2O successfully brought images into focus and removed the unnatural gray hue produced by the overfitted L2O baseline.
Limitations and Future Work
- Scalability Bottleneck: The primary limitation of DR-L2O is computational complexity. Unrolling algorithms for a large number of iterations ($K$) requires solving and differentiating through increasingly large semidefinite programs at every single SGD step.
- Future Directions: The authors suggest mitigating this scalability issue by employing GPU-accelerated first-order conic solvers to handle the inner optimization problems more efficiently.
Summary updated