End-to-end Conditional Robust Optimization

Abhilash Reddy Chenreddy, Erick Delage

Abstract

Traditional "Estimate Then Optimize" (ETO) approaches for decision-making under uncertainty often suffer from misaligned objectives and poor conditional coverage. This paper proposes a novel end-to-end framework for Conditional Robust Optimization (CRO) that treats uncertainty set construction as a differentiable component of a neural network. By utilizing implicit differentiation and a dual task-based loss, the proposed method produces decisions that optimize downstream task performance while maintaining high-quality conditional coverage, ensuring safety across diverse contexts.

Introduction

In many real-world applications, decisions are made under uncertainty based on available context—for instance, selecting a stock portfolio based on current market indicators. The standard paradigm, Estimate Then Optimize (ETO), involves a two-step process: first, estimating uncertain parameters (e.g., future returns) using statistical models, and second, solving an optimization problem based on these estimates.

However, ETO faces two significant challenges. First is misalignment: the estimation step typically minimizes a generic statistical error, such as Mean Squared Error, which may not align with the ultimate decision goal, such as maximizing profit. Second is the coverage gap: standard conformal prediction methods provide marginal coverage guarantees (e.g., the uncertainty set contains the truth 90% of the time on average), but may fail significantly in specific, high-stakes contexts. This work addresses these issues by seeking conditional coverage, ensuring reliability for every specific context.

Methodology

The authors propose an end-to-end learning pipeline where a neural network learns to output the parameters of an ellipsoidal uncertainty set $\mathcal{U}(\theta)$. The framework integrates the optimization step directly into the training loop.

Task-based and Dual Task-based Sets

Two primary algorithms are introduced:

  1. Task-based Set (TbS): This model is trained to minimize the downstream "task loss" (the actual cost of the decision). It employs implicit differentiation through the Karush-Kuhn-Tucker (KKT) conditions of the optimization problem, allowing gradients from the final cost to update the uncertainty set's geometry.
  2. Dual Task-based Set (DTbS): To prevent the model from excessively shrinking uncertainty sets to maximize performance at the cost of safety, DTbS adds a second loss term. A differentiable logistic regression layer estimates the probability that the true value falls within the predicted set, penalizing deviations from a target conditional coverage level.

Computational Efficiency

To ensure scalability, the authors utilize Fenchel duality to transform complex min-max robust problems into simpler minimization problems. Furthermore, they employ a Trust Region (TRO) solver that supports "warm-starting" between training epochs, significantly accelerating convergence compared to standard methods.

Experimental Evaluation

The approach was evaluated on both synthetic and real-world datasets.

  • Synthetic Data: Using a mixture of four-dimensional multivariate normal distributions, the researchers measured ground-truth conditional coverage. DTbS achieved a marginal coverage of 92% (near the 90% target), while the pure TbS approach collapsed to 23%, highlighting the importance of the dual loss.
  • US Stock Market Data: On historical data for 70 stocks (2012–2020), the framework was applied to robust portfolio optimization. DTbS consistently outperformed ETO methods in terms of Conditional Value at Risk (CVaR), delivering higher returns with lower tail-end risk while maintaining target coverage levels.

Discussion and Conclusion

The paper successfully bridges deep learning and robust optimization by demonstrating that the geometry of uncertainty sets—their orientation and scale—is crucial for effective decision-making. While TbS offers the highest performance, DTbS provides a necessary balance by ensuring safety through conditional coverage.

Future work may address the computational overhead of implicit differentiation and the limitations of ellipsoidal uncertainty sets, which cannot capture highly non-convex regions. Additionally, integrating formal conditional conformal prediction guarantees remains a promising research direction.

Summary updated

Abstract

The field of Contextual Optimization (CO) integrates machine learning and optimization to solve decision making problems under uncertainty. Recently, a risk sensitive variant of CO, known as Conditional Robust Optimization (CRO), combines uncertainty quantification with robust optimization in order to promote safety and reliability in high stake applications. Exploiting modern differentiable optimization methods, we propose a novel end-to-end approach to train a CRO model in a way that accounts for both the empirical risk of the prescribed decisions and the quality of conditional coverage of the contextual uncertainty set that supports them. While guarantees of success for the latter objective are impossible to obtain from the point of view of conformal prediction theory, high quality conditional coverage is achieved empirically by ingeniously employing a logistic regression differentiable layer within the calculation of coverage quality in our training loss.We show that the proposed training algorithms produce decisions that outperform the traditional estimate then optimize approaches.
BibTeX
@inproceedings{chenreddy2024end,
  author = {Abhilash Reddy Chenreddy and Erick Delage},
  title = {{End-to-end Conditional Robust Optimization}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=Oe9ngGi8Gh},
}
Figure