TL;DR
This paper provides the first comprehensive empirical evaluation of Federated Learning (FL), Split Learning (SL), and a novel hybrid approach called SplitFed Learning (SFL) on resource-constrained IoT devices like Raspberry Pis. They found that while SL offers faster convergence and lower on-device computation, FL generally performs better on highly non-IID data. Their proposed generalized SFL (SFLG) offers a flexible way to balance these trade-offs and includes optimizations to significantly reduce communication overhead.
What Problem Does This Paper Address?
Training sophisticated machine learning models, especially deep learning models, typically requires vast amounts of data. However, in the Internet of Things (IoT) ecosystem, data is often generated by numerous devices that are resource-constrained (limited processing power, memory, and battery) and may contain sensitive or private information. Centralizing this data for training raises privacy concerns, regulatory hurdles (like GDPR), and can be technically challenging. Distributed machine learning techniques like Federated Learning (FL) and Split Learning (SL) aim to address this by training models without directly accessing raw client data.
While FL and SL have shown promise, there's a significant gap in understanding their practical performance and overhead on real-world, resource-limited IoT devices. Existing research often focuses on simulated environments or high-end hardware. This paper aims to bridge this gap by providing an empirical comparison of FL, SL, and a hybrid approach (SFL) on Raspberry Pi devices, evaluating not just learning performance but also crucial on-device overheads like training time, power consumption, and memory usage.
Methods
The core of this work involves a comparative evaluation of three distributed learning paradigms:
- Federated Learning (FL): The paper focuses on the FedAvg algorithm, where clients train a global model locally and then aggregate their model updates on the server.
- Split Learning (SL): SL divides a neural network into two parts: a client-side sub-network and a server-side sub-network. The client processes input data and sends intermediate activations ("smashed data") to the server for further processing and backpropagation. This significantly reduces the computational burden on the client.
- SplitFed Learning (SFL): This is a hybrid approach that combines aspects of FL and SL. The paper considers two variants from prior work (SFLV1 and SFLV2) and proposes a Generalized SplitFed Learning (SFLG). SFLG allows for flexible grouping of IoT devices and parallel processing of these groups at the server, offering a tunable trade-off between scalability and performance.
The authors also introduce two key optimizations:
- Generalized SFL (SFLG): This approach allows for a flexible number of server-side sub-network copies, enabling better management of large-scale IoT deployments by grouping devices and applying a hybrid of sequential (within groups) and parallel (across groups) training.
- Communication Overhead Reduction Techniques: For SL and SFLG, they propose and validate methods to significantly reduce the amount of data transmitted between clients and the server, up to four times, by strategically adjusting model architecture parameters (e.g., pooling layers).
Datasets
The paper uses two real-world datasets to evaluate the proposed methods:
- Speech Commands (SC): A personalized dataset containing audio files of spoken English words.
- Electrocardiogram (ECG): A medical dataset for arrhythmia diagnosis.
Both datasets are chosen for their privacy-sensitive nature, making them suitable for distributed learning scenarios. The authors also consider various data distribution scenarios: Independent and Identically Distributed (IID), imbalanced, and non-IID (skewed) data.
Key Insights and Ideas
- SL's Trade-offs: SL offers faster convergence and significantly lower on-device computation compared to FL, making it attractive for resource-constrained devices. However, its learning performance can be sensitive to data distribution, particularly under extreme non-IID conditions where it may struggle to learn effectively.
- FL's Robustness: FL generally exhibits better performance and robustness under highly non-IID data distributions, especially in extreme cases, due to its aggregation mechanism that leverages knowledge from all clients.
- SFL's Promise: The hybrid SFL approach aims to combine the best of both worlds. The proposed SFLG offers a flexible way to manage large-scale IoT deployments by allowing tunable parallelism and sequential processing, providing a spectrum of performance characteristics.
- Communication is Key: Communication overhead is a major bottleneck in IoT. The paper highlights that SL and SFLG are more sensitive to communication costs than FL, but also demonstrates effective techniques to drastically reduce this overhead for split architectures.
- Practicality on Raspberry Pi: The empirical evaluation on Raspberry Pis provides crucial real-world insights into the actual performance and overheads, moving beyond theoretical analyses or simulations.
Key Results
- Learning Performance:
- Under imbalanced data, SL generally shows better learning performance than FL.
- Under extreme non-IID data, FL outperforms SL.
- SFLV1 (a specific SFL variant) performance closely approaches FL.
- SFLV2 (another SFL variant) performance closely approaches SL, but with more stable learning curves and no "turn-down" in accuracy.
- The proposed SFLG's performance is bounded by SFLV2 (upper) and SFLV1 (lower), offering flexibility.
- On-Device Overhead (Raspberry Pi):
- Training Time: SL generally takes longer than FL for the same number of rounds. SFLV1 significantly reduces training time compared to SL.
- Memory Usage: FL consumes significantly more memory than SL and SFLV1 because it trains the entire model on the client.
- Power Consumption & Temperature: FL leads to higher peak power consumption and temperature on the Raspberry Pi due to its higher computational demands. SL and SFLV1 are more energy-efficient.
- Communication Overhead: FL's communication overhead is relatively constant and smaller than SL's. However, the paper demonstrates techniques that can reduce SL and SFLG communication overhead by up to 4x.
- Model Complexity: For SL, as model complexity increases, time and energy overheads increase, but communication overhead remains relatively constant. This makes SL more advantageous for complex models when on-device computation is the primary concern.
Limitations and Future Work
- Limitations:
- The study acknowledges that while SFLG offers flexibility, the choice of server-side sub-network copies needs careful consideration for large-scale deployments.
- The paper notes that SL is very sensitive to highly skewed data distributions, and in extreme non-IID cases, its learning can be significantly hindered.
- The communication overhead of SL in their experiments was found to be worse than FL for small models and fewer clients, though optimizations are proposed.
- Future Work:
- Investigate further methods to reduce the size of the cut layer in SL and SFLG.
- Explore techniques to reduce the size of localized data before feeding it to local sub-networks (e.g., using Principal Component Analysis) to further reduce communication and on-device computation.
- The authors suggest that with the advent of 5G, which offers higher bandwidth, SFLG is well-suited for large-scale IoT applications due to its ability to relax on-device computation overhead.
Summary updated