Abstract
In order to mitigate the high communication cost in distributed and federated learning, various vector compression schemes, such as quantization, sparsification and dithering, have become very popular. In designing a compression method, one aims to communicate as few bits as possible, which minimizes the cost per communication round, while at the same time attempting to impart as little distortion (variance) to the communicated messages as possible, which minimizes the adverse effect of the compression on the overall number of communication rounds. However, intuitively, these two goals are fundamentally in conflict: the more compression we allow, the more distorted the messages become. We formalize this intuition and prove an uncertainty principle for randomized compression operators, thus quantifying this limitation mathematically, and effectively providing asymptotically tight lower bounds on what might be achievable with communication compression. Motivated by these developments, we call for the search for the optimal compression operator. In an attempt to take a first step in this direction, we consider an unbiased compression method inspired by the Kashin representation of vectors, which we call Kashin compression (KC). In contrast to all previously proposed compression mechanisms, KC enjoys a dimension independent variance bound for which we derive an explicit formula even in the regime when only a few bits need to be communicated per each vector entry.
Introduction
In distributed and federated learning, thousands of devices often work together to train a single model. The primary bottleneck in this process is typically communication rather than computing power: sending massive gradient vectors across slow networks. To speed up training, researchers use "compressors" like quantization (rounding numbers) or sparsification (sending only the most important values). However, there is a "no free lunch" rule: the more you compress, the more noise (variance) you introduce, which can lead to more training rounds or even total divergence.
Until now, the field lacked a rigorous mathematical framework to define the absolute limits of this trade-off. Furthermore, most existing compressors suffer from "dimension dependence"—as models get larger (higher dimension $d$), the noise introduced by compression grows significantly, making them less effective for state-of-the-art deep learning.
The Uncertainty Principle (UP)
The paper establishes a fundamental "uncertainty principle" for communication compression. The authors formalize the intuition that bits and variance are inversely related, proving that for any randomized compressor, the relationship follows the inequality $\alpha \cdot 4^{b/d} \geq 1$, where $\alpha$ is the normalized variance, $b$ is the number of bits, and $d$ is the dimension. This provides a universal "floor" that no compression scheme can ever cross, regardless of the optimization algorithm used.
Kashin Compression (KC)
To approach this theoretical limit, the authors introduce Kashin Compression (KC). Standard compression usually works on the standard orthogonal basis (the $x, y, z$ coordinates). KC instead uses "tight frames"—a redundant system of vectors. This approach distributes the vector's energy evenly across many coefficients, ensuring that losing precision in any single coefficient doesn't ruin the whole vector.
By combining Kashin’s representation with simple quantization (like ternary quantization), they create a compressor where the variance is $O(1)$. This means the noise does not scale with the model's dimension, a major breakthrough for scaling massive machine learning models.
Key Results and Insights
The authors evaluate their methods using Gaussian random vectors, synthetic quadratic functions, and synthetic matrices to simulate heterogeneous data across worker nodes. Their findings include:
- Tightness of the Bound: The Uncertainty Principle is shown to be asymptotically tight, meaning it is possible to build compressors that get very close to this theoretical limit.
- Variance Reduction: In experiments with vectors up to $d=10^4$, Kashin Compression maintained a low, stable variance, while standard methods like "Natural Dithering" saw their variance climb significantly as dimensions increased.
- Faster Convergence: In distributed optimization tasks, KC combined with ternary quantization converged faster and required fewer total bits than traditional quantization methods, nearly matching the performance of uncompressed training while using a fraction of the bandwidth.
Limitations and Future Work
While KC offers significant theoretical advantages, computing the Kashin representation requires generating a large orthogonal frame, which can be computationally expensive for extremely high dimensions. Future research may explore searching for more "optimal" frames to further reduce the constant in the $O(1)$ variance bound and investigate how to best combine the Kashin representation with sparsification techniques.
Summary updated