arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1106.5730math.OCcs.LG
收藏

HOGWILD!:一种无锁的随机梯度下降算法

HOGWILD!: A Lock-Free Approach to Parallelizing Stochastic Gradient Descent

University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Feng Niu, Benjamin Recht, Christopher Re, Stephen J. Wright

摘要:

随机梯度下降(SGD)是一种流行的算法,可以在各种机器学习任务上实现最先进的性能。一些研究人员最近提出了并行SGD的方案,但都需要破坏性能的内存锁定和同步。这项工作的目的是使用新的理论分析,算法和实现,SGD可以实现没有任何锁定。我们提出了一个更新方案称为HOGWILD!它允许处理器访问共享内存,并有可能互相复制对方的工作。我们表明,当相关的最优化问题是稀疏的,这意味着大多数梯度更新只修改决策变量的一小部分,那么HOGWILD!实现了接近最佳的收敛速率。我们通过实验证明,Hogwild!比使用锁定的替代方案的性能高出数量级。

英文摘要:

Stochastic Gradient Descent (SGD) is a popular algorithm that can achieve state-of-the-art performance on a variety of machine learning tasks. Several researchers have recently proposed schemes to parallelize SGD, but all require performance-destroying memory locking and synchronization. This work aims to show using novel theoretical analysis, algorithms, and implementation that SGD can be implemented without any locking. We present an update scheme called HOGWILD! which allows processors access to shared memory with the possibility of overwriting each other's work. We show that when the associated optimization problem is sparse, meaning most gradient updates only modify small parts of the decision variable, then HOGWILD! achieves a nearly optimal rate of convergence. We demonstrate experimentally that HOGWILD! outperforms alternative schemes that use locking by an order of magnitude.

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

↑