potentialpaper

Select-then-differentiate: Solving Bilevel Optimization with Manifold Lower-level Solution Sets

Saeed Masiha, Zebang Shen, Negar Kiyavash, Niao He

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We develop a select-then-differentiate framework for bilevel optimization with manifold-valued lower-level solutions, establishing convergence guarantees and demonstrating benefits for LLM data reweighting.

Abstract. We study optimistic bilevel optimization when the lower-level problem has a non-isolated manifold of minimizers. In this setting, the hyper-objective may be non-differentiable because the upper-level criterion must choose among multiple lower-level solutions. Under a Polyak–Łojasiewicz–type (PL°) condition, we show that differentiability does not require the lower-level solution set to be a singleton: uniqueness of the optimistic selection is sufficient. This yields an explicit pseudoinverse-based hyper-gradient formula extending the classical singleton-minimizer result. We further characterize the regularity of the hyper-objective: non-degeneracy of the selected minimizer along the solution manifold yields local smoothness, while failure of uniqueness can create many non-differentiable points and failure of non-degeneracy can destroy all positive Hölder regularity of the hyper-gradient. Motivated by this theory, we propose HG-MS, a select-then-differentiate method combining explicit optimistic selection with efficient pseudoinverse-based hyper-gradient computation. For the analyzed method, we prove convergence to stationarity with a conservative oracle-complexity bound whose accuracy exponent depends on the minimizer manifold’s intrinsic dimension. Empirically, we test a practical variant of HG-MS for matched-budget LLM source reweighting. This variant preserves the select-then-differentiate principle and obtains the best GSM8K/MATH scores across the tested backbones, along with competitive or best MT-Bench instruction-following results.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
2 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper provides a technically meaningful regularity theory for optimistic bilevel optimization with manifold lower-level solution sets, together with a pseudoinverse-based hyper-gradient and an end-to-end analysis of HG-MS. The rebuttal substantially addresses the main concern about the gap between the analyzed ULA/Gibbs method and the practical finite-branch implementation by clearly separating their scopes and adding controlled validation of the theoretical mechanisms.

The finite-step LLM implementation still lacks a corresponding convergence theory, and the assumptions and oracle complexity remain strong and conservative. Nevertheless, given the strength of the regularity results and the improved validation, I am positive about the submission and recommend acceptance.

Final justification

The rebuttal substantially addresses my main concern by clarifying the theory–practice gap and adding controlled validation of the analyzed ULA/Gibbs and pseudoinverse mechanisms. Given the strength of the regularity results, I recommend acceptance.

Area Chair tSsZ · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper provides a technically meaningful regularity theory for optimistic bilevel optimization with manifold lower-level solution sets, together with a pseudoinverse-based hyper-gradient and an end-to-end analysis of HG-MS. The rebuttal substantially addresses the main concern about the gap between the analyzed ULA/Gibbs method and the practical finite-branch implementation by clearly separating their scopes and adding controlled validation of the theoretical mechanisms.

The finite-step LLM implementation still lacks a corresponding convergence theory, and the assumptions and oracle complexity remain strong and conservative. Nevertheless, given the strength of the regularity results and the improved validation, I am positive about the submission and recommend acceptance.

Final justification

The rebuttal substantially addresses my main concern by clarifying the theory–practice gap and adding controlled validation of the analyzed ULA/Gibbs and pseudoinverse mechanisms. Given the strength of the regularity results, I recommend acceptance.

Reviewer TyVpOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies optimistic bilevel optimization when the lower-level problem has a non-isolated manifold of minimizers. Under a local Polyak–Łojasiewicz (PŁ) condition, they show that differentiability does not require the lower-level solution set to be a singleton: uniqueness of the optimistic selection is sufficient. They propose HG-MS, a select-then-differentiate method combining explicit optimistic selection with efficient pseudoinverse-based hyper-gradient computation.

Strengths and weaknesses

Strengths\textbf{Strengths}: The proposed algorithm is meaningful, and this paper is well-written.

Weaknesses\textbf{Weaknesses}: Please refer to Questions\textbf{Questions}.

Questions
  1. Line 37:\textbf{Line 37:} It would be beneficial to provide some function examples to illustrate this point more clearly in practice.

  2. Line 46:\textbf{Line 46:} The assumption that the domain is a compact set appears to be absent in related literature. The authors should justify its necessity and discuss its implications.

  3. Definition 2.2:\textbf{Definition 2.2:} It would be helpful to provide an illustrative example to clarify the differences and connections between this assumption and the standard Polyak-Lojasiewicz (PL) condition.

  4. Section 3:\textbf{Section 3:} I would appreciate further elaboration on the specific conditions or practical scenarios under which the lower-level solution set takes the form of a manifold.

  5. Assumption 2:\textbf{Assumption 2:} Have similar assumptions been utilized in prior literature? If so, please provide the corresponding references and comparative discussions. Moreover, the authors assume the uniqueness of the lower-level solution, which seems to contradict the assertion made by the author in the abstract that they do not require the uniqueness of lower-level solutions.

  6. Proposition 5.1:\textbf{Proposition 5.1:} It is unclear why the convergence result for a deterministic problem is presented in an expectation form. Further explanation and theoretical intuition are needed here.

  7. Theorem 5.2:\textbf{Theorem 5.2:} The sheer number of notations introduced in this theorem makes it difficult to follow. The authors should consider simplifying the notations.

  8. Theorem 5.3:\textbf{Theorem 5.3:} What is the approximate magnitude or typical value of kk? Furthermore, is this result applicable to standard bilevel problems with lower-level strong convexity? Under strong convexity, does the complexity match that of standard hypergradient-based algorithms?

  9. Line 326:\textbf{Line 326:} The authors utilize Stochastic Gradient Descent (SGD) to solve the lower-level subproblem rather than their proposed ULA. Further theoretical justification and discussion are required to thoroughly explain why SGD is a valid and appropriate choice in this specific context.

  10. Experiments:\textbf{Experiments:} It is highly recommended to include an experiment on a low-dimensional synthetic dataset ("toy problem") that strictly adheres to the theoretical framework presented in Section 4, specifically by employing the true ULA.

