Decentralized Federated Learning with Gradient Tracking over Time-Varying Directed Networks

Duong Thuy Anh Nguyen, Su Wang, Angelia Nedich, H. Vincent PoorarXiv 2024 · DOI

Abstract

Traditional Federated Learning (FL) relies on a central server for model aggregation, introducing potential bottlenecks and privacy risks. This paper presents DSGTm-TV, a novel decentralized FL algorithm that enables collaborative model training over dynamic, directed networks without a central authority. By combining gradient tracking with heavy-ball momentum, DSGTm-TV effectively mitigates the "client drift" caused by heterogeneous (non-i.i.d.) data. A key feature of the algorithm is its support for uncoordinated hyperparameters, allowing agents to utilize independent learning rates and momentum settings. Theoretical results establish linear convergence for exact gradients, while empirical tests on image classification and NLP tasks demonstrate significant improvements in speed and stability over existing decentralized methods.

Introduction: The Shift to Decentralization

Federated Learning has traditionally operated under a hub-and-spoke model where a central server coordinates updates from multiple clients. While effective, this architecture presents several vulnerabilities, including single points of failure and communication congestion at the server.

Comparison between Centralized FL (a) and Decentralized FL (b), highlighting the removal of the central server in favor of peer-to-peer communication.

Decentralized Federated Learning (DFL) addresses these issues by allowing agents to communicate directly with their neighbors. However, transitioning to a fully decentralized environment introduces three primary challenges:

  1. Data Heterogeneity: Non-i.i.d. local datasets cause local models to diverge, hindering global convergence.
  2. Network Dynamics: Real-world connections are often directed (one-way) and change over time due to mobility or interference.
  3. Hyper-parameter Coordination: Most DFL algorithms require global synchronization of learning rates, which is impractical for heterogeneous hardware.

Methodology: DSGTm-TV

The proposed DSGTm-TV (Decentralized Stochastic Gradient Tracking with momentum over Time-Varying networks) algorithm introduces several technical innovations to handle these complexities.

Gradient Tracking and Momentum

To counter the bias of heterogeneous data, DSGTm-TV employs a "tracker" variable. Instead of simply averaging model weights, agents track the global gradient direction, ensuring that local updates remain aligned with the global objective. The inclusion of heavy-ball momentum further accelerates convergence through the loss landscape.

Handling Time-Varying Directed Networks

Unlike many existing methods that assume static, undirected graphs, DSGTm-TV is designed for networks where links may be one-way and intermittent.

Illustration of a time-varying directed network where the communication topology changes across iterations.

The algorithm utilizes a Push-Pull communication strategy. It uses row-stochastic matrices to "pull" model information and column-stochastic matrices to "push" gradient information. This dual-phase update allows the system to remain stable even in "unbalanced" networks where nodes have unequal in-degrees and out-degrees.

Uncoordinated Parameters

A significant contribution of this work is the proof that DSGTm-TV converges even when agents choose their own stepsizes ($\alpha_i$) and momentum parameters ($\beta_i$) autonomously, provided they remain within theoretically defined bounds.

Experimental Evaluation

The researchers validated the algorithm using two distinct datasets:

  • MNIST (Image Classification): Focused on binary classification of digits '3' and '5'.
  • SMS Spam Collection (NLP): Utilized a pre-trained BERT model to generate embeddings for a classification layer.

Key Results

  • Convergence Speed: On MNIST, DSGTm-TV achieved over 95% test accuracy in ~200 iterations in the stochastic setting, outperforming standard DFL-SGD in both speed and final error margin.
  • Stability: In the NLP task, the algorithm demonstrated remarkable stability, avoiding the high-variance oscillations seen in state-of-the-art DFL-SGD during early training phases.
  • Theoretical Soundness: The authors proved that with exact gradients, the algorithm achieves linear convergence to the global optimum.

Conclusion and Future Directions

DSGTm-TV provides a robust framework for decentralized learning in realistic, dynamic environments. While the current theoretical bounds for parameters are somewhat conservative and depend on global network properties, the algorithm's empirical success suggests broad applicability. Future work aims to integrate variance-reduction techniques (such as SAGA or SVRG) to further minimize steady-state error and enable exact convergence even with noisy stochastic gradients.

Summary updated

BibTeX
@misc{nguyen2024decentralized,
  author = {Duong Thuy Anh Nguyen and Su Wang and Duong Tung Nguyen and Angelia Nedich and H. Vincent Poor},
  title = {{Decentralized Federated Learning with Gradient Tracking over Time-Varying Directed Networks}},
  year = {2024},
  eprint = {2409.17189},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.17189},
}
Figure