arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1811.10751cs.ITcs.DCcs.LGmath.IT
收藏

一种基于矩阵乘法广义PolyDot码的统一编码深度神经网络训练策略

A Unified Coded Deep Neural Network Training Strategy Based on Generalized PolyDot Codes for Matrix Multiplication

Carnegie Mellon University(卡内基梅隆大学);Simon Fraser University(西蒙弗雷泽大学)

Sanghamitra Dutta, Ziqian Bai, Haewon Jeong, Tze Meng Low, Pulkit Grover

摘要:

本文有两个贡献。首先,我们提出了一种新的编码矩阵乘法技术,称为广义PolyDot码,现有的方法编码矩阵乘法存储和通信的限制下的进步。该技术使用“垃圾对齐”,即,对齐编码计算中不是期望输出的一部分的计算。广义PolyDot码是Polynomial码和MatDot码之间的桥梁,在恢复阈值和通信成本之间进行权衡。其次,我们证明了广义PolyDot可用于在易出现软错误的不可靠节点上训练大型深度神经网络(DNN)。这需要我们解决三个额外的挑战:(i)在每次迭代时对DNN的每一层中的权重矩阵进行编码的开销过大;(ii)训练期间的非线性操作,这与线性编码不兼容;以及(iii)不假设存在无错误的主节点,要求我们构建一个完全分散的实现,而没有任何“单点故障”。“我们允许所有主要的DNN训练步骤,即矩阵乘法,非线性激活,Hadamard乘积和更新步骤以及编码/解码都是容易出错的。我们考虑的情况下,小批量大小$B=1$,以及$B>1$,分别利用编码矩阵向量产品,矩阵矩阵产品。在软错误下的DNN训练问题也激发了一个有趣的概率错误模型,在该模型下,实数$(P,Q)$ MDS码被示出以概率$1$校正$P-Q-1$错误,与更传统的对抗性错误模型的$\lfloor \frac{P-Q}{2} \rfloor$相比。我们还表明,我们提出的策略可以提供无限的增益在容错竞争的复制策略和初步的MDS代码为基础的策略,这些错误模型。

英文摘要:

This paper has two contributions. First, we propose a novel coded matrix multiplication technique called Generalized PolyDot codes that advances on existing methods for coded matrix multiplication under storage and communication constraints. This technique uses "garbage alignment," i.e., aligning computations in coded computing that are not a part of the desired output. Generalized PolyDot codes bridge between Polynomial codes and MatDot codes, trading off between recovery threshold and communication costs. Second, we demonstrate that Generalized PolyDot can be used for training large Deep Neural Networks (DNNs) on unreliable nodes prone to soft-errors. This requires us to address three additional challenges: (i) prohibitively large overhead of coding the weight matrices in each layer of the DNN at each iteration; (ii) nonlinear operations during training, which are incompatible with linear coding; and (iii) not assuming presence of an error-free master node, requiring us to architect a fully decentralized implementation without any "single point of failure." We allow all primary DNN training steps, namely, matrix multiplication, nonlinear activation, Hadamard product, and update steps as well as the encoding/decoding to be error-prone. We consider the case of mini-batch size $B=1$, as well as $B>1$, leveraging coded matrix-vector products, and matrix-matrix products respectively. The problem of DNN training under soft-errors also motivates an interesting, probabilistic error model under which a real number $(P,Q)$ MDS code is shown to correct $P-Q-1$ errors with probability $1$ as compared to $\lfloor \frac{P-Q}{2} \rfloor$ for the more conventional, adversarial error model. We also demonstrate that our proposed strategy can provide unbounded gains in error tolerance over a competing replication strategy and a preliminary MDS-code-based strategy for both these error models.

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

↑