I will increase my score if the authors address all the questions.

Limitations

Weaknesses\textbf{Weaknesses}: Please refer to Questions\textbf{Questions}.

Final justification

The authors address all my questions, so I will raise my score to 4.

Formatting concerns

NA

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the feedback.

  • Q1 — Concrete function examples. Two exact full-dataset examples are:

    (i) Convolutional autoencoder. For MM whitened q×qq\times q image patches zj∈RDz_j\in\mathbb R^D, where D=Cq2D=Cq^2 and M−1∑jzjzj⊤=IDM^{-1}\sum_j z_jz_j^\top=I_D, a one-filter tied linear convolutional autoencoder reconstructs each patch as ww⊤zjww^\top z_j. Its loss is

    g(w)=12M∑j∣ww⊤zj−zj∣2=12(∣w∣2−1)2+D−12.g(w)=\frac1{2M}\sum_j\\|ww^\top z_j-z_j\\|^2 =\frac12(\\|w\\|^2-1)^2+\frac{D-1}{2}.

    Thus, arg⁡min⁡g=SD−1\arg\min g=\mathbb S^{D-1}, a compact connected smooth manifold.

    (ii) Regularized autoencoder. For centered X=UΣV⊤X=U\Sigma V^\top, consider

    g(W1,W2)=∣X−W2W1X∣F2+λ(∣W1∣F2+∣W2∣F2).g(W_1,W_2)=\\|X-W_2W_1X\\|_F^2+ \lambda(\\|W_1\\|_F^2+\\|W_2\\|_F^2).

    With input dimension mm, latent width pp, distinct positive singular values, and σℓ2>λ>σℓ+12\sigma_\ell^2 > \lambda > \sigma_{\ell+1}^2 for 0<ℓ<p0 < \ell < p, its minimizers are

    \left\\{\left(OD_\ell U_\ell^\top,U_\ell D_\ell O^\top\right): O^\top O=I_\ell\right\\},\qquad D_\ell=\operatorname{diag}_{i\le\ell}\sqrt{1-\lambda/\sigma_i^2}.

    They are parameterized by the compact connected Stiefel manifold Vℓ(Rp)V_\ell(\mathbb R^p).

    Example (i) specializes the tied convolutional architecture and MSE objective of Masci et al. (2011, Stacked Convolutional Auto-Encoders for Hierarchical Feature Extraction), while example (ii) follows Kunin et al. (2019, Loss Landscapes of Regularized Linear Autoencoders, Theorems 4.2 and 4.4). The references already cited at line 37 provide broader motivation: Draxler et al. (2018) and Garipov et al. (2018) empirically find nearly flat low-loss paths, whereas Nguyen (2019) proves connected sublevel sets for certain wide networks; we will point to these exact examples there.

  • Q2 — Compact upper-level domain. Compact upper-level domains are used in prior bilevel work: Liu et al. (2020, A Generic First-Order Algorithmic Framework for Bi-Level Programming Beyond Lower-Level Singleton) assume a compact upper-level constraint set, while Kornowski et al. (2024, First-Order Methods for Linearly Constrained Bilevel Optimization, Theorem 1.1) assume it is convex and compact. For typical bounded hyperparameters, compactness can also be imposed through box constraints and projected updates. Here it is a sufficient globalization assumption, not intrinsic to HG-MS or the local regularity results (Theorems 3.2 and 3.5); it makes θ\theta-dependent constants uniform. Proposition 5.1 extends to closed convex Θ\Theta when FF is globally smooth and lower bounded, but extending Theorems 5.2–5.3 to unbounded Θ\Theta additionally requires uniform constants or bounded outer iterates, neither ensured by our current assumptions. We will clarify this role.

  • Q3 — PŁ∘^{\circ} versus global PL. Standard PL is global and excludes suboptimal stationary points; PŁ∘^{\circ} is local around a compact minimizer set and permits other stationary points only if they are strict maxima. The first example in Q1 makes this distinction explicit. After removing its additive constant and scaling, let gˉ(w)=14(∣w∣2−1)2\bar g(w)=\frac14(\\|w\\|^2-1)^2. Then ∣∇gˉ(w)∣2=4∣w∣2gˉ(w)\\|\nabla\bar g(w)\\|^2=4\\|w\\|^2\bar g(w), so PL holds near SD−1\mathbb S^{D-1}, but global PL fails because w=0w=0 is a suboptimal strict maximum. Conversely, h(u,v)=u2h(u,v)=u^2 is globally PL but has the unbounded minimizer set (0,v):v∈R\\{(0,v):v\in\mathbb R\\}, violating Definition 2.2. Thus global PL plus the stated smoothness and compact-minimizer requirements implies PŁ∘^{\circ}, but global PL alone does not; conversely, PŁ∘^{\circ} does not imply global PL. We will add this comparison near Definition 2.2.

  • Q4 — When solution sets form manifolds. Section 3 makes no separate manifold assumption: Assumption 1 implies through Proposition 2.3 that S(θ)S(\theta) is a compact connected C2C^2 manifold.

    A general sufficient mechanism is

    g(θ,x)=12∣rθ(x)∣2,g(\theta,x)=\tfrac12\\|r_\theta(x)\\|^2,

    where rθ:Rd→Rqr_\theta:\mathbb R^d\to\mathbb R^q collects prediction errors. If zero error is attainable and ∇xrθ(x)\nabla_xr_\theta(x) has full row rank at every solution, the regular-level-set theorem makes S(θ)=rθ−1(0)S(\theta)=r_\theta^{-1}(0) a smooth manifold. At each solution,

    ∇xx2g=(∇xrθ)⊤∇xrθ,\nabla_{xx}^2g=(\nabla_xr_\theta)^\top\nabla_xr_\theta,

    giving zero tangent curvature and positive normal curvature.

    Practically, continuous parameter symmetries can produce equivalent solution families, while tying, normalization, or regularization fixes their scale and can make them compact; Q1 gives exact autoencoder examples. Similarly, for W∈RM×DW\in\mathbb R^{M\times D}, M<DM < D,

    gorth(W)=∣WW⊤−IM∣F2g_{\rm orth}(W)=\\|WW^\top-I_M\\|_F^2

    has the compact connected Stiefel manifold W:WW⊤=IM\\{W:WW^\top=I_M\\} as its minimizer set. Such penalties appear in CNN objectives; see Wang et al. (2020, Orthogonal Convolutional Neural Networks) and Achour et al. (2022, Existence, Stability and Scalability of Orthogonal Convolutional Neural Networks). We will add this explanation after Proposition 2.3.

  • Q5 — Assumption 2 and uniqueness. To our knowledge, the exact combination in Assumption 2 is new. Classical hyper-gradient analyses impose conditions implying that S(θ)S(\theta) is a singleton, often via strong convexity [Pedregosa, 2016; Franceschi et al., 2017; Lorraine et al., 2020]. The closest precedent is Arbel and Mairal (2022b): under parametric Morse–Bott geometry, they differentiate a critical point selected by prescribed lower-level dynamics, whereas we differentiate the exact optimistic minimizer selected by ff over the manifold of global minimizers of gg.

    There is no contradiction: the two statements concern different sets. As both Reviewer uekp and the Area Chair observed, the paper requires “uniqueness of the optimistic selection, rather than uniqueness of the entire lower-level solution.” The uniqueness clause of Assumption 2 applies only to O(θ)=arg⁡min⁡x∈S(θ)f(θ,x)O(\theta)=\arg\min_{x\in S(\theta)}f(\theta,x); the lower-level set S(θ)=arg⁡min⁡xg(θ,x)S(\theta)=\arg\min_x g(\theta,x) may remain an entire manifold. The two clauses have distinct roles: uniqueness gives F∈C1F\in C^1 (Theorem 3.2; Example 3.1 shows that ties can create kinks), while non-degeneracy yields locally Lipschitz ∇F\nabla F (Theorem 3.5; Example D.4 shows that uniqueness alone is insufficient).

  • Q6 — Why Proposition 5.1 uses expectation. The problem is deterministic, but Algorithm 1 uses randomized ULA to navigate the non-singleton solution set. The selected point and hyper-gradient error are therefore random, so Proposition 5.1 takes expectation over algorithmic randomness. We will make this explicit.

  • Q7 — Simplifying Theorem 5.2. We agree and will state its main message as

    E∣et∣2≲γ−2(Esel+ηt2)+γ2+Eoff,\mathbb E\\|e_t\\|^2 \lesssim \gamma^{-2}\bigl(\mathcal E_{\mathrm{sel}}+\eta_t^2\bigr) +\gamma^2+\mathcal E_{\mathrm{off}},

    where

    Esel=O!(λlog⁡(1+N)+N−1/k+NCPI,εR),Eoff=O!((1+Rv2)Ne−cγ2/λ).\mathcal E_{\rm sel} =O\\!\left(\sqrt{\lambda\log(1+N)}+N^{-1/k} +\sqrt{NC_{\rm PI}}\\,\varepsilon_R\right),\qquad \mathcal E_{\rm off} =O\\!\left((1+R_v^2)Ne^{-c\gamma^2/\lambda}\right).

    Here ete_t, ηt\eta_t, and γ\gamma are the hyper-gradient error, CG residual, and ridge parameter, while the three terms in Esel\mathcal E_{\rm sel} are the finite-temperature, Best-of-NN coverage, and finite-step ULA errors. The term Eoff\mathcal E_{\rm off} covers the rare event that selection leaves the local manifold neighborhood, with clipping radius RvR_v and problem constant c>0c>0; full details remain in Appendix F.4, Eq. (42).

  • Q8 — The magnitude of kk and strong convexity. Here, k=dim⁡S(θ)=dim⁡ker⁡∇xx2g(θ,x)k=\dim S(\theta)=\dim\ker\nabla_{xx}^2g(\theta,x) is the dimension of the minimizer manifold, so it is problem-dependent. As a concrete example, Q1's autoencoder with input dimension mm, latent width pp, and retained rank ℓ\ell has k=pℓ−ℓ(ℓ+1)/2k=p\ell-\ell(\ell+1)/2, while its parameter dimension is 2pm2pm. For p=3,ℓ=2p=3,\ell=2, we get k=3k=3 independently of mm, versus d=6md=6m parameters; thus, kk can be much smaller than the ambient dimension. Under strong convexity, S(θ)S(\theta) is a singleton and k=0k=0; hence Theorem 5.3, stated for k≥1k\ge1, does not apply verbatim. Its ULA/Best-of-NN selection is then unnecessary, and the pseudoinverse becomes the Hessian inverse. With an exact or sufficiently accurate hyper-gradient, Proposition 5.1 gives O(1/T)O(1/T) average squared stationarity, or T=O(ε−2)T=O(\varepsilon^{-2}) for stationarity norm at most ε\varepsilon, matching the standard outer-iteration dependence (Ji et al., 2021, Theorem 1, after aligning stationarity conventions). We do not claim a separate end-to-end k=0k=0 oracle bound. We will clarify this scope.

  • Q9 — Why SGD replaces ULA in the LLM experiments. One-step SGD is not claimed to solve the exact lower-level problem or approximate ULA; it replaces ULA as a scalable, differentiable finite-budget candidate generator for testing select-then-differentiate. We differentiate through the selected one-step branch to compute the outer update. These branches are not Gibbs samples, so Theorems 5.2–5.3 do not automatically apply. As discussed in Appendix A, analyzing νθ,B\nu_{\theta,B}—the distribution induced by BB optimizer steps at fixed θ\theta over minibatches, seeds, and perturbations—and bounding its hyper-gradient error is future work. Under our fixed single-H100 budget, HG-BASELINE and matched-budget ScaleBiO (Pan et al., 2025) use the same one-step SGD update, so the comparison isolates the effect of explicit selection.

  • Q10 — Controlled ULA experiment. We provide the requested experiment in the response to Reviewer uekp, Q1, with ground-truth checks of Best-of-NN selection, the pseudoinverse formula, ridge-CG accuracy, and finite-step ULA against exact Gibbs.

