[Paper Review] Topology-aware Generalization of Decentralized SGD
This paper establishes the first topology-aware generalization bounds for vanilla decentralized stochastic gradient descent (D-SGD), proving that generalization error scales with $\mathcal{O}(N^{-(1+\alpha)/2} + m^{-(1+\alpha)/2} + \lambda^{1+\alpha} + \phi_{\mathcal{S}})$, where $\lambda$ is the spectral gap of the communication topology. The theory shows that better connectivity (larger $1-\lambda$) improves generalization, and validates this with experiments on VGG-11 and ResNet-18 across CIFAR-10, CIFAR-100, and Tiny-ImageNet.
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. 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.
Motivation & Objective
- To understand how communication topology affects the generalization performance of decentralized SGD (D-SGD).
- To close the gap in theoretical understanding of D-SGD generalization, especially in non-convex, non-smooth settings.
- To provide non-vacuous generalization bounds that remain meaningful even for large worker counts or sparse topologies.
- To explain why consensus control in early training improves generalization, based on spectral properties of the network.
Proposed method
- Derives distributed on-average algorithmic stability for D-SGD in non-convex, non-smooth settings, showing $\mathcal{O}(N^{-1} + m^{-1} + \lambda^2)$ stability in expectation.
- Uses spectral gap $1 - \lambda$ as a measure of network connectivity to derive topology-aware generalization bounds.
- Establishes a generalization bound of $\mathcal{O}(N^{-(1+\alpha)/2} + m^{-(1+\alpha)/2} + \lambda^{1+\alpha} + \phi_{\mathcal{S}})$, where $\phi_{\mathcal{S}}$ captures data-specific noise.
- Analyzes the impact of worker count $m$ and topology sparsity (via $\lambda$) on generalization, showing degradation for ring, grid, and exponential graphs.
- Employs a novel stability analysis framework that accounts for decentralized consensus dynamics and communication topology.
- Validates theoretical findings via experiments on VGG-11 and ResNet-18 across CIFAR-10, CIFAR-100, and Tiny-ImageNet.
Experimental results
Research questions
- RQ1How does the spectral gap of the communication topology affect the generalization of D-SGD?
- RQ2Can non-vacuous generalization bounds be derived for vanilla D-SGD in non-convex, non-smooth settings?
- RQ3Why does consensus control in early training improve generalization in D-SGD?
- RQ4How does increasing the number of workers impact generalization under different topologies?
- RQ5Does the generalizability of D-SGD degrade for sparse or poorly connected topologies?
Key findings
- The consensus model learned by D-SGD is $\mathcal{O}(N^{-1} + m^{-1} + \lambda^2)$-stable in expectation under non-convex, non-smooth settings.
- The generalization error bound is $\mathcal{O}(N^{-(1+\alpha)/2} + m^{-(1+\alpha)/2} + \lambda^{1+\alpha} + \phi_{\mathcal{S}})$, which remains non-vacuous even when $\lambda \to 1$ or $m$ is large.
- Generalizability is positively correlated with the spectral gap $1 - \lambda$, indicating that better-connected topologies yield better generalization.
- The theory explains why early-phase consensus control improves generalization: it enhances stability during critical training phases.
- Experiments on VGG-11 and ResNet-18 confirm that generalization degrades with increasing worker count on ring, grid, and exponential topologies, aligning with theoretical predictions.
- This work is the first to provide a topology-aware generalization analysis for vanilla D-SGD, distinguishing it from prior work on projected D-SGD.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.