Decision-Focused Learning with Directional Gradients

Michael Huang, Vishal Gupta

In many real-world applications, machine learning models are used to predict a parameter (like travel time or stock returns) that is subsequently plugged into an optimization problem (like finding the shortest path or balancing a portfolio). This is known as the predict-then-optimize framework.

The gold standard for this pipeline is "Decision-Focused Learning" (DFL), where the prediction model is trained to minimize the downstream decision error rather than a standard prediction error like Mean Squared Error. However, DFL faces two major hurdles:

  1. Non-Differentiability: The mapping from a prediction to an optimal decision is often a step function. Its gradient is zero almost everywhere, making standard gradient descent impossible.
  2. Model Misspecification: Most existing DFL surrogates (like the popular SPO+ loss) assume the model class is "well-specified"—meaning the true relationship actually exists within the chosen model family. In reality, we often use simple, interpretable models (like linear regression) to approximate complex, non-linear truths. When models are "wrong" in this way, existing DFL methods can fail to improve or even perform worse than simple "decision-blind" methods.

To address these challenges, this paper introduces Perturbation Gradient (PG) losses, a new family of differentiable surrogate losses that are theoretically guaranteed to converge to the best-in-class policy as more data arrives—even when the underlying model is misspecified.

Bridging the Gap with Perturbation Gradients

The authors propose PG losses to bridge the gap between the discontinuous decision loss and a smooth, optimizable surrogate.

The core idea leverages Danskin’s Theorem to connect the downstream decision loss to the directional derivative of the optimization's objective function. Because the true derivative is difficult to compute, the authors approximate it using finite difference techniques, focusing on two primary versions:

  • PGB (Backward Differencing): A "pessimistic" upper bound on the true loss.
  • PGC (Central Differencing): A more balanced approximation that often yields higher accuracy in practice.

Crucially, these surrogates are Lipschitz continuous and can be expressed as the difference of concave functions. This allows them to be optimized "out-of-the-box" using standard first-order methods like ADAM.

Key Insights and Results

The authors evaluated their approach across three distinct settings: a synthetic 1D misspecification problem, a shortest path grid graph, and a real-world portfolio optimization task using Fama-French datasets.

Asymptotic Consistency in the Wild

The most significant breakthrough of PG losses is the proof that they have a vanishing approximation error as the sample size ($n$) grows. This holds true even in misspecified settings—a first for any differentiable DFL surrogate.

Normalized excess regret of PGB compared to baselines as training size increases.

In synthetic experiments where the true relationship is a piecewise linear "elbow" function but the learner is restricted to a simple linear model, baselines like SPO+ and ETO (decision-blind) plateaued at roughly 40% excess regret. In contrast, the PG losses' regret continued to vanish toward zero as more data was added.

Robustness to Asymmetric Noise

Existing methods like SPO+ often require "centrally symmetric" noise to function properly. Real-world data, however, is rarely so accommodating. PG losses demonstrate substantial robustness to asymmetric noise.

Performance of PG losses versus baselines across varying levels of noise asymmetry.

As the level of noise asymmetry increases, the performance of traditional methods degrades significantly. PGB and PGC, however, maintain low normalized excess regret, proving their reliability in less ideal, noisier environments.

Real-World Utility and Pessimism

Interestingly, the authors found that the "pessimistic" nature of the PGB loss (which overestimates the loss) actually helps the model learn better policies compared to "optimistic" surrogates that might get stuck in poor local minima.

In the "harder" shortest path task (featuring planted safe and risky paths), PG losses significantly outperformed all benchmarks, including the state-of-the-art Fenchel-Young Loss (FYL). Furthermore, in the notoriously noisy portfolio optimization task, both PGB and PGC provided substantively lower regret than traditional two-stage or other decision-aware approaches.

Limitations and Future Work

While PG losses represent a significant step forward for decision-focused learning, some challenges remain:

  • Computational Complexity: Although PG losses are differentiable and ADAM works well in practice, the underlying problem remains non-convex and is NP-Hard in the worst case.
  • Hyperparameter Tuning: The method introduces a perturbation parameter $h$ that controls a bias-computational complexity tradeoff. Larger $h$ values make the loss surface smoother, but a principled way to select $h$ automatically would be beneficial.
  • Zeroth-Order Selection: The paper explores backward and central differencing, but identifying the "optimal" zeroth-order approximation for specific optimization structures remains an open question.

Summary updated

BibTeX
@inproceedings{huang2024decision,
  author = {Michael Huang and Vishal Gupta},
  title = {{Decision-Focused Learning with Directional Gradients}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=g8kFlZDcaX},
}
Figure