Reviewer TyVp · CommentOpenReview ↗

Raising score

Thanks for the authors' reply, they address all my questions, so I will raise my score to 4.

Authors · CommentOpenReview ↗

Thank you for considering our response. We are glad that it resolved your questions, and we appreciate your updated assessment.

Reviewer uekpOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies optimistic bilevel optimization when the lower-level global minimizers form a non-isolated manifold. Under a local Pٰ condition, it shows that the hyper-objective is continuously differentiable when the optimistic selection is locally unique, even though the full lower-level solution set is non-singleton. The resulting hyper-gradient is expressed using the Moore–Penrose pseudoinverse of the lower-level Hessian.

The paper further shows that intrinsic non-degeneracy of the selected minimizer yields local Lipschitz continuity of the hyper-gradient. Counterexamples illustrate that non-unique selection can create nondifferentiability and that degeneracy can destroy stronger regularity. Motivated by these results, the authors propose HG-MS, a select-then-differentiate method that generates multiple lower-level candidates, selects the candidate with the best upper-level objective, and computes a hyper-gradient at the selected point. The paper proves stationarity guarantees for a ULA/Gibbs-based instantiation and evaluates practical finite-budget variants on MNIST and language-model source-reweighting tasks.

Strengths and weaknesses

Strengths:

  • The central differentiability result is technically meaningful. The paper shows that uniqueness of the optimistic selection, rather than uniqueness of the entire lower-level solution, is sufficient for C¹ regularity of the hyper-objective under the stated manifold assumptions.

  • The pseudoinverse hyper-gradient formula has a clear geometric interpretation. The null space of the lower-level Hessian corresponds to tangent directions of the minimizer manifold, while the relevant sensitivity is determined by the normal directions.

  • The distinction between differentiability and smoothness is handled carefully. The paper gives counterexamples for non-unique and degenerate selections, and then identifies a Riemannian non-degeneracy condition that yields local Lipschitz continuity of the hyper-gradient.

  • The theoretical analysis is relatively complete. It separates candidate-selection error, sampling error, ridge bias, conjugate-gradient error, and off-manifold error, and derives an end-to-end stationarity guarantee for the analyzed ULA/Gibbs instantiation.

  • The presentation is generally clear. The main definitions and results are logically organized, complete proofs are provided in the appendix, and the experimental configurations are documented in considerable detail.

