Machine Learning at the Wireless Edge: Distributed Stochastic Gradient Descent Over-the-Air

Mohammad Mohammadi Amiri, Deniz Gündüz

TL;DR

This paper introduces two novel approaches for distributed machine learning at the wireless edge: a digital scheme (D-DSGD) and a groundbreaking analog scheme (A-DSGD). A-DSGD leverages the inherent properties of wireless channels for "over-the-air" gradient computation, achieving faster convergence and better robustness, especially in low-power and low-bandwidth scenarios, compared to existing digital methods.

What Problem Does This Paper Address?

Collaborative machine learning (ML) at the "wireless edge" – where devices like smartphones or IoT sensors train a shared model using their local data – faces a significant bottleneck: communication. Sending raw gradient updates from numerous devices to a central parameter server (PS) consumes precious bandwidth and power, and can introduce delays. Traditional approaches treat computation and communication separately, focusing on compressing gradients digitally. However, this ignores the unique characteristics of wireless channels, particularly the multiple access channel (MAC) where signals from multiple devices can superimpose. This paper addresses this by proposing methods that explicitly leverage wireless channel properties for more efficient distributed ML.

Methods

The authors propose two main methods:

  • D-DSGD (Digital Distributed Stochastic Gradient Descent): This approach follows the conventional path of separating computation and communication. Devices first quantize their local gradient estimates and then transmit them to the PS over the wireless MAC. This method incorporates error accumulation at the devices to maintain gradient accuracy and allows for adaptive bit allocation based on available power.
  • A-DSGD (Analog Distributed Stochastic Gradient Descent): This is the paper's core innovation. It exploits the additive nature of the wireless MAC for "over-the-air" gradient computation. Instead of digital transmission, devices:
  • Sparsify their gradient estimates, keeping only the most significant components.
  • Project these sparse vectors into a lower-dimensional space dictated by the available channel bandwidth using a random projection matrix.
  • Transmit these projected vectors directly over the MAC in an analog fashion. The PS then receives the superimposed analog signals and uses an algorithm (Approximate Message Passing) to reconstruct the sum of the gradients. This method bypasses the need for digital coding and channel encoding/decoding, significantly speeding up communication.

Datasets

The experiments were conducted using the MNIST dataset for image classification. The authors consider two data distribution scenarios:

  • IID (Independent and Identically Distributed): Data samples are randomly distributed among devices.
  • Non-IID: Data samples are biased, with each device receiving data from only a limited number of classes.

Key Insights and Ideas

  • Analog Over-the-Air Computation is Powerful: The most significant insight is that by treating the wireless channel not just as a pipe but as a computational medium, we can achieve substantial gains. The additive nature of the MAC can be directly used to sum gradients, bypassing the need for explicit digital aggregation.
  • Separation of Computation and Communication is Suboptimal: The paper demonstrates that the traditional approach of separating these two aspects is not ideal for wireless edge ML. Analog methods that integrate them can be far more efficient.
  • Bandwidth and Power Constraints Favor Analog: A-DSGD shows remarkable resilience and performance improvements in low-power and low-bandwidth regimes, which are characteristic of edge devices.
  • Robustness to Data Heterogeneity: A-DSGD is shown to be more robust to non-IID data distributions compared to digital methods, a crucial aspect for real-world federated learning scenarios.
  • More Devices, Better Performance: Increasing the number of participating devices (while keeping the total dataset size constant) benefits both D-DSGD and A-DSGD, highlighting the advantage of distributed computation and the increased signal power in the analog case.

Key Results

  • Faster Convergence: A-DSGD consistently converges faster than D-DSGD and other digital schemes (SignSGD, QSGD) across various scenarios.
  • Improved Accuracy: A-DSGD achieves higher test accuracy, especially in resource-constrained environments.
  • Robustness to Non-IID Data: The performance degradation of A-DSGD in non-IID scenarios is minimal compared to digital methods.
  • Low-Power and Low-Bandwidth Advantage: The performance gains of A-DSGD are particularly pronounced when transmit power or channel bandwidth is limited.
  • Scalability: Performance improves with an increasing number of devices, demonstrating the ability to harness edge computation power.

Limitations and Future Work

  • Channel Model Simplification: The paper uses a simplified Gaussian MAC model. Extending the analysis to more complex fading channel models is a natural next step, which the authors have explored in related work.
  • Sparsification Level Trade-off: In A-DSGD, the choice of sparsification level involves a trade-off between recovering the exact gradient and recovering the average gradient. The paper notes this and suggests it's a design parameter to be tuned.
  • Mean Removal for Efficiency: While mean removal is used for initial iterations in A-DSGD to improve efficiency, its long-term impact and optimal application could be further investigated.
  • Power Allocation: The paper explores different power allocation strategies for D-DSGD, suggesting that dynamic allocation based on gradient variance could be beneficial. Further research into optimal power allocation for both schemes is warranted.
  • Model Updates vs. Gradient Transmission: The paper focuses on transmitting gradient updates. Future work could explore how these over-the-air computation techniques can be applied to transmitting model updates, as done in some prior works.

Summary updated

BibTeX
@inproceedings{amiri2019machine,
  author = {Mohammad Mohammadi Amiri and Deniz Gündüz},
  title = {{Machine Learning at the Wireless Edge: Distributed Stochastic Gradient Descent Over-the-Air}},
  booktitle = {ISIT},
  year = {2019},
  doi = {10.1109/isit.2019.8849334},
}
Figure