Abstract
FEDNEST is the first comprehensive federated learning framework designed to solve complex "nested" optimization problems—such as hyperparameter tuning, minimax games, and compositional optimization—across decentralized, heterogeneous data. By integrating federated variance reduction with a communication-efficient hypergradient estimator, FEDNEST achieves convergence rates matching state-of-the-art non-federated algorithms while maintaining low communication costs.
Introduction
Standard Federated Learning (FL) algorithms, such as FedAvg, are typically optimized for single-level objective functions. However, many modern machine learning tasks are inherently nested. For instance, Bilevel Optimization involves an "outer" problem (e.g., hyperparameter tuning) and an "inner" problem (e.g., model training). Other examples include Minimax Optimization for GANs and Compositional Optimization for reinforcement learning.
Implementing these in a federated setting presents two major challenges:
- Client Drift: Data heterogeneity across clients causes local inner models to diverge from the global optimum.
- The Hessian Hurdle: Computing "hypergradients" for the outer problem often requires inverting a large Hessian matrix, creating a massive communication bottleneck.
Methodology: The FEDNEST Framework
The authors propose FEDNEST, a nested optimization machinery consisting of two primary components:
- FEDINN (Inner Loop): This component addresses the inner problem using a federated stochastic variance reduction algorithm (FEDSVRG). By employing "control variates," it keeps local updates aligned with global objectives, effectively mitigating client drift.
- FEDOUT (Outer Loop): This updates the outer variables. To overcome the "Hessian Hurdle," the authors developed FEDIHGP (Federated Inverse Hessian-Gradient Product). This recursive strategy utilizes matrix-vector products instead of full matrix inversions, significantly reducing communication overhead.
Additionally, a lighter version, LFEDNEST, allows clients to compute hypergradients locally. While faster, it is more sensitive to data heterogeneity.
Experimental Evaluation
The researchers evaluated FEDNEST on three benchmarks:
- Hyper-Representation Learning: Using MNIST partitioned into i.i.d. and non-i.i.d. setups.
- Loss Function Tuning: Using an Imbalanced MNIST dataset to maximize class-balanced validation accuracy.
- Federated Minimax: A synthetic saddle-point problem testing the algorithm's minimax handling.
Key Results and Insights
FEDNEST demonstrates several critical advantages:
- Theoretical Convergence: It achieves a sample complexity of $O(\epsilon^{-2})$ for $\epsilon$-stationary points, matching the performance of top-tier non-federated algorithms.
- Stability and Accuracy: In hyper-representation tasks, FEDNEST maintains high accuracy on non-i.i.d. data, whereas simpler methods like LFEDNEST or SGD-based variants experience significant performance degradation.
- Communication Efficiency: The IHGP trick transforms a bottleneck into efficient vector exchanges.
A key insight is that variance reduction is essential for nested problems; without it, errors from client drift amplify in the outer loop, leading to instability.
Limitations and Future Directions
Despite its success, FEDNEST has areas for improvement:
- Communication Overhead: While efficient, it still requires more rounds than single-level FL.
- Hessian-Free Methods: Future work could explore purely first-order approximations to further lighten the computational load.
- System Heterogeneity: Addressing variations in client hardware and connectivity (stragglers) remains an open challenge.
Summary updated