arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2103.14493cs.LGcs.NE
收藏

RCT:边缘资源约束训练AI

RCT: Resource Constrained Training for Edge AI

Institute of High Performance Computing, A*STAR(高性能计算研究院(新加坡科技研究局))

Tian Huang, Tao Luo, Ming Yan, Joey Tianyi Zhou, Rick Goh

摘要:

边缘终端上的神经网络训练对于边缘AI计算至关重要,它需要适应不断变化的环境。量化模型可以在边缘设备上高效运行,但这些紧凑模型的现有训练方法被设计为在具有丰富内存和能源预算的强大服务器上运行。例如,量化感知训练(QAT)方法涉及模型参数的两个副本,这通常超出边缘设备中的片上存储器的容量。片外和片上存储器之间的数据移动也需要能量。对于功能强大的服务器来说,资源需求微不足道,但对于边缘设备来说至关重要。为了缓解这些问题,我们提出了资源约束训练(RCT)。RCT在整个训练过程中只保留一个量化的模型,从而减少了训练中对模型参数的内存需求。它动态调整每层的位宽,以便在模型可以以较低的精度有效学习时节省能量。我们在图像应用和自然语言处理两个方面进行了具有代表性的模型和任务的实验。实验结果表明,该算法在保证精度的前提下,节省了一般矩阵乘法(GEMM)86%以上的能量,节省了46%以上的模型参数存储空间.与基于QAT的方法相比,RCT在移动模型参数上节省了大约一半的能量。

英文摘要:

Neural networks training on edge terminals is essential for edge AI computing, which needs to be adaptive to evolving environment. Quantised models can efficiently run on edge devices, but existing training methods for these compact models are designed to run on powerful servers with abundant memory and energy budget. For example, quantisation-aware training (QAT) method involves two copies of model parameters, which is usually beyond the capacity of on-chip memory in edge devices. Data movement between off-chip and on-chip memory is energy demanding as well. The resource requirements are trivial for powerful servers, but critical for edge devices. To mitigate these issues, We propose Resource Constrained Training (RCT). RCT only keeps a quantised model throughout the training, so that the memory requirements for model parameters in training is reduced. It adjusts per-layer bitwidth dynamically in order to save energy when a model can learn effectively with lower precision. We carry out experiments with representative models and tasks in image application and natural language processing. Experiments show that RCT saves more than 86\% energy for General Matrix Multiply (GEMM) and saves more than 46\% memory for model parameters, with limited accuracy loss. Comparing with QAT-based method, RCT saves about half of energy on moving model parameters.

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

↑