Weaknesses:

  • The connection between the theoretically analyzed HG-MS and the practical experimental implementation is limited. The theory analyzes candidates produced by ULA near a Gibbs distribution and a pseudoinverse hyper-gradient approximated using ridge regularization and conjugate gradients. In contrast, the main language-model experiments use a small number of finite-step optimizer branches, often consisting of a single SGD update, and differentiate through the selected branch. The convergence guarantee therefore does not directly apply to the main practical implementation, while the experiments do not directly validate the sampling and pseudoinverse mechanisms analyzed in the theory.

  • The convergence theory relies on strong global assumptions, including a uniform Pٰ condition, compact connected minimizer manifolds, and a unique non-degenerate optimistic selection throughout the upper-level domain. These assumptions make the theory clean, but the paper does not provide diagnostics indicating whether the main experimental settings approximately satisfy them.

  • The final oracle-complexity bound is highly conservative. The intrinsic-dimension dependence in the selection term is interesting, but the overall bound has a very large accuracy exponent and retains dependence on ambient-dimensional and sampling constants. It should therefore be interpreted as a worst-case existence guarantee rather than evidence of practical efficiency.

  • The practical version of HG-MS would benefit from a single standalone algorithm description. The exact candidate-generation procedure, selected-branch update, and relationship to the pseudoinverse formula are currently distributed across the main text and experimental appendix.

Questions
  1. Can the authors provide a controlled experiment that directly implements the analyzed ULA/Gibbs candidate generator and ridge-CG pseudoinverse computation? A synthetic problem with a known minimizer manifold, optimistic solution, and exact hyper-gradient would help verify the main theoretical mechanisms. Agreement between the predicted and observed selection or hyper-gradient errors would increase my confidence in the algorithmic contribution.

  2. Can the authors provide a standalone pseudocode description of the practical HG-MS implementation used in the language-model experiments? In particular, please specify the candidate generation procedure, branch selection, hyper-gradient computation, and which components of Algorithm 1 are replaced rather than approximated.

  3. Can the authors clarify which, if any, parts of the theoretical guarantee are expected to carry over to the practical finite-step optimizer-branch implementation? In particular, it would be helpful to distinguish any theoretical properties that remain applicable from those that are currently supported only by the high-level select-then-differentiate principle.

Limitations

Yes.

Final justification
  • Resolved: My main concern, also highlighted in the AC discussion, was the gap between the analyzed ULA/Gibbs and ridge-CG method and the practical finite-branch implementation. The rebuttal now clearly separates the two, states which guarantees do not transfer, provides a standalone description of the practical method, and adds a controlled experiment directly validating the analyzed selection and pseudoinverse mechanisms. HG-MS performs best across all 12 reported controlled settings, with additional checks consistent with the theoretical selection, ridge, CG, and finite-step ULA analyses.

  • Unresolved: The finite-step LLM implementation still lacks coverage, hyper-gradient-error, and convergence guarantees. The assumptions remain strong, and the oracle-complexity bound remains highly conservative.

  • Weight: I place substantial weight on the central regularity theory and the new controlled validation, which show that the theory is not detached from the algorithmic contribution. I view the remaining theory–practice gap as an important limitation, but not one that outweighs the paper’s contributions. I therefore recommend 5 (Accept).

