Two Timescale Hybrid Federated Learning with Cooperative D2D Local Model Aggregations

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

Abstract

Federated learning (FL) 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. 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 over time. Our experiments demonstrate that TT-HF significantly outperforms current FL methods in terms of model accuracy and network energy consumption, especially under statistical heterogeneity.

Introduction

Standard Federated Learning typically follows a "star" topology where many edge devices train models locally and upload them to a central server for aggregation. However, this approach faces significant hurdles at the wireless edge:

  1. Communication Bottlenecks: Uploading large model parameters to a distant base station is energy-intensive and bandwidth-heavy.
  2. Data Heterogeneity (Non-i.i.d. Data): When devices have diverse local datasets, local models diverge quickly, leading to "client drift" which slows convergence and hurts global model accuracy.

While fully decentralized (peer-to-peer) learning exists, it often requires high network connectivity that doesn't scale well. TT-HF addresses these issues by introducing a semi-decentralized approach that leverages local D2D clusters to buffer model bias before global synchronization.

The TT-HF Architecture

The core of the proposed framework is the TT-HF algorithm, which operates on two distinct timescales to balance local computation, neighborhood cooperation, and global synchronization.

The TT-HF architecture featuring intra-cluster D2D communication and inter-cluster server-based aggregation.

As shown in the architecture above, TT-HF organizes devices into clusters ($S_1, ..., S_N$). The operation involves:

  • Local SGD (Fast Scale): Devices perform multiple iterations of stochastic gradient descent on their own local datasets.
  • D2D Consensus (Intermediate Scale): Periodically, devices within a local cluster exchange model parameters with neighbors to reach a local average. This acts as a "bias buffer," suppressing individual dataset bias before global communication.
  • Global Aggregation (Slow Scale): Occasionally, the server samples just one device from each cluster to upload its model, which is then broadcast to the entire network.
The two-timescale operation of TT-HF, showing local SGD updates, aperiodic D2D consensus, and global aggregations.

The figure above illustrates the temporal relationship between these operations. The local updates occur at time index $t$, while local consensus rounds occur at a separate index $t'$. Global aggregations happen at even larger intervals, allowing for significant communication savings.

Key Innovations and Insights

  • New Gradient Diversity Metric: The authors propose a generalized definition of "gradient diversity" that better handles quadratic loss functions, leading to more realistic convergence bounds.
  • Adaptive Control Algorithm: A mathematical framework dynamically adjusts the learning rate, the number of D2D rounds, and the global aggregation period to minimize a weighted cost of energy, delay, and model loss.
  • Sampling Efficiency: Because D2D rounds bring a cluster into consensus, the server only needs to hear from one device per cluster to get a representative "cluster model," drastically reducing uplink traffic.

Evaluation and Results

The framework was evaluated using MNIST and Fashion-MNIST datasets under various non-i.i.d. distributions.

  • Superior Accuracy: In non-i.i.d. scenarios, TT-HF consistently reached higher accuracy levels faster than standard FL and FedProx.
  • Resource Savings: TT-HF achieved target accuracy with significantly lower total cost (energy and delay). It was nearly 5x more uplink-efficient than full-participation baselines in some tests.
  • Robustness and Convergence: The system remained stable under fast-fading wireless channels and achieved a sublinear convergence rate of $O(1/t)$, matching the efficiency of centralized SGD.

Conclusion and Future Work

TT-HF provides a robust, efficient solution for federated learning at the wireless edge by blending D2D cooperation with server-based aggregation. Future work may address cluster stability in high-mobility scenarios, computational heterogeneity among devices, and more complex wireless interference models between D2D clusters.

Summary updated

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