SWIFT: Rapid Decentralized Federated Learning via Wait-Free Model Communication

Marco Bornstein, Tahseen Rabbani, Evan Z Wang, Amrit Bedi, Furong Huang

Federated Learning (FL) allows multiple clients—such as smartphones or IoT devices—to collaboratively train a shared machine learning model without ever exposing their private data. While traditional centralized FL relies on a single server to aggregate updates, this central node can quickly become a communication bottleneck or a single point of failure. Decentralized FL solves this by allowing clients to communicate directly with their neighbors in a peer-to-peer fashion.

However, decentralized FL introduces its own challenges. Most current decentralized algorithms are synchronous, meaning every client must finish its local training and "check in" before the network can proceed to the next round. This creates a severe "straggler problem," where the entire training process is bottlenecked by the slowest device. While some asynchronous solutions exist, they typically rely on a "bounded-delay" assumption—presuming the slowest client won't fall too far behind. If a device drops offline or experiences severe lag, this assumption fails, and the model may fail to converge.

The SWIFT Solution: Wait-Free Communication

To address the straggler problem without relying on fragile delay assumptions, researchers have introduced SWIFT (Shared WaIt-Free Transmission). SWIFT is a novel decentralized FL algorithm built on a "wait-free" structure where clients never pause their training to wait for a neighbor to finish a computation.

SWIFT's wait-free communication structure allows clients to fetch and average models without waiting for slower neighbors.

The SWIFT architecture relies on three key technical innovations:

  1. Wait-Free Communication: Clients continuously perform local gradient updates. When it is time to communicate, they simply fetch the most recent models their neighbors have made available and perform an immediate averaging step. If a neighbor is slow, the client just uses the last available model from that neighbor and moves on.
  2. The CCS Algorithm: Standard decentralized learning requires a "doubly stochastic" communication matrix to ensure weights are perfectly balanced across the network. Maintaining this in an unpredictable, asynchronous setting is practically impossible. SWIFT bypasses this using the Communication Coefficient Selection (CCS) algorithm. This pre-processing step ensures that while individual updates might be unbalanced, the communication remains symmetric and doubly stochastic under expectation (on average over many iterations).
  3. Periodic Averaging: To further reduce communication overhead, SWIFT allows clients to perform multiple local gradient steps before fetching neighbor models, a technique known as periodic averaging.

Experimental Performance and Key Insights

The researchers evaluated SWIFT using the CIFAR-10 dataset across various network topologies, including simple Ring networks and more complex Ring of Cliques (ROC) setups. They tested both IID (evenly distributed) and non-IID (highly heterogeneous) data distributions to simulate real-world edge environments.

The results highlight that in decentralized settings, the time spent "waiting" to talk to neighbors often dwarfs the time spent actually calculating gradients. By making communication wait-free, SWIFT tackles the largest source of latency head-on.

SWIFT achieves faster convergence in terms of wall-clock time compared to synchronous baselines.

Key performance breakthroughs include:

  • Massive Speedups: SWIFT reduced average epoch time by 35% compared to standard decentralized SGD (D-SGD).
  • Slashed Communication Overhead: Communication time per epoch dropped by nearly an order of magnitude (an 86-90% reduction) compared to synchronous counterparts.
  • Faster Convergence: In challenging non-IID settings, SWIFT reached target loss levels 50% faster than existing state-of-the-art algorithms.
  • Linear Scalability: The algorithm demonstrates a linear speed-up in computational complexity as more clients are added, proving its viability for large-scale networks.

Crucially, SWIFT achieves these empirical gains while maintaining rigorous theoretical guarantees. The realization that communication only needs to be balanced under expectation allows SWIFT to drop the bounded-delay crutch entirely. The global model will still converge to the optimum, even if individual devices experience unpredictable slowdowns.

Limitations and Future Work

While SWIFT represents a significant leap forward, the authors note a few areas for future refinement. The current theoretical analysis assumes instantaneous transmission—meaning once a model is sent, it is received without network delay. In high-latency environments, this could impact real-world performance. Additionally, the algorithm currently assumes a fixed probability for client activation. Future iterations could introduce dynamic protocols to select optimal sampling probabilities based on real-time client performance or data quality.

Overall, SWIFT provides a highly scalable, robust framework that brings decentralized federated learning much closer to practical deployment in the messy, unpredictable world of edge computing.

Summary updated

BibTeX
@inproceedings{bornstein2023swift,
  author = {Marco Bornstein and Tahseen Rabbani and Evan Z Wang and Amrit Bedi and Furong Huang},
  title = {{SWIFT: Rapid Decentralized Federated Learning via Wait-Free Model Communication}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=jh1nCir1R3d},
}
Figure