We investigate stochastic simple bilevel optimization with smooth and possibly nonconvex upper- and lower-level objectives. Existing stochastic extensions of dynamic barrier gradient descent (DBGD) either obtain fast convergence under an unverifiable trajectory-dependent “rare-visit” assumption, or remove this assumption at a substantially higher oracle cost. We show that a simple denominator-only regularization of the DBGD multiplier eliminates the need for such an assumption while preserving fast convergence rates. Specifically, our method achieves (ε,ε)-stationarity in O(ε−2) iterations using O(ε−4) upper-level and O(ε−7) lower-level stochastic gradients, which improves upon the best assumption-free complexities. We additionally derive anytime parameter schedules.
In this paper, we consider a simple stochastic nonconvex bilevel program, given by
x∈Hmin{f(x):x∈argy∈Hming(y)},
(P)
where f=E[fξ],g=E[gξ]:H→R are defined over a real Hilbert space H and are smooth and not necessarily convex, and only accessible through a stochastic oracle call. Here, the term simple refers to the fact that f does not depend on the lower-level variable y and g does not depend on the upper-level variable x. In this context, the lower-level function g serves as a primary requirement, whereas the upper-level objective f selects amongst lower-level solutions. This problem is also referred to as a nonconvex hierarchical program. Such a formulation has many applications, such as in hyperparameter training [11] or in machine unlearning [19], to name a few.
Even in a deterministic setting, nonconvex bilevel programs are hard. The lower-level constraint is global, and may have a nonconvex or even disconnected solution set. Therefore, classical ideas from convex bilevel programming, such as Tikhonov regularizations [15, 21, 3, 10] or forming outer approximations of the lower-level solution set [14, 5, 6] do not translate.
As solving Problem (P) to global optimality is intractable, we merely solve it to (εf,εg)-stationarity, which was introduced in [7] and will be rigorously defined in Section 2. It is such that ∇g(x) is small, so that the point is nearly stationary for the lower-level, and such that there is no evident first-order direction that improves the upper-level objective.
To achieve this notion of stationarity, Cao et al. [7] make use of Dynamic Barrier Gradient Descent (DBGD), originally proposed in [13], which combines upper- and lower-level descent through an adaptive dual multiplier. Extending this approach to the present stochastic setting is nontrivial, as directly replacing the gradient by a stochastic estimator may cause singularities within the multiplier definition, since the lower-level gradient estimator may vanish away from stationary points.
Recently, Ahmadi et al. [1] address this issue by perturbing both the numerator and the denominator of the dual multiplier. The resulting method achieves fast rates under a trajectory-dependent “rare-visit” assumption, which is unverifiable a priori, and remove this condition through a penalty-regularization, which leads to substantially slower rates. We instead perturb only the denominator, giving rise to
Ahmadi et al. [1]∥∇g∥2+ρ[β(∥∇g∥2+ρ)−⟨∇f,∇g⟩]+v.s.Ours∥∇g∥2+ρ[β∥∇g∥2−⟨∇f,∇g⟩]+.
Despite the multipliers differing only by an additive constant in the numerator, this modification allows us to establish faster convergence rates under standard, verifiable assumptions. We provide a more thorough comparison of these works in Table 1.
Table 1: Comparison of iteration count, and upper- and lower-level (stochastic) oracle calls to reach a (ε,ε)-stationary point, and the additionally required assumptions.
Algorithm
Setting
Iterations
Upper
Lower
Extra Assumption?
DBGD [7]
Det
O(ε−2)
O(ε−2)
O(ε−2)
N/A
SDBPG [1]
Sto
O(ε−2)
O(ε−2/ς)
O(ε−3/ς)
Yes1,2
PR-SDBPG [1]
Sto
O(ε−4)
O(ε−8)
O(ε−10)
Yes, but verifiable2
VR-PR-SDBPG [1]
Sto
O(ε−4)
O(ε−6)
O(ε−8)
Yes, but verifiable2,3
SDBGD (This work)
Sto
O(ε−2)
O(ε−4)
O(ε−7)
N/A
1 “Rate-Visit” Assumption ς∈(0,1/2]: unverifiable a priori as it involves the trajectory of the algorithm.
3 Mean-squared smoothness of the individual realization fξ and gς.
Contributions. We propose a new algorithm, SDBGD, to solve Problem (P), converging to an (ε,ε)-stationary point in O(ε−2) iterations, requiring a total of O(ε−4) stochastic oracle calls to f and O(ε−7) stochastic oracle calls to g. Importantly, we do not rely on an unverifiable assumption, such as the “rare-visit” assumption. We additionally provide anytime convergence rates, not requiring knowledge of the final horizon. We finally compare our method numerically to the ones proposed by Ahmadi et al. [1] on a simple example.
2 Problem Setup and Stationarity
Let H be a real Hilbert space with associated inner product ⟨⋅,⋅⟩ and induced norm ∥⋅∥. We consider the stochastic simple bilevel problem
x∈Hmin{f(x):x∈argming},
(P)
where, for all x∈H, f(x)=Eξ[fξ(x)] and g(x)=Eς[gς(x)], with fξ,gς:H→R stochastic realizations of f and g respectively. We assume the following.
Assumption 2.1.
The expectations defining f and g are well-defined and differentiable, with, for all x∈H, ∇f(x)=Eξ[∇fξ(x)] and ∇g(x)=Eς[∇gς(x)].
We further assume that argming=∅ and that inff>−∞.
We additionally assume the following.
Assumption 2.2.
There exist constants Lf,Lg,Gf>0,σf2,σg2≥0 such that
f and g are respectively Lf− and Lg-smooth;
the upper-level gradient is uniformly bounded, namely ∥∇f(x)∥≤Gf for all x∈H;
the stochastic gradients have uniformly bounded variance, namely
Uniformly bounded variance is a standard assumption in stochastic optimization [20, 18], although recent trends aim to relax it under weaker growth or variance-at-solution conditions [4, 17, 16, 2, 9, 12, 8], at the cost of a more complex error handling. We retain the bounded-variance assumption here in order to simplify the results and isolate the difficulties arising from the stochasticity itself.
Assumption 2.2 does not require the lower-level gradient ∇g to be uniformly bounded, nor does it require the individual realizations fξ and gζ to be smooth. This is in contrast with [1], where boundedness of ∇g is required, and smoothness of the stochastic realizations is used for their variance-reduced variant.
Since Problem (P) is nonconvex, we do not aim to solve it globally and instead introduce a notion of stationarity. We follow the convention of [7] and measure stationarity in terms of squared gradient norms. This choice is equivalent to measuring it in terms of norms and rescaling (εf,εg), and is convenient as our analysis naturally controls the squared quantities.
Definition 2.3 ((εf,εg)-stationarity [7]).
A point x∈H is (εf,εg)-stationary for Problem (P) if there exists λ≥0 satisfying
∥∇f(x)+λ∇g(x)∥2≤εfand∥∇g(x)∥2≤εg.
The second condition requires x to be near-stationary for the lower-level objective. We emphasize that, since g is nonconvex, lower-level stationarity does in general not mean proximity to argmin g. Definition 2.3 should therefore be understood as a first-order approximation for solving Problem (P). The first condition describes first-order compatibility between the upper- and lower-level objectives. In fact, up to error εf, the component of ∇f(x) orthogonal to ∇g(x) vanishes, while its parallel component either vanishes or points in the opposite direction to ∇g(x). As such, there is no first-order direction that can substantially decrease f without increasing g.
3 Stochastic Dynamic Barrier Gradient Descent
The deterministic Dynamic Barrier Gradient Descent (DBGD) method of [7] updates xk with step-size ηk>0 along the direction
The choice of multiplier λkDBGD is so that ⟨∇g(xk),dkDBGD⟩≥βk∥∇g(xk)∥2, enforcing descent in the lower-level objective while retaining as much as possible in the upper-level. This multiplier may be viewed as the Lagrange multiplier associated with the projection problem min{21∥∇f(xk)−d∥2:βk∥∇g(xk)∥2≤⟨d,∇g(xk)⟩}, namely
The term dynamic barrier refers to the lower bound on ⟨d,∇g(xk)⟩ enforced in the projection dynamics, which provides a trade-off between loss minimization and constraint satisfaction, and is not directly related to an explicit barrier function.
In the stochastic setting, we no longer access the full gradients ∇g(xk) and ∇f(xk), but only unbiased stochastic mini-batch estimators of batch-sizes Bf,k and Bg,k respectively, given by
Directly substituting these quantities into the multiplier definition may be undefined, as ∥∇gk∥ may be small, or even zero, far from lower-level stationary points.
We instead regularize the denominator with a parameter ρk>0, thus dividing by ∥∇gk∥2+ρk rather than ∥∇gk∥2. This prevents the singularity in the multiplier definition, while recovering the deterministic definition as ρk→0. This yields the multiplier definition
λ^k=∥∇gk∥2+ρk[βk∥∇gk∥2−⟨∇fk,∇gk⟩]+.(3)
Importantly, unlike the multiplier definition in [1], we do not add a corresponding ρkβk term to the numerator. Although the definitions are very similar, they lead to fundamentally different convergence properties, and require distinct arguments.
We introduce λk and dk as quantities for our analysis, but they do not need to be computed:
In the following algorithm, ηk>0 is the step-size, βk>0 is the barrier parameter, ρk>0 is the regularization parameter, and Bf,k≥1 and Bg,k≥1 represent the batch-sizes for the upper- and lower-level gradient estimators, respectively.
for k=0,…,K−1 do
Draw independent ξk,i and ζk,j for i=1,…,Bf,k and j=1,…,Bg,k.
Define the independent mini-batches as in (2).
Compute λ^k according to (3).
Compute d^k=∇fk+λ^k∇gk.
Update xk+1=xk−ηkd^k.
end for
We make use of the random iterate xNK, where NK is drawn at random according to
Balancing the stochastic error with the regularization parameter ρk yields the following horizon-dependent and anytime rates. The proof is deferred to Appendix A.3, and all proportionality constants are independent of K (or k).
Corollary 3.1 (Convergence Rates).
Let Assumptions 2.1 and 2.2 hold, let (xk) be the iterates generated by Algorithm 1, and let NK be chosen at random according to (4).
(Horizon-Dependent) Given a horizon K≥1, let a∈(0,1/3), and select
The parameter a∈(0,1/3) controls the tradeoff between the two stationary residuals. The balanced choice a=1/4 yields a rate of O(K−1/2) or O~(K−1/2) for both.
Corollary 3.2 (Oracle Complexity).
Under the horizon-dependent schedule of Corollary 3.1 with a=1/4, we reach a (ε,ε)-stationary point in O(ε−2) iterations, resulting in O(ε−4) upper-level and O(ε−7) lower-level stochastic oracle calls.
using stochastic gradients ∇fξ=∇f+ξ and ∇gζ=∇g+ζ with Gaussian noise. We compare SDBGD with SDBPG, PR-SDBPG and VR-PR-SDBPG [1] under a common oracle budget of 108, using anytime schedules for all methods. The details are provided in Appendix B.
In Figure 1, we plot the upper- and lower-level stationary measures for all four methods. While our method does not empirically improve upon the previously proposed ones, its theoretical guarantees are stronger and does not require any unverifiable assumption.
Upper-Level Stationarity
Lower-Level Stationarity
Figure 1: Comparison of stationarity measures in terms of stochastic oracle calls.
5 Conclusion
We introduced SDBGD, a denominator-regularized stochastic variant of DBGD [7] for stochastic simple nonconvex bilevel programming. Under standard assumptions, SDBGD achieves O(ε−2) iteration complexity, using O(ε−4) upper-level and O(ε−7) lower-level stochastic oracle calls. These rates do not require an unverifiable trajectory-dependent “rare-visit” assumption as in [1], and improve upon the assumption-free guarantees of [1]. We additionally provided an anytime parameter schedule and a simple numerical illustration. Overall, our results show that minor differences in the multiplier definition can substantially affect the theoretical guarantees.
Open Question. The stochastic variants of DBGD proposed here and in [1] differ only slightly in their multiplier definition, yet yield considerably different guarantees. This suggests directly substituting the gradient for a stochastic estimator thereof may not be the natural stochastic analogue of DBGD. Since deterministic DBGD admits a projected dynamical system interpretation (1), an interesting direction might be to consider a stochastic projected dynamical system to derive the stochastic multiplier. We leave the following for future work:
What is the appropriate stochastic analogue of deterministic multiplier-based bilevel methods?
Acknowledgments. Daniel Cortild acknowledges the support of the Clarendon Funds Scholarship. Mathias Staudigl's research is supported by the Deutsche Forschungsgemeinschaft (DFG) – Projektnummer 556222748 "non-stationary hierarchical minimization". Juan Peypouquet benefited from the support of the FMJH Program Gaspard Monge for optimization and operations research and their interactions with data science. Coralia Cartis' work was supported by the Hong Kong Innovation and Technology Commission (InnoHK Project CIMDA) and by the EPSRC grant EP/Y028872/1, Mathematical Foundations of Intelligence: An "Erlangen Programme" for AI.
References
[1] M. M. Ahmadi, J. Cao, A. Mokhtari, and E. Y. Hamedani. Stochastic Dynamic Barrier Perturbed Gradient Methods for Nonconvex Simple Bilevel Optimization, July 2026. arXiv preprint arXiv:2607.10957.
[2] A. Alacaoglu, Y. Malitsky, and S. J. Wright. Towards Weaker Variance Assumptions for Stochastic Optimization, Apr. 2025. arXiv preprint arXiv:2504.09951.
[3] M. M. Alves, K. Chen, and E. H. Fukuda. An inertial iteratively regularized extragradient method for bilevel variational inequality problems, July 2025. arXiv preprint arXiv:2507.16640.
[4] F. Bach and E. Moulines. Non-Asymptotic Analysis of Stochastic Approximation Algorithms for Machine Learning. In Advances in Neural Information Processing Systems, volume 24, 2011.
[5] J. Cao, R. Jiang, N. Abolfazli, E. Y. Hamedani, and A. Mokhtari. Projection-Free Methods for Stochastic Simple Bilevel Optimization with Convex Lower-level Problem. In Thirty-Seventh Conference on Neural Information Processing Systems, Nov. 2023.
[6] J. Cao, R. Jiang, E. Y. Hamedani, and A. Mokhtari. An Accelerated Gradient Method for Convex Smooth Simple Bilevel Optimization. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, Nov. 2024.
[7] J. Cao, R. Jiang, E. Y. Hamedani, and A. Mokhtari. On the Complexity of Finding Stationary Points in Nonconvex Simple Bilevel Optimization. In Advances in Neural Information Processing Systems, volume 38, 2026.
[8] D. Cortild and C. Cartis. Stochastic Krasnoselskii-Mann Iterations: Convergence without Uniformly Bounded Variance, Apr. 2026. arXiv preprint arXiv:2604.22581.
[9] D. Cortild, L. Ketels, J. Peypouquet, and G. Garrigos. Bias-Optimal Bounds for SGD: A Computer-Aided Lyapunov Analysis, May 2025. arXiv preprint arXiv:2505.17965.
[10] D. Cortild, M. Marschner, and M. Staudigl. Regularization Methods for Solving Hierarchical Variational Inequalities with Complexity Guarantees, Dec. 2025. arXiv preprint arXiv:2512.20772.
[11] L. Franceschi, P. Frasconi, S. Salzo, R. Grazzi, and M. Pontil. Bilevel Programming for Hyperparameter Optimization and Meta-Learning. In Proceedings of the 35th International Conference on Machine Learning, July 2018.
[12] G. Garrigos, D. Cortild, L. Ketels, and J. Peypouquet. Last-Iterate Complexity of SGD for Convex and Smooth Stochastic Problems, July 2025. arXiv preprint arXiv:2507.14122.
[13] C. Gong, X. Liu, and Q. Liu. Automatic and Harmless Regularization with Constrained and Lexicographic Optimization: A Dynamic Barrier Approach. In Advances in Neural Information Processing Systems, volume 34, 2021.
[14] R. Jiang, N. Abolfazli, A. Mokhtari, and E. Y. Hamedani. A Conditional Gradient-based Method for Simple Bilevel Optimization with Convex Lower-level Problem. In Proceedings of The 26th International Conference on Artificial Intelligence and Statistics, Apr. 2023.
[15] H. D. Kaushik and F. Yousefian. A Method with Convergence Rates for Optimization Problems with Variational Inequality Constraints. SIAM Journal on Optimization, 31(3):2171–2198, Feb. 2021.
[16] A. Khaled and P. Richtárik. Better Theory for SGD in the Nonconvex World. Transactions on Machine Learning Research, 2023.
[17] D. Needell, N. Srebro, and R. Ward. Stochastic gradient descent, weighted sampling, and the randomized Kaczmarz algorithm. Mathematical Programming, 155(1):549–573, Jan. 2016.
[18] A. Nemirovski, A. Juditsky, G. Lan, and A. Shapiro. Robust Stochastic Approximation Approach to Stochastic Programming. SIAM Journal on Optimization, 19(4):1574–1609, Jan. 2009.
[19] H. Reisizadeh, J. Jia, Z. Bu, B. Vinzamuri, A. Ramakrishna, K.-W. Chang, V. Cevher, S. Liu, and M. Hong. BLUR: A Bi-Level Optimization Approach for LLM Unlearning. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics, Mar. 2026.
[20] H. Robbins and D. Siegmund. A convergence theorem for non negative almost supermartingales and some applications. In Optimizing Methods in Statistics, pages 233–257. 1971.
[21] S. Samadi and F. Yousefian. Improved Guarantees for Optimal Nash Equilibrium Seeking and Bilevel Variational Inequalities. SIAM Journal on Optimization, 35(1):369–399, Mar. 2025.
A Proofs
Throughout Appendix A, we let (xk) be the iterates generated by Algorithm 1, and we assume Assumptions 2.1 and 2.2 hold. We define the filtration Fk=σ(x0,{ξℓ,i,ζℓ,j}ℓ<k) so that xk is Fk-measurable, and denote by Ek[⋅]=E[⋅∣Fk] the conditional expectation. We let E[⋅] denote the total expectation. For convenience, we define the following shorthand
For a fixed b∈H, we define ϕb(a)=a+∥b∥2+ρ[β∥b∥2−⟨a,b⟩]+b. On the half-space β∥b∥2−⟨a,b⟩≤0, ϕb≡I, and therefore Dϕb(a)≡I on the interior of the half-space, where it then holds that ∥Dϕb(a)∥op=1. On the interior of the other half-space, namely for β∥b∥2−⟨a,b⟩>0, it holds that Dϕb(a)≡I−∥b∥2+ρb⊗b, whose eigenvalues are 1 on b⊥ and ∥b∥2+ρρ∈[0,1) for ρ≥0. Specifically, ∥Dϕb(a)∥op≤1.
Now, fix a and a′. If both lie within the same half-space, then, it holds that
where the latter holds as a,a~,a′ are colinear. Specifically, it holds that, for fixed b∈H and arbitrary a,a′∈H,
∥Dβ,ρ(a,b)−Dβ,ρ(a′,b)∥≤∥a−a′∥.
Now fix a∈H, and define λa(b)=∥b∥2+ρβ∥b∥2−⟨a,b⟩ and ψa(b)=a+[λa(b)]+b. In the inactive region, ψa(b)≡a, so that Dψa(b)≡0. In the active region, it holds that
We note that the inactive and active regions are no longer half-spaces. However, for a given a∈H, any segment [b,b′] can be split into finitely many segments that each lie entirely within one of the regions, since these regions are parametrized by a polynomial. As such, by the same reasoning as the previous case, it holds that, for fixed a∈H and arbitrary b,b′∈H,
We now derive descent lemmas for both the upper- and lower-level objectives. Combining these bounds yields a weighted stationarity bound, from which the convergence rates in Section A.3 follow.
Proof. Define Hk=ηkδg,k+Lgηk∥dk∥2+Cg,k, so that Hk≥2βk∥∇g(xk)∥2 by Lemma A.5. Then, since βk2∥∇g(xk)∥2≤2βkHk and βkGf∥∇g(xk)∥≤2βkGfHk, we deduce from Lemma A.4 that
As (ηk) and (ηkβk) are nonincreasing, we may apply summation by parts to obtain the wanted quantity, after division by ∑k=0K−1ηkβk.
A.3 Proof of Corollary 3.1
A.3.1 Horizon-Dependent Parameters
We consider the constant parameter setting of Theorem A.7, namely ηk≡η,βk≡β,ρk≡ρ,Bf,k≡Bf,Bg,k≡Bg. This implies that τk≡τ,Cf,k≡Cf,Cg,k≡Cg,Rk≡R.
We assume that η,β,ρ≤1 and that Bf,Bg≥1. Therefore,
The goal of the numerical example in Section 4 is to provide a toy example showcasing a comparison between the methods SDBGD, SDBPG, PR-SDBPG and VR-PR-SDBPG. In this section, we provide a complete description of the experiment, allowing for complete reproducibility.
Problem Setup. As mentioning in Section 4, we select
so that the solution to (P) is (2π,0). These functions satisfy our assumptions with Lf=1,Lg=1,Gf=1.
Stochastic Oracle. We having access to stochastic gradients given by
∇fξ(x)=∇f(x)+ξand∇gζ(x)=∇g(x)+ζ,
where ξ∼N(0,σf2I) and ζ∼N(0,σg2I), so that assumption of uniformly bounded variance is satisfied. We select σf=σg=0.5.
Algorithmic Setup. All methods are implemented in an anytime fashion. Our method, SDBGD, uses the anytime schedule described in Corollary 3.1 with a=1/4. For the methods in Ahmadi et al. [1], whose theory only cover horizon-dependent schedules, we form anytime schedules by replacing the horizon K by the current effective horizon k+1. Each method is started at the same initial point x0=(1.5,1.5) and is given the same stochastic oracle budget B=108.
Parameter Selection. The choice of parameters is given in Table 2. The powers of tk=(k+1) follow the theoretical results, whereas the proportionality constants are chosen manually and not varied between runs.
Table 2: Parameter choices for the compared methods. Here, tk=k+1 for convenience.
Method
Step-Size(ηk)
Barrier(βk)
Regul.(ρk,γk)
Upp.-Bat.(Bf,k)
Low.-Bat.(Bg,k)
Other
SDBGD
0.05tk−1/4
0.5tk−1/4
tk−3/2
⌊tk⌋
⌊tk5/2⌋
N/A
SDBPG
0.05tk−1/4
0.5tk−1/4
tk−1
⌊tk⌋
⌊tk2⌋
N/A
PR-SDBPG
0.05tk−1/2
0.5tk1/4
1
⌊tk⌋
⌊tk3/2⌋
μk=1
VR-PR-SDBPG
0.05tk−1/2
0.5tk1/4
1
⌊tk1/2⌋
⌊tk⌋
μk=1αk=0.2tk−1/2
Oracle Accounting. During iteration k, the methods SDBGD, SDBPG and PR-SDBPG use Bf,k+Bg,k stochastic oracle calls. Method VR-PR-SDBPG makes use of 2(Bf,k+Bg,k). An iteration is executed only if its complete oracle cost fits within the remaining oracle budget.
Evaluation Protocol. We perform 10 independent runs, and plot the empirical mean of the upper-level stationarity measure ∥dk∥2 and if the lower-level stationarity measure ∥∇g(xk)∥2. We note that full gradients are only used for evaluation purposes and are never called by the algorithm.
Computer Resources. The experiment is written in Python 3.13, and was executed on an Apple Silicon MacBook Pro, with a M5 chip and 16GB of RAM.