NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FetchSGD: Communication-Efficient Federated Learning with Sketching

Daniel Rothchild, Ashwinee Panda, Enayat Ullah, Nikita Ivkin, Ion Stoica, Vladimir Braverman, Joseph Gonzalez, Raman Arora

Abstract

Federated Learning (FL) often struggles with communication bottlenecks and the unreliability of edge devices. FetchSGD is a novel algorithm that utilizes Count Sketches to compress model updates. By leveraging the linearity of sketches, FetchSGD moves momentum and error accumulation to the central server, enabling robust training even with stateless clients and non-i.i.d. data.

Introduction

Federated Learning enables training models on decentralized data residing on thousands of edge devices without data leaving the source. However, it faces three primary hurdles: communication bottlenecks, stateless clients (devices participating only once), and non-i.i.d. data distributions. Existing methods like FedAvg often suffer from "client drift" or require local error accumulation, which fails if devices do not return for subsequent training rounds.

Methodology

FetchSGD introduces the use of Count Sketches—a randomized data structure from streaming algorithms—to compress gradients. The critical insight is the linearity of Count Sketches: the sketch of a sum equals the sum of the sketches ($S(A+B) = S(A) + S(B)$). This allows the central server to aggregate compressed updates and perform momentum and error accumulation directly in the sketch space, effectively centralizing the training state.

The FetchSGD workflow: (1) Local gradients are computed, (2) sketched, and (3) aggregated at the server. The server then performs (4) momentum and (5) error accumulation before (6) unsketching and (7) broadcasting updates.

As shown in the workflow above, clients compute and sketch gradients before transmission. The server aggregates these sketches, applies momentum and error feedback, and then "unsketches" the top-$k$ most significant updates to broadcast back to the clients. This design moves the "memory" of the training process from the unreliable edge to the stable central server, ensuring that no information is lost if a device fails to participate in subsequent rounds—a common failure point for existing compression techniques.

Experimental Evaluation

The researchers evaluated FetchSGD against baselines including FedAvg and local top-$k$ sparsification across several datasets: CIFAR-10, CIFAR-100, FEMNIST, and PersonaChat (using a GPT-2 transformer). These tasks featured varying degrees of non-i.i.d. data to test the algorithm's robustness.

Performance comparison on CIFAR-10 and CIFAR-100. FetchSGD maintains higher test accuracy at high compression rates compared to baselines like FedAvg and Local Top-k.

FetchSGD demonstrated superior performance, particularly at high compression rates. On CIFAR-10/100, it outperformed all other methods where FedAvg and local top-$k$ often failed to converge. Notably, in the GPT-2 task, FetchSGD achieved 3.9x overall compression while improving model accuracy over the uncompressed baseline. This suggests that updating only "heavy hitter" parameters may provide a regularizing effect. Furthermore, because FetchSGD aggregates updates before making significant changes to the global model, it is much less prone to the "divergence" issues that plague FedAvg when client data is highly varied.

Conclusion

FetchSGD effectively addresses the "once-and-done" problem of stateless clients by moving error accumulation to the server. Its robustness to non-i.i.d. data and high communication efficiency make it a promising candidate for large-scale federated learning. Future research will focus on hyperparameter tuning and potential hybrid models combining sketching with local iterations.

Summary updated

BibTeX
@inproceedings{rothchild2020fetchsgd,
  author = {Daniel Rothchild and Ashwinee Panda and Enayat Ullah and Nikita Ivkin and Ion Stoica and Vladimir Braverman and Joseph Gonzalez and Raman Arora},
  title = {{FetchSGD: Communication-Efficient Federated Learning with Sketching}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure