arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1801.04380cs.DCcs.LG
收藏

SuperNeurons:用于训练深度神经网络的动态GPU存储管理

SuperNeurons: Dynamic GPU Memory Management for Training Deep Neural Networks

Brown University(布朗大学);Univ. of Electr. Sci. & Tech. of China(电子科技大学);Los Alamos National Laboratory(洛斯阿拉莫斯国家实验室);Pacific Northwest National Laboratory(太平洋西北国家实验室);Massachusetts Institute of Technology(麻省理工学院)

Linnan Wang, Jinmian Ye, Yiyang Zhao, Wei Wu, Ang Li, Shuaiwen Leon Song, Zenglin Xu, Tim Kraska

摘要:

在神经架构中进行更深入和更广泛的研究可以提高准确性,而有限的GPU DRAM对网络设计领域造成了不必要的限制。深度学习(DL)从业者要么需要更改为不太理想的网络架构,要么需要在多GPU上对网络进行非平凡的剖析。这些分散了深度学习从业者的注意力,使他们无法专注于最初的机器学习任务。我们提出了SuperNeurons:一个动态的GPU内存调度运行时,使网络训练远远超出GPU DRAM的能力。SuperNeurons具有3种内存优化,\textit{Liveness Analysis},\textit{Unified Tensor Pool}和\textit{Cost-Aware Recomputation},它们一起有效地将网络范围内的内存使用峰值降低到层间的最大内存使用。我们还解决了这些内存节省技术的性能问题。在GPU DRAM有限的情况下,SuperNeurons不仅为训练提供必要的内存,而且还动态分配用于卷积运算的内存,以实现高性能。对Caffe、Torch、MXNet和TensorFlow的评估表明,SuperNeurons比当前的网络至少训练了3.2432个更深的网络,具有领先的性能。特别是,SuperNeurons可以在12 GB K40 c上训练具有$10^4$基本网络层的ResNet 2500。

英文摘要:

Going deeper and wider in neural architectures improves the accuracy, while the limited GPU DRAM places an undesired restriction on the network design domain. Deep Learning (DL) practitioners either need change to less desired network architectures, or nontrivially dissect a network across multiGPUs. These distract DL practitioners from concentrating on their original machine learning tasks. We present SuperNeurons: a dynamic GPU memory scheduling runtime to enable the network training far beyond the GPU DRAM capacity. SuperNeurons features 3 memory optimizations, \textit{Liveness Analysis}, \textit{Unified Tensor Pool}, and \textit{Cost-Aware Recomputation}, all together they effectively reduce the network-wide peak memory usage down to the maximal memory usage among layers. We also address the performance issues in those memory saving techniques. Given the limited GPU DRAM, SuperNeurons not only provisions the necessary memory for the training, but also dynamically allocates the memory for convolution workspaces to achieve the high performance. Evaluations against Caffe, Torch, MXNet and TensorFlow have demonstrated that SuperNeurons trains at least 3.2432 deeper network than current ones with the leading performance. Particularly, SuperNeurons can train ResNet2500 that has $10^4$ basic network layers on a 12GB K40c.

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

↑