Accelerating Federated Learning with Quick Distributed Mean Estimation

Ran Ben-Basat, shay vargaftik, Amit Portnoy, Gil Einziger, Yaniv Ben-Itzhak, Michael Mitzenmacher

The Communication Bottleneck in Federated Learning

In Federated Learning (FL), a central server trains a machine learning model by aggregating updates—typically high-dimensional gradient vectors—from thousands of edge devices. Sending these massive vectors over the network creates a severe communication bottleneck that slows down the entire training process.

To mitigate this, researchers employ Distributed Mean Estimation (DME) techniques to compress these vectors before transmission. Historically, this has presented a strict trade-off:

  1. Simple methods (like QSGD or Hadamard) are computationally fast but suffer from higher estimation errors, which can degrade model accuracy.
  2. Advanced methods (like Kashin’s representation or EDEN) achieve optimal error rates but are computationally expensive. For example, some require the central server to perform complex inverse transforms for every single client update, creating a new computational bottleneck as the number of clients scales.

This paper introduces QUIC-FL (Quick Unbiased Compression for Federated Learning), a framework designed to achieve the theoretical "gold standard" for error ($O(1/n)$ Normalized Mean Squared Error) while operating at the computational speed of simpler methods.

QUIC-FL achieves an optimal balance, minimizing both Normalized Mean Squared Error (NMSE) and Encode/Decode times compared to existing methods.

The QUIC-FL Approach

QUIC-FL breaks the traditional speed-accuracy trade-off using three core pillars:

1. Bounded Support Quantization (BSQ)

The authors recognized that a few very large values (outliers) usually dictate the quantization error for the entire vector. Instead of quantizing the whole vector uniformly, clients identify a tiny fraction (e.g., 0.2%) of the largest coordinates and send them with full precision. This "clips" the range of the remaining values, drastically reducing the quantization noise and improving the "resolution" for the remaining 99.8% of the data.

2. Distribution-Aware Unbiased Quantization

After applying a Randomized Hadamard Transform (RHT), the vector coordinates roughly follow a normal distribution. Rather than relying on standard uniform quantization or complex manual proofs for a new quantizer, the authors formalize quantization as a discrete optimization problem. They use off-the-shelf mathematical solvers (like IPOPT) to pre-calculate the optimal quantization levels specifically tailored for a normal distribution.

3. Single Inverse Transform

Crucially, all clients in QUIC-FL use the same shared transform. This allows the server to sum all the compressed updates first and perform only a single inverse transform for the entire batch.

Breaking the Decoding Bottleneck

Previous state-of-the-art methods like EDEN-RHT required $O(n \cdot d \log d)$ decoding time, where $n$ is the number of clients and $d$ is the dimension. QUIC-FL brings this down to $O(n \cdot d + d \log d)$. This means the server's workload scales much more efficiently as more clients join the training round.

QUIC-FL demonstrates superior scaling in decoding time as the number of clients and dimensions increase, avoiding the computational bottlenecks of methods like EDEN.

Key Results and Performance

The researchers evaluated QUIC-FL across standard machine learning benchmarks, including Shakespeare (next-word prediction) and CIFAR-10/100 (image classification), as well as synthetic distributions.

  • Blazing Speed: QUIC-FL can compress vectors with over 33 million coordinates in just 44 milliseconds.
  • High Accuracy: It achieves an NMSE competitive with the best existing methods (like EDEN) and significantly outperforms faster, simpler methods like QSGD or standard Hadamard.
  • Training Efficiency: In both Shakespeare and CIFAR experiments, QUIC-FL reached the same final accuracy as uncompressed (Float32) training while using only a fraction of the bandwidth (1–4 bits per coordinate). It consistently outpaced Kashin and Hadamard-based compression in convergence speed.

Limitations and Future Work

While QUIC-FL offers a massive leap forward, the authors note a few limitations. First, it treats gradients as general vectors and is "structure blind." It does not explicitly exploit specific properties like sparsity; in fact, the Randomized Hadamard Transform might "smear" existing sparsity, making those specific cases harder to compress.

Future work will explore integrating QUIC-FL with programmable network switches for in-network aggregation in real-world clusters. Additionally, combining these high-speed compression techniques with Differential Privacy (DP) or Secure Aggregation remains a promising next step for secure, efficient federated learning.

Summary updated

BibTeX
@inproceedings{benbasat2024accelerating,
  author = {Ran Ben-Basat and shay vargaftik and Amit Portnoy and Gil Einziger and Yaniv Ben-Itzhak and Michael Mitzenmacher},
  title = {{Accelerating Federated Learning with Quick Distributed Mean Estimation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=gWEwIlZrbQ},
}
Figure