Abstract
Stochastic bilevel optimization generalizes the classic stochastic optimization from the minimization of a single objective to the minimization of an objective function that depends on the solution of another optimization problem. Recently, bilevel optimization is regaining popularity in emerging machine learning applications such as hyper-parameter optimization and model-agnostic meta learning. To solve this class of optimization problems, existing methods require either double-loop or two-timescale updates, which are sometimes less efficient. This paper develops a new optimization method for a class of stochastic bilevel problems that we term Single-Timescale stochAstic BiLevEl optimization (STABLE) method. STABLE runs in a single loop fashion, and uses a single-timescale update with a fixed batch size. To achieve an $\epsilon$-stationary point of the bilevel problem, STABLE requires ${\cal O}(\epsilon^{-2})$ samples in total; and to achieve an $\epsilon$-optimal solution in the strongly convex case, STABLE requires ${\cal O}(\epsilon^{-1})$ samples. To the best of our knowledge, when STABLE was proposed, it is the first bilevel optimization algorithm achieving the same order of sample complexity as SGD for single-level stochastic optimization.
Introduction
Bilevel optimization problems are characterized by a nested structure where an upper-level objective depends on the optimal solution of a lower-level problem: $$\min_{x} F(x) = \mathbb{E}[f(x, y^*(x); \xi)] \quad \text{subject to} \quad y^*(x) = \arg \min_y \mathbb{E}[g(x, y; \phi)]$$
The primary challenge in solving these problems lies in estimating the upper-level gradient, which requires accounting for the sensitivity of the lower-level solution $y^*(x)$ to changes in $x$. Conventional approaches typically utilize "double-loop" structures (solving the lower level to completion for every upper-level step) or "two-timescale" updates (updating the lower level much faster than the upper level). However, these methods are often computationally expensive or theoretically suboptimal in terms of sample complexity.
The STABLE Method
The STABLE algorithm overcomes these limitations by updating both upper and lower variables simultaneously at the same rate. Its design is rooted in three key innovations:
- Recursive Variance Reduction: Inspired by techniques like STORM, STABLE employs a recursive update for Hessian ($H_{yy}$) and Jacobian ($H_{xy}$) estimates, reducing the variance of the stochastic gradient estimator without requiring large batches.
- Tracking Correction Term: A specific term in the $y$-update "predicts" the movement of the lower-level optimum $y^*(x)$ as $x$ changes. This allows the lower-level variable to track the optimal path efficiently at a single timescale.
- Single-Loop Efficiency: By avoiding nested loops and maintaining a fixed batch size, STABLE simplifies implementation and improves wall-clock efficiency.
Complexity and Empirical Results
The theoretical contribution of STABLE is significant: it closes the complexity gap between bilevel and single-level optimization. As shown in the comparison below, STABLE improves upon the sample complexity of previous state-of-the-art methods like TTSA and BSA.
Empirically, STABLE was evaluated on hyper-parameter optimization tasks using datasets such as ijcnn1, covtype, and australian. The results demonstrated that STABLE converges faster in terms of both wall-clock time and sample count compared to BSA and TTSA. Furthermore, the algorithm exhibited high stability, showing lower variance across random trials.
Discussion and Limitations
While STABLE offers optimal sample complexity, it introduces a computational trade-off. The update for $y$ requires a matrix inversion, resulting in a per-iteration complexity of $O(d_y^3)$. This makes STABLE highly efficient for data-expensive scenarios where the lower-level dimension $d_y$ is moderate. For extremely high-dimensional problems, such as deep neural networks, methods utilizing matrix-vector products ($O(d_y^2)$) may still be necessary despite their higher sample requirements. Future work includes extending this single-timescale approach to reinforcement learning (e.g., actor-critic methods) and relaxing the projection requirements used in the current theoretical analysis.
Summary updated