Efficient Sign-Based Optimization: Accelerating Convergence via Variance Reduction

Wei Jiang, Sifan Yang, Wenhao Yang, Lijun Zhang

Introduction

Training large neural networks across distributed nodes requires transmitting massive gradient vectors back and forth between workers and the central server. This data transfer creates a significant communication bottleneck. To alleviate this, researchers often employ signSGD, a 1-bit compression technique where workers only send the sign of their gradients (e.g., "move positive" or "move negative") rather than the exact 32-bit float values.

While highly communication-efficient, signSGD suffers from a theoretical speed limit: its convergence rate is historically bottlenecked at $\mathcal{O}(d^{1/2}T^{-1/4})$, where $d$ is the dimension and $T$ is the number of iterations. In standard (non-sign) SGD, "variance reduction" techniques are used to smooth out noisy gradient estimates and accelerate convergence to $\mathcal{O}(T^{-1/3})$. This paper tackles an open question: Can we apply variance reduction to sign-based methods to break the signSGD speed limit? Furthermore, can these techniques be adapted for tricky "heterogeneous" distributed settings where different nodes hold vastly different types of data?

The SSVR Framework

The authors propose a family of algorithms under the umbrella of SSVR (Sign-based Stochastic Variance Reduction) to accelerate convergence in both centralized and distributed environments:

  1. Basic SSVR: Instead of taking the sign of the raw, noisy stochastic gradient, the algorithm maintains a smoothed, variance-reduced gradient estimator (using a momentum-based update style known as STORM). It then takes the sign of that smoothed estimator to update the model.
  2. SSVR-FS (Finite-Sum): For standard datasets with a fixed number of examples, the algorithm periodically computes the exact full gradient (similar to the classic SVRG algorithm) and uses an error-correction term. This tightly bounds the gradient estimate before the sign operation is applied.
  3. SSVR-MV (Majority Vote): In distributed setups, workers send their signs to a server, which takes a "majority vote" and sends a sign back. If data is heterogeneous (non-IID), this double-sign operation amplifies bias and ruins convergence. To fix this, SSVR-MV introduces a stochastic unbiased sign operation. Instead of a hard deterministic sign, it outputs +1 or -1 with a probability proportional to the gradient's magnitude. This preserves the 1-bit communication but ensures the server's aggregated estimate remains mathematically unbiased.

Theoretical and Empirical Results

The core contribution of this work lies in its rigorous theoretical speedups, which are validated by empirical performance.

Theoretical Speedups

For standard stochastic optimization, SSVR improves the convergence rate from $\mathcal{O}(d^{1/2}T^{-1/4})$ to $\mathcal{O}(d^{1/2}T^{-1/3})$. For finite-sum problems, SSVR-FS achieves $\mathcal{O}(m^{1/4}d^{1/2}T^{-1/2})$, beating prior state-of-the-art rates.

Comparison of convergence rates for stochastic and finite-sum settings.

In distributed heterogeneous settings, deterministic majority voting typically fails because the "loudest" local biases dominate the server's updates. By replacing the deterministic sign with a probabilistic one, SSVR-MV achieves up to $\mathcal{O}(d^{1/4}T^{-1/4})$. This is a massive improvement over prior methods that suffered from high sample complexity or gradients that failed to converge to zero.

Comparison of convergence rates for heterogeneous distributed settings.

Empirical Performance

The authors evaluated their methods on standard image classification benchmarks using a ResNet18 model on CIFAR-10 (centralized) and a ResNet50 model on CIFAR-100 (distributed, simulating 4 and 8 nodes). Across the board, the SSVR family consistently achieved lower training loss, faster gradient norm reduction, and higher final test accuracy compared to baselines like standard signSGD, signSGD-SIM, and SignSVRG.

Key Insights and Limitations

Variance reduction survives the sign operation: The core insight of this paper is proving that the harsh, non-linear bias introduced by the sign operation doesn't destroy the benefits of variance reduction. As long as the underlying gradient estimator is tracked smoothly over time, taking its sign still yields faster convergence than standard signSGD.

Limitations: To make the stochastic unbiased sign operation work in the distributed setting (SSVR-MV), the algorithm requires the assumption that the gradients are strictly bounded by a known constant. This allows them to be mapped to a valid probability between 0 and 1. If gradients spike beyond this bound, the projection step might discard useful information.

Future Directions: Natural next steps involve relaxing these bounded gradient assumptions for distributed settings, or scaling these 1-bit variance reduction schemes to train massive architectures like Large Language Models (LLMs), where communication bottlenecks are most severe.

Summary updated

BibTeX
@inproceedings{jiang2024efficient,
  author = {Wei Jiang and Sifan Yang and Wenhao Yang and Lijun Zhang},
  title = {{Efficient Sign-Based Optimization: Accelerating Convergence via Variance Reduction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=uaNZvF1VFe},
}
Figure