arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.11845math.OC
收藏

异步最优化方法用于保证深度神经网络的有效训练

Asynchronous Optimization Methods for Efficient Training of Deep Neural Networks with Guarantees

Vyacheslav Kungurtsev, Malcolm Egan, Bapi Chatterjee, Dan Alistarh

摘要:

异步分布式算法是一种在大规模优化中减少同步成本的流行方法,特别是对于神经网络训练。然而,对于非光滑和非凸的目标,除了封闭形式的近似算子解可用的情况外,几乎没有收敛保证。由于大多数流行的当代深度神经网络导致非光滑和非凸目标,现在迫切需要这种收敛保证。在本文中,我们分析了第一次收敛的随机异步优化这一类一般的目标。特别是,我们专注于随机次梯度方法允许块变量分区,其中基于共享内存的模型异步更新的并发进程。为此,我们首先引入了一个概率模型,捕捉并发进程之间的真正的异步调度的关键特征,在这个模型下,我们建立收敛概率为1的不变集的随机次梯度方法与动量。从实践的角度来看,我们考虑的方法家族的一个问题是,它没有得到机器学习框架的有效支持,因为它们主要关注分布式数据并行策略。为了解决这个问题,我们提出了一种新的基于共享内存的深度神经网络训练实现策略,利用并发参数服务器在单GPU和多GPU设置中训练分区但共享的模型。基于这种实现,与流行的图像分类任务的最先进的训练方法相比,我们实现了平均1.2倍的速度提升,而不影响准确性。

英文摘要:

Asynchronous distributed algorithms are a popular way to reduce synchronization costs in large-scale optimization, and in particular for neural network training. However, for nonsmooth and nonconvex objectives, few convergence guarantees exist beyond cases where closed-form proximal operator solutions are available. As most popular contemporary deep neural networks lead to nonsmooth and nonconvex objectives, there is now a pressing need for such convergence guarantees. In this paper, we analyze for the first time the convergence of stochastic asynchronous optimization for this general class of objectives. In particular, we focus on stochastic subgradient methods allowing for block variable partitioning, where the shared-memory-based model is asynchronously updated by concurrent processes. To this end, we first introduce a probabilistic model which captures key features of real asynchronous scheduling between concurrent processes; under this model, we establish convergence with probability one to an invariant set for stochastic subgradient methods with momentum. From the practical perspective, one issue with the family of methods we consider is that it is not efficiently supported by machine learning frameworks, as they mostly focus on distributed data-parallel strategies. To address this, we propose a new implementation strategy for shared-memory based training of deep neural networks, whereby concurrent parameter servers are utilized to train a partitioned but shared model in single- and multi-GPU settings. Based on this implementation, we achieve on average 1.2x speed-up in comparison to state-of-the-art training methods for popular image classification tasks without compromising accuracy.

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

↑