Formatting concerns

None.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the feedback.

Theory–practice scope (W1; Q3). Theorems 5.2–5.3 analyze ULA/Gibbs candidates and ridge-CG hyper-gradients. The LLM implementation instead uses one-step SGD branches, differentiation through the selected branch, and Adam. Therefore, the paper’s Gibbs/Rényi coverage, selected-point, hyper-gradient, and oracle-complexity guarantees do not transfer to the LLM experiments.

Proposition 5.1 is conditional: near-stationarity follows for an estimator with controlled MSE relative to ∇F\nabla F, under its prescribed projected-gradient update. We establish neither this MSE bound for finite branches nor the proposition’s conclusion for Adam. Thus, only the select-then-differentiate ordering currently carries over; coverage, hyper-gradient-error, and convergence guarantees for finite branches remain future work.

On the assumptions and diagnostics (W2). These assumptions make optimistic selection well-defined, yield a differentiable hyper-objective, and provide uniform constants for the convergence analysis. Full verification requires characterizing global-minimizer geometry and optimistic selection across θ\theta, beyond finite training runs. Yet concrete neural-network objectives can exhibit the required compact minimizer-manifold geometry: the response to Reviewer TyVp, Q1 gives two full-dataset neural-network objectives with explicit compact manifold-valued minimizers—a tied convolutional autoencoder with a sphere-valued solution set satisfying PŁ∘^{\circ}, and a regularized autoencoder with a Stiefel family. The large-scale experiments evaluate select-then-differentiate under realistic budgets; their success or branch diversity is not presented as verification of these assumptions. We will clarify this scope and cross-reference those examples.

Oracle complexity (W3). We agree and do not present Theorem 5.3 as evidence of practical efficiency. The N−1/kN^{-1/k} term reflects finite Best-of-NN coverage of a kk-dimensional minimizer manifold. The large exponent results from conservatively combining low-temperature Gibbs concentration, finite-step ULA Rényi accuracy, finite-candidate selection, and the stabilized ridge-CG computation; ambient-dimensional and sampling constants also remain. As already noted in Appendix A, the result is a worst-case existence guarantee, not a practical runtime model. We will repeat this qualification beside Theorem 5.3.

Controlled experiment (Q1). We provide the requested experiment below; anonymized code and instructions are available upon request.

Controlled problem. Let θ∈[−3,3]\theta\in[-3,3], k∈1,2,4,10k\in\\{1,2,4,10\\}, and x=(y,z)∈Rk+1×R19−kx=(y,z)\in\mathbb R^{k+1}\times\mathbb R^{19-k}. Define

Rθ=1+θ2,aθ=(cos⁡θ,sin⁡θ,0,…,0),cθ=Rθ1+Rθ2,R_\theta=\sqrt{1+\theta^2},\quad a_\theta=(\cos\theta,\sin\theta,0,\ldots,0),\quad c_\theta=\frac{R_\theta}{\sqrt{1+R_\theta^2}},

and

uθ(x)=⟨y,aθ⟩cθ1+∣x∣2.u_\theta(x)= \frac{\langle y,a_\theta\rangle} {c_\theta\sqrt{1+\\|x\\|^2}}.

The smooth ambient objectives are

g(θ,x)=1+(∣y∣2−Rθ2)2−1+12∣z∣2,f(θ,x)=20.12+∣x∣2+(1+0.3θ)(uθ(x)+1)+12sin⁡2!(2π(uθ(x)+1)).\begin{aligned} g(\theta,x) &=\sqrt{1+(\\|y\\|^2-R_\theta^2)^2}-1+\tfrac12\\|z\\|^2,\\\\ f(\theta,x) &=2\sqrt{0.1^2+\\|x\\|^2} +(1+0.3\theta)(u_\theta(x)+1)\\\\ &\quad+\tfrac12\sin^2\\!\bigl(2\pi(u_\theta(x)+1)\bigr). \end{aligned}

Then

S(θ)=(Rθv,0):v∈Sk,\mathcal S(\theta)=\\{(R_\theta v,0):v\in\mathbb S^k\\},

where Sk⊂Rk+1\mathbb S^k\subset\mathbb R^{k+1} is the unit sphere. On this manifold, uθ(Rθv,0)=⟨v,aθ⟩u_\theta(R_\theta v,0)=\langle v,a_\theta\rangle, so the unique optimistic solution and hyper-objective are

x⋆(θ)=(−Rθaθ,0),F(θ)=20.12+1+θ2.x^\star(\theta)=(-R_\theta a_\theta,0),\qquad F(\theta)=2\sqrt{0.1^2+1+\theta^2}.

Here the Riemannian Hessian of ff on S(θ)\mathcal S(\theta) has eigenvalues at least 0.010.01, so selection is uniformly nondegenerate; we can provide the proof if needed. Finally, θ⋆=0\theta^\star=0 and F⋆=21.01F^\star=2\sqrt{1.01}, providing exact ground truth for the reported errors.

Implementation and protocol. HG-MS initializes Xi0∼N((2vi,0),λI20)X_i^0\sim\mathcal N((2v_i,0),\lambda I_{20}), with vi∼Unif⁡(Sk)v_i\sim\operatorname{Unif}(\mathbb S^k), and uses (N,K,h,λ)=(16,100,0.01,10−3)(N,K,h,\lambda)=(16,100,0.01,10^{-3}), selecting x^=arg⁡min⁡if(θ,XiK)\widehat x=\arg\min_i f(\theta,X_i^K). At x^\widehat x, ridge-CG solves

(∇xx2g+γI)v=∇xf,h^=∇θf−∇θx2g,v,(\nabla_{xx}^2g+\gamma I)v=\nabla_xf,\qquad \widehat h=\nabla_\theta f-\nabla_{\theta x}^2g\\,v,

