Skip to main content
QUICK REVIEW

[Paper Review] Hyper-Sphere Quantization: Communication-Efficient SGD for Federated Learning

Xinyan Dai, Yan Xiao|arXiv (Cornell University)|Nov 12, 2019
Privacy-Preserving Technologies in DataComputer Science36 references32 citations
TL;DR

Hyper-Sphere Quantization (HSQ) is a communication-efficient gradient compression framework for federated learning that quantizes entire gradient vectors using a shared codebook on the hypersphere, achieving a per-iteration communication cost of O(log d) while ensuring convergence. It enables significantly lower bandwidth usage than prior methods like QSGD, with minimal accuracy degradation and strong theoretical guarantees.

ABSTRACT

The high cost of communicating gradients is a major bottleneck for federated learning, as the bandwidth of the participating user devices is limited. Existing gradient compression algorithms are mainly designed for data centers with high-speed network and achieve $O(\sqrt{d} \log d)$ per-iteration communication cost at best, where $d$ is the size of the model. We propose hyper-sphere quantization (HSQ), a general framework that can be configured to achieve a continuum of trade-offs between communication efficiency and gradient accuracy. In particular, at the high compression ratio end, HSQ provides a low per-iteration communication cost of $O(\log d)$, which is favorable for federated learning. We prove the convergence of HSQ theoretically and show by experiments that HSQ significantly reduces the communication cost of model training without hurting convergence accuracy.

Motivation & Objective

  • To address the high communication cost of gradient transmission in federated learning, where user devices have limited bandwidth.
  • To design a gradient compression method that achieves lower per-iteration communication cost than existing methods like QSGD, especially for bandwidth-constrained environments.
  • To provide a theoretically grounded framework that balances communication efficiency and gradient accuracy through configurable trade-offs.
  • To enable broader participation in federated learning by reducing the communication threshold for client devices.

Proposed method

  • HSQ quantizes the full gradient vector as a whole by selecting a codeword from a shared, precomputed codebook on the unit hypersphere.
  • It uses probabilistic selection of codewords based on the angle between the gradient and codewords, minimizing quantization error.
  • Only the index of the selected codeword is transmitted, reducing communication cost to O(log d) bits per iteration.
  • The method supports two variants: Greedy-HSQ (biased but lower variance) and Unbiased-HSQ (unbiased with higher variance), allowing trade-offs in performance.
  • Codewords are generated via orthonormal basis, random rotation, Gaussian, or K-means clustering to optimize quantization accuracy.
  • The framework is theoretically proven to converge for both smooth convex and non-convex optimization problems.

Experimental results

Research questions

  • RQ1Can we achieve a per-iteration communication cost lower than O(√d log d), the best known for existing methods, while still ensuring convergence in federated learning?
  • RQ2What is the trade-off between communication efficiency and gradient accuracy when pushing compression to extreme levels (e.g., O(log d) cost)?
  • RQ3How does vector quantization of the entire gradient vector compare to element-wise or sparse quantization in terms of convergence and communication cost?
  • RQ4Can a probabilistic, codeword-based approach on the hypersphere maintain sufficient gradient fidelity for effective model training?

Key findings

  • HSQ achieves a per-iteration communication cost of O(log d), significantly lower than QSGD’s O(√d log d), making it highly suitable for bandwidth-constrained federated learning.
  • With d = 64, HSQ achieves a compression ratio significantly higher than baselines, with minimal degradation in convergence accuracy.
  • Greedy-HSQ outperforms Unbiased-HSQ in practice, suggesting that reduced variance can outweigh bias in training stability.
  • Using 4, 6, or 32 bits for pseudo-norm quantization yields similar performance, but 2 bits degrade final test accuracy.
  • In data-center training, HSQ reduces per-epoch time by 14.4% with less than 0.5% drop in test accuracy.
  • The framework maintains convergence guarantees for both smooth convex and non-convex functions, as proven theoretically.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.