Abstract
Bilevel optimization, crucial for hyperparameter tuning, meta-learning, and reinforcement learning, remains less explored in the decentralized learning paradigm, such as decentralized federated learning (DFL). Typically, decentralized bilevel methods rely on both gradients and Hessian matrices to approximate hypergradients of upper-level models. However, acquiring and sharing the second-order oracle is compute and communication intensive. To overcome these challenges, this paper introduces a fully first-order decentralized method for decentralized bilevel optimization, $C^2$DFB, which is both compute- and communicate-efficient. In $C^2$DFB, each learning node optimizes a min-min-max problem to approximate hypergradients by exclusively using gradient information. To reduce the traffic load at the inner-loop of solving the lower-level problem, $C^2$DFB incorporates a lightweight communication protocol for efficiently transmitting compressed residuals of local parameters. Rigorous theoretical analysis ensures its convergence, indicating first-order oracle calls of $\tilde{\mathcal{O}}(\epsilon^{-4})$. Experiments on hyperparameter tuning and hyper-representation tasks validate the superiority of $C^2$DFB across various topologies and heterogeneous data distributions.
Introduction
Bilevel optimization represents a "problem within a problem," where an upper-level objective depends on the optimal solution of a lower-level task. A classic example is hyperparameter tuning, where the upper level optimizes hyperparameters while the lower level trains the model parameters. In Decentralized Federated Learning (DFL), nodes collaborate without a central server, leading to two primary bottlenecks:
- Computation: Traditional methods require Hessian matrices (second-order derivatives), costing $O(d^3)$ to compute for $d$ parameters.
- Communication: Sharing these matrices requires $O(d^2)$ bandwidth, causing network congestion.
Existing first-order methods often struggle with data heterogeneity or lack theoretical convergence guarantees in decentralized settings.
Methodology: The C²DFB Framework
The proposed C²DFB (Compressed Communication-efficient Decentralized First-Order Bilevel Optimization) addresses these bottlenecks through three key innovations:
Fully First-Order Reformulation
Instead of direct bilevel optimization, the problem is reformulated into a "min-min-max" structure using a Lagrangian multiplier. This allows nodes to estimate hypergradients using only standard gradients, bypassing expensive Hessian calculations entirely.
Reference Point-Based Compression
To minimize bandwidth usage, nodes transmit compressed residuals rather than full models. As shown below, nodes track a "reference point" and only communicate the difference between their current state and this point. This implicit error compensation prevents the accumulation of compression errors over time.
Gradient Tracking and Mixing
To handle data heterogeneity (non-IID data), $C^2$DFB employs gradient tracking and a mixing step (weighted averaging with neighbors). This ensures all nodes reach a consensus on the global model even when local datasets are highly biased.
Experimental Evaluation
The authors evaluated $C^2$DFB on two tasks: Coefficient Tuning (20 Newsgroups dataset) and Hyper-Representation Learning (MNIST dataset). Experiments spanned various network topologies, including Ring, 2-hop, and Erdos-Renyi (ER) random graphs.
Key Results
- Communication Efficiency: On the 20 Newsgroups task, $C^2$DFB achieved 70% accuracy with only 378 MB of communication, whereas the MDBO baseline required over 98,000 MB—a 260x improvement.
- Training Speed: $C^2$DFB completed training in 96 seconds, compared to over 9,800 seconds for the baseline.
- Robustness: As illustrated in the performance plots below, $C^2$DFB demonstrates superior stability and faster convergence across different network structures compared to state-of-the-art methods.
Conclusion
$C^2$DFB proves that second-order information is not strictly necessary for effective decentralized bilevel optimization. By combining a Lagrangian reformulation with residual-based compression, the method achieves centralized-level convergence rates with significantly lower local costs. While the current framework assumes strong convexity for the lower-level problem, future work may explore "loopless" variants to further streamline updates.
Summary updated