Abstract
We study first-order optimization algorithms under the constraint that the descent direction is quantized using a pre-specified budget of $R$-bits per dimension, where $R \in (0 ,\infty)$. We propose computationally efficient optimization algorithms with convergence rates matching the information-theoretic performance lower bounds for: (i) Smooth and Strongly-Convex objectives with access to an Exact Gradient oracle, as well as (ii) General Convex and Non-Smooth objectives with access to a Noisy Subgradient oracle. The crux of these algorithms is a polynomial complexity source coding scheme that embeds a vector into a random subspace before quantizing it. These embeddings are such that with high probability, their projection along any of the canonical directions of the transform space is small. As a consequence, quantizing these embeddings followed by an inverse transform to the original space yields a source coding method with optimal covering efficiency while utilizing just $R$-bits per dimension. Our algorithms guarantee optimality for arbitrary values of the bit-budget $R$, which includes both the sub-linear budget regime ($R < 1$), as well as the high-budget regime ($R \geq 1$), while requiring $O\left(n^2\right)$ multiplications, where $n$ is the dimension. We also propose an efficient relaxation of this coding scheme using Hadamard subspaces that requires a near-linear time, i.e., $O\left(n \log n\right)$ additions.Furthermore, we show that the utility of our proposed embeddings can be extended to significantly improve the performance of gradient sparsification schemes. Numerical simulations validate our theoretical claims. Our implementations are available at https://github.com/rajarshisaha95/DistOptConstrComm.
The Communication Bottleneck in Distributed Learning
In distributed machine learning, a central server coordinates multiple "worker" nodes to train large-scale models. While computation has become increasingly efficient, the primary bottleneck remains the communication of massive gradient vectors from workers to the server over limited-bandwidth networks.
To save bandwidth, researchers use quantization—representing gradient values with fewer bits. However, standard quantization techniques face a "curse of dimensionality." As the number of dimensions ($n$) increases, the error introduced by naive quantization often scales with $\sqrt{n}$, forcing a choice between slow convergence or a massive bit-budget. While some "optimal" quantization schemes exist, they often require exponential time to compute, making them useless for modern high-dimensional models.
Democratic Source Coding (DSC)
The researchers propose two primary algorithms based on a concept called Democratic Source Coding (DSC). The core idea is to transform the gradient vector into a "democratic" embedding using Kashin embeddings. This maps the vector into a higher-dimensional space where every coordinate has roughly the same magnitude. Because no single coordinate is "too large," uniform quantization becomes incredibly efficient and robust to errors.
- DSC (Democratic Source Coding): Uses a linear program to find the optimal embedding. It is highly accurate but has $O(n^2)$ complexity.
- NDSC (Near-Democratic Source Coding): A faster relaxation that uses Randomized Hadamard Transforms. This reduces the complexity to $O(n \log n)$, making it practical for very large models.
Theoretical Comparison with Existing Schemes
The proposed DSC and NDSC methods are compared against several state-of-the-art compression schemes in the table below.
As shown in the table, DSC and NDSC achieve error rates that are either independent of the dimension $n$ or depend on it only logarithmically. This is a significant improvement over methods like QSGD or Sign Quantization, where error scales more aggressively with $n$. Furthermore, NDSC maintains a near-linear computational complexity of $O(n \log n)$, balancing theoretical optimality with practical feasibility.
Key Insights and Results
- Spreading the Wealth: Quantization error is minimized when the vector's energy is distributed evenly. By "democratizing" the vector before quantizing, bits are used as effectively as possible.
- Dimension Independence: Unlike naive quantizers, the error in DSC is independent of the dimension $n$ (or only depends on it logarithmically for NDSC). This makes it a "future-proof" strategy for increasingly large neural networks.
- Sub-linear Budgets: The method remains optimal even in extreme cases where there is less than 1 bit per dimension ($R < 1$), common in massive-scale distributed sensing.
- Empirical Performance: In CIFAR-10 experiments, NDSC with a budget of 4 bits per dimension significantly outperformed naive quantization. Naive quantization failed to converge at 4 bits, requiring 6 bits to reach the same performance level that NDSC achieved at 4.
Limitations and Future Work
While the paper demonstrates significant gains for first-order methods, the authors note that incorporating second-order information (curvature/Hessians) could further accelerate convergence. Additionally, while the stochastic case is extended to multiple workers, a complete theoretical characterization of error feedback for the smooth multi-worker case remains an open problem.
Summary updated