Accelerated Federated Learning with Decoupled Adaptive Optimization

Jiayin Jin, Jiaxiang Ren, Yang Zhou, Lingjuan Lyu, Ji Liu, Dejing Dou

TL;DR

This paper introduces FedDA, a novel federated learning (FL) framework that bridges the gap between centralized adaptive optimizers (like Adam and SGDM) and distributed settings using the lens of Ordinary Differential Equations (ODEs). By decoupling global momentum from local updates and employing a late-stage full-batch gradient stabilization, FedDA achieves significantly faster convergence and higher accuracy across diverse datasets compared to state-of-the-art methods.

What Problem Does This Paper Address?

Federated Learning allows multiple clients to train a shared model without sharing their raw data, but it faces two major hurdles: client drift and a lack of adaptivity.

Client drift occurs when local models overfit to their specific, heterogeneous data, causing them to diverge from the global optimum. Meanwhile, standard adaptive optimizers (like Adam), which are highly successful in centralized training, don't translate easily to FL. Existing attempts to port these optimizers are often heuristic, leading to inconsistent convergence or requiring expensive communication. The authors identify a "paucity of theoretical principles" for designing adaptive FL methods and seek a more principled approach.

Methods

The authors propose an analytic framework based on the dynamics of Ordinary Differential Equations (ODEs). They view centralized optimization as a numerical solution to a slow-fast ODE system.

  1. ODE Decomposition: They establish that federated optimization can be viewed as a decomposition of the centralized optimizer's ODE. For example, they show that the popular FedAvg algorithm is essentially an approximate numerical solution to the decomposed ODE of standard Gradient Descent.
  2. Momentum Decoupling (FedDA): The core innovation is decoupling global momentum from local updates. In centralized SGDM, momentum buffers the gradient in every iteration. In FedDA, while global momentum doesn't participate in local training directly (to avoid exponential drift), it "buffers" the local gradients generated in each local iteration. Because the momentum equation is linear, it can be precisely decomposed and distributed to local devices without deviation.
  3. Full Batch Gradient Stabilization: To fix the "convergence inconsistency" often seen in adaptive FL, the authors suggest switching to full batch gradients and reducing local iterations to one toward the end of the training. This mimics centralized training when the model is near a local minimum, ensuring stable convergence.

Datasets

The researchers evaluated FedDA on three representative benchmarks:

  • CIFAR-100: Image classification using a modified ResNet-18 (replacing Batch Norm with Group Norm to handle FL heterogeneity).
  • EMNIST-62: Character recognition using a CNN, partitioned by author to simulate natural data heterogeneity.
  • Stack Overflow: A massive language modeling dataset for tag prediction using logistic regression on bag-of-words vectors.

Key Insights and Ideas

  • The Linearity Advantage: The authors realized that the equation for momentum is linear, allowing for an exact decomposition. In contrast, the "velocity" term in Adam is non-linear, making it impossible to decompose perfectly across clients. This insight led them to focus on decoupling momentum specifically.
  • Algebraic vs. Exponential Drift: Theoretically, they demonstrate that in standard local adaptive methods, local momentum deviates from the centralized version at an exponential rate. In FedDA, thanks to decoupling, this deviation is reduced to a much slower algebraic rate ($O(t^2)$).
  • Principled Design: Instead of trial-and-error heuristics, the ODE framework provides a mathematical "recipe" for translating any centralized optimizer into a federated one.

Key Results

FedDA consistently outperformed nine state-of-the-art baselines, including FedAvg, FedOpt, and SCAFFOLD.

  • Convergence Speed: FedDA achieved an average of 34.3% convergence improvement on CIFAR-100 and 22.6% on EMNIST. As seen in Figure 1, FedDA (dark blue line) reaches high accuracy much earlier than its competitors.
Convergence on CIFAR-100 with Three Optimizers
  • Final Accuracy: FedDA reached the highest final accuracy values across the board. For instance, on CIFAR-100 with SGDM, FedDA reached 0.518 accuracy, while the next best (FedLin) was at 0.440.
  • Stability: The loss curves (Figure 2) show that FedDA converges to a lower and more stable loss compared to other adaptive methods that often exhibit high oscillation.
Loss on CIFAR-100 with Three Optimizers

Limitations and Future Work

While FedDA shows great promise, the authors note a few areas for further exploration:

  • Hyperparameter Sensitivity: The performance is sensitive to the choice of local iteration numbers. As shown in Figure 5, there is a "sweet spot"; too many local iterations lead to overfitting and drift, while too few slow down convergence.
  • Communication Overhead: While FedDA improves convergence speed (reducing total rounds), the use of full batch gradients at the end of training could be computationally expensive for clients with very large local datasets.
  • Generalization: The paper focuses on SGDM, Adam, and AdaGrad. Future work could involve applying this ODE decomposition framework to even more complex or specialized optimizers.

Summary updated

BibTeX
@inproceedings{jin2022accelerated,
  author = {Jiayin Jin and Jiaxiang Ren and Yang Zhou and Lingjuan Lyu and Ji Liu and Dejing Dou},
  title = {{Accelerated Federated Learning with Decoupled Adaptive Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=0rb2v33RO_},
}
Figure