Abstract
Decentralized bilevel optimization is a critical framework for modern machine learning tasks such as meta-learning and neural architecture search in distributed environments. However, existing methods often suffer from high communication overhead and slow convergence due to the complex nested structure of bilevel problems and data heterogeneity across workers. This paper introduces two novel algorithms, DSVRBGD-S (Simultaneous) and DSVRBGD-A (Alternating), which leverage a single-loop structure and variance reduction to achieve state-of-the-art performance. Our methods reduce the per-round communication cost from quadratic to linear relative to model dimensions while maintaining optimal convergence rates under mild assumptions.
Introduction
Bilevel optimization (BO) involves a nested hierarchy where an upper-level objective depends on the optimal solution of a lower-level task. In decentralized settings, where workers communicate only with immediate neighbors and possess heterogeneous (non-IID) data, estimating the "hypergradient" becomes a significant bottleneck. Traditional approaches often require communicating large Hessian or Jacobian matrices, leading to $O(d^2)$ communication costs. Furthermore, many existing algorithms rely on "double-loop" structures that are computationally expensive and require numerous communication rounds per iteration.
Proposed Methodology
To address these challenges, we propose two decentralized stochastic variance-reduced bilevel gradient descent algorithms. Both methods transition from complex double-loop structures to a streamlined single-loop approach, reducing the number of communication rounds per iteration to $O(1)$.
- DSVRBGD-S (Simultaneous): This variant updates the upper-level variables, lower-level variables, and an auxiliary variable (used to estimate the Hessian-inverse-vector product) concurrently.
- DSVRBGD-A (Alternating): This variant updates the variables sequentially. While more challenging to analyze theoretically, it often demonstrates superior stability in practical applications.
Key Innovations
- Variance Reduction: We employ a STORM-like variance-reduced gradient estimator to mitigate noise from stochastic sampling, facilitating faster convergence.
- Gradient Tracking: To manage data heterogeneity without massive overhead, we utilize a communication strategy that only requires transmitting vectors of size $O(d_x + d_y)$, effectively bypassing the need for $O(d^2)$ matrix communication.
- Relaxed Assumptions: Unlike prior work that assumes bounded gradients, our convergence analysis holds under milder, more realistic conditions.
Theoretical Comparison
The theoretical advantages of our proposed methods are summarized in the table below. Notably, our algorithms achieve a communication cost per round of $O(d_x + d_y)$, a significant improvement over the quadratic costs of previous state-of-the-art methods like Gossip-DSBO.
As shown in Figure 1, DSVRBGD-S and DSVRBGD-A achieve a convergence rate of $O(\frac{1}{K\epsilon^{3/2}})$, matching the best-known rates for homogeneous settings even when operating in difficult heterogeneous environments.
Experimental Results
We evaluated our algorithms on real-world datasets from the LIBSVM library (a9a, ijcnn1, and covtype), simulating decentralized environments with eight workers and heterogeneous class distributions. Across various network topologies (ring, random, and torus), DSVRBGD-S and DSVRBGD-A consistently outperformed baselines such as MA-DSBO and VRDBO. Our methods reached lower training losses and higher test accuracies while communicating significantly less data (measured in megabytes).
Conclusion and Future Work
Our work demonstrates that decentralized bilevel optimization can be performed efficiently without the heavy communication burden of Hessian matrices. While our methods show a stronger dependence on the network's spectral gap ($1/(1-\lambda)^4$), they provide a robust and scalable solution for heterogeneous environments. Future research will focus on improving this spectral gap dependence and exploring gradient compression techniques to further scale these algorithms to models with billions of parameters.
Summary updated