Split Federated Learning on Micro-controllers: A Keyword Spotting Showcase

Jingtao Li, Runcong KuangarXiv 2022 · DOI

Introduction

The proliferation of Internet of Things (IoT) devices has introduced a significant privacy challenge: training intelligent models on edge devices without compromising sensitive user data. While Federated Learning (FL) offers a solution by keeping data local and sharing only model updates, it faces a formidable "hardware wall." Standard micro-controllers, such as those found in smart home sensors, possess extremely limited RAM (SRAM). Training modern, high-performance models like Convolutional Neural Networks (CNNs) requires substantial memory for activations and gradients, often restricting on-device FL to simplistic "toy" models that fail in complex real-world tasks.

Methodology: Split Federated Learning

To overcome these memory constraints, this research implements a Split Federated Learning (SFL) framework on an Arduino Nano 33 BLE. By partitioning the neural network, the system bypasses the SRAM bottleneck.

Architecture of the Split Federated Learning (SFL) framework, showing the division between the Arduino client and the server.

The Split Strategy

The model is sliced into two distinct components:

  1. Client-side model: A lightweight front-end running on the Arduino.
  2. Server-side model: A larger back-end residing on a powerful server.

The Training Loop

The Arduino processes raw audio into Mel-frequency cepstral coefficients (MFCC) and performs a forward pass through the client-side model. The resulting intermediate activations (A) are transmitted to the server, which completes the forward pass and calculates the loss. During back-propagation, the server sends gradients (dl/dA) back to the Arduino to update local weights. Post-training, the unified model is compressed and quantized to 8-bit integers (int8) for local, low-latency inference using TensorFlow Lite.

Experimental Setup and Datasets

The system was evaluated on two keyword spotting tasks:

  • CNdigits: A custom dataset of Chinese digits (1–5) with 50 samples per class.
  • ENdigits: A subset of the Speech Commands dataset containing 7,000 English digit samples, serving as a complex benchmark for model robustness.

Key Results

The SFL approach demonstrated significant performance gains over traditional on-device FL. On the English digits dataset, the SFL-enabled CNN achieved a 13.89% higher accuracy than a standard FL implementation, which was limited to a tiny Multi-Layer Perceptron (MLP) due to memory constraints.

Training convergence for Model 2 (CNN) on the English digits dataset, showing accuracy reaching ~80% compared to the MLP baseline (red line).

As shown in the results, while simple MLPs may suffice for basic datasets, the deeper CNN architectures enabled by SFL are far more robust. The CNN converged at validation accuracies of approximately 80%, whereas the memory-constrained MLP plateaued near 66%. On the Chinese digits dataset, the SFL model successfully reached over 90% accuracy within 70 training rounds.

Conclusion and Future Work

This implementation proves that micro-controllers can participate in training sophisticated models by offloading memory-intensive tasks. However, challenges remain in the software pipeline, particularly in transitioning models between PyTorch, Keras, and TFLite. Future work will focus on implementing wireless communication via Bluetooth, enabling on-device labeling for true autonomy, and supporting parallel training across multiple clients.

Summary updated

BibTeX
@misc{li2022split,
  author = {Jingtao Li and Runcong Kuang},
  title = {{Split Federated Learning on Micro-controllers: A Keyword Spotting Showcase}},
  year = {2022},
  eprint = {2210.01961},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.01961},
}
Figure