with γ=0.3\gamma=0.3 and tolerance 10−810^{-8}. All parameters were fixed on pilot seeds 11,28,4711,28,47. On Accelerate, we ran all five methods for k∈1,2,4,10k\in\\{1,2,4,10\\} and 20 fresh held-out seeds (20002000–20192019), with paired initial θ,x0\theta,x^0, randomized within-cell method order, and a 60-second single-thread budget. This yielded 400 validated runs.

(i) End-to-end errors (60 s, 20 seeds). Entries are mean ±\pm bootstrap 95% CI half-width (5,000 resamples); lower is better.

Method k=1k=1 k=2k=2 k=4k=4 k=10k=10
(a) Hyper-objective gap F(θT)−F⋆F(\theta_T)-F^\star
HG-MS (1.13±0.60)×10−3\mathbf{(1.13\pm0.60)\times10^{-3}} (5.22±2.79)×10−3\mathbf{(5.22\pm2.79)\times10^{-3}} (4.40±1.78)×10−3\mathbf{(4.40\pm1.78)\times10^{-3}} .0079±.0018\mathbf{.0079\pm.0018}
HG-baseline .029±.010.029\pm.010 .032±.008.032\pm.008 .034±.008.034\pm.008 .042±.009.042\pm.009
V-PBGD .101±.040.101\pm.040 .076±.029.076\pm.029 .067±.019.067\pm.019 .066±.017.066\pm.017
G-PBGD 2.389±.8632.389\pm.863 2.386±.8632.386\pm.863 2.599±.8612.599\pm.861 2.385±.8612.385\pm.861
IAPTT-GM 2.160±.8632.160\pm.863 1.945±.8631.945\pm.863 1.729±.8631.729\pm.863 1.945±.8631.945\pm.863
(b) Stationarity ∣F′(θT)∣\lvert F'(\theta_T)\rvert
HG-MS .053±.018\mathbf{.053\pm.018} .116±.037\mathbf{.116\pm.037} .113±.030\mathbf{.113\pm.030} .170±.021\mathbf{.170\pm.021}
HG-baseline .304±.059.304\pm.059 .330±.052.330\pm.052 .351±.042.351\pm.042 .390±.038.390\pm.038
V-PBGD .495±.145.495\pm.145 .459±.111.459\pm.111 .466±.081.466\pm.081 .467±.073.467\pm.073
G-PBGD 1.165±.3581.165\pm.358 1.158±.3581.158\pm.358 1.238±.3441.238\pm.344 1.171±.3301.171\pm.330
IAPTT-GM .990±.371.990\pm.371 .908±.371.908\pm.371 .831±.359.831\pm.359 .920±.359.920\pm.359
(c) Selected-point error ∥x^−x⋆(θT)∥\lVert\widehat x-x^\star(\theta_T)\rVert
HG-MS .284±.076\mathbf{.284\pm.076} .515±.121\mathbf{.515\pm.121} .798±.114\mathbf{.798\pm.114} 1.049±.058\mathbf{1.049\pm.058}
HG-baseline 1.264±.2681.264\pm.268 1.431±.2261.431\pm.226 1.329±.1811.329\pm.181 1.469±.0981.469\pm.098
V-PBGD 1.333±.3501.333\pm.350 1.311±.2501.311\pm.250 1.348±.1771.348\pm.177 1.351±.1651.351\pm.165
G-PBGD 2.271±.4802.271\pm.480 2.260±.4752.260\pm.475 2.384±.4392.384\pm.439 2.365±.3742.365\pm.374
IAPTT-GM 1.669±.6261.669\pm.626 1.568±.6491.568\pm.649 1.415±.6001.415\pm.600 1.584±.6261.584\pm.626

Takeaway. HG-MS is best in all 12 cells; V-PBGD is the best non-HG method, while IAPTT-GM is bimodal at k=4k=4 (12/20 successes; 8/20 boundary terminations).

(ii) Best-of-NN selection error. To isolate candidate selection from ULA error, we draw candidates directly from S(θ)\mathcal S(\theta) and estimate

EN=E∣x^N−x⋆∣2,x^N=arg⁡min⁡1≤i≤Nf(θ,xi),E_N=\mathbb E\\|\widehat x_N-x^\star\\|^2, \qquad \widehat x_N=\arg\min_{1\leq i\leq N}f(\theta,x_i),

using 2,000 trials at N=1,2,4,…,2048N=1,2,4,\ldots,2048 (three shown):

kk N=16N=16 N=256N=256 N=2048N=2048
1 0.1520.152 5.95×10−45.95\times10^{-4} 9.24×10−69.24\times10^{-6}
2 0.5900.590 0.03060.0306 0.003670.00367
4 1.3701.370 0.2620.262 0.09070.0907
10 2.0962.096 1.7151.715 1.0221.022

Over N=64,128,…,2048N=64,128,\ldots,2048, the fitted log–log slopes for k=1,2,4,10k=1,2,4,10 are

(−2.016,−1.016,−0.599,−0.158).(-2.016,-1.016,-0.599,-0.158).

The slopes are consistent with problem-specific N−2/kN^{-2/k} decay, faster than Lemma F.20’s conservative N−1/kN^{-1/k} bound, and show that selection becomes harder as kk grows.

(iii) Pseudoinverse and ridge-CG errors. Let

h^pinv:=∇θf−∇θx2g(∇xx2g)†∇xf\widehat h_{\rm pinv}:=\nabla_\theta f-\nabla_{\theta x}^2g (\nabla_{xx}^2g)^\dagger\nabla_xf

