Skip to main content
QUICK REVIEW

[Paper Review] Exponential Graph is Provably Efficient for Decentralized Deep Training

Bicheng Ying, Kun Yuan|arXiv (Cornell University)|Oct 26, 2021
Stochastic Gradient Optimization TechniquesComputer Science5 citations
TL;DR

This paper proposes exponential graphs—specifically static and one-peer variants—for decentralized deep learning training, proving they achieve near-exact averaging with minimal per-iteration communication. It demonstrates that a sequence of log(n) one-peer exponential graphs enables exact averaging with only one neighbor per node per iteration, outperforming all common topologies in balancing communication cost and convergence speed.

ABSTRACT

Decentralized SGD is an emerging training method for deep learning known for its much less (thus faster) communication per iteration, which relaxes the averaging step in parallel SGD to inexact averaging. The less exact the averaging is, however, the more the total iterations the training needs to take. Therefore, the key to making decentralized SGD efficient is to realize nearly-exact averaging using little communication. This requires a skillful choice of communication topology, which is an under-studied topic in decentralized optimization. In this paper, we study so-called exponential graphs where every node is connected to $O(\log(n))$ neighbors and $n$ is the total number of nodes. This work proves such graphs can lead to both fast communication and effective averaging simultaneously. We also discover that a sequence of $\log(n)$ one-peer exponential graphs, in which each node communicates to one single neighbor per iteration, can together achieve exact averaging. This favorable property enables one-peer exponential graph to average as effective as its static counterpart but communicates more efficiently. We apply these exponential graphs in decentralized (momentum) SGD to obtain the state-of-the-art balance between per-iteration communication and iteration complexity among all commonly-used topologies. Experimental results on a variety of tasks and models demonstrate that decentralized (momentum) SGD over exponential graphs promises both fast and high-quality training. Our code is implemented through BlueFog and available at https://github.com/Bluefog-Lib/NeurIPS2021-Exponential-Graph.

Motivation & Objective

  • Address the trade-off between per-iteration communication cost and convergence speed in decentralized SGD by designing an optimal communication topology.
  • Overcome the limitation of sparse topologies that lead to high transient iteration counts due to ineffective information aggregation.
  • Provide theoretical justification for the empirical success of exponential graphs in decentralized training, particularly their ability to achieve exact averaging with minimal communication.
  • Establish that one-peer exponential graphs—where each node communicates to only one neighbor per iteration—can still achieve exact averaging over log(n) iterations, enabling efficient and scalable training.

Proposed method

  • Propose two variants of exponential graphs: static (each node connects to O(log n) neighbors) and one-peer (each node cycles through neighbors, communicating to only one per iteration).
  • Theoretically analyze the spectral gap of the static exponential graph, proving it is upper bounded by O(1/log₂n), correcting prior incorrect claims of O(1).
  • Establish that any log₂(n) consecutive sequences of one-peer exponential graphs achieve exact averaging, despite being time-varying and having only one communication link per node per iteration.
  • Apply the exponential graph topology to decentralized (momentum) SGD, using the Metropolis rule for symmetric weight matrices to ensure convergence.
  • Use BlueFog for implementation and evaluate across diverse models and tasks to validate performance and scalability.
  • Compare with standard topologies (ring, grid, random, star, etc.) using metrics like maximum degree and 1−ρ (spectral gap), showing exponential graphs achieve superior trade-offs.

Experimental results

Research questions

  • RQ1Can exponential graphs achieve both low per-iteration communication and fast convergence in decentralized SGD?
  • RQ2What is the true spectral gap of the static exponential graph, and how does it compare to prior claims in the literature?
  • RQ3Can one-peer exponential graphs—where each node communicates to only one neighbor per iteration—still achieve exact averaging over time?
  • RQ4How does the transient iteration complexity of exponential graphs compare to other commonly used topologies in decentralized training?
  • RQ5Does the use of exponential graphs in decentralized (momentum) SGD lead to state-of-the-art performance in terms of communication efficiency and convergence speed?

Key findings

  • The spectral gap of the static exponential graph is proven to be O(1/log₂n), correcting prior incorrect claims of O(1).
  • A sequence of log₂(n) one-peer exponential graphs achieves exact averaging, enabling high convergence efficiency despite minimal per-iteration communication.
  • The one-peer exponential graph topology achieves the same transient iteration complexity as the static exponential graph—O(n³ log²₂n)—but with only one communication link per node per iteration.
  • Exponential graphs outperform all commonly used topologies (ring, grid, random, star, etc.) in balancing per-iteration communication and transient iteration complexity.
  • Empirical results on diverse models and tasks confirm that decentralized (momentum) SGD with exponential graphs enables both fast and high-quality training.
  • The proposed method achieves state-of-the-art performance in the trade-off between communication cost and convergence speed, validated through implementation in BlueFog and public code release.

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.