Beyond spectral gap (extended): The role of the topology in decentralized learning

Thijs Vogels, Hadrien Hendrikx, Martin Jaggi
1/5/2023
cs.LGcs.DCmath.OC

Official code: epfml/topology-in-decentralized-learning (14 stars, last commit 2022-06-07).

Abstract

In data-parallel optimization of machine learning models, workers collaborate to improve their estimates of the model: more accurate gradients allow them to use larger learning rates and optimize faster. In the decentralized setting, in which workers communicate over a sparse graph, current theory fails to capture important aspects of real-world behavior. First, the `spectral gap' of the communication graph is not predictive of its empirical performance in (deep) learning. Second, current theory does not explain that collaboration enables larger learning rates than training alone. In fact, it prescribes smaller learning rates, which further decrease as graphs become larger, failing to explain convergence dynamics in infinite graphs. This paper aims to paint an accurate picture of sparsely-connected distributed optimization. We quantify how the graph topology influences convergence in a quadratic toy problem and provide theoretical results for general smooth and (strongly) convex objectives. Our theory matches empirical observations in deep learning, and accurately describes the relative merits of different graph topologies. This paper is an extension of the conference paper by Vogels et. al. (2022). Code: https://github.com/epfml/topology-in-decentralized-learning.

View on arXivView PDF

Code Implementations(1)

Code related to ’Beyond spectral gap: The role of the topology in decentralized learning‘.

144PythonJun 7, 20224 years ago

Similar Papers

Cite this paper

@article{vogels2023beyond,
  title  = {Beyond spectral gap (extended): The role of the topology in decentralized learning},
  author = {Thijs Vogels and Hadrien Hendrikx and Martin Jaggi},
  year   = {2023},
  eprint = {2301.02151},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.02151v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.02151.svg)](https://codeofpaper.com/paper/2301.02151)

Discussion