TL;DR
Recent literature widely assumed that "warm-starting" the lower-level solver from the previous iteration was required to achieve optimal sample complexity in bilevel optimization. This paper disproves that belief by showing that a simple double-loop stochastic gradient scheme without warm-start achieves the order-wise optimal $\mathcal{O}(\epsilon^{-2})$ sample complexity in stochastic settings and near-optimal $\tilde{\mathcal{O}}(\epsilon^{-1})$ in deterministic settings. This eliminates the massive memory burden of warm-starting in settings like meta-learning and deep equilibrium models where caching intermediate solutions is either ineffective or impossible.
What Problem Does This Paper Address?
Bilevel optimization problems involve an upper-level (UL) objective function that depends on the solution to a lower-level (LL) problem (e.g., meta-learning, hyperparameter tuning, equilibrium models, and data-poisoning attacks). In standard setups, the lower-level solution is the fixed point of a smooth contraction map (such as gradient descent on a strongly convex loss).
To achieve optimal sample complexity when optimizing the UL variable $\lambda$, prevailing algorithms rely on warm-starting: using the LL solution from step $s-1$ as the starting point for step $s$. While theoretically appealing, warm-starting has severe practical limitations:
- Memory explosion: In meta-learning across millions of potential tasks, caching the task-specific parameters for every task would require tens or hundreds of gigabytes of memory.
- Staleness: When tasks or data samples are sampled intermittently, any stored solution is so outdated by the time the task is revisited that warm-starting provides negligible acceleration.
The authors set out to answer: Can we achieve optimal sample complexity without relying on warm-start?
Methods
The authors introduce BSGM (Bilevel Stochastic Gradient Method), a double-loop framework combining projected inexact gradient descent at the upper level with an enhanced SID (Stochastic Implicit Differentiation) hypergradient estimator:
- Lower-Level (LL) and Linear System (LS) Solvers: Solved from scratch at every UL step ($w_0 = w_0(\lambda)$, $v_0 = 0$) using stochastic Krasnoselskii–Mann fixed-point iterations with decreasing step-sizes $\eta_t = \beta / (\gamma + t)$.
- Mini-Batched Derivatives: Rather than using single-sample evaluations, SID uses larger mini-batches of size $J = \Theta(t)$ specifically for estimating the UL gradient $\nabla E$ and the cross-Jacobian $\partial_2 \Phi$.
- Decoupled Convergence Analysis: By demonstrating that SID achieves a Mean Squared Error (MSE) of $\mathcal{O}(1/t)$ when setting $t = k = J$, the authors can apply a constant UL step size $\alpha \le 1/L_f$. Crucially, this decouples the convergence proof of the upper and lower levels, avoiding the convoluted joint dynamical systems analysis required for warm-start algorithms.
- General Formulation: The analysis extends to fixed-point contraction constraints directly (not just minimization), handles constrained parameter domains $\Lambda \subseteq \mathbb{R}^m$, and accommodates non-Lipschitz LL objectives (e.g., squared loss).
Datasets
The authors evaluate their approach on three established benchmarks (no new datasets introduced):
- MNIST: Evaluated on deep equilibrium models (full training set of 60,000 images, latent dimension $d=200$) and data-poisoning attacks (45,000 training images, 15,000 validation images, with 9,000 corrupted examples).
- Mini-ImageNet: 100 classes ($84 \times 84$ images) split into 64 meta-train, 16 meta-val, and 20 meta-test classes for 5-way 5-shot meta-learning over 50,000 sampled tasks.
Key Insights and Ideas
- The Root Cause of Suboptimality Was Estimator Variance, Not Lack of Warm-Start: Prior non-warm-start work (e.g., Ghadimi & Wang, 2018) required $\mathcal{O}(\epsilon^{-3})$ samples because their hypergradient estimator had non-vanishing variance, forcing a decaying UL step-size. By using mini-batches of size $\mathcal{O}(\epsilon^{-1})$ for $\nabla E$ and $\partial_2 \Phi$ alongside decaying step-sizes for the LL/LS solvers, the hypergradient MSE drops at $\mathcal{O}(1/t)$, enabling a constant UL step size.
- Warm-Start Is Ineffective for Large Task Spaces: For 5-way classification on Mini-ImageNet ($\approx 7.6 \times 10^6$ possible task combinations), storing the final layer for every task would demand ~122 GB of RAM. Even when caching only encountered tasks, tasks were sampled at most 3 times over 6,250 iterations, making warm-starting functionally identical to cold-start while wasting 0.8 GB of GPU memory.
Key Results
- Sample Complexity Bounds:
- Stochastic setting: BSGM achieves an $\epsilon$-stationary point in $\mathcal{O}(\epsilon^{-2})$ samples for finite horizons (and $\tilde{\mathcal{O}}(\epsilon^{-2})$ generally), matching the theoretical lower bound for non-convex stochastic first-order optimization.
- Deterministic setting: Achieves $\tilde{\mathcal{O}}(\epsilon^{-1})$ sample complexity using constant step-sizes and $t_s = k_s = \Theta(\log s)$.
- Equilibrium Models (MNIST): BSGM without warm-start achieves performance on par with warm-started versions across training/test accuracy (~98.3% test accuracy).
- Meta-Learning (Mini-ImageNet): Training and test accuracy trajectories for BSGM and BSGM with task-level warm-start overlap completely across all iterations.
- Data Poisoning (MNIST): Under an identical 2M-sample computational budget, BSGM achieves 78.05% test accuracy (lower is better for poisoning attacks), drastically outperforming single-loop methods like ALSET (90.89%) and closely competing with warm-started methods like Amigo (78.01%) and StochBiO (76.78%).
Limitations and Future Work
- Uniform Solution Bound Assumption: The theoretical rates depend on a uniform bound $B \ge \sup_{\lambda \in \Lambda} \|w(\lambda) - w_0(\lambda)\|$. Warm-start methods replace this with the local distance from the initial point $\|w(\lambda_0) - w_0(\lambda_0)\|$, which can be significantly smaller in practice.
- Variance Reduction: BSGM does not incorporate modern variance reduction techniques (e.g., SPIDER/SARAH), which can theoretically push stochastic sample complexity to $\tilde{\mathcal{O}}(\epsilon^{-1.5})$ at the cost of stronger expected smoothness assumptions and more complex hyperparameter tuning.
- Contraction Requirement: The lower-level dynamics must be contractive ($q < 1$). Non-contractive or non-convex lower-level problems lie outside this framework's guarantees.
Summary updated