Abstract
Adaptive optimization methods like Adam are standard in centralized machine learning but face significant challenges in Federated Learning (FL) due to data heterogeneity and communication constraints. This paper introduces FAFED (Fast Adaptive Federated Learning), the first adaptive FL algorithm to achieve optimal convergence rates. By employing a shared adaptive learning rate mechanism and momentum-based variance reduction, FAFED overcomes the divergence issues typical of local adaptivity while maintaining high communication efficiency. Experimental results on language modeling and image classification benchmarks demonstrate FAFED's superior speed and stability compared to existing state-of-the-art methods.
Introduction
Federated Learning (FL) enables collaborative model training across distributed devices without sharing raw data. While simple Stochastic Gradient Descent (SGD) variants like FedAvg are widely used, they often lack the efficiency of adaptive optimizers (e.g., Adam, AdaGrad) which adjust learning rates per parameter. Adapting these methods to FL is non-trivial; naive implementations often suffer from "client drift," where local adaptive updates lead the global model to diverge, especially under heterogeneous data distributions.
The FAFED Algorithm
The researchers propose FAFED, designed to bridge the gap between adaptivity and efficiency. FAFED addresses three primary hurdles: divergence, slow convergence, and high resource requirements.
Shared Adaptive Learning Rates
A key innovation in FAFED is the use of a shared adaptive matrix. Instead of allowing each node to independently calculate its adaptive learning rate based on local data, FAFED periodically averages the second-moment estimates of gradients across all nodes. This synchronization ensures that all workers operate within a consistent optimization geometry, preventing the model from drifting toward local optima that do not align with the global objective.
Momentum-based Variance Reduction
To accelerate convergence, FAFED incorporates a sophisticated gradient estimator that tracks gradient history. This variance reduction technique minimizes the noise inherent in stochastic updates, allowing the algorithm to reach optimal convergence rates—specifically $O(\epsilon^{-3})$ sample complexity and $O(\epsilon^{-2})$ communication rounds—matching the theoretical limits for non-convex optimization.
Experimental Evaluation
The authors evaluated FAFED against several baselines, including FedAvg, SCAFFOLD, STEM, FedAdam, and FedAMS, across diverse tasks and datasets.
Language Modeling
On the WikiText2 dataset using a 2-layer LSTM, FAFED demonstrated significantly faster reduction in both training loss and perplexity.
As shown in the figure above, FAFED (black line) consistently stays below other methods, reaching lower perplexity levels in fewer communication rounds. Notably, it avoids the early-stage fluctuations seen in methods like FedAdam.
Image Classification
Performance was also tested on MNIST, Fashion-MNIST, and CIFAR-10 using Convolutional Neural Networks (CNNs) under varying degrees of data heterogeneity.
In these benchmarks, FAFED maintained a clear lead in convergence speed. For instance, on Fashion-MNIST with high heterogeneity, FAFED achieved a testing accuracy of 0.8188, outperforming FedAdam's 0.8040.
Key Insights
- The Divergence Trap: The study proves that local adaptivity without global synchronization is fundamentally flawed in heterogeneous settings.
- Synchronized Geometry: Coordination of the adaptive matrix scale is essential for stable local updates.
- Efficiency: FAFED achieves state-of-the-art convergence without requiring excessive batch sizes or full gradient computations, making it suitable for resource-constrained environments.
Conclusion and Future Work
FAFED represents a significant advancement in making adaptive federated learning practical and theoretically sound. Future research directions include extending the analysis to "cross-silo" scenarios with high client volatility and investigating the integration of FAFED with Differential Privacy (DP) mechanisms to enhance data security.
Full Paper: Faster Adaptive Federated Learning (AAAI 2023)
Summary updated