Randomized Stochastic Variance-Reduced Methods for Stochastic Bilevel Optimization

Zhishuai Guo, Tianbao YangarXiv 2021

Abstract

Bilevel optimization is a critical framework for modern machine learning, yet it suffers from high computational costs and poor scalability in multi-task settings. This paper introduces a new family of algorithms, Stochastic Variance-Reduced Bilevel (SVRB) and its randomized variant (RSVRB), which leverage advanced variance-reduction techniques to achieve state-of-the-art performance. We prove that SVRB achieves a sample complexity of $O(1/\epsilon^3)$, matching the theoretical lower bound for non-convex stochastic optimization. Furthermore, RSVRB provides the first efficient framework for multi-task bilevel problems by making the per-iteration cost independent of the total number of tasks.

Introduction

Bilevel optimization involves an upper-level objective that depends on the solution to a lower-level objective. This structure is essential for meta-learning, neural architecture search, and hyperparameter optimization. However, calculating the upper-level gradient requires differentiating through the lower-level solution, involving expensive second-order derivatives (Hessians). Existing stochastic methods typically require $O(1/\epsilon^4)$ or $O(1/\epsilon^6)$ samples. Moreover, when the upper-level objective involves a sum over many tasks ($m$), standard algorithms require processing all tasks at every iteration, creating a significant computational bottleneck.

Methodology

The authors propose two primary algorithms based on Stochastic Variance-Reduced Bilevel (SVRB) methods:

  • SVRB (Single Task): This method uses a "STORM-style" variance reduction technique. Instead of using huge mini-batches to estimate the complex gradients and Hessians, it uses a recursive estimator that tracks the changes in these quantities over time. This allows the algorithm to use a constant batch size while still achieving high accuracy.
  • RSVRB (Multi-Task): To handle the $m \gg 1$ scenario, the authors introduce Randomized-Coordinate STORM (RC-STORM). Instead of updating every lower-level task at every step, RSVRB samples just one (or a few) tasks per iteration. Crucially, it uses a "delay update" strategy to maintain variance reduction for the unsampled tasks without actually doing the work, making the per-iteration cost independent of the total number of tasks.
  • RE-RSVRB: A "restarted" version of the algorithm designed for functions that satisfy the Polyak-Lojasiewicz (PL) condition (gradient-dominant functions), which yields even faster, linear-like convergence rates.

Theoretical and Empirical Results

The theoretical advantages of our approach are summarized in the comparison with existing state-of-the-art methods.

Comparison of stochastic bilevel optimization algorithms showing RSVRB's superior sample complexity and task efficiency.

As shown in the table above, SVRB/RSVRB improves sample complexity to $O(1/\epsilon^3)$, matching the lower bound for standard non-convex problems. Crucially, RSVRB is the only method where the number of tasks per iteration is $O(1)$, whereas previous methods like STABLE, TTSA, and StocBio required $O(m)$ tasks. This makes RSVRB uniquely suited for large-scale multi-task learning.

Empirically, we evaluated these methods on UCI Adult and Web Page Classification datasets. In multi-task environments with up to 500 sub-problems, RSVRB significantly outperformed baselines in terms of convergence speed and scalability. The single time-scale approach also simplified hyperparameter tuning compared to traditional two-time-scale methods.

Conclusion and Future Work

By reaching the $O(1/\epsilon^3)$ sample complexity bound and enabling efficient multi-tasking, SVRB and RSVRB represent a significant step forward in bilevel optimization. A remaining challenge is the $O(d^3)$ complexity of projecting matrices onto the positive-definite space via SVD. Future research will focus on approximate projections or alternative matrix decomposition techniques to further enhance scalability for high-dimensional deep learning models.

Summary updated

BibTeX
@misc{guo2021randomized,
  author = {Zhishuai Guo and Tianbao Yang},
  title = {{Randomized Stochastic Variance-Reduced Methods for Stochastic Bilevel Optimization}},
  year = {2021},
  eprint = {2105.02266},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.02266},
}
Figure