Skip to main content
QUICK REVIEW

[Paper Review] signSGD: Compressed Optimisation for Non-Convex Problems

Jeremy Bernstein, Yu-Xiang Wang|arXiv (Cornell University)|Feb 13, 2018
Stochastic Gradient Optimization TechniquesComputer Science88 citations
TL;DR

signSGD transmits only gradient signs to reduce communication in distributed non-convex optimization and matches SGD-like convergence; majority vote enables 1-bit communication in both directions with provable variance reduction.

ABSTRACT

Training large neural networks requires distributing learning across multiple workers, where the cost of communicating gradients can be a significant bottleneck. signSGD alleviates this problem by transmitting just the sign of each minibatch stochastic gradient. We prove that it can get the best of both worlds: compressed gradients and SGD-level convergence rate. The relative $\ell_1/\ell_2$ geometry of gradients, noise and curvature informs whether signSGD or SGD is theoretically better suited to a particular problem. On the practical side we find that the momentum counterpart of signSGD is able to match the accuracy and convergence speed of Adam on deep Imagenet models. We extend our theory to the distributed setting, where the parameter server uses majority vote to aggregate gradient signs from each worker enabling 1-bit compression of worker-server communication in both directions. Using a theorem by Gauss we prove that majority vote can achieve the same reduction in variance as full precision distributed SGD. Thus, there is great promise for sign-based optimisation schemes to achieve fast communication and fast convergence. Code to reproduce experiments is to be found at https://github.com/jxbz/signSGD .

Motivation & Objective

  • Motivate gradient communication bottlenecks in large-scale distributed deep learning.
  • Propose sign-based gradient updates to achieve SGD-level convergence with compression.
  • Develop theory for non-convex optimization under biased sign-based updates.
  • Extend to distributed settings with majority vote and 1-bit in both directions.
  • Explore momentum variant (Signum) and its convergence and practical performance.

Proposed method

  • Introduce signSGD where updates use only the sign of stochastic gradients.
  • Propose Signum by applying the sign to a momentum-averaged gradient.
  • Analyze convergence under non-convex assumptions with coordinate-wise smoothness and per-coordinate variance bounds.
  • Develop distributed majority vote scheme where the parameter server aggregates 1-bit gradient signs from M workers.
  • Provide convergence bounds showing rate comparable to SGD under certain density regimes of gradients and noise.
  • Extend theoretical framework to include Signum momentum and derive its convergence with a warmup period.

Experimental results

Research questions

  • RQ1Under what conditions do sign-based gradient methods achieve convergence rates comparable to SGD in non-convex optimization?
  • RQ2How does the density of gradients and noise across coordinates affect the performance of signSGD and Signum?
  • RQ3Can majority vote achieve effective 1-bit communication in both directions without sacrificing convergence?
  • RQ4What is the impact of momentum on bias-variance tradeoffs in sign-based methods?
  • RQ5How do sign-based methods perform empirically on large-scale datasets like CIFAR-10 and ImageNet compared to Adam and SGD?

Key findings

  • signSGD achieves convergence rates that can match SGD under certain L1/L2 geometry and noise conditions.
  • In distributed settings, majority vote enables 1-bit communication in both directions with variance reduction roughly by a factor of sqrt(M) under unimodal symmetric noise.
  • Signum (sign with momentum) converges and can reach performance similar to Adam on large models, with competitive accuracy.
  • The theory emphasizes gradient and noise density: when gradients are dense, signSGD is robust to sparse high-variance components; when gradients are sparse, SGD can be more robust to curvature and noise.
  • Empirical results on CIFAR-10 and Imagenet show signSGD/Signum performing comparably to SGD/Adam, with Signum achieving Imagenet-like results and potentially matching Adam in accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.