NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DRIVE: One-bit Distributed Mean Estimation

Shay Vargaftik, Ran Ben-Basat, Amit Portnoy, Gal Mendelson, Yaniv Ben-Itzhak, Michael Mitzenmacher

In the world of Distributed and Federated Learning, communication is often the biggest bottleneck. When thousands of clients need to send massive gradient vectors—sometimes containing billions of parameters—to a central server, the network quickly becomes a traffic jam.

The paper "DRIVE: One-bit Distributed Mean Estimation" introduces a clever way to squeeze these vectors down to just one bit per coordinate while maintaining high accuracy, effectively alleviating this communication bottleneck.

The Challenge of Distributed Mean Estimation

In distributed training setups like Distributed SGD, multiple clients compute gradients and send them to a server, which averages them to update a global model. As models grow, the cost of sending these 32-bit floating-point vectors becomes prohibitive.

This presents the challenge of Distributed Mean Estimation (DME): how can we compress these vectors so that the server can still reconstruct an accurate average?

  • Simple Quantization (just rounding to 1 bit) usually introduces massive errors that grow with the dimension $d$.
  • Advanced Methods (like Kashin’s representation) are more accurate but computationally expensive and complex to implement.

The authors sought a "sweet spot": a method that is as fast as simple rounding but as accurate as the most complex theoretical techniques.

The DRIVE Framework: Rotate, Round, and Scale

DRIVE (Deterministically RoundIng randomly rotated VEctors) is a novel compression framework that allows clients to transmit $d$-dimensional vectors using only $\approx 1$ bit per entry. The core idea is a straightforward process:

  1. Random Rotation: The client multiplies their vector by a random rotation matrix. Intuitively, this "spreads" the information of the vector evenly across all coordinates. In this rotated space, the coordinates behave like independent normal variables.
  2. Deterministic Rounding: Instead of complex stochastic rounding, DRIVE simply takes the sign of each coordinate (1 for positive, -1 for negative).
  3. Scaling: To ensure the estimate is accurate (unbiased), the client sends a single scalar value $S$ along with the $d$ bits.

The authors propose two versions:

  • DRIVE: Uses a single scale $S$ for all coordinates.
  • DRIVE+: Uses 1D K-Means (with $K=2$) to find the two best values to represent the rotated coordinates, further reducing error at a slight computational cost.

To make this practical for massive models, they use the Randomized Hadamard Transform. Unlike a general rotation which takes $O(d^2)$ time, the Hadamard transform takes only $O(d \log d)$ and can be computed "in-place," making it extremely fast.

Key Insights

  • The Power of Rotation: The "aha moment" is that after a random rotation, the distribution of coordinates becomes predictable (nearly Gaussian). This makes 1-bit quantization much more effective because you aren't "losing" a few massive coordinates while rounding small ones to zero.
  • The $1/n$ Error Bound: Most 1-bit methods have an error that grows with the dimension (e.g., $O(\frac{\log d}{n})$). DRIVE is the first 1-bit per coordinate method to achieve a provable $O(1/n)$ Normalized Mean Squared Error (NMSE) that is independent of $d$ for large dimensions.
  • Unbiasedness is Key: By carefully choosing the scale $S$, the authors ensure the estimate is unbiased. This means that when the server averages results from $n$ clients, the individual compression errors tend to cancel each other out.

Key Results and Performance

DRIVE was evaluated across a wide range of standard machine learning benchmarks, including Image Classification (MNIST, CIFAR), Language Modeling (Shakespeare, Stack Overflow), and traditional ML tasks.

Superior Accuracy and Theoretical Limits In head-to-head tests, DRIVE and DRIVE+ consistently showed lower NMSE than existing state-of-the-art methods. For very high dimensions, the NMSE of DRIVE tends toward a small constant of $\pi/2 - 1 \approx 0.571$. This means the error doesn't explode as models get bigger.

Empirical NMSE of DRIVE variants across different distributions, converging to the theoretical limit.

Computational Efficiency DRIVE (Hadamard) is significantly faster than Kashin-based methods. For a ResNet18 model, the encoding time was only 2.8 ms, adding a negligible 0.6% overhead to the total training time while providing massive bandwidth savings.

Comparison of NMSE and execution time across different dimensions for DRIVE and baseline methods.

Federated Learning Performance On the EMNIST and Stack Overflow datasets, DRIVE achieved accuracy nearly identical to "FedAvg" (which uses full 32-bit precision), despite using 32x less bandwidth.

Limitations and Future Work

While highly effective, DRIVE has a few limitations to consider:

  • Structured Rotations: While the Hadamard transform is fast, it isn't a "perfect" uniform rotation. The authors provide evidence that it works well for ML gradients, but a formal proof for the $1/n$ bound using Hadamard remains an open challenge.
  • All-Reduce Compatibility: In high-performance computing clusters using "All-Reduce" patterns, DRIVE might be tricky to implement because every client needs to use the same rotation for the vectors to be summable in-network.
  • Sparsity: DRIVE spreads information out. If a vector is extremely sparse (mostly zeros), DRIVE might actually be less efficient than methods specifically designed to transmit only non-zero indices.

Overall, DRIVE provides a robust, mathematically sound, and highly practical tool for anyone looking to scale distributed training without breaking their network budget.

Summary updated

BibTeX
@inproceedings{vargaftik2021drive,
  author = {Shay Vargaftik and Ran Ben-Basat and Amit Portnoy and Gal Mendelson and Yaniv Ben-Itzhak and Michael Mitzenmacher},
  title = {{DRIVE: One-bit Distributed Mean Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=gcBNtT_nsF},
}
Figure