Abstract
Bilevel optimization recently has received tremendous attention due to its great success in solving important machine learning problems like meta learning, reinforcement learning, and hyperparameter optimization. Extending single-agent training on bilevel problems to the decentralized setting is a natural generalization, and there has been a flurry of work studying decentralized bilevel optimization algorithms. However, it remains unknown how to design the distributed algorithm with sample complexity and convergence rate comparable to SGD for stochastic optimization, and at the same time without directly computing the exact Hessian or Jacobian matrices. In this paper we propose such an algorithm. More specifically, we propose a novel decentralized stochastic bilevel optimization (DSBO) algorithm that only requires first order stochastic oracle, Hessian-vector product and Jacobian-vector product oracle. The sample complexity of our algorithm matches the currently best known results for DSBO, and the advantage of our algorithm is that it does not require estimating the full Hessian and Jacobian matrices, thereby having improved per-iteration complexity.
Introduction
Bilevel optimization is a hierarchical framework where an upper-level optimization problem is constrained by the solution to a lower-level problem. This structure is pivotal for modern machine learning tasks such as meta-learning, hyperparameter optimization, and reinforcement learning. In decentralized settings, where data is distributed across multiple nodes without a central server, two primary challenges arise: data heterogeneity and computational explosion. Estimating the "hypergradient" (the gradient of the upper-level objective) typically requires inverting large Hessian matrices, leading to prohibitive $O(q^2)$ or $O(pq)$ costs per iteration for models with $q$ parameters. Existing decentralized algorithms often struggle with either these high computational costs or sub-optimal convergence rates.
Methodology
The proposed Moving Average Decentralized Stochastic Bilevel Optimization (MA-DSBO) algorithm introduces several key innovations to address these challenges:
- Hessian-Inverse-Gradient Product (HIGP) Oracle: Instead of full matrix inversion, MA-DSBO uses a decentralized subroutine to estimate the product of the inverse Hessian and a gradient vector directly. This approach leverages Hessian-vector products (HVP), which maintain the same computational complexity as standard gradients ($O(q)$).
- Gradient Tracking: To mitigate the effects of data heterogeneity across nodes, a tracking variable aggregates neighborhood information, ensuring global consensus and convergence.
- Moving Average Updates: Incorporating a moving average technique for upper-level variables reduces the bias in stochastic hypergradient estimation, improving sample efficiency.
Experimental Evaluation
The algorithm was evaluated on two primary benchmarks:
- Synthetic Data: $\ell_2$-regularized logistic regression across 8 nodes with heterogeneous data distributions.
- MNIST: Hyperparameter optimization for a logistic regression classifier, specifically learning optimal regularization parameters.
Results
MA-DSBO achieves a sample complexity of $\tilde{O}(\epsilon^{-2})$, matching the state-of-the-art for centralized bilevel optimization. Crucially, it reduces per-iteration communication and memory complexity from $O(q^2)$ to $O(q)$ by communicating only vectors.
Experimental results on synthetic data (Figure 1) demonstrate that MA-DSBO (labeled as MA_DSBO) converges significantly faster in terms of wall-clock time and requires fewer communicated blocks compared to baseline methods like GB_DSBO and DSBO_JHIP.
On the MNIST dataset (Figure 2), the algorithm shows stable convergence in test accuracy and loss across various hyperparameter settings ($\alpha, \beta$), confirming its robustness in practical scenarios.
Discussion and Future Work
While MA-DSBO offers significant improvements in per-iteration complexity, achieving "linear speedup" (where performance scales linearly with the number of agents) remains an open goal. Additionally, the current analysis assumes a strongly convex lower-level problem; extending this to the non-convex regimes common in deep learning is a key direction for future research. Finally, integrating explicit variance reduction techniques like SARAH or PAGE could further enhance convergence rates.
Summary updated