OLLA:优化阵列的寿命和位置以减少神经网络的内存使用
OLLA: Optimizing the Lifetime and Location of Arrays to Reduce the Memory Usage of Neural Networks
摘要:
近年来,深度神经网络的规模呈指数级增长。不幸的是,硬件设备没有跟上快速增长的存储器需求。为了解决这个问题,研究人员转向了溢出和重新计算等技术,这些技术增加了训练时间,或者降低了精度和模型修剪,这会影响模型的准确性。我们提出了OLLA,一个算法,优化的生命周期和内存位置的张量用于训练神经网络。我们的方法减少了现有神经网络的内存使用,而不需要对模型或其训练过程进行任何修改。我们制定的问题作为一个联合整数线性规划(ILP)。我们提出了几种技术来简化问题的编码,并使我们的方法扩展到最先进的神经网络使用现成的ILP求解器的大小。我们的实验证明,OLLA只需要几分钟,如果不是几秒钟,让神经网络的训练,平均使用三分之一的内存。
英文摘要:
The size of deep neural networks has grown exponentially in recent years. Unfortunately, hardware devices have not kept pace with the rapidly increasing memory requirements. To cope with this, researchers have turned to techniques such as spilling and recomputation, which increase training time, or reduced precision and model pruning, which can affect model accuracy. We present OLLA, an algorithm that optimizes the lifetime and memory location of the tensors used to train neural networks. Our method reduces the memory usage of existing neural networks, without needing any modification to the models or their training procedures. We formulate the problem as a joint integer linear program (ILP). We present several techniques to simplify the encoding of the problem, and enable our approach to scale to the size of state-of-the-art neural networks using an off-the-shelf ILP solver. We experimentally demonstrate that OLLA only takes minutes if not seconds to allow the training of neural networks using one-third less memory on average.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。