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

Han Cai, Chuang Gan, Ligeng Zhu, Song Han
7/22/2020
cs.CVcs.LG

Official code: mit-han-lab/tinyml (1,234 stars, Python, MIT, last commit 2023-11-29).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

mit-han-lab/tinymlOfficial100%
MIT
1,234170Python, ShellDec 11, 20203 years agoMIT

Similar Papers

Cite this paper

@article{cai2020tinytl,
  title  = {TinyTL: Reduce Activations, Not Trainable Parameters for Efficient On-Device Learning},
  author = {Han Cai and Chuang Gan and Ligeng Zhu and Song Han},
  year   = {2020},
  eprint = {2007.11622},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.11622}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.11622.svg)](https://codeofpaper.com/paper/2007.11622)

Discussion