TL;DR
Stochastic bilevel optimization often requires estimating an implicit gradient (hypergradient) through expensive Hessian inversions or overly restrictive higher-order smoothness assumptions. This paper introduces MA-SOBA, a single-loop, Hessian-inversion-free algorithm that incorporates a moving-average hypergradient estimator. Under standard first- and second-order smoothness conditions, MA-SOBA achieves optimal $\mathcal{O}(1/\epsilon^2)$ sample complexity and generalizes to multi-objective robust bilevel optimization with state-of-the-art guarantees.
What Problem Does This Paper Address?
Bilevel optimization problems involve an "outer" upper-level (UL) objective that depends on the optimal solution of an "inner" lower-level (LL) problem: $$\min_{x \in \mathcal{X}} \Phi(x) := f(x, y^*(x)) \quad \text{s.t.} \quad y^*(x) = \arg\min_y g(x, y)$$
These formulations underpin hyperparameter tuning, meta-learning, data cleaning, and neural architecture search. However, computing the hypergradient $\nabla \Phi(x)$ via the implicit function theorem requires inverting the lower-level Hessian: $$z^*(x) = \left[\nabla_{22}^2 g(x, y^*(x))\right]^{-1} \nabla_2 f(x, y^*(x))$$
In stochastic settings, estimating this inverse without bias is notoriously difficult. Past approaches relied on:
- Neumann series approximations, which require nested loops and incur an extra $\log(1/\epsilon)$ complexity factor.
- Explicit inversion or single-loop SGD solvers like SOBA (Dagréou et al., 2022). While SOBA achieved optimal $\mathcal{O}(1/\epsilon^2)$ complexity, its theoretical proof required unnatural higher-order smoothness assumptions (a Lipschitz Hessian for $f$ and a Lipschitz third-order derivative for $g$).
The central question addressed is: Can we design a fully single-loop, Hessian-inversion-free algorithm that attains optimal $\mathcal{O}(1/\epsilon^2)$ sample complexity under standard, minimal smoothness assumptions?
Methods
The authors propose MA-SOBA (Moving-Average Stochastic Bilevel Algorithm). Rather than running inner loops to solve the linear system for $z^*(x)$, MA-SOBA updates outer, inner, auxiliary, and dual variables simultaneously in a single loop using constant batch sizes:
- Inner variable ($y$): Updated by taking a single SGD step on $\nabla_2 g(x^k, y^k)$.
- Auxiliary variable ($z$): Updated by taking a single SGD step on the quadratic sub-problem whose stationary point is $z^*(x^k)$, avoiding any explicit matrix inversion or Neumann truncation.
-
Dual hypergradient estimator ($h$): Updated via a moving-average (momentum-like) tracking step: $$h^{k+1} = (1 - \theta_k)h^k + \theta_k \left( u_x^{k+1} - J^{k+1} z^k \right)$$ where $u_x^{k+1}$ and $J^{k+1}$ are stochastic estimates of $\nabla_1 f$ and the cross-Hessian $\nabla_{12}^2 g$.
-
Outer variable ($x$): Updated via projected gradient steps using the smoothed tracking sequence $h^k$.
Multi-Objective Extension: MORMA-SOBA
The authors extend the framework to solve multi-task robust minimax bilevel problems: $$\min_{x \in \mathcal{X}} \max_{\lambda \in \Delta_n} \sum_{i=1}^n \lambda_i f_i(x, y_i^*(x)) - \frac{\mu_\lambda}{2}\left\|\lambda - \frac{\mathbf{1}_n}{n}\right\|^2$$ By applying moving-average updates to both the hypergradient tracking and the task-weight vector $\lambda$, MORMA-SOBA resolves filtration and expectation ambiguities present in previous minimax bilevel analyses.
Datasets
The authors evaluated the algorithms on standard machine learning benchmarks (using the open-source Benchopt framework):
- IJCNN1: Binary classification dataset (22 features; 49,990 training samples, 91,701 validation samples) used for $\ell_2$-regularized logistic regression hyperparameter optimization.
- MNIST: Used for data hyper-cleaning (20,000 train, 5,000 val, 10,000 test) with symmetric label noise corruptions $p \in \{0.5, 0.7, 0.9\}$.
- FashionMNIST: Used for robust multi-task representation learning across 10 seen binary classification tasks (8 easy, 2 hard) and 7 unseen testing tasks.
No new datasets were introduced.
Key Insights and Ideas
- Relaxed Smoothness via Gradient Tracking: In standard SOBA, bounding error propagation between $z^k$ and $z^*(x^k)$ required $z^*(x)$ to have a Lipschitz gradient, which inherently demands third derivatives of $g$. By adding the moving-average sequence $h^k$, MA-SOBA controls hypergradient bias directly through a combined potential/merit function, eliminating the need for higher-order Taylor expansions.
- Minimal Assumptions: Convergence requires only that $f \in C_L^{1,1}$ (Lipschitz gradient) and $g \in C_L^{2,2}$ (Lipschitz Hessian), with strongly convex $g$ and bounded $\nabla_2 f(x, y^*(x))$.
- Practical Stopping Criteria: Because $h^k$ provably converges to the true hypergradient $\nabla \Phi(x^k)$ despite biased sampling, $\|h^k\|$ provides a concrete, computable termination metric for stochastic bilevel optimization.
- Correcting Minimax Bilevel Theory: The authors demonstrate that prior work on robust bilevel minimax algorithms (e.g., MORBiT) swapped expectations and maxima incorrectly ($\max \mathbb{E}[\cdot]$ vs. $\mathbb{E}[\max(\cdot)]$), creating a theoretical gap that MORMA-SOBA rigorously resolves.
Key Results
- Sample Complexity: MA-SOBA achieves an optimal $\mathcal{O}(\epsilon^{-2})$ sample complexity for finding an $\epsilon$-stationary point without variance reduction, matching the theoretical single-level lower bound while operating with $\mathcal{O}(1)$ batch sizes.
- Minimax Complexity: For $\mu_\lambda$-strongly-concave regularized minimax objectives, MORMA-SOBA achieves an oracle complexity of $\mathcal{O}(n^5 \mu_\lambda^{-4} \epsilon^{-2})$ (and $\mathcal{O}(n^5 \epsilon^{-4})$ for the unregularized objective when $\mu_\lambda = \mathcal{O}(\sqrt{\epsilon})$).
- Empirical Speed & Accuracy:
- IJCNN1: MA-SOBA achieved lower suboptimality gaps faster than SOBA, BSA, stocBiO, and TTSA, competing directly with variance-reduced methods like SABA without requiring SABA's extensive memory tables.
- MNIST Hyper-cleaning: Across label noise rates ($p = 0.5, 0.7, 0.9$), MA-SOBA converged to the lowest test error fastest among non-variance-reduced baselines.
- Robust Multi-Task Learning: MORMA-SOBA reduced both maximum task loss and average task loss substantially faster than MORBiT on both seen and unseen tasks.
Limitations and Future Work
- Lower-Level Strong Convexity: The analysis requires the lower-level function $g(x, \cdot)$ to be strongly convex ($\mu_g > 0$), limiting direct application to non-convex or weakly convex inner problems.
- Hessian-Vector Products Required: Although inversion-free, the algorithm still requires stochastic Hessian-vector products. Extending the moving-average analysis to fully first-order (Hessian-free) formulations remains an open avenue.
- Dimension Scaling in Minimax Settings: The sample complexity for MORMA-SOBA depends heavily on the number of objectives ($n^5$), which may scale poorly to problems with a massive number of tasks.
Summary updated