arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1712.02546cs.DC
收藏

CNN在异构CPU/GPU体系结构上的分布式学习

Distributed learning of CNNs on heterogeneous CPU/GPU architectures

Jose Marques, Gabriel Falcao, Luís A. Alexandre

摘要:

卷积神经网络(CNN)已被证明是强大的分类工具,适用于从支票阅读到医疗诊断的各种任务,接近人类感知,在某些情况下甚至超越人类感知。然而,要解决的问题变得越来越大,越来越复杂,这意味着更大的CNN,导致更长的训练时间,即使采用图形处理单元(GPU)也无法跟上。这个问题通过使用更多的处理单元和分布式训练方法得到部分解决,这些方法由几个专用于神经网络训练的框架提供。然而,这些技术没有充分利用CNN提供的可能的并行化以及具有不同处理能力、时钟速度、存储器大小等的异构设备的协同使用。本文提出了一种用于CNN并行训练的新方法,该方法可以被认为是模型并行的一个特定实例,其中仅分布卷积层。事实上,在训练期间处理的卷积(包括前向和后向传播)表示全局处理时间的$60$ - $90$ \%。本文分析了网络规模、带宽、批量大小、设备数量(包括它们的处理能力)和其他参数的影响。结果表明,该技术能够减少训练时间,而不会影响CPU和GPU的分类性能。对于CIFAR-10数据集,分别使用具有两个卷积层的CNN以及$500$和$1500$内核,最佳加速比使用四个CPU实现$3.28\times$,使用三个GPU实现$2.45\times$。比CIFAR-10更大和更复杂的现代成像数据集肯定需要超过$60$ - $90$ \%的处理时间来计算卷积,并且加速将倾向于相应地增加。

英文摘要:

Convolutional Neural Networks (CNNs) have shown to be powerful classification tools in tasks that range from check reading to medical diagnosis, reaching close to human perception, and in some cases surpassing it. However, the problems to solve are becoming larger and more complex, which translates to larger CNNs, leading to longer training times that not even the adoption of Graphics Processing Units (GPUs) could keep up to. This problem is partially solved by using more processing units and distributed training methods that are offered by several frameworks dedicated to neural network training. However, these techniques do not take full advantage of the possible parallelization offered by CNNs and the cooperative use of heterogeneous devices with different processing capabilities, clock speeds, memory size, among others. This paper presents a new method for the parallel training of CNNs that can be considered as a particular instantiation of model parallelism, where only the convolutional layer is distributed. In fact, the convolutions processed during training (forward and backward propagation included) represent from $60$-$90$\% of global processing time. The paper analyzes the influence of network size, bandwidth, batch size, number of devices, including their processing capabilities, and other parameters. Results show that this technique is capable of diminishing the training time without affecting the classification performance for both CPUs and GPUs. For the CIFAR-10 dataset, using a CNN with two convolutional layers, and $500$ and $1500$ kernels, respectively, best speedups achieve $3.28\times$ using four CPUs and $2.45\times$ with three GPUs. Modern imaging datasets, larger and more complex than CIFAR-10 will certainly require more than $60$-$90$\% of processing time calculating convolutions, and speedups will tend to increase accordingly.

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

↑