[论文解读] Convergence Analysis of Distributed Stochastic Gradient Descent with Shuffling
本文首次对大规模机器学习中具有全局和局部打乱的分布式随机梯度下降(SGD)进行了收敛性分析。证明了全局打乱——等价于无放回采样——在凸与非凸设置下均能保证收敛,且在深度学习中的收敛速度优于凸问题,并在打乱不充分的情况下建立了理论边界,验证了其在分布式训练系统中的实用性。
When using stochastic gradient descent to solve large-scale machine learning problems, a common practice of data processing is to shuffle the training data, partition the data across multiple machines if needed, and then perform several epochs of training on the re-shuffled (either locally or globally) data. The above procedure makes the instances used to compute the gradients no longer independently sampled from the training data set. Then does the distributed SGD method have desirable convergence properties in this practical situation? In this paper, we give answers to this question. First, we give a mathematical formulation for the practical data processing procedure in distributed machine learning, which we call data partition with global/local shuffling. We observe that global shuffling is equivalent to without-replacement sampling if the shuffling operations are independent. We prove that SGD with global shuffling has convergence guarantee in both convex and non-convex cases. An interesting finding is that, the non-convex tasks like deep learning are more suitable to apply shuffling comparing to the convex tasks. Second, we conduct the convergence analysis for SGD with local shuffling. The convergence rate for local shuffling is slower than that for global shuffling, since it will lose some information if there's no communication between partitioned data. Finally, we consider the situation when the permutation after shuffling is not uniformly distributed (insufficient shuffling), and discuss the condition under which this insufficiency will not influence the convergence rate. Our theoretical results provide important insights to large-scale machine learning, especially in the selection of data processing methods in order to achieve faster convergence and good speedup. Our theoretical findings are verified by extensive experiments on logistic regression and deep neural networks.
研究动机与目标
- 为解决在跨工作节点打乱训练数据这一常见实际做法下,分布式SGD缺乏理论收敛保证的问题。
- 对全局和局部打乱在分布式机器学习中对收敛性的影响进行形式化建模与分析。
- 确定打乱——尤其是无放回采样——是否在分布式设置下相比独立同分布(i.i.d.)采样能提升收敛性。
- 研究打乱不充分(非均匀排列)对收敛速率的影响,并识别其仍能有效工作的条件。
提出的方法
- 提出一种包含全局和局部打乱的数据划分数学建模,将打乱过程建模为训练样本的随机排列。
- 证明当打乱相互独立时,全局打乱等价于无放回采样,从而可在该模型下开展收敛性分析。
- 利用集中不等式和耦合论证,界定打乱与i.i.d.采样之间的差异,尤其在打乱不充分的情况下。
- 针对全局和局部打乱,在凸、强凸与非凸设置下推导收敛速率,并采用针对每种情况定制的学习率调度。
- 引入一个打乱质量度量 ε(A,n),用于量化与均匀排列的偏离程度,并将其纳入收敛边界。
- 采用标准SGD收敛技术,包括光滑性与Lipschitz假设,同时用打乱引起的依赖性替代i.i.d.梯度独立性。
实验结果
研究问题
- RQ1在违反i.i.d.采样假设的情况下,带有全局打乱的分布式SGD是否仍能保持收敛性保证?
- RQ2在凸与非凸优化中,全局打乱的收敛速率与i.i.d.采样相比如何?
- RQ3与全局打乱相比,局部打乱(每台工作节点独立打乱且无通信)对收敛性有何影响?
- RQ4在何种条件下,打乱不充分(非均匀排列)仍能保证收敛且收敛速率可接受?
- RQ5能否为实际深度学习系统中使用的实用数据打乱流程,推导出分布式SGD的理论收敛边界?
主要发现
- 在独立打乱下,全局打乱等价于无放回采样,可在凸与非凸设置下保证收敛,且在非凸问题(如深度学习)中收敛更快。
- 带有全局打乱的分布式SGD的收敛速率被界为 O(1/√(Sn) + bM/(Sn) + √(1/n) + ε(A,n)ln n),显示出对数据规模和打乱质量的改进依赖性。
- 在强凸与光滑情况下,收敛速率为 O(log n / n + nε(A,n)²/(bM)) + O(min{bM/(Sn), κ²(bM)²log(Sn)/(Sn)² + ...}),表明对不完美打乱具有鲁棒性。
- 对于非凸问题,期望梯度范数的平方收敛于 O(√(1/(Sn)) + log n / n + nε(A,n)²/(bM)),表明在实际打乱下表现良好。
- 局部打乱由于损失了全局数据多样性,导致收敛速度慢于全局打乱,凸显了全局协调的重要性。
- 通过在逻辑回归与深度神经网络上的大量实验,验证了理论结果,确认打乱相比i.i.d.采样能实现更快收敛。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。