arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1709.10432stat.MLcs.LG
收藏

带混洗的分布式随机梯度下降算法的收敛性分析

Convergence Analysis of Distributed Stochastic Gradient Descent with Shuffling

Peking University(北京大学);Microsoft Research(微软研究院);Beijing Jiaotong University(北京交通大学);Chinese Academy of Mathematics and Systems Science(中国科学院数学与系统科学研究院)

Qi Meng, Wei Chen, Yue Wang, Zhi-Ming Ma, Tie-Yan Liu

摘要:

当使用随机梯度下降来解决大规模机器学习问题时,数据处理的常见做法是将训练数据混洗,如果需要,将数据划分到多台机器上,然后对重新混洗的(本地或全局)数据执行几个时期的训练。上述过程使得用于计算梯度的实例不再独立地从训练数据集中采样。那么,分布式SGD方法在这种实际情况下是否具有理想的收敛特性呢?在本文中,我们对这个问题给出了答案。首先,我们给出了分布式机器学习中的实际数据处理过程的数学公式,我们称之为全局/局部洗牌的数据划分。我们观察到,如果洗牌操作是独立的,全球洗牌是相当于无替换采样。我们证明了SGD与全球洗牌有收敛保证在凸和非凸的情况下。一个有趣的发现是,与凸任务相比,深度学习等非凸任务更适合应用洗牌。其次,我们进行了收敛性分析与本地洗牌的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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