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

Natural Compression for Distributed Deep Learning

Samuel Horváth, Chen-Yu Ho, Ludovit Horvath, Atal Narayan Sahu, Marco Canini, Peter Richtárik

Abstract

Modern deep learning models are often trained in parallel over a collection of distributed machines to reduce training time. In such settings, communication of model updates among machines becomes a significant performance bottleneck. We introduce natural compression ($C_{\text{nat}}$), a simple yet theoretically and practically effective technique that rounds update vector entries to the nearest power of two. By ignoring the mantissa of floating-point numbers, $C_{\text{nat}}$ achieves substantial communication savings with negligible impact on convergence. We demonstrate that $C_{\text{nat}}$ and its generalization, natural dithering ($D_{\text{nat}}$), offer state-of-the-art performance in both theory and practice, leading to 3–4$\times$ improvements in overall theoretical running time.

Introduction

In the data-parallel paradigm of distributed deep learning, multiple workers compute gradients on local data subsets and synchronize these updates to maintain a global model. As model sizes reach billions of parameters, the time required to transmit these gradient vectors across the network often dwarfs the computation time. While compression techniques like quantization and sparsification can reduce bandwidth, they typically introduce variance (noise) that slows down convergence. Natural Compression ($C_{\text{nat}}$) addresses this by providing a high-compression, low-variance operator that is exceptionally efficient to implement.

The Natural Compression Operator

The core idea of $C_{\text{nat}}$ is randomized rounding to the nearest power of two. For any value $x$, the operator produces an unbiased estimate by rounding to either the power of two below or above $x$ with probabilities proportional to the distance.

A key insight of this work is that this operation is "natural" for modern hardware. Standard IEEE 754 floating-point numbers represent values using a sign bit, an exponent, and a mantissa. To round to a power of two, one can simply retain the sign and exponent while discarding the mantissa.

IEEE 754 floating-point representation. $C_{nat}$ effectively strips the 23-bit mantissa to compress values into a sign and exponent format.

By ditching the 23-bit mantissa in a 32-bit float, $C_{\text{nat}}$ reduces the representation to just 9 bits. Mathematically, the authors prove that $C_{\text{nat}}$ only increases the second moment of the compressed vector by a factor of $9/8$. In the context of optimization, this is a tiny increase that barely slows down convergence, yet it enables massive bandwidth savings.

Natural Dithering

For scenarios requiring even more aggressive compression, the authors propose Natural Dithering ($D_{\text{nat}}$). Unlike standard dithering, which uses a linear scale for rounding levels, $D_{\text{nat}}$ uses a geometric (logarithmic) scale based on powers of two. Because deep learning gradients often follow a heavy-tailed distribution—with many small values and few large ones—logarithmic spacing is exponentially more efficient at capturing information than linear spacing.

Experimental Results

The effectiveness of $C_{\text{nat}}$ was validated across diverse benchmarks, including ImageNet (ResNet50), CIFAR-10 (ResNet110, AlexNet, VGG11, DenseNet40), and MovieLens-20M.

  • Bandwidth Efficiency: $C_{\text{nat}}$ reduces communication by 3.56$\times$ for 32-bit floats and 5.82$\times$ for 64-bit floats.
  • Training Speedup: In practical distributed settings, the reduced communication overhead translates directly to faster training. For example, training ResNet110 on CIFAR-10 saw a 2.89$\times$ speedup.
  • Accuracy Preservation: Across all experiments, models trained with $C_{\text{nat}}$ reached the same final test accuracy as those trained without compression.
Test accuracy vs. training time for $C_{nat}$ compared to no compression. The compressed version reaches target accuracy 2.94x faster in this experiment due to reduced communication bottlenecks.

When combined with specialized hardware like OmniReduce for in-network aggregation, $C_{\text{nat}}$ achieved up to a 30$\times$ speedup over standard libraries like NCCL for sparse tensors.

Conclusion

Natural Compression offers a rare "free lunch" in distributed optimization: significant bandwidth reduction with almost no penalty in convergence rate. By leveraging the underlying structure of floating-point numbers and the logarithmic nature of gradient distributions, $C_{\text{nat}}$ and $D_{\text{nat}}$ provide a robust, hardware-friendly solution for scaling deep learning to increasingly massive models and datasets.

Summary updated

BibTeX
@inproceedings{horvath2022natural,
  author = {Samuel Horváth and Chen-Yu Ho and Ludovit Horvath and Atal Narayan Sahu and Marco Canini and Peter Richtárik},
  title = {{Natural Compression for Distributed Deep Learning}},
  booktitle = {MSML},
  year = {2022},
  url = {https://openreview.net/forum?id=2ztSH4pkO9},
}
Figure