Coding for Straggler Mitigation in Federated Learning

Siddhartha Kumar, Reent Schlegel, Eirik Rosnes, Alexandre Graell i Amat

TL;DR

This paper introduces a novel privacy-preserving "coded" Federated Learning (FL) scheme that significantly speeds up training by mitigating the impact of "stragglers"—slow or unreliable devices. By combining one-time padding with gradient coding and fixed-point arithmetic, the authors achieve training speedups of up to 9.2x compared to conventional FL while maintaining the same level of data privacy and global model accuracy.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple devices (like smartphones or IoT sensors) to collaboratively train a model without sharing their raw data. However, FL faces a major bottleneck: stragglers. Because the central server usually waits for updates from all participating devices, the entire training process is only as fast as the slowest device.

Existing solutions have major drawbacks:

  1. Dropping stragglers: Common in "Federated Averaging," but this hurts accuracy, especially when data is "non-IID" (meaning different devices have very different types of data).
  2. Asynchronous updates: These often fail to converge to the true global optimum.
  3. Previous coded FL: Earlier attempts to use error-correction codes to handle stragglers often leaked private information to the central server.

The authors aim to create a scheme that is fast (resilient to stragglers), accurate (converges to the global optimum), and private (no data leakage).

Methods

The proposed scheme operates in two distinct phases and relies on fixed-point arithmetic to make cryptographic techniques like one-time padding viable for real-world data.

  • Phase 1: Secure Data Sharing: Devices generate random keys and create a "one-time padded" version of their local data. They share these padded versions with a subset of other devices. Because the data is padded, neither the other devices nor the central server can see the raw information.
  • Phase 2: Coded Gradient Descent: During training, each device computes a "partial gradient" based on its own data and the padded data it received from others. They use Gradient Codes—a technique from distributed computing—to add redundancy.
  • Straggler Mitigation: Because of the redundancy introduced by the codes, the central server doesn't need to wait for everyone. It only needs the first $D - \alpha + 1$ devices (where $D$ is the total devices and $\alpha$ is the redundancy factor) to finish. It then "decodes" these partial gradients, removes the random keys, and updates the global model.
  • Linearization: To handle non-linear tasks using their linear regression framework, the authors use kernel embedding (specifically radial basis function samplers) to map data into a higher-dimensional space where it can be treated linearly.

Datasets

The authors evaluated their scheme using two standard benchmarks, specifically sorted to simulate a highly non-IID (heterogeneous) environment:

  • MNIST: A dataset of 70,000 handwritten digits.
  • Fashion-MNIST: A dataset of 70,000 images of clothing items (more complex than MNIST).

Key Insights and Ideas

  • Privacy via Redundancy: The "aha!" moment is that you can share data between devices to create redundancy (for speed) without sacrificing privacy, provided you use one-time padding. The server can still compute the global gradient without ever seeing the individual "keys" used to pad the data.
  • Fixed-Point is a Feature, Not a Bug: While one-time padding is usually for integers, the authors show that mapping real-valued gradients to fixed-point representations works perfectly for IoT devices, which often use fixed-point hardware anyway.
  • No Accuracy Trade-off: Unlike "best-effort" FL that drops slow nodes, this coding approach is mathematically guaranteed to converge to the same global optimum as if every single device had responded.

Key Results

The researchers simulated a realistic IoT environment with 25 devices of varying computational speeds (modeled after TI MSP430 chips) and LTE-standard communication.

  • Speedup: On the MNIST dataset, the scheme achieved a 6.6x speedup to reach 95% accuracy. On Fashion-MNIST, it achieved a 9.2x speedup to reach 85% accuracy.
  • Privacy: Unlike previous "Coded-FedL" schemes, this method maintains the same privacy level as conventional FL; the central server learns nothing about the local data beyond the final aggregated gradient.
  • Efficiency: While there is an initial "offset" (time spent sharing padded data at the start), the per-epoch time is so much lower that the coded scheme quickly overtakes conventional FL.

Limitations and Future Work

  • Linear Regression Constraint: The current mathematical framework is specifically designed for linear regression. While kernel embedding allows them to tackle some non-linear problems, it may not scale to massive deep-learning architectures (like Transformers) without further modification.
  • Initial Overhead: The data-sharing phase requires devices to be online and communicating at the start. In extremely volatile networks where devices drop in and out constantly, this setup phase could be a hurdle.
  • Local Update Limits: The scheme currently requires a global sync after every single local gradient step. It does not yet support "local SGD" (performing multiple local steps before syncing), which is a popular way to reduce communication frequency in FL.

Summary updated

BibTeX
@inproceedings{kumar2022coding,
  author = {Siddhartha Kumar and Reent Schlegel and Eirik Rosnes and Alexandre Graell i Amat},
  title = {{Coding for Straggler Mitigation in Federated Learning}},
  booktitle = {ICC},
  year = {2022},
  doi = {10.1109/icc45855.2022.9838986},
}
Figure