Introduction
Many real-world decision-making tasks follow a "predict-then-optimize" pipeline. For instance, a hedge fund predicts stock returns to optimize a portfolio, or a hospital predicts patient responses to select treatments. Traditionally, these tasks are handled in two stages: first, a predictive model is trained to minimize error (e.g., Mean Squared Error); second, these predictions are fed into an optimizer.
However, standard two-stage approaches often fail because small prediction errors can lead to suboptimal decisions if the optimizer is sensitive to specific values. Decision-Focused Learning (DFL) addresses this by training the predictive model to minimize final "decision regret." Despite its promise, existing DFL methods face significant bottlenecks:
- Model Mismatch: Assumptions of simple distributions (e.g., Gaussian) often fail on complex, multimodal real-world data.
- Sample Average Approximation (SAA) Error: Estimating expected costs via sampling is computationally expensive and noisy.
- Gradient Approximation Error: Relying on KKT conditions for gradients is often unreliable for non-convex problems.
The DF² Framework
The authors propose DF² (Distribution-Free Decision-Focused Learning), a paradigm shift from learning a forecaster to learning the expected cost function directly. Instead of modeling a distribution $p(y|x)$, DF² learns a surrogate function $g(x, a)$ that approximates the expected cost $\mathbb{E}[f(y, a)]$.
Attention-Based Architecture
The core of DF² is an architecture inspired by Conditional Mean Embeddings (CME). It uses an encoder to map features $x$ into a "query" space. A set of learnable "attention points" (keys and values) represents the underlying distribution. The final expected cost is calculated as a weighted combination of costs at these points, effectively mimicking a non-parametric distribution.
Crucially, if the original cost function $f$ is convex with respect to the decision $a$, the learned surrogate $g$ is guaranteed to remain convex, allowing the use of efficient standard solvers during the decision-making phase.
Experimental Evaluation
DF² was evaluated across a mix of synthetic and high-stakes real-world scenarios:
- Synthetic GMM: A 3-component Gaussian Mixture Model to test multimodal handling.
- Wind Power Bidding: Using the TenneT dataset to decide energy bids based on historical wind generation.
- Inventory Optimization: Predicting retail sales to determine replenishment strategies.
- COVID-19 Vaccine Distribution: A non-convex problem using Japan's mobility data and a SEIRV simulator.
Key Results and Insights
- Superior Decision Quality: On synthetic non-convex problems, DF² reduced the "regret gap" by 56.5% compared to the strongest baseline (LODL). In real-world tasks, it consistently improved decision regret by 2.0% to 5.0%.
- Efficiency Gains: DF² is orders of magnitude faster than traditional DFL. In wind power bidding, it achieved better results while being significantly faster (2.17s vs 1878s per epoch).
- Landscape Recovery: As shown in the visualizations, DF² successfully recovers the true expected cost landscape, even for complex, non-convex objectives.
Conclusion
By bypassing the need for explicit probability distributions and KKT-based differentiation, DF² offers a robust and efficient solution for predict-then-optimize problems. It handles multimodal data and non-convex landscapes more effectively than traditional DFL. Future work includes scaling inference for large attention maps and extending the framework to discrete optimization tasks.
Summary updated