First-Order Methods for Linearly Constrained Bilevel Optimization

Algorithms for bilevel optimization often encounter Hessian computations, which are prohibitive in high dimensions. While recent works offer first-order methods for unconstrained bilevel problems, the constrained setting remains relatively underexplored. We present first-order linearly constrained optimization methods with finite-time hypergradient stationarity guarantees. For linear equality constraints, we attain $\epsilon$-stationarity in $\widetilde{O}(\epsilon^{-2})$ gradient oracle calls, which is nearly-optimal. For linear inequality constraints, we attain $(\delta,\epsilon)$-Goldstein stationarity in $\widetilde{O}(d{\delta^{-1} \epsilon^{-3}})$ gradient oracle calls, where $d$ is the upper-level dimension. Finally, we obtain for the linear inequality setting dimension-free rates of $\widetilde{O}({\delta^{-1} \epsilon^{-4}})$ oracle complexity under the additional assumption of oracle access to the optimal dual variable. Along the way, we develop new nonsmooth nonconvex optimization methods with inexact oracles. We verify these guarantees with preliminary numerical experiments.

Paper

References (97)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer c7kZ6/10 · confidence 4/52024-06-29

Summary

This paper studies fully first-order methods for bilevel optimization with strongly convex lower-level objectives and linear lower-level constraints, including both inequality constraints and equality constraints. For linear inequality constraints, the paper used a penalty methods to construct hypergradient estimators and demonstrate the approximation error. Then combined with a gradient method for nonsmooth nonconvex optimization to obtain a Goldstein stationarity point. While for linear inequality constraints, the paper proposed to use zeroth-order approximation of the hyper-gradient and demonstrate complexity.

Strengths

1. The paper considered both linear inequality and equality constraints. 2. The hypergradient construction in the linear inequality constraint setting is interesting and the paper provides approximation guarantees. It would be useful for follow-up papers. 3. Obviously, the complexity bounds are not yet optimal. But the paper has contributed several interesting directions that worth further exploration. 3. Algorithm 5 uses zeroth-order oracle is very smart as in many bilevel problems, the dimension of the upper-level is small such as hyperparameter optimization. 3. The finite-difference gradient proxy for the linear equality constrained case is also interesting.

Weaknesses

1. How to solve linear inequality constrained case with simple gradient methods to achieve optimal complexity bounds still remain unknown. The current algorithm is a bit complicated and hard to tune in practice. 2. It is unclear if the complexity bounds are optimal for both linearly inequality and equality constrained settings. Following the conventional notation for stationarity such that $||\nabla F(x)||\leq \epsilon^2$, the complexity bound for Alg 1 is $O(\epsilon^{-8})$, for Alg 2 is $O(\epsilon^{-10})$ if further taking into account the complexity to get $tilde \nabla F$, and for Alg 3 is $O(\epsilon^{-4})$. Note that the paper consider deterministic bilevel optimization, it implies that there are a lot of room for improvements. The paper should mention comparison to unconstrained lower-level bilevel optimization so that readers know the results can be improved. Despite the complexity bounds, I still believe that this paper makes good contribution to the community of bilevel optimization. 3. The methods proposed in the paper are not aligning with each other well. Despite the constrained lower-level bilevel optimization setting, the paper lacks a coherent narrative in terms of algorithmic design.

Questions

1. In the Alg 3 perturbed GD, what is the intuition to use perturbed GD instead of just inexact GD $\tilde \nabla F(x_t)$. In other words, why one needs to perturb using samples from sphere distribution? 2. In Sec 3, although the problem is nonsmooth and nonconvex, given Thm 3.3, I would assume that the $\nabla F(x)$ exists but it is not Lipschitz continuous? 3. Please be specific about Lipschitz, i.e., does it mean Lipschitz continuous or Lipschitz smooth. 4. What is the reason to consider zeroth-order methods in the linear equality constrained setting? Is it possible to derive fully first-order gradient estimator for the linear equality constrained setting? If possible, why not do it? 5. In Sec 3.1, assuming knowing $\lambda^*$ means that one also knows $y^*$ and $g^*$. 6. The definition of complexity is not very clear. In line 229, it says solving a single smooth and strongly convex optimization problems amounts to $\tilde O(1)$ oracle calls. But line 226 implies that one of such oracle call requires $\epsilon^{-1}$ gradient evaluations. Then in line 322, the complexity seems to become $O(log(1/\epsilon))$. Please specify how expensive to obtain $y^*$ and $\lambda^*$ in an $\epsilon$ error and clean oracle calls and complexity bounds in a consistent manner. 7. What is the motivation of (5.3) the perturbed lower-level problem? 8. Alg 1 requires computing $y^*_{\lambda^*,\alpha}$, this requires either $f$ to be convex in $y$ or requires $\alpha$ to be large enough to ensure $\mathcal{L}$ is convex in $y$. Please specify explicitly the requirements. Is $\mathcal{L}$ strongly convex in $y$? I am happy to raise the score if these issues are well-addressed.

