Introduction
In large-scale distributed systems and Federated Learning (FL), communication efficiency is a primary bottleneck. Thousands of edge devices must transmit high-dimensional model updates to a central server, often over bandwidth-constrained uplink channels. To mitigate this, updates are typically compressed using quantization—mapping continuous values to a discrete set of bits.
The standard paradigm for this is stochastic quantization, where each client rounds its local values independently. While this ensures unbiased estimates, it fails to account for the collective structure of the data. This paper introduces Correlated Quantization (CQ), a protocol that leverages shared randomness to coordinate rounding across clients, significantly reducing estimation error when data is concentrated.
The Limitation of Independent Quantization
In traditional stochastic quantization, each device rounds its data point $x_i$ to a nearby quantization level independently. The variance of the resulting global mean estimate depends on the absolute range of the data (e.g., the maximum possible gradient magnitude).
However, in many practical scenarios, client updates are highly correlated or concentrated around a mean. If all devices have similar updates, independent quantization produces "noisy" rounding decisions that do not cancel out efficiently. Previous attempts to solve this required "side information"—such as the server knowing a specific client's value or the global variance beforehand—which is often impractical in privacy-sensitive or dynamic federated environments.
Correlated Quantization (CQ)
The core innovation of CQ is the use of a shared random seed to synchronize the rounding process across $n$ clients.
The Mechanism
Consider a simple case where multiple clients have the value 0.5 and need to round to 0 or 1.
- Independent Rounding: Each client flips a coin. There is a high probability that many clients round in the same direction, leading to a mean estimate of 0 or 1 rather than the true 0.5.
- Correlated Rounding: By using a shared random threshold, the clients can ensure that their rounding errors are negatively correlated. If one client rounds up, another is more likely to round down.
The authors formalize this using a shared random permutation and uniform variables to create thresholds spread across the clients. This effectively transforms the quantization process from a "sampling with replacement" model to a "sampling without replacement" model, which naturally exhibits lower variance.
High-Dimensional Extensions
To handle the high-dimensional vectors typical in machine learning, the authors propose two variants:
- EntropyCQ: Employs variable-length coding to assign fewer bits to more frequent values, optimizing the bit-rate.
- WalshHadamardCQ: Applies a random rotation (the Walsh-Hadamard Transform) to the data before quantization. This spreads the information across dimensions, making the quantization process more robust to outliers and varying scales.
Theoretical and Empirical Results
The primary theoretical breakthrough is that CQ's error bound scales with the mean absolute deviation ($\sigma_{md}$) of the data rather than the global range. This means that as the clients' data points become more similar (as often happens during the convergence of an optimization algorithm), the quantization error automatically decreases toward zero. Crucially, CQ achieves this without requiring any prior knowledge of the data's variance.
Key Findings
- Mean Estimation: On synthetic datasets, CQ achieved a Mean Squared Error (MSE) of 1.40, compared to 10.28 for independent quantization—a nearly 7x improvement.
- Distributed Clustering: In $k$-means tasks on MNIST, CQ's objective value (39.97) was nearly indistinguishable from the uncompressed baseline (39.43), whereas independent quantization lagged at 42.98.
- Federated Learning: When integrated into Federated Averaging (FedAvg) for MNIST, CQ with rotation reached 89.20% accuracy, outperforming independent methods (87.38%) and nearly matching the full-precision baseline (89.31%).
Conclusion
Correlated Quantization provides a simple yet powerful modification to the distributed optimization pipeline. By replacing independent randomness with a coordinated strategy, it enables "variance-aware" compression without requiring any side information. This leads to faster convergence and higher accuracy in bandwidth-constrained environments, making it a highly practical tool for modern federated learning systems.
Summary updated