Decision-Focused On-Policy Learning for Contextual Linear Optimization with Partial Feedback
About
Decision-focused learning (DFL) trains predictive models by optimizing downstream decision quality rather than standalone prediction accuracy. For contextual linear optimization, most existing DFL methods assume offline data and full observations of the objective cost vector. We develop an on-policy learning method for sequential contextual linear optimization under partial feedback, generalizing the standard bandit feedback setting. Our method learns a stochastic predict-then-optimize policy that samples a cost-vector prediction from a conditional distribution and solves the resulting downstream linear optimization problem. To update this distributional model, we introduce a two-component hybrid gradient estimator. The first component is a score function estimator, which provides an unbiased but potentially high-variance policy gradient estimate. The second is a decision-focused plug-in component that uses an auxiliary nuisance estimate of the latent cost vector to exploit the downstream optimization structure, becoming more informative as the estimate improves. We prove an $\mathcal{O}(T^{-1/2})$ bound on the average squared policy-gradient norm, matching the standard non-convex SGD rate. Experiments on top-$k$ selection, shortest path, combinatorial pricing, and a real-data energy-scheduling benchmark show that the hybrid gradient approach achieves lower cumulative regret than contextual-bandit-style baselines across all benchmarks, using both Gaussian and richer conditional generative models. Code is available at https://github.com/Joeyetinghan/on-policy-bandit-dfl.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Energy Scheduling | Energy scheduling | Final Cumulative Regret1.6 | 13 | |
| Pricing | Pricing synthetic degree-8 Gaussian linear | Final Cumulative Regret2.98 | 8 | |
| Shortest Path Finding | Shortest path synthetic degree-8 Gaussian linear | Final Cumulative Regret1.5 | 8 | |
| Top-K Selection | Top-k synthetic degree-8 Gaussian linear | Final Cumulative Regret1.68 | 8 | |
| Shortest Path | Shortest path | Final Cumulative Regret5.31 | 5 | |
| Pricing | Pricing | Cumulative Regret7.3 | 5 | |
| Top-K Selection | Top-k selection | Final Cumulative Regret6.65 | 5 |