Online Decision-Focused Learning

Aymeric Capitaine, Maxime Haddouche, Eric Moulines, Michael I. Jordan, Etienne Boursier, Alain Oliviero Durmus

Introduction

In many operational pipelines, machine learning models predict intermediate values (e.g., stock prices, delivery times) that are subsequently fed into downstream optimization problems (e.g., portfolio balancing, route planning). Traditionally, these models are trained via Prediction-Focused Learning (PFL) to maximize predictive accuracy by minimizing metrics like Mean Squared Error.

Decision-Focused Learning (DFL) challenges this paradigm, arguing that models should instead be trained to minimize the cost of the resulting downstream decision. However, transitioning to DFL presents two major hurdles:

  1. The Gradient Wall: The optimization step often involves linear programming over a polytope. Small changes in predictions might not alter the optimal decision, yielding zero gradients, or they might cause the decision to "jump" abruptly, leading to undefined gradients. This non-differentiability breaks standard gradient-based training methods like backpropagation.
  2. The Static Assumption: Most existing DFL research assumes access to a fixed batch of historical data. In reality, data distributions shift and environments evolve sequentially.

This paper introduces the first theoretical framework and practical algorithms for Online DFL, enabling models to learn and adapt sequentially in non-stationary, dynamic environments.

Methodology: Navigating Non-Convexity and Non-Differentiability

To navigate the "jumpy," non-convex landscape of decision-focused losses in an online setting, the authors propose combining two key mathematical techniques:

  • Regularization: To overcome the gradient problem, a "smoothing" term (such as a log-barrier or negative entropy) is added to the decision-making step. This pulls the decision away from the sharp corners of the feasible space and into the interior, making the relationship between the prediction and the action differentiable.
  • Perturbation: To handle the inherent non-convexity—where a model might get trapped in a suboptimal local decision—the authors utilize perturbation. By injecting specific types of random noise during the update step, the model is forced to explore the parameter space effectively.

Building on these techniques, the paper introduces two novel online algorithms:

  1. DF-FTPL (Decision-Focused Follow-the-Perturbed-Leader): Designed to minimize "static regret," ensuring the model performs competitively against the best single fixed strategy in hindsight.
  2. DF-OGD (Decision-Focused Online Gradient Descent): Tailored for "dynamic regret," allowing the model to compete with a strategy that continuously adapts to the changing environment.
Algorithm 1: Decision-Focused Follow The Perturbed Leader (DF-FTPL)

Experimental Setup and Key Insights

The researchers evaluated their algorithms using a Synthetic Knapsack Problem. In this task, a decision-maker must select items to maximize value under specific constraints. Crucially, the item costs are generated by a highly non-linear, non-stationary process (incorporating sine functions and correlated noise). This complexity makes it impossible for a simple linear model to achieve perfect predictive accuracy, forcing the learner to prioritize which errors actually matter for the final knapsack selection.

Key Findings

  • Accuracy Isn't Everything: A fundamental insight of DFL is that a model can exhibit a higher prediction error (MSE) but yield a lower decision cost. DFL trains the model to be "wrong in the right way"—it might mispredict the exact price of an item, but it correctly identifies that the item is too expensive to include in the knapsack.
  • Superior Performance: In the knapsack experiments, both DF-FTPL and DF-OGD significantly outperformed standard PFL and an online version of Smart Predict-then-Optimize (SPO) in terms of cumulative decision cost.
  • Robustness to Misspecification: The DFL algorithms proved particularly effective when the underlying data-generating process was complex. While the PFL benchmark struggled to find a universally "good" average prediction, the DFL algorithms successfully focused on the features that directly influenced the optimal decision.
  • Scalability: The approach remains effective even as the complexity of the decision space (number of items) increases, demonstrating only a mild logarithmic dependence on the dimension of the decision space.

Limitations and Future Work

While this work provides the first sublinear regret bounds for online DFL, it notes a few limitations. The theoretical guarantees rely on an "approximate offline oracle"—assuming access to a subroutine that can find a sufficiently good local minimum. In practice, this is typically approximated using Stochastic Gradient Descent (SGD), leaving a gap between theory and practical implementation.

Future research directions include exploring advanced "expert aggregation" techniques to achieve faster convergence rates (potentially improving from $T^{-1/4}$ to $T^{-1/2}$) and extending the framework to handle non-convex constraints or more complex combinatorial optimization problems beyond general polytopes.

Summary updated

BibTeX
@inproceedings{capitaine2026online,
  author = {Aymeric Capitaine and Maxime Haddouche and Eric Moulines and Michael I. Jordan and Etienne Boursier and Alain Oliviero Durmus},
  title = {{Online Decision-Focused Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=FJhtHBphCt},
}
Figure