arXiv:1511.04561 · 中英对照阅读
深度学习中用于并行计算的8位近似
8-Bit Approximations for Parallelism in Deep Learning
中文速览
大规模训练深度学习模型时,GPU之间传数据太慢,常常抵消了增加设备带来的算力收益。作者设计了把梯度和神经网络中间结果从32位压缩成8位的近似方法,并在多种图像任务和数据并行、模型并行设置中测试。实验显示,压缩后模型效果基本不变,传输量可减少到原来的四分之一;作者的预测还表明,在96块GPU上,速度提升可超过50倍,而32位方案约为23倍。这个方法让更多GPU能更有效地协同训练,为在大型集群上训练卷积神经网络提供了实用思路。
摘要
The creation of practical deep learning data-products often requires parallelization across processors and computers to make deep learning feasible on large data sets, but bottlenecks in communication bandwidth make it difficult to attain good speedups through parallelism. Here we develop and test 8-bit approximation algorithms which make better use of the available bandwidth by compressing 32-bit gradients and nonlinear activations to 8-bit approximations. We show that these approximations do not decrease predictive performance on MNIST, CIFAR10, and ImageNet for both model and data parallelism and provide a data transfer speedup of 2x relative to 32-bit parallelism. We build a predictive model for speedups based on our experimental data, verify its validity on known speedup data, and show that we can obtain a speedup of 50x and more on a system of 96 GPUs compared to a speedup of 23x for 32-bit. We compare our data types with other methods and show that 8-bit approximations achieve state-of-the-art speedups for model parallelism. Thus 8-bit approximation is an efficient method to parallelize convolutional networks on very large systems of GPUs.
术语表
- deep learning
- 深度学习
- 8-bit approximation
- 8 位近似
- gradient
- 梯度
- nonlinear activation
- 非线性激活
- data product
- 数据产品
- model parallelism
- 模型并行
- data parallelism
- 数据并行
- parallel deep learning
- 并行深度学习
- communication bandwidth
- 通信带宽
- predictive model
- 预测模型
- speedup
- 加速比
- convolutional network
- 卷积网络
- GPU cluster
- GPU 集群
- backpropagation
- 反向传播
- parameter update
- 参数更新
- stochastic gradient descent (SGD)
- 随机梯度下降(SGD)
- mini-batch
- 小批量
- gradient synchronization
- 梯度同步
- fully connected layer
- 全连接层
- feature map
- 特征图
- long short-term memory (LSTM)
- 长短期记忆网络(LSTM)
- recurrent neural network (RNN)
- 循环神经网络(RNN)
- cross-validation error
- 交叉验证误差
- local minimum
- 局部极小值
- exploding gradient problem
- 梯度爆炸问题
- PCI Express (PCIe)
- PCI Express(PCIe)
- InfiniBand
- InfiniBand
- AlexNet
- AlexNet
- MNIST
- MNIST
- CIFAR10
- CIFAR10