Rating

6

Confidence

4

Soundness

3

Presentation

2

Contribution

4

Limitations

The paper includes several settings. Yet why adapting a specific strategy to solve each setting is not sufficiently motivated. Such as why one needs to use Alg 2 and Alg 3 instead of directly using the hypergradient estimator with gradient descent. Why one needs to use zeroth-order oracle for the linearly equality constrained setting instead of first-order oracle?

Authorsrebuttal2024-08-09

Replying to further discussions

We greatly appreciate the prompt response from the reviewer and clarify our point about optimality below. --- 1. ## Optimality in the equality setting The work of [1] showed the optimal oracle complexity (in the deterministic setting) to be $O(\epsilon^{-2})$ for unconstrained bilevel programs; our result matches this under the more complicated setting with equality constraints. More specifically, for our bilevel problem with equality constraints, the upper level objective function is smooth and possibly non-convex, so it covers the more traditional *single-level deterministic smooth non-convex* optimization as a special case. Under this setting, it has been shown in [2] that the number of oracle evaluations required to find an $\epsilon$-stationary point (i.e., a point $x$ satisfying $\|\nabla f(x)\|\leq \epsilon$) is lower bounded by $O(\epsilon^{-2})$. Thus, the $O(\epsilon^{-2})$ oracle complexity we achieved is unimprovable. This point was also recently stated in the work of [3]. We will clarify this point better in the paper. Thank you again for your feedback, and please let us know if we can answer any further questions! --- # References [1] Chen, L., Ma, Y., & Zhang, J. (2023). Near-optimal fully first-order algorithms for finding stationary points in bilevel optimization. arXiv preprint arXiv:2306.14853. [2] Carmon, Y., Duchi, J. C., Hinder, O., & Sidford, A. (2020). Lower bounds for finding stationary points I. Mathematical Programming, 184(1), 71-120. [3] Kwon, J., Kwon, D., & Lyu, H. On The Complexity of First-Order Methods in Stochastic Bilevel Optimization. In Forty-first International Conference on Machine Learning.

Reviewer c7kZ2024-08-13

Thank you for the clarification. Just to be sure, [3] studied the stochastic case and their complexity bound is $O(\epsilon^{-4})$ with a corresponding lower bounds for stochastic cases.

Authorsrebuttal2024-08-13

Thank you!

We want to again thank the reviewer for their insightful review and great questions. We hope we have satisfactorily answered them. We would like to respectfully ask if, per their original message, the reviewer would consider increasing their score? Thanks again!

Reviewer c7kZ2024-08-13

The responses addressed my concerns. Please consider improve the presentation for the final version based on the discussions. I raise my score from 5 to 6.

Reviewer GkWW6/10 · confidence 3/52024-07-03

Summary

This works deals with constrained bilevel optimization problems where the lower-level has linear inequality or equality constraints. A set of algorithms is developed that does not require access to the Hessian, but only to zeroth and first-order information. In the case of inequality constraints, convergence is established to an $(\delta,\epsilon)$-Goldstein stationary point, due to the non-smoothness of the problem, using $O(\delta^{-1}\epsilon^{-4})$ or $O(d\delta^{-1}\epsilon^{-3})$ oracle calls (d: dimension of the upper-level).For equality-constrained problems, the convergence rate is nearly optimal with a rate $O(\epsilon^{-2})$.

Strengths

* This work makes progress in the topic of constrained (in the lower-level) bilevel problems, which is a challenging class of problems, much more difficult than unconstrained problems. * The development of first-order algorithms for bilevel problems with linear constraints in the lower-level. On the contrary, typically implicit gradient methods for (unconstrained or constrained) bilevel problems require access to the Hessian. In addition, for the case of inequality constraints there are no assumptions involving second-order derivatives. * The design of algorithms that deal with the non-differentiability of the hyperobjective F. * Some of the proposed algorithms (e.g., Algorithm 3) appears to be simple and easy to implement.

