基于自适应窗口调度的超大规模神经网络核外训练
Out-of-core Training for Extremely Large-Scale Neural Networks With Adaptive Window-Based Scheduling
摘要:
虽然大型神经网络在各种任务中表现出更高的性能,但由于GPU内存大小的限制,训练大型网络是困难的。我们提出了一种新的核外算法,可以更快地训练尺寸大于分配的GPU内存的超大规模神经网络。在给定的内存预算约束下,我们的调度算法根据每个函数的内存使用情况本地调整内存传输的时间,从而提高了计算和内存传输之间的重叠。此外,我们应用虚拟寻址技术,通常在操作系统中执行,与核外执行的神经网络的训练,这大大减少了频繁的内存传输所造成的内存碎片量。使用我们提出的算法,我们成功地训练ResNet-50与1440批大小保持训练速度在55%,这是7.5倍的物理内存的上限。它的性能也大大优于以前的最先进技术,即它训练的网络比最先进的网络大1.55倍,执行速度更快。此外,我们的实验表明,我们的方法也是可扩展的各种类型的网络。
英文摘要:
While large neural networks demonstrate higher performance in various tasks, training large networks is difficult due to limitations on GPU memory size. We propose a novel out-of-core algorithm that enables faster training of extremely large-scale neural networks with sizes larger than allotted GPU memory. Under a given memory budget constraint, our scheduling algorithm locally adapts the timing of memory transfers according to memory usage of each function, which improves overlap between computation and memory transfers. Additionally, we apply virtual addressing technique, commonly performed in OS, to training of neural networks with out-of-core execution, which drastically reduces the amount of memory fragmentation caused by frequent memory transfers. With our proposed algorithm, we successfully train ResNet-50 with 1440 batch-size with keeping training speed at 55%, which is 7.5x larger than the upper bound of physical memory. It also outperforms a previous state-of-the-art substantially, i.e. it trains a 1.55x larger network than state-of-the-art with faster execution. Moreover, we experimentally show that our approach is also scalable for various types of networks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。