$DA^3$:用于Memory-EfficientOn-Device多领域学习的动态加性注意自适应
$DA^3$:Dynamic Additive Attention Adaption for Memory-EfficientOn-Device Multi-Domain Learning
摘要:
如今,深度神经网络(DNN)的一个实际限制是其对单个任务或域的高度专业化(例如,一个视觉域)。它激励研究人员开发算法,可以使DNN模型连续适应多个领域,同时仍然在过去的领域中表现良好,这被称为多领域学习。几乎所有传统方法都只注重通过最少的参数更新来提高准确性,而忽视了训练过程中的高计算和内存成本,这使得多域学习难以部署到越来越广泛使用的资源有限的边缘设备中,例如手机、物联网、嵌入式系统、我们观察到,用于激活存储的大内存是在很大程度上限制边缘设备上的训练时间和成本的瓶颈。为了减少训练内存的使用,同时保持域自适应的准确性性能,我们提出了动态添加注意自适应($DA^3$),一种新的内存有效的设备上的多域学习方法。$DA^3$学习一种新的附加注意力适配器模块,同时冻结每个域的预训练骨干模型的权重。区别于现有的工作,这样的模块不仅减轻激活内存缓冲,以减少训练过程中的内存使用,但也作为一个动态门控机制,以减少计算成本的快速推理。我们在多个数据集上验证了$DA^3$对最先进的方法,这表明在准确性和训练时间都有很大的改善。此外,我们将$DA^3$部署到流行的NIVDIA Jetson Nano边缘GPU中,其中测量的实验结果显示,与基线方法(例如,标准微调、并联和串联Res.适配器和背负式)。
英文摘要:
Nowadays, one practical limitation of deep neural network (DNN) is its high degree of specialization to a single task or domain (e.g., one visual domain). It motivates researchers to develop algorithms that can adapt DNN model to multiple domains sequentially, while still performing well on the past domains, which is known as multi-domain learning. Almost all conventional methods only focus on improving accuracy with minimal parameter update, while ignoring high computing and memory cost during training, which makes it difficult to deploy multi-domain learning into more and more widely used resource-limited edge devices, like mobile phones, IoT, embedded systems, etc. We observe that large memory used for activation storage is the bottleneck that largely limits the training time and cost on edge devices. To reduce training memory usage, while keeping the domain adaption accuracy performance, we propose Dynamic Additive Attention Adaption ($DA^3$), a novel memory-efficient on-device multi-domain learning method. $DA^3$ learns a novel additive attention adaptor module, while freezing the weights of the pre-trained backbone model for each domain. Differentiating from prior works, such module not only mitigates activation memory buffering for reducing memory usage during training but also serves as a dynamic gating mechanism to reduce the computation cost for fast inference. We validate $DA^3$ on multiple datasets against state-of-the-art methods, which shows great improvement in both accuracy and training time. Moreover, we deployed $DA^3$ into the popular NIVDIA Jetson Nano edge GPU, where the measured experimental results show our proposed $DA^3$ reduces the on-device training memory consumption by 19-37x, and training time by 2x, in comparison to the baseline methods (e.g., standard fine-tuning, Parallel and Series Res. adaptor, and Piggyback).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。