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

Distributed learning with compressed gradient differences

Konstantin Mishchenko, Eduard Gorbunov, Martin Takác, Peter Richtárik

TL;DR

This paper introduces DIANA, a novel distributed machine learning algorithm that tackles the communication bottleneck by compressing gradient differences instead of raw gradients. This allows DIANA to converge to the true optimum, unlike previous methods, and achieves competitive or superior convergence rates in both convex and non-convex settings, even with limited communication.

What Problem Does This Paper Address?

Training large machine learning models often requires distributing the computation across multiple machines. A major bottleneck in this distributed setting is the communication overhead: workers compute model updates and send them to a central server for aggregation. Existing methods that compress these updates (e.g., by sparsification or quantization) often introduce errors that prevent convergence to the true optimum, especially in batch mode. This paper addresses this fundamental limitation by proposing a method that can effectively learn gradients even with compressed communication.

Methods

The core innovation is the DIANA algorithm, which compresses gradient differences rather than the gradients themselves. The intuition is that while individual worker gradients might be noisy and difficult to compress without error, the differences between these gradients and a learned "optimal" gradient estimate converge to zero as training progresses. This allows for more aggressive compression of these differences. DIANA maintains an auxiliary vector h at each worker, which is updated to learn the true gradient at the optimum. The algorithm then uses these compressed gradient differences to update the model parameters. The paper also introduces a momentum modification to DIANA and provides theoretical analysis for both strongly convex and non-convex optimization problems, along with new convergence rates for existing methods like TernGrad and QSGD.

Datasets

The paper mentions using the following datasets for experiments:

  • Mushrooms
  • a5a
  • Cifar10
  • Mnist (including Mnist-Convex, Mnist-DNN)

Key Insights and Ideas

  • Compressing gradient differences is key: By focusing on the difference between a worker's current gradient estimate and a learned optimal gradient, DIANA can achieve convergence to the true optimum, a feat not possible with direct gradient compression. This is because the differences are expected to shrink as the model approaches optimality.
  • Learning the optimal gradient: The auxiliary vector h in DIANA plays a crucial role in learning the true gradient at the optimum, enabling the compression of differences.
  • Block quantization offers flexibility: The theoretical analysis and experimental results suggest that block quantization can be beneficial, especially for large-dimensional problems, allowing for better adaptation to varying scales of different parts of the model.
  • DIANA's theoretical advantage: The paper provides theoretical guarantees that DIANA's convergence rates are superior to existing methods in certain settings, particularly when communication is a bottleneck.

Key Results

  • Convergence to optimum: DIANA is shown to converge to the true optimum, unlike previous compressed gradient methods.
  • Improved convergence rates: Theoretical analysis demonstrates that DIANA achieves competitive or superior iteration complexity bounds compared to existing methods in both strongly convex and non-convex settings. For example, in the strongly convex case, the iteration complexity is shown to be $O(\max \{ \frac{L}{\mu}, \kappa (1+\frac{1}{n}) \} \ln \frac{1}{\epsilon})$, where $\kappa$ is the condition number.
  • Practical performance: Experimental results show DIANA outperforming QSGD, TernGrad, and DQGD on various datasets, especially in terms of speed and scaling. Figure 1 shows DIANA with momentum achieving better functional accuracy than other methods on the logistic regression problem. Figure M7 also indicates DIANA's strong performance.
  • New theoretical results: The paper provides the first convergence rate analysis for TernGrad and offers new analysis for 1-bit QSGD under less restrictive assumptions.

Limitations and Future Work

  • Assumptions: The theoretical analysis relies on certain assumptions, such as bounded variance of stochastic gradients and, for the non-convex case, bounded data dissimilarity.
  • Parameter tuning: While DIANA's performance is strong, optimal parameter selection (e.g., step sizes, quantization parameters) can still be crucial, as suggested by the experimental sections.
  • Future directions: The paper suggests that the analysis technique can be applied to other methods (e.g., TernGrad) and that further exploration of block quantization and its impact on convergence is warranted. The authors also note that their method can be extended to more general settings, such as Byzantine-robust distributed methods.

Summary updated

BibTeX
@inproceedings{mishchenko2019distributed,
  author = {Konstantin Mishchenko and Eduard Gorbunov and Martin Takác and Peter Richtárik},
  title = {{Distributed learning with compressed gradient differences}},
  booktitle = {Optim. Methods Softw},
  year = {2019},
  doi = {10.1080/10556788.2024.2358790},
}
Figure