arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.06587cs.LGcs.DCcs.ITmath.ITstat.ML
收藏

通过SGD和量化的SGD拟合ReLUs

Fitting ReLUs via SGD and Quantized SGD

University of Southern California(南加利福尼亚大学)

Seyed Mohammadreza Mousavi Kalan, Mahdi Soltanolkotabi, A. Salman Avestimehr

摘要:

在本文中,我们专注于寻找最浅的神经网络的最佳权重的问题,由一个单一的整流线性单元(ReLU)。这些函数具有$\mathbf{x}\rightarrow \max(0,\langle\mathbf{w},\mathbf{x}\rangle)$的形式,其中$\mathbf{w}\in\mathbb{R}^d$表示权重向量。我们专注于种植模型,其中输入是独立同分布选择的。从高斯分布,并根据种植的权重向量生成标签。我们首先表明,小批量随机梯度下降,适当初始化时,以几何速度收敛到种植模型的样本数是最佳的数值常数。接下来,我们将重点放在并行实现中,在每次迭代中,小批量梯度以分布式方式跨多个处理器计算,然后广播到主处理器或所有其他处理器。为了降低这种设置中的通信成本,我们利用量化随机梯度方案(QSGD),其中部分梯度被量化。也许出乎意料的是,我们表明,QSGD保持SGD的快速收敛到全局最优模型,同时显着降低通信成本。我们通过各种实验进一步证实了我们的数值发现,包括Amazon EC2上的分布式实现。

英文摘要:

In this paper we focus on the problem of finding the optimal weights of the shallowest of neural networks consisting of a single Rectified Linear Unit (ReLU). These functions are of the form $\mathbf{x}\rightarrow \max(0,\langle\mathbf{w},\mathbf{x}\rangle)$ with $\mathbf{w}\in\mathbb{R}^d$ denoting the weight vector. We focus on a planted model where the inputs are chosen i.i.d. from a Gaussian distribution and the labels are generated according to a planted weight vector. We first show that mini-batch stochastic gradient descent when suitably initialized, converges at a geometric rate to the planted model with a number of samples that is optimal up to numerical constants. Next we focus on a parallel implementation where in each iteration the mini-batch gradient is calculated in a distributed manner across multiple processors and then broadcast to a master or all other processors. To reduce the communication cost in this setting we utilize a Quanitzed Stochastic Gradient Scheme (QSGD) where the partial gradients are quantized. Perhaps unexpectedly, we show that QSGD maintains the fast convergence of SGD to a globally optimal model while significantly reducing the communication cost. We further corroborate our numerical findings via various experiments including distributed implementations over Amazon EC2.

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

↑