FedDANE: A Federated Newton-Type Method

Tian Li, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, Virginia Smith

In the world of distributed optimization, Newton-type methods are often the "gold standard" for fast convergence. However, the transition from well-behaved data centers to the messy, heterogeneous world of Federated Learning (FL) is rarely straightforward. In this paper, researchers from CMU and their collaborators introduce FedDANE, a federated adaptation of the DANE algorithm. While they successfully prove its convergence, the real story lies in their honest empirical finding: sometimes, simpler is better.

TL;DR

The authors propose FedDANE, a Newton-type optimization method for federated learning that includes a gradient correction term to handle data heterogeneity. While they provide solid convergence guarantees for both convex and non-convex functions, empirical results show that FedDANE consistently underperforms simpler baselines like FedAvg and FedProx due to the noise introduced by low device participation.

What Problem Does This Paper Address?

Federated Learning involves training models across thousands or millions of remote devices (like smartphones) without ever moving the data. This setup introduces two massive headaches for optimization:

  1. Statistical Heterogeneity: Data is "Non-IID." Your photos look nothing like my photos, which can cause standard algorithms like FedAvg to diverge.
  2. Low Participation: You can't talk to every device at every step. Only a tiny fraction (e.g., 1%) might be available at any given time.

Existing methods like FedProx try to stabilize training by adding a "proximal term" (keeping local updates close to the global model). The authors wondered: Can we do better by using a Newton-type approach that uses second-order information (or an approximation of it) to speed up convergence?

Methods

The authors adapted DANE (Distributed Approximate Newton-type Engine) for the federated setting. The core of FedDANE is the local subproblem solved by each device $k$:

$$\min_{w} F_k(w) + \langle g_t - \nabla F_k(w^{t-1}), w - w^{t-1} \rangle + \frac{\mu}{2} \|w - w^{t-1}\|^2$$

What’s New?

  • Gradient Correction: The term $\langle g_t - \nabla F_k(w^{t-1}), w - w^{t-1} \rangle$ is the "secret sauce." It attempts to correct the local gradient using an estimate of the global gradient ($g_t$).
  • Approximate Global Gradients: In standard DANE, you need the exact global gradient, which requires communicating with every device. FedDANE approximates this by sampling a subset of devices, making it feasible for FL.
  • Two-Round Communication: To get that global gradient estimate, FedDANE requires two rounds of communication per update: one to collect gradients and one to distribute the aggregate and collect the resulting model weights.

Datasets

The authors evaluated FedDANE using the LEAF benchmark and synthetic datasets:

  • Synthetic: Datasets with varying, controlled levels of statistical heterogeneity.
  • FEMNIST: Image classification (handwritten digits/characters) partitioned by the original writer.
  • Sent140: Sentiment analysis on Twitter data, partitioned by user.
  • Shakespeare: Next-character prediction based on the plays of William Shakespeare, partitioned by speaking role.

Key Insights and Ideas

  • The Theory-Practice Gap: The paper provides rigorous proofs that FedDANE should converge. However, the assumptions required for these proofs (like having a very accurate global gradient) are often violated in the real world.
  • The "Gradient Correction" Penalty: In a data center, gradient correction helps. In FL, because we only sample a few devices, the estimate of the global gradient is "noisy." This noise actually hurts the local solver more than it helps, leading to the erratic behavior seen in the results.
  • Communication is Expensive: Because FedDANE requires two rounds of communication for a single update, it is inherently "slower" in terms of wall-clock time or communication efficiency compared to FedAvg, which only needs one.

Key Results

The empirical results were a surprise: FedDANE consistently underperformed.

Convergence of FedDANE vs. FedAvg and FedProx across various datasets.

As shown in Figure 1, FedDANE (the dotted orange line) often converges more slowly or exhibits high variance compared to FedAvg and FedProx. On highly heterogeneous datasets like Synthetic (1,1) or Shakespeare, FedDANE's performance is particularly disappointing, sometimes even diverging.

The authors also tested an "unrealistic" setting with very high device participation (up to 70-100%) and only one local epoch to see if FedDANE would shine. Even then, it failed to significantly beat the simpler FedProx, suggesting that the gradient correction term is simply not well-suited for the statistical noise inherent in federated environments.

Limitations and Future Work

The authors are commendably transparent about FedDANE's shortcomings:

  • Communication Overhead: The two-round requirement is a major bottleneck.
  • Sensitivity to Heterogeneity: The method struggles when the sampled devices don't represent the global population well.

Future Directions: 1. Pipelining: Finding ways to overlap the gradient collection and weight update rounds to reduce communication latency. 2. Decaying Correction: Starting with the gradient correction term to gain initial speed but "decaying" it over time so the algorithm reverts to the more stable FedProx as training progresses. 3. Better Aggregation: Exploring more robust ways to estimate the global gradient from a small, biased sample of devices.

Summary updated

BibTeX
@misc{li2020feddane,
  author = {Tian Li and Anit Kumar Sahu and Manzil Zaheer and Maziar Sanjabi and Ameet Talwalkar and Virginia Smith},
  title = {{FedDANE: A Federated Newton-Type Method}},
  year = {2020},
  eprint = {2001.01920},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.01920},
}
Figure