Reducing Impacts of System Heterogeneity in Federated Learning using Weight Update Magnitudes

Irene WangarXiv 2022

Abstract

The widespread adoption of handheld devices have fueled rapid growth in new applications. Several of these new applications employ machine learning models to train on user data that is typically private and sensitive. Federated Learning enables machine learning models to train locally on each handheld device while only synchronizing their neuron updates with a server. While this enables user privacy, technology scaling and software advancements have resulted in handheld devices with varying performance capabilities. This results in the training time of federated learning tasks to be dictated by a few low-performance straggler devices, essentially becoming a bottleneck to the entire training process. In this work, we aim to mitigate the performance bottleneck of federated learning by dynamically forming sub-models for stragglers based on their performance and accuracy feedback. To this end, we offer the Invariant Dropout, a dynamic technique that forms a sub-model based on the neuron update threshold. Invariant Dropout uses neuron updates from the non-straggler clients to develop a tailored sub-models for each straggler during each training iteration. All corresponding weights which have a magnitude less than the threshold are dropped for the iteration. We evaluate Invariant Dropout using five real-world mobile clients. Our evaluations show that Invariant Dropout obtains a maximum accuracy gain of 1.4% points over state-of-the-art Ordered Dropout while mitigating performance bottlenecks of stragglers.

Introduction

Federated Learning (FL) allows AI models to be trained across thousands of edge devices without moving sensitive user data to a central server. However, these devices are rarely identical. A "system heterogeneity" problem arises when older or lower-spec hardware—known as stragglers—takes significantly longer to complete training iterations. In synchronous FL, the entire network must wait for the slowest device to finish, creating a massive performance bottleneck. While previous solutions like Federated Dropout or Ordered Dropout help reduce the workload for stragglers, they often lead to significant drops in model accuracy because they don't account for which neurons are actually most critical for the task at hand.

Methodology

The authors propose Invariant Dropout, a dynamic approach that creates custom sub-models for stragglers. The process follows three main steps:

  1. Straggler Identification: In the first training iteration, the server profiles all clients to identify stragglers and calculates a "target speedup" required for them to match the performance of non-straggler devices.
  2. Determining Dropout Rate: Based on the required speedup, the server determines the necessary pruning percentage for the sub-model.
  3. Identifying Invariant Neurons: The server monitors weight updates from non-straggler clients. Neurons with the smallest magnitude of change are deemed "invariant."
  4. Dynamic Thresholding: The server maintains a "drop threshold" for neurons whose updates fall below this value across the majority of non-stragglers. This threshold is adjusted dynamically until the number of invariant neurons matches the required dropout rate.

By sending only the "variant" (highly active) neurons to the stragglers, the system ensures they contribute to the most critical parts of the model update without being overwhelmed by the full architecture.

Experimental Setup

The researchers evaluated their method using three standard benchmarks for Federated Learning:

  • FEMNIST: A non-IID dataset of handwritten characters.
  • Shakespeare: A non-IID dataset based on lines from plays for next-character prediction.
  • CIFAR-10: An image classification dataset partitioned into equal sets (IID) for a VGG-9 architecture.

Results and Discussion

The core innovation of Invariant Dropout stems from the observation that a significant portion of neurons remain relatively static during training. As shown in Figure 1, even after only 30% of training, 15%–30% of neurons across various datasets are identified as invariant. Sending these neurons to a straggler is inefficient as they provide little utility for the local training step.

Percentage of invariant neurons identified across training iterations for various datasets.

Key results from the evaluation include:

  • Accuracy Gains: Invariant Dropout consistently outperformed both Random and Ordered Dropout, achieving a maximum accuracy gain of 1.4% over state-of-the-art Ordered Dropout.
  • Performance Bottleneck Mitigation: The technique successfully brought straggler training times to within 10% of the target time.
  • Low Overhead: The computational cost of identifying invariant neurons on the server was negligible—roughly 50ms.
  • Real-World Validation: Tests on five Android devices (ranging from a Pixel 3 to an LG Velvet 5G) confirmed the effectiveness of the approach on physical hardware with varying CPU architectures.

Conclusion

Invariant Dropout effectively addresses system heterogeneity in Federated Learning by leveraging weight update magnitudes to identify and prune less important neurons for straggler devices. While the current threshold search could be further optimized, the method demonstrates significant accuracy and performance improvements over existing dropout techniques. Future work will explore multi-straggler optimization and broader model diversity, such as Transformers.

Summary updated

BibTeX
@misc{wang2022reducing,
  author = {Irene Wang},
  title = {{Reducing Impacts of System Heterogeneity in Federated Learning using Weight Update Magnitudes}},
  year = {2022},
  eprint = {2208.14808},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.14808},
}
Figure