arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.00130stat.MLcs.LGmath.OC
收藏

深度神经网络的分布式牛顿方法

Distributed Newton Methods for Deep Neural Networks

National Taiwan University(台湾大学);Microsoft(微软);Facebook Research(脸书研究院)

Chien-Chih Wang, Kent Loong Tan, Chun-Ting Chen, Yu-Hsiang Lin, S. Sathiya Keerthi, Dhruv Mahajan, S. Sundararajan, Chih-Jen Lin

摘要:

深度学习涉及一个困难的非凸优化问题,在深度结构的任何两个相邻层之间具有大量权重。为了处理大型数据集或复杂网络,需要分布式训练,但函数,梯度和Hessian的计算是昂贵的。特别地,通信和同步成本可能成为瓶颈。在本文中,我们专注于分布式存储模型的情况下,并提出了一种新的分布式牛顿方法来训练深度神经网络。通过变量和特征数据分区,以及一些精心的设计,我们能够显式地使用牛顿方法中的矩阵向量乘积的雅可比矩阵。采用了一些技术来减少运行时间和内存消耗。首先,为了减少通信成本,我们提出了一种对角化方法,使得可以获得近似牛顿方向,而无需机器之间的通信。其次,我们考虑子采样高斯-牛顿矩阵,以减少运行时间以及通信成本。第三,为了减少同步成本,我们终止寻找近似牛顿方向的过程,即使有些节点还没有完成他们的任务。在分布式环境中的一些实施问题的细节进行了深入研究。实验表明,该方法对深度神经网络的分布式训练是有效的。与随机梯度法相比,该方法具有更强的鲁棒性和更高的测试精度。

英文摘要:

Deep learning involves a difficult non-convex optimization problem with a large number of weights between any two adjacent layers of a deep structure. To handle large data sets or complicated networks, distributed training is needed, but the calculation of function, gradient, and Hessian is expensive. In particular, the communication and the synchronization cost may become a bottleneck. In this paper, we focus on situations where the model is distributedly stored, and propose a novel distributed Newton method for training deep neural networks. By variable and feature-wise data partitions, and some careful designs, we are able to explicitly use the Jacobian matrix for matrix-vector products in the Newton method. Some techniques are incorporated to reduce the running time as well as the memory consumption. First, to reduce the communication cost, we propose a diagonalization method such that an approximate Newton direction can be obtained without communication between machines. Second, we consider subsampled Gauss-Newton matrices for reducing the running time as well as the communication cost. Third, to reduce the synchronization cost, we terminate the process of finding an approximate Newton direction even though some nodes have not finished their tasks. Details of some implementation issues in distributed environments are thoroughly investigated. Experiments demonstrate that the proposed method is effective for the distributed training of deep neural networks. In compared with stochastic gradient methods, it is more robust and may give better test accuracy.

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

↑