[Paper Review] On Differentiating Parameterized Argmin and Argmax Problems with Application to Bi-level Optimization
The paper derives gradient formulas for parameterized argmin/argmax problems, extends them to constrained cases, and demonstrates use in bi-level optimization contexts with illustrative examples.
Some recent works in machine learning and computer vision involve the solution of a bi-level optimization problem. Here the solution of a parameterized lower-level problem binds variables that appear in the objective of an upper-level problem. The lower-level problem typically appears as an argmin or argmax optimization problem. Many techniques have been proposed to solve bi-level optimization problems, including gradient descent, which is popular with current end-to-end learning approaches. In this technical report we collect some results on differentiating argmin and argmax optimization problems with and without constraints and provide some insightful motivating examples.
Motivation & Objective
- Motivate bi-level optimization where the upper-level objective depends on the solution of a lower-level argmin/argmax problem.
- Provide first-order gradient-based methods to differentiate the lower-level solution with respect to upper-level parameters.
- Extend differentiation results to constrained lower-level problems (equality and inequality constraints).
- Illustrate practical computations with motivating examples including softmax classifiers.
- Discuss invariance properties and practical considerations for gradient-based bi-level learning.
Proposed method
- Present and prove gradient formulas for g(x)=argmin_y f(x,y), yielding dg/dx = -f_YY(x,g(x))^{-1} f_XY(x,g(x)) for scalar x and generalized to vector x (n×n Hessian and cross-derivatives).
- Show extension to argmax with the same derivative form under appropriate conditions.
- Extend results to linear equality constraints, deriving g'(x) = -F(F^T f_Y Y F)^{-1}F^T f_XY for y constrained to Ay=b, and provide alternative Lagrangian-based expressions.
- Develop handling of linear inequality constraints via log-barrier approximations, yielding gradient approximations that incorporate barrier terms.
- Provide a structured set of lemmas (unconstrained, equality-constrained, inequality-constrained) to enable practical gradient computation in bi-level settings.
- Include examples and intuitive explanations to illustrate gradient calculations (mean example, multi-minima example, softmax classifier).
Experimental results
Research questions
- RQ1How can we compute the sensitivity (gradient) of the lower-level argmin/argmax solution with respect to outer-level parameters?
- RQ2How do these gradient formulas extend to constrained lower-level problems (equalities and inequalities)?
- RQ3What practical guidance and examples illustrate applying these derivatives in bi-level optimization and end-to-end learning?
- RQ4Do monotone transformations of the inner objective affect the stationary points and their gradients?
- RQ5How can these results be used in gradient-based bi-level learning, such as optimizing softmax classifiers or hyperparameters?
Key findings
- Derived scalar and vector gradient formulas for parameterized argmin/argmax: dg/dx = -f_YY^{-1} f_XY (for appropriate Hessians).
- Extended differentiation to vector x and multiple parameters with a compact matrix form.
- Provided constrained-case results: with linear equality constraints, g'(x) involves a projection through the null-space of the constraint, and alternative Lagrangian-based expressions.
- Offered inequality-constraint treatment via log-barrier approximations and resulting gradient expressions that converge to unconstrained results as the barrier parameter grows.
- Demonstrated applications to softmax classifier likelihood landscapes, including gradients of the argmax feature vector with respect to model parameters.
- Illustrated invariance of stationary points under monotone transformations of the inner objective.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.