arXiv:2610.01843math.OCOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.01843

Optimal Stochastic Bilevel Optimization with First-Order Oracles

Linxuan Pan, Junchi Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study nonconvex-strongly-convex bilevel optimization under a stochastic first-order oracle. We introduce MRT-FD, a single-loop first-order method that simultaneously tracks the upper-level variable, the lower-level solution, and the auxiliary response arising from implicit differentiation of the hyperobjective. MRT-FD performs one update of each variable per iteration and approximates the second-order derivative actions using order-p finite differences. For any fixed finite smoothness order p≥1p \geq 1 in the lower-level variable, MRT-FD finds an ε\varepsilon-stationary point using O(ε−4−2/p)\mathcal{O}(\varepsilon^{-4-2/p}) stochastic gradient queries. We also prove a matching Ω(ε−4−2/p)\Omega(\varepsilon^{-4-2/p}) oracle lower bound. The lower-bound construction starts from a hard nonconvex minimization chain with a stronger stochastic oracle, and lifts it to a bilevel problem through a sinusoidal coupling with a scalar lower-level variable. Consequently, the dependence on ε\varepsilon is optimal for every fixed finite pp, closing the upper-lower complexity gap in this stochastic first-order oracle setting.

1 Introduction

Bilevel optimization models problems in which the performance of one decision depends on the solution of another optimization problem. We study the stochastic nonconvex-strongly-convex (NC-SC) setting

min⁡x∈RdxΦ(x):=f(x,y⋆(x)),y⋆(x):=arg⁡min⁡y∈Rdyg(x,y),(1)\min_{x\in\mathbb{R}^{d_{x}}}\Phi(x):=f(x,y^{\star}(x)),\qquad y^{\star}(x):=\arg\min_{y\in\mathbb{R}^{d_{y}}}g(x,y), \tag{1}

where g(x,⋅)g(x,\cdot) is strongly convex and the hyperobjective Φ\Phi may be nonconvex. This formulation captures applications including hyperparameter optimization (Franceschi et al., 2018), data reweighting (Pan et al., 2025), and meta-learning (Finn et al., 2017).

Under standard smoothness conditions, Φ\Phi is a smooth nonconvex function. Writing H(x,y):=∇yy2g(x,y)H(x, y) := \nabla_{yy}^2 g(x, y) and J(x,y):=∇xy2g(x,y)J(x, y) := \nabla_{xy}^2 g(x, y), implicit differentiation gives

∇Φ(x)=∇xf(x,y⋆(x))−J(x,y⋆(x))H(x,y⋆(x))−1∇yf(x,y⋆(x)).(2)\nabla\Phi(x)=\nabla_{x}f(x,y^{\star}(x))-J(x,y^{\star}(x))H(x,y^{\star}(x))^{-1}\nabla_{y}f(x,y^{\star}(x)). \tag{2}

The hypergradient therefore involves second-order derivatives of g, motivating methods based on Hessian- and Jacobian-vector products (Ghadimi and Wang, 2018; Ji et al., 2021). When such second-order stochastic derivative information is available, an O(ϵ−4)\mathcal{O}(\epsilon^{-4}) oracle complexity is achievable for finding an ϵ\epsilon-stationary point, matching the ϵ\epsilon dependence inherited from the lower bound for stochastic nonconvex optimization (Arjevani et al., 2023).

For large-scale problems, however, even Hessian-vector products may be expensive or unavailable, motivating methods that use only first-order queries. This restriction substantially changes the known complexity. Under standard smoothness assumptions, the best first-order methods achieve an O(ϵ−6)\mathcal{O}(\epsilon^{-6}) stochastic oracle complexity (Chen et al., 2025; Gu et al., 2026b). Recently, Chen et al. (2026b) show that additional pth-order smoothness with respect to the lower variable y can improve the upper bound to O~(ϵ−4−2/p)\widetilde{\mathcal{O}}(\epsilon^{-4-2/p}). As p increases, this rate interpolates between the ϵ−6\epsilon^{-6} complexity under base smoothness and the ϵ−4\epsilon^{-4} benchmark available with second-order information.

This improvement raises a fundamental question. Existing lower bounds do not characterize how the complexity of a first-order stochastic bilevel oracle depends on the available smoothness order p. It remains unclear whether the exponent 4+2/p4+2/p reflects an intrinsic information-theoretic barrier.

What is the optimal complexity of stochastic NC-SC bilevel optimization under a first-order oracle, and how does higher-order smoothness in the lower variable change this complexity?

We answer the question above by sharpening both the upper and lower complexity bounds.

A single-loop first-order algorithm. We develop Moving-Target Tracking with Finite Differences (MRT-FD), a single-loop method that requires order-p smoothness only for g with respect to the lower variable y, for any p≥1p \geq 1. We introduce the auxiliary vector z⋆(x)z^\star(x) as the unique solution of

H(x,y⋆(x))z⋆(x)=∇yf(x,y⋆(x)).H(x,y^{\star}(x))z^{\star}(x)=\nabla_{y}f(x,y^{\star}(x)).

MRT-FD maintains yky_k and zkz_k to track the moving targets y⋆(xk)y^\star(x_k) and z⋆(xk)z^\star(x_k) while simultaneously updating the outer variable xkx_k. It uses order-p finite differences to reconstruct the required second-order derivative actions from first-order queries, while projection keeps zkz_k bounded and controls the resulting finite-difference errors. Our analysis couples objective descent with the tracking errors ∥yk−y⋆(xk)∥2\|y_k - y^\star(x_k)\|^2 and ∥zk−z⋆(xk)∥2\|z_k - z^\star(x_k)\|^2 through a moving-target Lyapunov function that jointly controls target motion, finite-difference bias, and stochastic variance. For fixed pp, it achieves O(ϵ−4−2/p)\mathcal{O}(\epsilon^{-4-2/p}) complexity, matching the ϵ\epsilon dependence of Chen et al. (2026b) while removing the logarithmic factor.

Lower bound for finite smoothness order pp. We establish a matching lower bound under the same assumptions and oracle model. The construction embeds a hard nonconvex chain into a bilevel problem with a scalar lower-level variable through a sinusoidal coupling. Setting a coupling scale to δ=ϵ1/p\delta = \epsilon^{1/p} preserves the required order-pp smoothness while keeping the resulting hyperobjective close to the hard chain. We then construct a stochastic oracle in which informative observations occur only through a rare Bernoulli event with probability ϖ=Θ(δ2ϵ2)\varpi = \Theta(\delta^{2}\epsilon^{2}). A random-rotation argument limits progress along the hidden chain for arbitrary adaptive randomized algorithms. Combining a chain of length T=Θ(ϵ−2)T = \Theta(\epsilon^{-2}) with the reveal probability gives the lower bound of Ω(T/ϖ)=Ω(ϵ−4−2/p)\Omega(T/\varpi) = \Omega(\epsilon^{-4-2/p}).

References (93)