End-to-End Evaluation of Federated Learning and Split Learning for Internet of Things

Yansong Gao, Minki Kim, Sharif Abuadbba, Yeonjae Kim, Chandra Thapa, Kyuyeon Kim, Seyit Ahmet Çamtepe, Hyoungshick Kim, Surya Nepal · DOI

Introduction

The proliferation of Internet of Things (IoT) devices has led to the generation of vast amounts of sensitive data, such as medical records and voice commands. While centralizing this data for machine learning offers high performance, it introduces significant privacy and security risks. Distributed learning paradigms, specifically Federated Learning (FL) and Split Learning (SplitNN), have emerged as promising solutions that allow models to be trained without raw data ever leaving the edge devices.

Despite their theoretical appeal, there is a notable "reality gap" in understanding how these algorithms perform on actual, resource-constrained IoT hardware. This paper provides a comprehensive, end-to-end empirical comparison between FL and SplitNN, deployed on Raspberry Pi hardware, to evaluate their learning performance and physical implementation overhead.

Methodology: FL vs. SplitNN

The researchers evaluated two primary distributed architectures:

  1. Federated Learning (FL): In this setup, clients train a complete version of the global model locally. They then send only the updated weights or gradients to a central server, which aggregates them (typically using FedAvg) to update the global model.
  2. Split Learning (SplitNN): Here, the neural network is split vertically at a specific "cut layer." The client processes the initial layers (the "sub-network") and sends the intermediate activations, known as "smashed data," to the server. The server completes the forward pass and initiates the backward pass, sending gradients back to the client.
Architecture of SplitNN showing the network split between client and server.

The study also introduces an ensemble extension for SplitNN, which leverages server idle time to train multiple model architectures simultaneously across different clients, achieving a training time reduction of nearly 27%.

Experimental Setup

The evaluation utilized Raspberry Pi 3 devices to measure real-world metrics including training time, energy consumption, memory usage, and CPU temperature. Two datasets representative of IoT applications were used:

  • Speech Commands (SC): 10 classes of audio snippets for keyword spotting.
  • Electrocardiogram (ECG): 5 classes of heartbeat types for arrhythmia detection.

These were tested under three data distributions: IID (Independent and Identically Distributed), Imbalanced (varying sample sizes), and Non-IID (clients holding only specific classes).

Key Findings

Convergence and Learning Performance

A primary finding is the trade-off between convergence speed and robustness. SplitNN generally acts as a "fast learner," converging significantly quicker than FL in balanced and imbalanced settings. However, SplitNN exhibits fragility in extreme non-IID scenarios. For instance, in ECG tests where clients held only a subset of classes, SplitNN's accuracy remained near random guess levels (22%), while FL successfully converged.

Comparison of accuracy over training rounds for 100 clients, showing SplitNN's faster initial convergence.

Communication and Resource Overhead

The most significant bottleneck for IoT deployment is communication. While SplitNN reduces local computation, it requires data transmission for every single batch in every epoch. In contrast, FL only communicates once per round. In a 5-client setup, FL's overhead remained constant at ~28 MB, whereas SplitNN's overhead scaled with the number of samples, often reaching gigabytes.

Physically, training a full model (FL) on a Raspberry Pi causes significant heating (up to 83°C), necessitating active cooling. SplitNN keeps devices cooler due to lower computational load but consumes substantial energy due to constant radio usage.

Conclusion

The choice between FL and SplitNN for IoT depends on the specific constraints of the deployment environment. SplitNN is ideal for scenarios requiring fast convergence on relatively balanced data where computation is the primary bottleneck. However, for most resource-constrained IoT applications where bandwidth and battery life are critical, FL remains the more practical choice due to its significantly lower communication overhead and greater robustness to non-IID data.

Summary updated

BibTeX
@inproceedings{gao2020end,
  author = {Yansong Gao and Minki Kim and Sharif Abuadbba and Yeonjae Kim and Chandra Thapa and Kyuyeon Kim and Seyit Ahmet Çamtepe and Hyoungshick Kim and Surya Nepal},
  title = {{End-to-End Evaluation of Federated Learning and Split Learning for Internet of Things}},
  booktitle = {SRDS},
  year = {2020},
  doi = {10.1109/srds51746.2020.00017},
}
Figure