Weaknesses

* A major weakness of this work is the small number of experiments. There is only a single example bilevel problem over which experiments are performed. In addition, there are no experiments on real applications (e.g., in machine learning). * In the experiments section the proposed method is compared only with a single baseline, which does not correspond to any published bilevel method. Why aren’t there any comparisons with other bilevel algorithms that deal with constrained bilevel problems? There are both value function and implicit gradient methods that can, at least in theory, deal with the example problem used here, e.g. [37,38]. * The algorithms require access to exact solutions of certain problems, such as $y^{\ast}(x)$ of the lower-level or $y_{\lambda^{\ast},\alpha}^{\ast}(x)$ of problem (3.6). This is not the case in practice.

Questions

* In the gradient of the penalty function (3.5.), there is the term $\nabla_x g^{\ast}(x)$. How do you compute this gradient given that $g^{\ast}(x)$ is a min function? The authors should explain this. * The authors should explain in more detail Algorithm 2. It is not clear what the utility of each step is. * The authors derive the equations for the gradient of $F$ and $y^{\ast}(x)$ (eq. 3.3). However, as they note in section 1.1, the hyperfunction $F$ is non-smooth. Then, how can we derive a formula for the gradient of $y^{\ast}(x)$? How do we determine if a given point is differentiable? * Perhaps the least common assumption in literature is Assumption 2.3. The authors should justify whether this assumption is easy to be satisfied. For instance, is it typically the case that the dual solution is bounded? How about the Lipschitz property of $y^{\ast}(x)$? Are there other relevant (bilevel) works that use the same or similar assumption? * How does the cvxpyLayer baseline work? This is not explained clearly in the text, besides a minor reference in the Appendix. As this is the only baseline currently used, I believe that some more details are required.

Rating

6

Confidence

3

Soundness

4

Presentation

4

Contribution

4

Limitations

* See weaknesses above. * The authors discuss limitations of their work in section 7. * No negative societal impact

Reviewer pjir7/10 · confidence 3/52024-07-09

Summary

The paper provides algorithms for bilevel optimization with linear equality and inequality constraints. The main contribution is that the algorithms are fully first order and do not require Hessian computations. This is achieved by reformulating the linearly constrained bilevel optimization problem using the penalty method and assuming access to the upper-level variable $x$ and approximate dual optimal solution. In this setting an inexact gradient oracle for the problem is constructed. The authors provide stationarity guarantees for their algorithms under certain standard assumptions. They also describe how to use their inexact gradient oracle for non-convex non smooth optimization. The algorithms and theoretical results are backed by small set of proof-of-concept experiments.

Strengths

1) Typically, hessian inverse computation is quite expensive and hence coming up with a fully first order method with guarantees for an optimization problem has both good theoretical and practical significance. The paper will be of interest to the community. 2) The paper is written very nicely. There is a lot of clarity regarding the related works, notations, main contributions and techniques. Proof sketches are also provided for some results in the main paper. Though the paper is heavy on technical material, the organization makes it somewhat easier for the reader to follow the arguments. I am not exactly from the same research area but could follow most of the paper. 3) I could not check all the proofs in details, but the main claims of the paper appear correct. 4) Nonconvex non smooth optimization is encountered in many ML problems these days. The applicability of the inexact gradient oracle to these problems with guarantees may be of practical significance.

Weaknesses

1) There are no experiments highlighting the effectiveness of Algorithm 2. 2) The experiments given here are also only of a proof -of -concept nature and are not comprehensive. Some more comparisons with existing algorithms (based on time) and ablation studies may provide more insights regarding the practical applicability of the methods.

Questions

There is a lot of literature available on approximating Hessian computations faster for 2nd order methods (for example using iterative sketching etc.) though not necessarily for bilevel optimization. I would appreciate it if you can comment on such methods when compared to yours in terms of practicality.

Rating

7

Confidence

3

Soundness

3

Presentation

4

Contribution

3

Limitations

Yes, the limitations have been clarified in the paper.

Reviewer wH2u6/10 · confidence 2/52024-07-12

Summary

