Semi-Decentralized Federated Learning With Cooperative D2D Local Model Aggregations

Frank Po-Chen Lin, Seyyedali Hosseinalipour, Sheikh Shams Azam, Christopher G. Brinton, Nicolò Michelusi · DOI

Abstract

Federated learning has emerged as a popular technique for distributing machine learning (ML) model training across the wireless edge. In this paper, we propose two timescale hybrid federated learning (TT-HF), a semi-decentralized learning architecture that combines the conventional device-to-server communication paradigm for federated learning with device-to-device (D2D) communications for model training. In TT-HF, during each global aggregation interval, devices perform multiple stochastic gradient descent (SGD) iterations on their individual datasets and aperiodically engage in consensus procedures of their model parameters through cooperative, distributed D2D communications within local clusters. With a new general definition of gradient diversity, we formally study the convergence behavior of TT-HF, resulting in new convergence bounds for distributed ML. We leverage these bounds to develop an adaptive control algorithm that tunes the step size, D2D communication rounds, and global aggregation period to target a sublinear convergence rate of $\mathcal{O}(1/t)$ while minimizing network resource utilization.

Introduction: Challenges at the Wireless Edge

Standard Federated Learning (FL) typically follows a "star" topology where edge devices train models locally and upload them to a central server for aggregation. While popular, this approach faces three major hurdles in real-world wireless environments:

  1. Communication Bottlenecks: Uploading large model parameters to distant base stations is energy-intensive and slow.
  2. Data Heterogeneity: Real-world data is often non-i.i.d. (independent and identically distributed). If local datasets are highly biased, individual models diverge, leading to poor global performance.
  3. Resource Constraints: IoT devices have limited battery life and varying compute power, making frequent global updates impractical.

TT-HF aims to bridge the gap between fully centralized FL and fully decentralized learning by leveraging local peer-to-peer connections to pre-aggregate models before they reach the server.

The TT-HF Architecture

The core innovation of the TT-HF framework is its semi-decentralized structure. Devices are organized into local clusters where they utilize intra-cluster D2D communication to reach a local consensus.

The TT-HF architecture: Local clusters ($S_1, \dots, S_N$) perform intra-cluster D2D communication for cooperative model aggregation before a sampled device communicates with the central server.

Instead of every device uploading to the server, TT-HF allows the server to sample just one representative device per cluster. Because the cluster has already reached a consensus, this single upload represents the entire group, reducing uplink traffic by a factor proportional to the cluster size.

Two-Timescale Dynamics

TT-HF operates on two distinct timescales to balance local learning with global synchronization:

  • Timescale 1 (Local SGD): Devices perform standard stochastic gradient descent on their individual datasets.
  • Timescale 2 (D2D Consensus): Between global server updates, nearby devices share their models with neighbors via low-power D2D links to reach a local consensus.
Illustration of the two-timescale operation: local SGD updates occur at a fine granularity (t), while D2D consensus (t') and global aggregations happen aperiodically at larger intervals.

This aperiodic nature is crucial for real-world wireless networks where channels fade and devices may drop in and out. The local D2D consensus acts as a "bias buffer," smoothing out the extreme biases of individual local datasets before they reach the global model.

Technical Contributions and Adaptive Control

The paper introduces several theoretical advancements to ensure efficiency and convergence:

  • Gradient Diversity Metric: A new, generalized definition of gradient diversity is proposed that remains valid for quadratic loss functions, where previous definitions in literature often failed.
  • Adaptive Control Algorithm: The framework includes a "brain" that dynamically tunes the learning rate, the number of D2D consensus rounds, and the global aggregation period to minimize a trade-off between energy, delay, and model accuracy.

Experimental Results

The researchers evaluated TT-HF using MNIST and Fashion-MNIST benchmarks under various non-i.i.d. distributions.

  • Superior Accuracy: In extreme non-i.i.d. scenarios, TT-HF significantly outperformed standard FL baselines, reaching higher accuracy levels faster when local data was highly biased.
  • Resource Savings: The adaptive controller achieved up to a 75% reduction in total cost (energy and delay) compared to full-participation federated learning while reaching the same accuracy targets.
  • Robustness: Numerical evaluations showed the system remains stable even with 5% packet loss in D2D links due to fading channels.

Conclusion

TT-HF demonstrates that semi-decentralized learning can significantly improve the efficiency and accuracy of federated learning at the edge. Future work includes extending the convergence theory for non-convex settings and investigating high-speed mobility scenarios where cluster membership may change rapidly.

Summary updated

BibTeX
@article{lin2021semi,
  author = {Frank Po-Chen Lin and Seyyedali Hosseinalipour and Sheikh Shams Azam and Christopher G. Brinton and Nicolò Michelusi},
  title = {{Semi-Decentralized Federated Learning With Cooperative D2D Local Model Aggregations}},
  journal = {IEEE J. Sel. Areas Commun.},
  year = {2021},
  url = {https://openreview.net/forum?id=JkPcP131Pgk},
}
Figure