Abstract
We study an online contextual decision-making problem with resource constraints. At each time period, the decision-maker first predicts a reward vector and resource consumption matrix based on a given context vector and then solves a downstream optimization problem to make a decision. The final goal of the decision-maker is to maximize the summation of the reward and the utility from resource consumption, while satisfying the resource constraints. We propose an algorithm that mixes a prediction step based on the "Smart Predict-then-Optimize (SPO)" method with a dual update step based on mirror descent. We prove regret bounds and demonstrate that the overall convergence rate of our method depends on the $O(T^{-1/2})$ convergence of online mirror descent as well as risk bounds of the surrogate loss function used to learn the prediction model. Our algorithm and regret bounds apply to a general convex feasible region for the resource constraints, including both hard and soft resource constraint cases, and they apply to a wide class of prediction models in contrast to the traditional settings of linear contextual models or finite policy spaces. We also conduct numerical experiments to empirically demonstrate the strength of our proposed SPO-type methods, as compared to traditional prediction-error-only methods, on multi-dimensional knapsack and longest path instances.
Introduction
In many real-world scenarios—such as online advertisement bidding, supply chain management, or network revenue management—decisions must be made sequentially under uncertainty. A decision-maker typically observes a "context" (e.g., user demographics or historical data), predicts the outcome (such as the expected reward and resource consumption), and then solves an optimization problem to select an action.
The traditional paradigm for this is "Predict-then-Optimize": first, train a model to minimize prediction error (e.g., Mean Squared Error), then plug those predictions into an optimizer. However, this decoupled approach has a significant flaw: small prediction errors can lead to massive suboptimality in the final decision if the error occurs on a "critical" dimension of the optimization problem. Furthermore, in online settings, decisions consume limited resources, creating a complex trade-off between immediate gains and future resource availability. This research aims to bridge the gap between decision-focused learning and online resource-constrained optimization.
Methodology
The core of the proposed approach is a "meta-procedure" that integrates three key components: Smart Predict-then-Optimize (SPO) loss, Online Mirror Descent (OMD), and a primal-dual integration step.
Smart Predict-then-Optimize (SPO) Loss
Instead of standard $L_2$ loss, the framework utilizes the SPO+ surrogate loss function. This loss is specifically designed to be convex and to penalize predictions based on the "regret" they cause in the downstream optimization task. By focusing on the decision outcome rather than just the prediction accuracy, the model learns to be accurate where it matters most for the optimizer.
Online Mirror Descent (OMD)
To handle resource constraints over time, the algorithm maintains "dual variables" (essentially shadow prices for resources). These variables are updated at each step using OMD, helping the decision-maker balance current rewards against the potential cost of resource depletion in the future.
Primal-Dual Integration
At each time step $t$, the algorithm follows a structured sequence of observation, prediction, decision, and update.
As shown in Algorithm 1, the decision-maker observes context $x_t$, predicts rewards and costs using the current model $g_t$, and solves a linear optimization problem adjusted by the current dual variables. After observing the true outcome, both the dual variables and the prediction model are updated. The paper provides a rigorous theoretical analysis, proving that the total regret—the difference between the algorithm's performance and the best possible static policy in hindsight—converges at a rate of $O(T^{-1/2})$, determined by both the OMD step and the statistical risk bounds of the SPO loss.
Experimental Evaluation
The researchers evaluated their method using synthetic datasets designed to simulate complex, non-linear relationships between context and outcomes across two primary problem types:
- Multi-dimensional Knapsack Problem: A classic resource allocation task where the decision-maker chooses a subset of items to maximize reward without exceeding multiple resource capacities.
- Longest Path Problem: Conducted on a $4 \times 4$ directed grid network, representing routing problems where certain "edges" (resources) have soft usage constraints.
The data generation involved using polynomial kernels (degree 6) to create non-linear mappings from features to rewards and costs, making the prediction task challenging for simple linear models and highlighting the need for robust learning methods.
Key Insights and Results
The study yielded several critical insights into the performance of decision-aware learning:
- Optimization-Aware Learning: The core finding is that the prediction model does not need to be perfect everywhere; it just needs to be accurate enough to lead to the correct optimization decision. The SPO+ loss effectively focuses the model's "attention" on these critical decision boundaries.
- Dual Variables as Information Bridges: The dual variables effectively translate long-term resource constraints into immediate "penalties" in the objective function. This allows the online algorithm to behave as if it has a sense of the future budget.
- Superiority of SPO+: In experiments, the SPO+ loss consistently outperformed standard $L_2$ (least squares) prediction error methods. It achieved significantly lower "relative regret," staying much closer to the performance of an "Oracle" model that knows the true underlying distributions.
- Neural Network Synergy: When using a two-layer neural network as the predictor, the SPO+ method showed even greater gains over traditional methods, especially in noisy environments, demonstrating its compatibility with modern deep learning architectures.
Conclusion and Future Work
This framework successfully bridges online optimization theory with statistical learning theory, providing a unified regret bound that accounts for both drifting dual variables and the learning curve of the prediction model. Unlike previous works limited to linear models, this approach applies to a wide class of hypothesis functions and general convex feasible regions.
However, several areas for future research remain. The current algorithm assumes "full feedback," where the decision-maker learns the true reward and cost vectors for all possible choices after a decision is made. Extending this to the "bandit" setting, where only the outcome of the chosen action is observed, is a key challenge. Additionally, while the authors suggest a "sublinear update" variant, the computational cost of updating the prediction model at every step remains a consideration for real-time systems. Finally, extending the model to non-stationary or adversarial environments where the underlying distributions change over time would further enhance its real-world applicability.
Summary updated