EF-BV: A Unified Theory of Error Feedback and Variance Reduction Mechanisms for Biased and Unbiased Compression in Distributed Optimization

Laurent Condat, Kai Yi, Peter Richtárik

TL;DR

The paper introduces EF-BV, a unified optimization framework that bridges the gap between two major gradient compression paradigms: error feedback (for biased compressors) and variance reduction (for unbiased compressors). By defining a new, broader class of compressors parameterized by both bias and variance, EF-BV achieves the best of both worlds—enabling the use of highly practical biased compressors while accelerating convergence as the number of parallel workers increases.

What Problem Does This Paper Address?

In large-scale distributed and federated learning, communication between worker nodes and the central server is almost always the primary bottleneck. To save bandwidth, researchers use lossy compression to reduce the number of bits sent per communication round.

Historically, compression operators have been split into two distinct camps:

  1. Unbiased Compressors: Randomized operators (like rand-k) whose expected output equals the input. These are typically handled using variance reduction algorithms like DIANA.
  2. Biased Compressors: Deterministic or contractive operators (like top-k) that alter the gradient direction but offer excellent practical performance. These require error-feedback mechanisms like EF21 to prevent the algorithm from diverging.

Until now, these two worlds were completely separate, requiring entirely different theoretical analyses and proof techniques. Crucially, existing state-of-the-art algorithms for biased compressors (like EF21) failed to exploit a major benefit of distributed systems: their convergence rates did not improve as more parallel workers ($n$) were added to the network.

Table 1: Desirable properties of a distributed compressed gradient descent algorithm converging to an exact solution of (1) and whether they are satisfied by the state-of-the-art algorithms DIANA and EF21 and their currently-known analysis, and the proposed algorithm EF-BV.

Methods

The authors unify these two paradigms by introducing a new, general class of compressors, $\mathbb{C}(\eta, \omega)$, defined by a classic bias-variance decomposition of the compression error. Here, $\eta$ controls the relative bias and $\omega$ controls the variance.

Using this framework, they propose EF-BV (Error Feedback with Bias-Variance decomposition). The algorithm introduces two distinct scaling parameters:

  • $\lambda$: Mitigates individual compression error in the control variates maintained at each node.
  • $\nu$: Mitigates the aggregated compression error at the master server.
Algorithm pseudocode comparison for EF-BV, EF21, and DIANA

By appropriately tuning $\lambda$ and $\nu$, EF-BV naturally recovers DIANA and EF21 as special cases. More importantly, it allows workers to use independent randomness to reduce the aggregated variance ($\omega_{av}$), allowing the server to take larger stepsizes and accelerate overall convergence.

The authors prove the linear convergence of EF-BV under the Kurdyka–Łojasiewicz (KŁ) condition, a generalized optimization assumption that is weaker than standard strong convexity.

Datasets

The algorithm was evaluated using standard real-world datasets from the LibSVM library for distributed logistic regression tasks:

  • mushrooms (8,124 datapoints, 112 features)
  • phishing (11,055 datapoints, 68 features)
  • a9a (32,561 datapoints, 123 features)
  • w8a (49,749 datapoints, 300 features)

Experiments were conducted across both fully heterogeneous (no data overlap) and partially shared data regimes using a cluster of 24 NVIDIA-A100 GPUs.

Key Insights and Ideas

  • The Bias-Variance Continuum: Biased and unbiased compressions are not fundamentally different mathematical entities; they are simply different configurations of a single bias-variance error decomposition.
  • The Power of Averaging: When multiple workers compress their gradients independently, their random variations partially cancel out upon aggregation. EF-BV is the first error-feedback method to explicitly exploit this "average relative variance" ($\omega_{av} \approx \omega/n$), enabling a direct convergence speedup proportional to the number of workers.
  • Generalized Theory: By proving convergence under the KŁ condition, the paper provides the first linear convergence guarantees for both EF21 and DIANA in non-strongly convex, regularized settings.

Key Results

  • Faster Convergence: In all experimental setups (across mushrooms, phishing, a9a, and w8a), EF-BV consistently outpaced EF21 in terms of the number of bits transmitted to reach a target accuracy.
  • Scalability: The performance gap between EF-BV and EF21 becomes significantly wider as the number of parallel workers ($n$) increases, validating the theoretical claim that EF-BV successfully mitigates compression noise through parallel aggregation.
  • Robustness: EF-BV proved superior in both standard convex optimization and non-convex regularized settings.

Limitations and Future Work

While the paper provides a powerful unified theory, a few areas remain open for exploration:

  • Hyperparameter Tuning: Although optimal theoretical values for the scaling parameters $\lambda$ and $\nu$ are provided, practical performance still depends on knowing or estimating the compressor parameters ($\eta, \omega, \omega_{av}$).
  • Data Heterogeneity Limits: The exact relationship between extreme data heterogeneity (highly non-i.i.d. scenarios) and the average variance reduction benefit warrants deeper empirical study.
  • New Compressor Design: The authors note that future work should focus on designing entirely new types of hybrid compressors that natively exploit the $\mathbb{C}(\eta, \omega)$ parameter space.

Summary updated

Abstract

In distributed or federated optimization and learning, communication between the different computing units is often the bottleneck and gradient compression is widely used to reduce the number of bits sent within each communication round of iterative methods. There are two classes of compression operators and separate algorithms making use of them. In the case of unbiased random compressors with bounded variance (e.g., rand-k), the DIANA algorithm of Mishchenko et al. (2019), which implements a variance reduction technique for handling the variance introduced by compression, is the current state of the art. In the case of biased and contractive compressors (e.g., top-k), the EF21 algorithm of Richtárik et al. (2021), which instead implements an error-feedback mechanism, is the current state of the art. These two classes of compression schemes and algorithms are distinct, with different analyses and proof techniques. In this paper, we unify them into a single framework and propose a new algorithm, recovering DIANA and EF21 as particular cases. Our general approach works with a new, larger class of compressors, which has two parameters, the bias and the variance, and includes unbiased and biased compressors as particular cases. This allows us to inherit the best of the two worlds: like EF21 and unlike DIANA, biased compressors, like top-k, whose good performance in practice is recognized, can be used. And like DIANA and unlike EF21, independent randomness at the compressors allows to mitigate the effects of compression, with the convergence rate improving when the number of parallel workers is large. This is the first time that an algorithm with all these features is proposed. We prove its linear convergence under certain conditions. Our approach takes a step towards better understanding of two so-far distinct worlds of communication-efficient distributed learning.
BibTeX
@inproceedings{condat2022ef,
  author = {Laurent Condat and Kai Yi and Peter Richtárik},
  title = {{EF-BV: A Unified Theory of Error Feedback and Variance Reduction Mechanisms for Biased and Unbiased Compression in Distributed Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=VEya3v4zpq},
}
Figure