CodedPaddedFL and CodedSecAgg: Straggler Mitigation and Secure Aggregation in Federated Learning

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

Abstract

Federated Learning (FL) enables collaborative model training across decentralized devices while keeping data localized. However, system performance is often bottlenecked by "stragglers"—slow or unresponsive devices—and threatened by privacy leaks from model updates. This paper introduces CodedPaddedFL and CodedSecAgg, two novel schemes that leverage coding theory to achieve straggler resilience without compromising model accuracy or privacy. By incorporating data redundancy and Shamir’s Secret Sharing, these methods allow for the reconstruction of missing gradients, eliminating client drift. Experimental results on MNIST and Fashion-MNIST demonstrate up to an 18x speedup compared to standard FL and significant performance gains over existing secure aggregation protocols.

Introduction

The deployment of Federated Learning in large-scale networks is hindered by three primary issues:

  1. The Straggler Problem: Heterogeneous hardware and network conditions cause some devices to lag, delaying the entire training round.
  2. Client Drift: Common strategies that ignore stragglers introduce bias, especially when data is non-identically distributed (non-IID) across users.
  3. Privacy Risks: Model gradients can be exploited via model inversion attacks to reveal sensitive user information.

The proposed CodedPaddedFL and CodedSecAgg frameworks address these challenges by ensuring that the central server can recover the full aggregate update even when a subset of devices fails to respond in time.

Methods

The core innovation lies in applying coding theory to introduce structured redundancy into the training process.

CodedPaddedFL

CodedPaddedFL utilizes gradient codes and one-time padding. In this scheme, devices are organized such that each device holds a small redundant portion of another's data. As shown in Figure 1, a device $D_1$ transmits a coded combination of its own update and a neighbor's update. If $D_2$ becomes a straggler, the server can still recover its contribution from the redundant information provided by $D_1$ and other peers.

Illustration of CodedPaddedFL where devices transmit redundant coded updates to mitigate stragglers.

CodedSecAgg

CodedSecAgg enhances security using Shamir’s Secret Sharing (SSS). It provides information-theoretic security, ensuring the server only learns the aggregate sum of gradients. The general structure of these coded updates is depicted in Figure 2, where each device computes a local update that is then masked or coded before transmission.

General framework for coded updates in the proposed federated learning schemes.

Implementation Details

  • Fixed-Point Arithmetic: To apply algebraic coding techniques, real-valued gradients are converted to a fixed-point integer representation.
  • Hierarchical Grouping: To manage communication overhead, devices are partitioned into clusters. This grouping strategy ensures that the initial data-sharing phase does not become a bottleneck, allowing the system to scale efficiently to thousands of devices.

Results

The researchers evaluated the schemes using MNIST and Fashion-MNIST datasets in a non-IID setting.

  • Speedup: CodedPaddedFL achieved a 18x speedup in reaching 95% accuracy on MNIST compared to standard FL by eliminating the wait time for the slowest 10-20% of devices.
  • Secure Aggregation Performance: CodedSecAgg outperformed LightSecAgg by a factor of 6.6x to 18.7x on MNIST, demonstrating superior efficiency in secure environments.
  • Scalability: The hierarchical approach allowed for scaling to 1,000 devices with minimal latency increases (approx. 15%), proving the practical viability of the method for large-scale IoT or mobile networks.

Conclusion

CodedPaddedFL and CodedSecAgg provide a robust solution to the straggler and privacy problems in Federated Learning. By using redundancy to reconstruct rather than discard missing updates, these schemes prevent client drift and maintain high model accuracy. While currently optimized for linear models, future work aims to extend these coding techniques to more complex deep learning architectures like Convolutional Neural Networks (CNNs) and Transformers.

Summary updated

BibTeX
@article{schlegel2021codedpaddedfl,
  author = {Reent Schlegel and Siddhartha Kumar and Eirik Rosnes and Alexandre Graell i Amat},
  title = {{CodedPaddedFL and CodedSecAgg: Straggler Mitigation and Secure Aggregation in Federated Learning}},
  journal = {IEEE Trans. Communications},
  year = {2021},
  doi = {10.1109/tcomm.2023.3244243},
}
Figure