[Paper Review] Tiny Transfer Learning: Towards Memory-Efficient On-Device Learning
TinyTL is a memory-efficient on-device transfer learning method that freezes feature extractor weights and only trains biases, eliminating intermediate activation storage. It uses lightweight residual modules and a weight-shared super-net with discrete sub-net selection to enable accurate adaptation with up to 13.3x lower memory cost than full fine-tuning.
We present Tiny-Transfer-Learning (TinyTL), an efficient on-device learning method to adapt pre-trained models to newly collected data on edge devices. Different from conventional transfer learning methods that fine-tune the full network or the last layer, TinyTL freezes the weights of the feature extractor while only learning the biases, thus doesn't require storing the intermediate activations, which is the major memory bottleneck for on-device learning. To maintain the adaptation capacity without updating the weights, TinyTL introduces memory-efficient lite residual modules to refine the feature extractor by learning small residual feature maps in the middle. Besides, instead of using the same feature extractor, TinyTL adapts the architecture of the feature extractor to fit different target datasets while fixing the weights: TinyTL pre-trains a large super-net that contains many weight-shared sub-nets that can individually operate; different target dataset selects the sub-net that best match the dataset. This backpropagation-free discrete sub-net selection incurs no memory overhead. Extensive experiments show that TinyTL can reduce the training memory cost by order of magnitude (up to 13.3x) without sacrificing accuracy compared to fine-tuning the full network.
Motivation & Objective
- Address the high memory cost of on-device fine-tuning, particularly due to storing intermediate activations.
- Enable efficient adaptation of pre-trained models to new data on resource-constrained edge devices.
- Maintain model accuracy while drastically reducing memory footprint during on-device learning.
- Develop a method that avoids backpropagation through the feature extractor to eliminate memory overhead.
Proposed method
- Freeze all convolutional and fully connected layer weights in the feature extractor, training only the biases to eliminate activation storage.
- Introduce lightweight residual modules that learn small residual feature maps in the middle of the network to preserve adaptation capacity.
- Construct a super-net with multiple weight-shared sub-networks, each capable of independent inference.
- Select the optimal sub-network for each target dataset via a backpropagation-free, discrete search mechanism.
- Fix the selected sub-network’s weights and fine-tune only the final classifier head with biases.
- Use the same pre-trained super-net across all datasets, dynamically selecting the best-matching sub-net per target data.
Experimental results
Research questions
- RQ1Can on-device transfer learning be made significantly more memory-efficient by avoiding full network fine-tuning?
- RQ2How can adaptation capacity be preserved without updating the feature extractor’s weights?
- RQ3Can a single pre-trained super-net support multiple target datasets with minimal memory overhead?
- RQ4What is the trade-off between memory reduction and accuracy when freezing feature extractor weights?
- RQ5Can discrete sub-net selection replace gradient-based adaptation without incurring memory cost?
Key findings
- TinyTL reduces training memory cost by up to 13.3x compared to full network fine-tuning, with no accuracy degradation.
- Freezing the feature extractor weights and training only biases eliminates the need to store intermediate activations, the primary memory bottleneck.
- The use of lightweight residual modules enables effective adaptation without updating the main network weights.
- Sub-net selection via a discrete, backpropagation-free mechanism incurs no additional memory overhead.
- The method maintains competitive accuracy across diverse datasets despite freezing the feature extractor.
- The super-net architecture enables dynamic adaptation to different target datasets by selecting the most suitable sub-net.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.