arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2007.11622cs.CVcs.LG
收藏

TinyTL:减少激活,减少不可训练参数,实现高效的设备上学习

TinyTL: Reduce Activations, Not Trainable Parameters for Efficient On-Device Learning

Massachusetts Institute of Technology(麻省理工学院);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室)

Han Cai, Chuang Gan, Ligeng Zhu, Song Han

摘要:

设备上的学习使边缘设备能够不断地使AI模型适应新数据,这需要很小的内存占用来适应边缘设备的严格内存限制。现有的工作通过减少可训练参数的数量来解决这个问题。然而,这并不能直接转化为内存节省,因为主要的瓶颈是激活,而不是参数。在这项工作中,我们提出了Tiny-Transfer-Learning(TinyTL),用于内存高效的设备上学习。TinyTL冻结权重,而只学习偏置模块,因此不需要存储中间激活。为了保持自适应能力,我们引入了一个新的内存高效的偏置模块,精简残差模块,通过学习小残差特征图,仅增加3.8%的内存开销来改进特征提取器。大量的实验表明,与微调整个网络相比,TinyTL显著节省了内存(高达6.5倍),精度损失很小。与微调最后一层相比,TinyTL提供了显着的准确性提高(高达34.1%),内存开销很小。此外,结合特征提取器自适应,TinyTL提供了7.3- 12.9倍的内存节省,而不牺牲准确性相比,微调完整的Inception-V3。

英文摘要:

On-device learning enables edge devices to continually adapt the AI models to new data, which requires a small memory footprint to fit the tight memory constraint of edge devices. Existing work solves this problem by reducing the number of trainable parameters. However, this doesn't directly translate to memory saving since the major bottleneck is the activations, not parameters. In this work, we present Tiny-Transfer-Learning (TinyTL) for memory-efficient on-device learning. TinyTL freezes the weights while only learns the bias modules, thus no need to store the intermediate activations. To maintain the adaptation capacity, we introduce a new memory-efficient bias module, the lite residual module, to refine the feature extractor by learning small residual feature maps adding only 3.8% memory overhead. Extensive experiments show that TinyTL significantly saves the memory (up to 6.5x) with little accuracy loss compared to fine-tuning the full network. Compared to fine-tuning the last layer, TinyTL provides significant accuracy improvements (up to 34.1%) with little memory overhead. Furthermore, combined with feature extractor adaptation, TinyTL provides 7.3-12.9x memory saving without sacrificing accuracy compared to fine-tuning the full Inception-V3.

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

↑