$z$-SignFedAvg: A Unified Stochastic Sign-based Compression for Federated Learning

Zhiwei Tang, Yanmeng Wang, Tsung-Hui Chang

Introduction

Federated Learning (FL) enables collaborative model training across decentralized clients without raw data exchange. However, the communication overhead of transmitting high-dimensional model updates remains a significant bottleneck. Sign-based compression, which reduces each gradient coordinate to a single bit, offers a 32x reduction in bandwidth. Despite this promise, traditional sign-based methods often diverge in the presence of data heterogeneity (non-IID data), a common characteristic of real-world FL environments.

The z-SignFedAvg Framework

To address the bias inherent in sign-based compression, we introduce z-SignFedAvg. This algorithm incorporates a novel noisy perturbation scheme that transforms the biased sign operator into an asymptotically unbiased estimator.

The z-Distribution and Noisy Perturbation

The core of z-SignFedAvg is the "z-distribution," a family of symmetric noise distributions. By adding z-noise to local model updates before applying the sign operator, we effectively "smooth" the compression function.

  • Gaussian Noise ($z=1$): Represented as 1-SignSGD in experimental results.
  • Uniform Noise ($z \to \infty$): Represented as $\infty$-SignSGD. This setting is theoretically optimal, enabling a convergence rate of $O(1/\sqrt{\tau})$, matching uncompressed FedAvg.
Convergence behavior of z-SignFedAvg variants across various noise scales (sigma).

As shown in the figure above, the choice of noise scale $\sigma$ is critical. Small $\sigma$ can lead to instability or premature plateaus, while larger $\sigma$ ensures steady convergence. This observation motivates the Plateau Criterion, which adaptively increases $\sigma$ when training progress stalls.

Theoretical and Practical Advantages

z-SignFedAvg is the first algorithm to successfully integrate 1-bit sign compression with multiple local updates (the "FedAvg" style). This combination yields several key benefits:

  1. Communication Efficiency: 1-bit uplink transmission per coordinate.
  2. Robust Convergence: Unlike vanilla SignSGD, z-SignFedAvg converges reliably on non-IID data.
  3. Linear Speedup: Training speed scales linearly with the number of participating clients.
  4. Privacy Compatibility: The inherent noise injection makes the framework naturally compatible with Differential Privacy (DP) mechanisms.

Experimental Results

We evaluated z-SignFedAvg on MNIST, EMNIST, and CIFAR-10 datasets under heterogeneous data partitions.

Performance comparison of z-SignFedAvg against baselines across different dimensions (d).

The results demonstrate that while vanilla SignSGD often plateaus far from the global optimum, z-SignFedAvg variants (1-SignSGD and $\infty$-SignSGD) closely follow the trajectory of uncompressed Gradient Descent (GD). This performance holds across varying problem dimensions, confirming the scalability and robustness of the proposed method.

Conclusion

z-SignFedAvg bridges the gap between high-compression sign-based methods and the practical requirements of Federated Learning. By strategically leveraging symmetric noise, it achieves the communication efficiency of 1-bit updates without sacrificing the convergence guarantees of uncompressed training. Future work will explore extending these techniques to downlink compression and relaxing assumptions regarding gradient noise bounds.

Summary updated

Abstract

Federated Learning (FL) is a promising privacy-preserving distributed learning paradigm but suffers from high communication cost when training large-scale machine learning models. Sign-based methods, such as SignSGD \citep{bernstein2018signsgd}, have been proposed as a biased gradient compression technique for reducing the communication cost. However, sign-based algorithms could diverge under heterogeneous data, which thus motivated the development of advanced techniques, such as the error-feedback method and stochastic sign-based compression, to fix this issue. Nevertheless, these methods still suffer from slower convergence rates. Besides, none of them allows multiple local SGD updates like FedAvg \citep{mcmahan2017communication}. In this paper, we propose a novel noisy perturbation scheme with a general symmetric noise distribution for sign-based compression, which not only allows one to flexibly control the tradeoff between gradient bias and convergence performance, but also provides a unified viewpoint to existing stochastic sign-based methods. More importantly, we propose the very first sign-based FedAvg algorithm ($z$-SignFedAvg). Theoretically, we show that $z$-SignFedAvg achieves a faster convergence rate than existing sign-based methods and, under the uniformly distributed noise, can enjoy the same convergence rate as its uncompressed counterpart. Last but not the least, we remark that adding random noise to the local gradients has a double benefit: it protects the clients' privacy by, e.g., the Differential Privacy. Extensive experiments are conducted to demonstrate that the $z$-SignFedAvg can achieve competitive empirical performance on real datasets.
BibTeX
@inproceedings{tang2024z,
  author = {Zhiwei Tang and Yanmeng Wang and Tsung-Hui Chang},
  title = {{$z$-SignFedAvg: A Unified Stochastic Sign-based Compression for Federated Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i14.29454},
}
Figure