Abstract
In this work, we present a family of vector quantization schemes vqSGD (Vector-Quantized Stochastic Gradient Descent) that provide an asymptotic reduction in the communication cost with convergence guarantees in first-order distributed optimization. In the process we derive the following fundamental information theoretic fact: $\Theta(\frac{d}{R^2})$ bits are necessary and sufficient (up to an additive $O(\log d)$ term) to describe an unbiased estimator $\hat{g}(g)$ for any $g$ in the $d$-dimensional unit sphere, under the constraint that $\|\hat{g}(g)\|_2\le R$ almost surely. In particular, we consider a randomized scheme based on the convex hull of a point set, that returns an unbiased estimator of a $d$-dimensional gradient vector with almost surely bounded norm. We provide multiple efficient instances of our scheme, that are near optimal, and require only $o(d)$ bits of communication at the expense of tolerable increase in error. The instances of our quantization scheme are obtained using the properties of binary error-correcting codes and provide a smooth tradeoff between the communication and the estimation error of quantization. Furthermore, we show that vqSGD also offers some automatic privacy guarantees.
Introduction
In large-scale distributed learning, such as Federated Learning, the communication of gradients between worker nodes and a central server often becomes the primary bottleneck. As model dimensionality ($d$) grows into the billions, sending full-precision gradients is no longer feasible. Existing methods like coordinate-wise quantization or sparsification often struggle with high variance or bias. vqSGD addresses this by introducing a geometric approach to quantization that achieves sublinear communication costs while maintaining unbiasedness.
The vqSGD Framework
The core of vqSGD is the "Convex Hull Trick." Instead of quantizing each coordinate, the entire $d$-dimensional gradient vector $v$ is treated as a point within a convex hull of a predefined set of points $C$. Any vector $v$ in the unit ball can be expressed as a convex combination: $v = \sum a_i c_i$, where $\sum a_i = 1$ and $a_i \ge 0$.
To quantize $v$, a worker node treats the coefficients $a_i$ as probabilities and stochastically selects a single point $c_i$ from $C$. The index of this point is then transmitted to the server. This process ensures that the transmitted estimate $\hat{v}$ is unbiased ($E[\hat{v}] = v$) and uses only $\log |C|$ bits.
Structured Point Sets
The performance of vqSGD depends heavily on the choice of the point set $C$. The authors propose several structured sets to balance communication overhead, variance (error), and computational efficiency.
Key constructions include:
- Cross-polytope ($C_{cp}$): Achieves $O(\log d)$ communication with $O(d)$ error.
- Reed-Muller Codes ($C_{RM}$): Leverages error-correcting codes for deterministic point sets.
- Simplex and Hadamard: Optimized for privacy guarantees.
Breaking the Communication Barrier
A significant contribution of this work is pushing communication costs below the $\Omega(\sqrt{d})$ barrier seen in popular methods like QSGD. By utilizing the geometric structure of the gradient space, vqSGD can reduce communication to $O(\log d)$ bits per iteration.
Automatic Differential Privacy
One of the most compelling features of vqSGD is its "automatic" privacy. Because the quantization process is inherently stochastic and maps any point in the unit ball to a discrete set of points with non-zero probability, it satisfies $\epsilon$-differential privacy. For instance, the Hadamard-based scheme achieves $\epsilon > \log(1 + \sqrt{2})$, providing robust privacy without the need for additional noise injection that often degrades model performance.
Fundamental Information-Theoretic Limits
The paper establishes a new lower bound for unbiased gradient estimators. To achieve a variance of $R^2$ in $d$ dimensions, at least $\Theta(d/R^2)$ bits are necessary. The authors show that their randomized Gaussian point set construction is near-optimal, matching this bound up to an additive $O(\log d)$ term.
Conclusion
vqSGD represents a significant step forward in distributed optimization. By reframing quantization as a geometric problem, it provides a flexible framework that allows practitioners to trade off communication, error, and privacy. Future work includes finding deterministic point sets that match the efficiency of randomized constructions and further optimizing the computational overhead of finding convex combinations.
Summary updated