denote the pseudoinverse hyper-gradient. Across the tested exact optimistic points, ∣h^pinv−F′(θ)∣≤6.7×10−16\left|\widehat h_{\rm pinv}-F'(\theta)\right|\leq6.7\times10^{-16}. A log–log fit of ridge bias vs. γ\gamma gives slope 0.9930.993, close to the theoretical O(γ)O(\gamma). For each ridge system Av=bAv=b, where A=∇xx2g+γIA=\nabla_{xx}^2g+\gamma I and b=∇xfb=\nabla_xf, let vCGv_{\rm CG} be the finite-tolerance CG solution and vdense=A−1bv_{\rm dense}=A^{-1}b the direct dense solution. Their gap ∣vCG−vdense∣2\\|v_{\rm CG}-v_{\rm dense}\\|_2 averages 4.4×10−124.4\times10^{-12} at tolerance 10−810^{-8}, indicating negligible finite-CG error.

(iv) Finite-step ULA vs. exact Gibbs. We measure E[(h^−F′(θ))2]\mathbb E[(\widehat h-F'(\theta))^2] after the same Best-of-NN/ridge-CG pipeline, changing only the candidate generator: exact Gibbs or KK-step ULA. Each sweep uses 20 seeds and, per seed, 250 ULA versus 5,000 exact-Gibbs selections. At (k,θ,λ,h,N)=(2,1,10−3,0.01,32)(k,\theta,\lambda,h,N)=(2,1,10^{-3},0.01,32), exact Gibbs gives 0.6810.681. For K=(10,100,500,1000)K=(10,100,500,1000), ULA gives (0.710,0.668,0.657,0.663)(0.710,0.668,0.657,0.663), with absolute relative differences (4.2(4.2\\%,2.0\\%,3.5\\%,2.8\\%).

In an independent K=100K=100 sweep, for N=(1,8,32,128)N=(1,8,32,128), the ULA/exact-Gibbs MSE pairs are 2.413/2.2832.413/2.283, 1.410/1.3281.410/1.328, 0.687/0.6870.687/0.687, and 0.119/0.1160.119/0.116.

Practical algorithm (W4; Q2). Let θ\theta be the source logits, ω=softmax⁡(θ)\omega=\operatorname{softmax}(\theta) the source weights, and yy the LoRA parameters. One LLM outer iteration is:

  1. Generate: create NN branches from yy, using independent minibatches/seeds and Gaussian parameter perturbations for i>0i > 0; take one differentiable SGD step on g(θ,⋅)g(\theta,\cdot).
  2. Select: evaluate all branches on the same held-out objective ff and hard-select the lowest-loss branch.
  3. Differentiate: backpropagate the selected validation loss through that branch's SGD step to obtain the source-logit hyper-gradient.
  4. Update: update θ\theta with Adam.

We use N=4N=4 for reasoning (including Qwen2.5-32B) and N=8N=8 for instruction following. We retain parallel generation, hard Best-of-NN selection, and select-then-differentiate; ULA/Gibbs, ridge-CG, and projected gradient descent are replaced, not approximated, by one-step SGD, unrolled differentiation, and Adam. We will add this pseudocode.

Reviewer uekp · CommentOpenReview ↗

Thank you for the detailed response and the new controlled experiment. The experiment directly validates the analyzed ULA/Gibbs and ridge-CG version of HG-MS, and addresses my concern that the theory might be detached from the algorithmic contribution. I still view the gap to the finite-branch LLM implementation as a limitation, but the scope is now clearly stated. I have therefore updated my rating from 4 to 5.

Authors · CommentOpenReview ↗

We appreciate your careful consideration of our response and the new controlled experiment. We agree that extending the theory to finite-step optimizer branches remains an important limitation and future direction, and we will make this scope explicit in the revision.

Reviewer oYXVOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper looks at the fundamental problem of bilevel optimization, where we are trying to optimize a function whose value depends on the solution to a "lower level" optimization problem. The main innovation in this paper is to show that a gradient of the upper level problem exists, and how to compute it, when the solution to the lower level problem is non-unique. At a high-level, the ambiguities involved in this situation are resolved by taking the "optimistic minimizer" to the lower level problem, that is the variable in the solution set that gives the smallest value with the current decision variables fixed. The expression for the gradient for the upper-level function is then used to formulate a new algorithm for bilevel optimization. The key innovation of the algorithm is a random sampling technique that accounts for the fact that the solution set of the lower level problem is implicit. A convergence analysis of the algorithm is given, and its effectiveness verfied on real-world learning problems.

Strengths and weaknesses

The topic of the paper is well-motivated: bilevel optimization problems arise in all sorts of different applications, and I agree with the authors' assessment that the case where there are non-unique solutions for the lower-level problem is of clear interest.

Both of the main theory results, the existence of the gradient and the provable technique for sampling that gradient, are mathematically innovative and important.

The new algorithm is tested on meaningful numerical experiements.

Weaknesses: Some of the exposition moves fast for the unitiated. For example, just a little discussion about what "ULA" is and why you expect it to produce samples in the way you want would go a long way in Section 4.1

In kind of the same vein as above, the fact that the solution set S_\theta will be implicit in almost every practical case is maybe underplayed. A nice solution to this is presented in Section 4, but how this will be accounted for is a question that most readers will be asking themselved before they get to the end of page 6.

Questions

Small, qualitative, clarifying question: What is it about the ULA sampler that allows your mathematical analysis to go through?

Limitations

There is no section titled "Limitations" to the approach, but in my opinion the strengths and weaknesses of the tecnique are pretty clear.

Final justification

The technical results in the paper are strong. My initial review had some minor concerns about the exposition, but the authors' response addresses these in a satisfactory way.

Formatting concerns

none

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the feedback and agree that these points should be surfaced more clearly.

1. On the fast exposition. We agree that this should be stated earlier. We will state immediately after Eq. (1) that S(θ)S(\theta) is not explicitly available in practical problems: HG-MS assumes no parameterization, enumeration, or projection oracle for S(θ)S(\theta). In the analyzed instantiation, ULA requires only a gradient oracle for gg, namely evaluations of ∇xg(θ,⋅)\nabla_x g(\theta,\cdot).

2. On the ULA description. We will also expand Section 4.1 with a plain-language description of ULA (the unadjusted Langevin algorithm) as noisy gradient descent:

x+=x−h∇xg(θ,x)+2λh,ξ,ξ∼N(0,Id).x^{+}=x-h\nabla_x g(\theta,x)+\sqrt{2\lambda h}\\,\xi, \qquad \xi\sim\mathcal N(0,I_d).

The gradient term moves toward lower values of gg, while the Gaussian noise enables exploration. Its finite-step law approximates the low-temperature Gibbs target μθλ(dx)∝e−g(θ,x)/λdx\mu_\theta^\lambda(dx)\propto e^{-g(\theta,x)/\lambda}dx, which concentrates near S(θ)S(\theta) under our assumptions (Lemma F.9). Thus, ULA generates approximate lower-level solutions without explicitly computing S(θ)S(\theta).

3. On “what is it about ULA” that enables the analysis. ULA is analytically useful because, after finitely many steps, we can bound the discrepancy between its output distribution and the Gibbs target. We verify uniformly over θ\theta that the conditions needed for this guarantee hold in our setting. The guarantee then lets us transfer Gibbs concentration near S(θ)S(\theta) to the actual ULA candidates, bound the Best-of-NN selection error, and propagate that error to the hyper-gradient and outer-loop convergence analyses. Thus, ULA provides an implementable candidate generator with a finite-time error guarantee; another sampler satisfying an analogous guarantee could play the same role.

3.1. Quantitative finite-time guarantee. The property used in our proof is that, after finitely many ULA steps, we can explicitly bound the discrepancy between the candidate distribution and the Gibbs target. Proposition F.17 states that if the target potential has a Lipschitz gradient, the target satisfies a Poincaré inequality, and the initialization is controlled in Rényi divergence, then an appropriate step size and a finite number of ULA steps give

R2(νi∥μθλ)≤εR2.R_2(\nu_i\Vert\mu_\theta^\lambda)\leq \varepsilon_R^2.

Here νi\nu_i is the law of the actual candidate after finitely many steps, whereas μθλ(dx)∝e−g(θ,x)/λdx\mu_\theta^\lambda(dx)\propto e^{-g(\theta,x)/\lambda}dx is the ideal Gibbs target.

3.2. Why the conditions hold uniformly in our setting. For the scaled potential G=g(θ,⋅)/λG=g(\theta,\cdot)/\lambda, Assumption 4 gives a Lipschitz-gradient constant Lg,2/λL_{g,2}/\lambda, uniformly over θ\theta. Since Assumption 1 holds uniformly over θ\theta, Appendix B.2 provides a single Poincaré constant CPIC_{\mathrm{PI}} valid for every relevant θ\theta and all sufficiently small λ≤λ0\lambda\leq\lambda_0. In particular, this constant does not worsen as λ→0\lambda\to0. Lemma F.18 bounds the order-3 Rényi divergence between a λ\lambda-scaled Gaussian initialization and the Gibbs target. The same constants apply uniformly over θ\theta and over centers zz in any fixed compact set; the bound displays its temperature dependence explicitly through 1/λ1/\lambda and log⁡(1/λ)\log(1/\lambda). Corollary F.19 then shows that, for prescribed λ\lambda and εR\varepsilon_R, a finite number KK of ULA steps can be chosen uniformly for all outer iterations and candidates so that R2(νi∥μθλ)≤εR2R_2(\nu_i\Vert\mu_\theta^\lambda)\leq\varepsilon_R^2.

3.3. How this bound enters the error analysis.

(i) Ideal Gibbs concentration. Lemma F.9 shows that an exact low-temperature Gibbs sample lies in a narrow tube around S(θ)S(\theta) with high probability.

(ii) From Gibbs concentration to finite-step ULA candidates. Lemma F.10 combines the Gibbs tube bound with the Rényi guarantee to show that the actual ULA candidates also concentrate near S(θ)S(\theta). Corollary F.19 further gives a Wasserstein error of order CPIεR\sqrt{C_{\mathrm{PI}}}\varepsilon_R, which bounds the difference between ULA and Gibbs expectations for the Lipschitz functions used in Best-of-NN selection.

(iii) Error after Best-of-NN selection. Let x~∈arg⁡min⁡1≤i≤Nf(θ,Xi)\widetilde x\in\arg\min_{1\leq i\leq N}f(\theta,X_i) denote the candidate selected from the finite-step ULA outputs X1,…,XNX_1,\ldots,X_N. To analyze x~\widetilde x, Lemma F.12 first considers NN exact low-temperature Gibbs candidates. After projecting them onto S(θ)S(\theta), the projected Gibbs law has positive local mass near x⋆(θ)x^\star(\theta), and the kk-dimensional small-ball geometry produces the N−1/kN^{-1/k} coverage term. Nonzero temperature adds an off-manifold tube error, while transferring the result to finite-step ULA candidates adds NCPIεR\sqrt{N C_{\mathrm{PI}}}\varepsilon_R. Lemma F.20 combines these terms and uses the restricted curvature of f∣S(θ)f|_{S(\theta)} to convert the selected candidate's validation-value gap and distance from the manifold into a bound on E∣x~−x⋆(θ)∣2\mathbb E\\|\widetilde x-x^\star(\theta)\\|^2.

(iv) Hyper-gradient error. Theorem 5.2 converts the selected-point bound E∣x~−x⋆(θ)∣2\mathbb E\\|\widetilde x-x^\star(\theta)\\|^2 into a bound on the mean-square hyper-gradient error E∣h^−∇F(θ)∣2\mathbb E\\|\widehat h-\nabla F(\theta)\\|^2, while also accounting for ridge-regularization bias and finite-CG error.

(v) Outer convergence. Proposition 5.1 then shows that, when the mean-square hyper-gradient error is sufficiently small, the projected outer updates reach a near-stationary point of FF.

4. On the limitations comment. The submission contains Appendix A, “Limitations and Future Directions” (p. 16). We will add a concise limitations paragraph in the main text.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…