Unveiling the Power of Multiple Gossip Steps: A Stability-Based Generalization Analysis in Decentralized Training

Qinglun Li, Yingqi Liu, Miao Zhang, Xiaochun Cao, Quanjun Yin, Li Shen

Introduction

Decentralized machine learning has emerged as a robust alternative to centralized training, offering benefits in privacy, scalability, and fault tolerance. In these systems, nodes (clients) train on local data and synchronize by "gossiping"—averaging model weights with neighbors. However, decentralized models often lag behind their centralized counterparts in generalization performance. A common empirical solution is Multiple Gossip Steps (MGS), where nodes communicate multiple times per local update. While effective, the theoretical underpinnings of MGS have remained elusive. This paper provides a stability-based analysis to explain the mechanism of MGS and its limitations.

Methodology: Stability Without Bounded Gradients

The authors utilize algorithmic stability analysis, specifically $l_2$ on-average model stability, to link optimization error to generalization error. A significant contribution of this work is the removal of the "bounded gradient" (Lipschitz) assumption, which is often unrealistic in deep learning.

Instead, they employ the Polyak-Łojasiewicz (PL) condition to bridge function value gaps and gradient norms. This framework allows for a rigorous analysis of how network topology, data heterogeneity, and communication frequency interact to influence the final model's performance without relying on standard theoretical "crutches."

Key Insights

1. Exponential Benefit of MGS

The theoretical analysis reveals that increasing the number of gossip steps reduces optimization error at an exponential rate. This explains why even a small increase in communication frequency (e.g., moving from 1 to 5 steps) can lead to substantial improvements in model consensus and generalization.

2. The Permanent Gap

A critical finding is that decentralized training, even with infinite gossip steps, cannot perfectly replicate centralized mini-batch SGD. The generalization bounds for decentralized systems scale differently with the number of clients ($m$), indicating a fundamental architectural divergence that communication alone cannot bridge.

3. Batch Size Dynamics

The effectiveness of MGS is tied to the local batch size. Small batches (high noise) benefit significantly from more gossip steps to maintain stability. Conversely, with large batches, excessive gossiping can introduce overhead that eventually degrades performance, suggesting a non-linear trade-off between local computation and communication.

Key Results

The authors validated their theory using CIFAR-10 and CIFAR-100 datasets under non-IID conditions (using a Dirichlet distribution with $\alpha=0.3$).

As shown in the figure, increasing the number of gossip steps from 1 to 20 consistently improves both training loss and test accuracy. However, a clear performance gap remains between the best MGS configuration and centralized Mini-batch-SGD, supporting the "permanent gap" hypothesis.

On CIFAR-100, the researchers observed the predicted trade-off: while MGS improved accuracy for small batch sizes (16.08% to 18.95% with 10 steps), it led to performance drops when applied excessively to larger batch sizes (dropping from 30.50% at 3 steps to 29.66% at 10 steps for a batch size of 96).

Conclusion

This research provides a much-needed theoretical foundation for Multiple Gossip Steps in decentralized training. By moving away from restrictive assumptions like bounded gradients, the authors offer a more realistic view of how communication frequency impacts generalization. While MGS is a powerful tool for narrowing the performance gap, the study highlights that decentralized architectures possess inherent characteristics that distinguish them from centralized systems, regardless of communication intensity.

Summary updated

BibTeX
@inproceedings{li2025unveiling,
  author = {Qinglun Li and Yingqi Liu and Miao Zhang and Xiaochun Cao and Quanjun Yin and Li Shen},
  title = {{Unveiling the Power of Multiple Gossip Steps: A Stability-Based Generalization Analysis in Decentralized Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=V8dGVO5Xpg},
}
Figure