Abstract
Decision-Focused Learning (DFL) is an emerging paradigm that trains machine learning models to predict parameters for optimization problems by integrating prediction and optimization tasks end-to-end. While DFL shows promise in aligning training objectives with real-world decision quality, its robustness against adversarial attacks remains largely unexplored. This paper benchmarks eleven DFL methods against two types of adversarial attacks: Prediction-Focused (PF) and Decision-Focused (DF). Our findings suggest that robustness is closely tied to a model's ability to maintain accurate predictions while optimizing decisions. We demonstrate that models highly optimized for decision quality can be paradoxically vulnerable to targeted decision-focused attacks.
Introduction
In many practical applications, machine learning is used to predict parameters—such as travel times or asset returns—that are then used as inputs for optimization solvers. The traditional "Two-Stage" approach minimizes prediction error (e.g., MSE) independently of the downstream task. In contrast, Decision-Focused Learning (DFL) optimizes the model directly for the final decision's "regret" or loss.
Despite the performance gains of DFL, its security properties are a "black box." This study investigates whether the decision-centric nature of DFL introduces unique vulnerabilities. Specifically, we explore how adversarial perturbations to input features can degrade the final decision quality, potentially leading to catastrophic failures in critical systems like shortest-path routing or portfolio management.
Methodology
We evaluate 11 DFL methodologies, including QPTL, SPO+, and DBB, against a Two-Stage baseline across three benchmarks: Warcraft Shortest Path, Portfolio Optimization, and the Knapsack problem. To assess robustness, we adapt the Fast Gradient Sign Method (FGSM) into two variants:
- Prediction-Focused (PF) Attack: Aims to maximize prediction error (MSE).
- Decision-Focused (DF) Attack: Aims to maximize the final decision regret by differentiating through the optimization solver using smoothed surrogates.
Results and Analysis
Our experiments reveal a complex relationship between decision accuracy and robustness. A key finding is the "Robustness Reversal" observed in certain tasks: models that achieved near-optimal decisions under normal conditions were often the most vulnerable to "smart" DF attacks, even if they resisted "dumb" PF attacks. This suggests that DFL models may learn weights that yield correct decisions but are far from ground-truth parameters, making them brittle to small input perturbations.
As shown in Figure 1, the impact of attack magnitude ($\epsilon$) is significant. While small perturbations ($\epsilon = 0.01$) cause noticeable degradation, larger magnitudes ($\epsilon = 0.15$) can cause regret to skyrocket. We also identified that models maintaining low Mean Accuracy Error (MAE) tend to be more resilient. Conversely, models like Maximum A Posteriori (MAP) exhibited extreme sensitivity.
In tasks like Warcraft and Knapsack, QPTL, DBB, and IMLE generally demonstrated the best balance of decision quality and robustness. In contrast, the MAP approach (Figure 6) was frequently the most affected, showing high sensitivity in both prediction and decision domains. Interestingly, all models performed relatively well on the Portfolio task, likely due to the models successfully identifying optimal solutions based on ground truth, resulting in very low prediction error.
Conclusion
This research provides the first comprehensive look at DFL robustness. We conclude that achieving optimality in decision-making does not guarantee security; in fact, it may create "brittle" models if the underlying predictions deviate significantly from ground-truth parameters. Future work should focus on developing specialized adversarial defenses, such as regularizers that enforce "truthful" predictions alongside optimal decisions, to ensure DFL systems are safe for deployment in real-world environments.
Summary updated