Abstract
Standard Federated Learning (FL) frameworks often exclude "weak" clients—devices with limited memory and computational power—because they cannot accommodate the resource demands of training large global models. This paper introduces EmbracingFL, a novel framework that enables these resource-constrained devices to participate meaningfully in the training process. By focusing weak clients on training only a subset of output-side layers and employing a multi-step forward pass to manage memory, EmbracingFL achieves global model accuracy comparable to homogeneous environments where all clients are high-performance devices.
Introduction
Federated Learning has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving privacy. However, a significant bottleneck remains: the "level playing field" assumption. Most FL protocols require every participant to download, train, and upload the entire model. In the heterogeneous landscape of the Internet of Things (IoT) and mobile edge computing, many potential participants are "weak" clients that lack the RAM to store a large model or the compute power to calculate its gradients.
Previous attempts to bridge this gap, such as HeteroFL or FjORD, utilized "width reduction," where weak clients train thinner versions of every layer. While this reduces resource requirements, it often leads to a substantial drop in global accuracy because it alters the fundamental architecture of the layers. EmbracingFL proposes a different strategy: instead of reducing the width of every layer, it reduces the depth of the training process, allowing weak clients to focus on the most critical parts of the model.
The EmbracingFL Framework
EmbracingFL shifts the training burden by allowing weak clients to perform partial model training. The framework is built on three core technical pillars:
1. Multi-step Forward Pass
To overcome memory bottlenecks, weak clients do not load the entire model into RAM simultaneously. Instead, the model is partitioned into chunks. The client receives the input-side layers first, computes the intermediate activations, saves them to local storage, and then discards those layers to free up memory. This process is repeated sequentially until the client reaches the specific "output-side" layers it has been assigned to train.
2. Partial Backpropagation
Unlike standard FL, where gradients are calculated for the entire network, weak clients in the EmbracingFL framework only perform the backward pass on a consecutive subset of layers at the end of the model. This significantly reduces the computational overhead and the memory required to store activations for gradient calculation.
3. Layer-wise Aggregation
Because EmbracingFL maintains the original architecture of the layers (unlike width-reduction methods), the server can perform standard weight averaging. Strong clients contribute updates to all layers, while weak clients contribute specialized updates to the final layers. This ensures that the global model benefits from the diverse data held by all participants, regardless of their hardware capacity.
Theoretical Foundation: The SVCCA Analysis
The design of EmbracingFL is motivated by an analysis using Singular Vector Canonical Correlation Analysis (SVCCA). The researchers investigated how different layers learn across various clients and discovered a crucial insight: input-side layers tend to learn very similar, "commodity" representations (such as basic edges in images or common word associations) across all clients, even without frequent synchronization.
In contrast, the specialized knowledge that differentiates client datasets is primarily captured in the output-side layers. By allowing weak clients to skip training the input layers and focus their limited resources on the output layers, EmbracingFL maximizes the value of their contribution to the global model's specialized performance.
Experimental Evaluation
The framework was evaluated across three diverse benchmarks in non-IID (non-independent and identically distributed) settings to simulate real-world data fragmentation:
- CIFAR-10: Image classification using ResNet20.
- FEMNIST: A federated version of MNIST using a CNN.
- IMDB: Sentiment analysis using a bidirectional LSTM.
Clients were categorized based on their hardware capacity: "Strong" (100% capacity), "Moderate" (~40% memory), and "Weak" (~15% memory).
Key Results
- High Accuracy: On the CIFAR-10 dataset, even when 50% of the participants were weak clients, EmbracingFL achieved accuracy within 0.1% of the "all-strong" baseline. In the same scenario, width-reduction methods like HeteroFL experienced a 7.1% drop in accuracy.
- Robustness in Extreme Scenarios: In tests where 87.5% of the clients were weak, EmbracingFL outperformed width-reduction methods by a margin of 22.6%.
- Hardware Efficiency: Real-world testing on a OnePlus 9 Pro confirmed that EmbracingFL reduces backward pass time compared to width-reduction methods, as it processes fewer total activations during the gradient phase.
- Stability: The method demonstrated superior resilience when using Global Batch Normalization, a common pain point for width-reduction techniques which often suffer from statistical collapse during synchronization.
Conclusion and Future Work
EmbracingFL demonstrates that hardware limitations do not have to be a barrier to high-quality federated learning. By strategically focusing weak clients on the most informative layers of a model, the framework preserves global accuracy and promotes inclusivity in decentralized training.
Future research will address current limitations, including the communication latency introduced by the multi-step forward pass and the potential for dynamic layer partitioning. Additionally, the privacy implications of exchanging intermediate activations—similar to challenges faced in Split Learning—warrant further investigation to ensure that resource efficiency does not come at the cost of data security.
Summary updated