Topology-aware Generalization of Decentralized SGD

Tongtian Zhu, Fengxiang He, Lan Zhang, Zhengyang Niu, Mingli Song +1 more
6/25/2022
cs.LGstat.ML

Official code: Raiden-Zhu/Generalization-of-DSGD (36 stars, Python, last commit 2023-03-29).

Abstract

This paper studies the algorithmic stability and generalizability of decentralized stochastic gradient descent (D-SGD). We prove that the consensus model learned by D-SGD is $\mathcal{O}{(N^{-1}+m^{-1} +λ^2)}$-stable in expectation in the non-convex non-smooth setting, where $N$ is the total sample size, $m$ is the worker number, and $1+λ$ is the spectral gap that measures the connectivity of the communication topology.

Show full abstract

These results then deliver an $\mathcal{O}{(N^{-(1+α)/2}+ m^{-(1+α)/2}+λ^{1+α} + φ_{\mathcal{S}})}$ in-average generalization bound, which is non-vacuous even when $λ$ is closed to $1$, in contrast to vacuous as suggested by existing literature on the projected version of D-SGD. Our theory indicates that the generalizability of D-SGD is positively correlated with the spectral gap, and can explain why consensus control in initial training phase can ensure better generalization. Experiments of VGG-11 and ResNet-18 on CIFAR-10, CIFAR-100 and Tiny-ImageNet justify our theory. To our best knowledge, this is the first work on the topology-aware generalization of vanilla D-SGD. Code is available at https://github.com/Raiden-Zhu/Generalization-of-DSGD.

View on arXivView PDF

Code Implementations(1)

The official implementation of the paper "Topology-aware Generalization of Decentralized SGD"

362PythonJun 15, 20223 years ago
decentralized-learninggeneralization-theorytheoretical-deep-learning

Similar Papers

Cite this paper

@article{zhu2022topologyaware,
  title  = {Topology-aware Generalization of Decentralized SGD},
  author = {Tongtian Zhu and Fengxiang He and Lan Zhang and Zhengyang Niu and Mingli Song and Dacheng Tao},
  year   = {2022},
  eprint = {2206.12680},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.12680}
}

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/2206.12680.svg)](https://codeofpaper.com/paper/2206.12680)

Discussion