This paper studies the linearly constrained bilevel optimization problem and provides a fully first-order method with solid theoretical analysis. To approximate hypergradient, the penalty method seems novel to me and it is applied in two settings where the LL problem is linear inequality or equality constraints.

Strengths

1. The presentation is pretty good and I feel easy to follow. 2. Theoretical analysis is solid and rigorous. 3. Code is provided.

Weaknesses

1. The experiment does not seem sufficient. 2. The checklist should be behind the appendix as I memorize.

Questions

1. Could the authors explain the design of Algorithm 2? Why is there a clip? 2. Why do authors not include the experiment of Algorithm 4? 3. Could authors compare the method in [a] though it studies the unconstrained bilevel optimization problem? [a] Yang Y, Xiao P, Ji K. Achieving ${O}(\epsilon^{-1.5}) $ Complexity in Hessian/Jacobian-free Stochastic Bilevel Optimization.

Rating

6

Confidence

2

Soundness

3

Presentation

3

Contribution

3

Limitations

Please check weaknesses and problems.

Reviewer c7kZ2024-08-08

Discussions

Thanks for the detailed responses. Most of my concerns are addressed. I realize that the definition for the stationary notion in the linear equality case is with exponent 2 while in the linear inequality cases is with exponent 1, making it very confusing to comprehend. The complexity bounds in the linear equality case seems indeed optimal in terms of accuracy if the definition is with exponent 2. In addition, with the perturbation methods, does the complexity bound in the linear equality constrained case depend on the dimension of the problem? The presentation of the work requires serious improvements.

Authorsrebuttal2024-08-09

Replying to further discussion

Thank you very much for your questions! We answer them below. --- 1. ## The exponent of stationarity. Both stationarity notions, namely $\epsilon$-stationarity for the equality case and $(\delta, \epsilon)$-stationarity for the inequality case, are defined and addressed throughout the paper with respect to the norm with exponent 1. --- 2. ## Need for different notions of stationarity. The need for different stationarity notions for the two settings (and hence, the different approaches) stems from the crucial difference that **the hyperobjective is not smooth in the inequality case, whereas in the equality case we prove that it is** — as a result, in the equality setting, we can resort to the simpler (more classically understood) notion of $\epsilon$-stationarity [1, 2]. Moreover, for smooth objectives, these two stationarity notions are equivalent, see e.g. Proposition 6 (ii) in [3]. In our paper, we motivate $(\delta, \epsilon)$-stationarity in the (nonsmooth) inequality setting in Lines 45-52. To improve our presentation, we will add a more thorough explanation for these two notions of stationarity in the appendix. --- 3. ## Does the linear equality algorithm incur a dimension dependence? No, our algorithm for the linear equality setting is dimension-free (cf. Theorem 5.1). This is because, as we show, our functions in this setting are already smooth. The purpose served by the perturbation in this setting is to help us generate a sufficiently good hypergradient approximation (as explained in our previous response). We will clarify this better in the text. --- Please feel free to let us know if we can provide any further clarifications! Thank you once again for all your questions and feedback! --- # References [1] Lan, G. (2020). First-order and stochastic optimization methods for machine learning. Springer. [2] Nesterov, Y., and Polyak, B. Cubic regularization of Newton method and its global performance. Mathematical programming (2006). [3] Zhang, J., Lin, H., Jegelka, S., Sra, S., & Jadbabaie, A. (2020, November). Complexity of finding stationary points of nonconvex nonsmooth functions. In International Conference on Machine Learning (pp. 11173-11182). PMLR.

Reviewer c7kZ2024-08-09

Discussions

For the linear equality case, when the hyperobjective function is smooth, as the exponent of the stationary notion (under the smooth setting) is 1, the complexity bounds $O(\epsilon^{-2})$ is optimal if considering stochastic first order algorithms. However, the paper considers deterministic first-order algorithms and thus this complexity bound $O(\epsilon^{-2})$ is no longer optimal. Could you clarify what do you mean by "Nonetheless, we wish to point out that our rate for the linear equality case is in fact optimal" in your initial responses?

Reviewer pjir2024-08-09

I have read the rebuttal and the reviews. As of now I will keep my score.

Reviewer GkWW2024-08-10

Comment by Reviewer

My main concern during the review was the limited number of experiments. The authors have addressed this issue by providing additional experiments. Given that this is primarily a theoretical work, I also understand the current absence of large-scale experiments. I am raising my score to 6.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC