arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.05013cs.LGcs.DCcs.PF
收藏

大型神经网络的基于仿形的核外混合方法

Profiling based Out-of-core Hybrid Method for Large Neural Networks

Yahoo! JAPAN Corporation(雅虎日本公司);Tokyo Institute of Technology(东京工业大学);IBM Research - Tokyo(IBM研究院-东京);DeNA Co., Ltd.(DeNA株式会社)

Yuki Ito, Haruki Imai, Tung Le Duc, Yasushi Negishi, Kiyokuni Kawachiya, Ryo Matsumiya, Toshio Endo

摘要:

GPU被广泛用于通过NN(神经网络)加速深度学习。另一方面,由于GPU内存容量有限,很难在GPU上实现计算大型NN的高效程序。为了计算超过GPU内存容量的神经网络,现有的工作中已经提出了数据交换方法和重新计算方法。然而,在这些方法中,由于数据移动或计算的增加而发生性能开销。为了减少开销,重要的是要考虑每一层的特性,例如重新计算的大小和成本。基于这一方向,我们提出了基于剖析的核外混合方法(Pooch)。Pooch基于运行时分析确定交换或重新计算的目标层。我们通过扩展一个深度学习框架Chainer实现了Pooch,并评估了它的性能。使用Pooch,我们成功地在具有16 GB内存的单个GPU上计算了需要50 GB内存的NN。与核内情况相比,x86机器上的性能下降了38%,POWER 9机器上的性能下降了28%。

英文摘要:

GPUs are widely used to accelerate deep learning with NNs (NNs). On the other hand, since GPU memory capacity is limited, it is difficult to implement efficient programs that compute large NNs on GPU. To compute NNs exceeding GPU memory capacity, data-swapping method and recomputing method have been proposed in existing work. However, in these methods, performance overhead occurs due to data movement or increase of computation. In order to reduce the overhead, it is important to consider characteristics of each layer such as sizes and cost for recomputation. Based on this direction, we proposed Profiling based out-of-core Hybrid method (PoocH). PoocH determines target layers of swapping or recomputing based on runtime profiling. We implemented PoocH by extending a deep learning framework, Chainer, and we evaluated its performance. With PoocH, we successfully computed an NN requiring 50 GB memory on a single GPU with 16 GB memory. Compared with in-core cases, performance degradation was 38 \% on x86 machine and 28 \% on POWER9 machine.

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

↑