Analysis of Error Feedback in Federated Non-Convex Optimization with Biased Compression: Fast Convergence and Partial Participation

Xiaoyun Li, Ping LiICML 2023

The Communication Bottleneck in Federated Learning

In Federated Learning (FL), moving massive model updates between thousands of edge devices and a central server is a major bottleneck. To save bandwidth, researchers often rely on compression. While "unbiased" compression (like simple stochastic quantization) is well-studied, "biased" methods—such as TopK (sending only the largest gradients) or SignSGD (sending only the sign of the gradient)—are typically much more efficient.

However, biased compression has a fatal flaw: if you simply discard the "small" parts of the gradient, the model often fails to converge or diverges entirely. In standard distributed learning, Error Feedback (EF) fixes this by "remembering" what was thrown away and adding it back into the next update.

This paper provides the first systematic theoretical and empirical analysis of Error Feedback in FL using biased compression. It bridges a critical gap by analyzing how EF behaves in realistic FL environments characterized by multiple local steps, non-IID (heterogeneous) data, and partial client participation.

Introducing Fed-EF

The authors introduce Fed-EF, a framework that seamlessly integrates error feedback into the FL pipeline. They propose two main variants:

  • Fed-EF-SGD: Uses standard Stochastic Gradient Descent for the global server update.
  • Fed-EF-AMS: The first compressed adaptive FL method, utilizing the AMSGrad optimizer at the server level to handle tricky loss landscapes.

The Fed-EF Loop: 1. Local Training: Clients perform $K$ steps of local SGD. 2. Error Compensation: Before compressing, the client adds its "unsent error" from the previous round to the current update. 3. Biased Compression: The client applies a biased compressor (like TopK or Sign) to this compensated update. The authors also introduce a "Heavy-Sign" compressor, combining TopK and Sign operators for even more aggressive compression. 4. Update & Accumulate: The client sends the compressed update to the server and stores the difference (the new error) locally for the next round.

Key Insights and Theoretical Guarantees

Biased Compression Needs Error Feedback

The paper confirms that without EF, biased compression leads to a "non-vanishing bias" term. This means the model will never actually reach the optimal solution, no matter how long you train, as the discarded gradient information permanently skews the trajectory.

Failure of biased compression (Sign) without Error Feedback compared to full precision.

Linear Speedup is Preserved

Theoretically, Fed-EF achieves a convergence rate of $O(1/\sqrt{TKn})$. This is the "gold standard" in distributed optimization because it means that as you add more clients ($n$), the time to reach a certain accuracy decreases linearly, even when using heavy compression.

The "Stale Error" Penalty

A critical insight emerges in the analysis of Partial Participation (PP). When a client is inactive for many rounds, its local error buffer becomes "stale." When that client finally joins a round, its error compensation is based on an old model state, which can pull the global model in the wrong direction. This results in a theoretical slowdown factor of $\sqrt{n/m}$ (where $n$ is total clients and $m$ is active clients).

Key Results: Massive Communication Savings

The authors evaluated Fed-EF on standard benchmarks (MNIST, FMNIST, CIFAR-10) using a highly non-IID setup to simulate real-world FL.

  • 100x Communication Savings: Fed-EF (using TopK or Heavy-Sign) matches the accuracy of full-precision FL while transmitting 100x fewer bits. Even simple Sign compression achieves a 30x reduction.
  • Superiority over Unbiased Methods: Fed-EF consistently outperforms unbiased stochastic quantization in terms of the accuracy-to-bits-transmitted ratio.
  • Adaptive Advantage: Fed-EF-AMS proves more robust than Fed-EF-SGD on complex datasets like FMNIST and CIFAR-10, especially under low participation rates.
Test accuracy vs. communicated bits on MNIST and FMNIST. Fed-EF variants (sign, topk, hv-sign) reach full-precision accuracy much faster than the baseline.

Limitations and Future Work

The primary limitation identified by the authors is the stale error compensation effect under partial participation. While they propose a heuristic called "error restarting" (clearing the error buffer if it gets too old) which shows promise empirically, a more principled theoretical solution is still needed.

Future research could explore more sophisticated ways to "refresh" or discount stale errors to mitigate the $\sqrt{n/m}$ slowdown. Solving this could unlock even faster convergence for cross-device federated learning where client participation is extremely sparse.

Summary updated

BibTeX
@inproceedings{li2023analysis,
  author = {Xiaoyun Li and Ping Li},
  title = {{Analysis of Error Feedback in Federated Non-Convex Optimization with Biased Compression: Fast Convergence and Partial Participation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=wbs1fKLfOe},
}
Figure