Skip to main content
QUICK REVIEW

[Paper Review] TinyFedTL: Federated Transfer Learning on Tiny Devices

Kavya Kopparapu, Eric W. Lin|arXiv (Cornell University)|Oct 3, 2021
Privacy-Preserving Technologies in DataComputer Science10 references13 citations
TL;DR

TinyFedTL introduces the first federated transfer learning framework for resource-constrained microcontrollers, enabling privacy-preserving on-device model training without increasing memory usage as data grows. It achieves this by using pre-trained CNN features and fine-tuning only the final fully connected layer on-device, demonstrating effective performance on CIFAR-10 with minimal communication overhead.

ABSTRACT

TinyML has rose to popularity in an era where data is everywhere. However, the data that is in most demand is subject to strict privacy and security guarantees. In addition, the deployment of TinyML hardware in the real world has significant memory and communication constraints that traditional ML fails to address. In light of these challenges, we present TinyFedTL, the first implementation of federated transfer learning on a resource-constrained microcontroller.

Motivation & Objective

  • Address the growing need for privacy-preserving machine learning in edge devices where data cannot be shared with central servers.
  • Overcome memory and communication constraints in TinyML by enabling on-device federated learning without external storage or frequent server communication.
  • Develop a method for transfer learning on microcontrollers that does not require pre-trained dense layers, allowing retraining for new classification tasks.
  • Demonstrate the feasibility of federated learning on ultra-constrained hardware such as the Arduino Nano 33 BLE Sense.
  • Identify key challenges in deploying federated learning on microcontrollers and propose solutions for scalability and efficiency.

Proposed method

  • Removed the final fully connected (dense) layer from a pre-trained CNN to use the network as a fixed feature extractor, retaining only the feature vector output.
  • Used off-the-shelf pre-trained weights from ImageNet or Visual Wake Words to generate meaningful features without retraining the feature extractor.
  • Trained only the final fully connected layer on-device using local data, while keeping the feature extractor weights frozen.
  • Implemented federated averaging by exchanging only model weights (not raw data) between the microcontroller and a simulated global server via serial communication.
  • Optimized runtime by writing a custom, sparse model implementation from scratch without external libraries, reducing memory and latency.
  • Encoded model weights as 32-bit packets and transmitted them over a serial port, minimizing dependency on high-level frameworks.

Experimental results

Research questions

  • RQ1Can federated transfer learning be effectively implemented on microcontrollers with limited memory and processing power?
  • RQ2Does on-device fine-tuning of a classifier head, while keeping the feature extractor fixed, maintain performance comparable to centralized training?
  • RQ3Can memory usage be kept constant as the number of training examples increases on-device, without relying on external storage?
  • RQ4How does communication cost scale in a federated learning setup on microcontrollers, and what optimizations can reduce latency?
  • RQ5Is it possible to eliminate dependency on pre-trained dense layers in transfer learning for edge devices, enabling reusability across different classification tasks?

Key findings

  • TinyFedTL successfully deployed federated transfer learning on the Arduino Nano 33 BLE Sense, demonstrating the first such implementation on a microcontroller.
  • Memory footprint remained constant regardless of the number of training examples, as only model weights were stored and not raw data or embeddings.
  • On-device training took only 214ms for 20 local epochs, with image capture and inference requiring 8–10 seconds per inference cycle.
  • Weight transmission between device and server took over 30 seconds per direction due to 6000+ byte payloads, highlighting communication as a major bottleneck.
  • The method achieved performance comparable to standard training techniques, validating the effectiveness of federated averaging without data sharing.
  • The framework enabled retraining for different classification tasks (e.g., cat vs. no-cat) without requiring pre-trained dense layers, increasing flexibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.