You Shall Pass: Dealing with the Zero-Gradient Problem in Predict and Optimize for Convex Optimization
Grigorii Veviurko, Wendelin Böhmer, Mathijs de Weerdt
TL;DR
The paper addresses the zero-gradient problem in predict-and-optimize for convex optimization by showing that active constraints can induce large null spaces in the Jacobian of the optimal solution with respect to parameters. It combines a quadratic-programming inner problem with local smoothing of the feasible set and projection-distance regularization to create a tractable, informative Jacobian that enables effective gradient-based training. The authors prove a zero-gradient theorem, derive a simple diagonal Jacobian for the QP inner problem, and show that local smoothing yields non-decreasing task performance with small updates; empirically, the Smoothed QP method outperforms existing approaches in non-linear cases and matches linear-method performance where appropriate. This approach broadens the applicability of differentiable optimization in P&O and offers a practical, scalable tool for convex problems, including portfolio optimization, with potential extensions to broader convex and bi-level settings.
Abstract
Predict and optimize is an increasingly popular decision-making paradigm that employs machine learning to predict unknown parameters of optimization problems. Instead of minimizing the prediction error of the parameters, it trains predictive models using task performance as a loss function. The key challenge to train such models is the computation of the Jacobian of the solution of the optimization problem with respect to its parameters. For linear problems, this Jacobian is known to be zero or undefined; hence, approximations are usually employed. For non-linear convex problems, however, it is common to use the exact Jacobian. This paper demonstrates that the zero-gradient problem appears in the non-linear case as well -- the Jacobian can have a sizeable null space, thereby causing the training process to get stuck in suboptimal points. Through formal proofs, this paper shows that smoothing the feasible set resolves this problem. Combining this insight with known techniques from the literature, such as quadratic programming approximation and projection distance regularization, a novel method to approximate the Jacobian is derived. In simulation experiments, the proposed method increases the performance in the non-linear case and at least matches the existing state-of-the-art methods for linear problems.
