English

Towards Understanding the Generalizability of Delayed Stochastic Gradient Descent

Machine Learning 2025-05-27 v4

Abstract

Stochastic gradient descent (SGD) performed in an asynchronous manner plays a crucial role in training large-scale machine learning models. However, the generalization performance of asynchronous delayed SGD, which is an essential metric for assessing machine learning algorithms, has rarely been explored. Existing generalization error bounds are rather pessimistic and cannot reveal the correlation between asynchronous delays and generalization. In this paper, we investigate sharper generalization error bound for SGD with asynchronous delay τ\tau. Leveraging the generating function analysis tool, we first establish the average stability of the delayed gradient algorithm. Based on this algorithmic stability, we provide upper bounds on the generalization error of O~(Tτnτ)\tilde{\mathcal{O}}(\frac{T-\tau}{n\tau}) and O~(1n)\tilde{\mathcal{O}}(\frac{1}{n}) for quadratic convex and strongly convex problems, respectively, where TT refers to the iteration number and nn is the amount of training data. Our theoretical results indicate that asynchronous delays reduce the generalization error of the delayed SGD algorithm. Analogous analysis can be generalized to the random delay setting, and the experimental results validate our theoretical findings.

Keywords

Cite

@article{arxiv.2308.09430,
  title  = {Towards Understanding the Generalizability of Delayed Stochastic Gradient Descent},
  author = {Xiaoge Deng and Li Shen and Shengwei Li and Tao Sun and Dongsheng Li and Dacheng Tao},
  journal= {arXiv preprint arXiv:2308.09430},
  year   = {2025}
}

Comments

Accepted by IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025