Embracing Federated Learning: Enabling Weak Client Participation via Partial Model Training

Sunwoo Lee, Tuo Zhang, Saurav Prakash, Yue Niu, Salman Avestimehr · DOI

In the world of Federated Learning (FL), we often dream of a seamless network where millions of devices—from powerful servers to humble smart sensors—collaborate to train a global AI model. However, the reality is much messier. Most FL algorithms assume every participant can handle the entire model, but many "weak" devices lack the memory to even store a large neural network, let alone train it.

A recent paper, "Embracing Federated Learning: Enabling Weak Client Participation via Partial Model Training," introduces a clever way to bridge this gap without sacrificing the accuracy of the final model.

TL;DR

EmbracingFL enables resource-constrained devices to participate in Federated Learning by training only a subset of a model's output-side layers. By leveraging the discovery that early neural network layers naturally learn similar features across different users, this framework maintains high global accuracy while significantly reducing the hardware requirements for individual participants.

What Problem Does This Paper Address?

The core challenge is system heterogeneity. Standard FL requires all clients to perform local training on the full global model. If a model is too large for a device's RAM, that device is typically excluded, leading to "client dropouts" and wasted data.

Previous attempts to solve this, like HeteroFL or FjORD, use "width reduction"—shrinking the number of channels in every layer for weak devices. While this saves memory, it often leads to a massive drop in global accuracy because the shrunken models struggle to represent complex data as effectively as the full-sized ones.

Methods

The authors propose EmbracingFL, which uses a layer-wise partial training strategy. Instead of making every layer thinner, they keep the layers at full width but allow weak clients to train only the final (output-side) layers.

To overcome memory limits during the forward pass, they implement a multi-step forward pass:

  1. Chunked Processing: The weak client receives the first few layers from the server, processes its data through them, saves the resulting "activations," and then immediately deletes those layers from its memory.
  2. Sequential Loading: It repeats this for the next set of layers until it reaches the final "trainable" block.
  3. Partial Backward Pass: The client only performs the computationally expensive backward pass (gradient updates) on this final block of layers.

Because the model architecture remains consistent across all clients (some just have "frozen" early layers), the server can perform standard weight averaging, making implementation much simpler than width-reduction methods.

Figure 2: The schematic illustration of EmbracingFL. While the strong client trains the whole model parameters, the weak client trains an output-side subset of layers only. The weak client can determine how many layers to train based on its available resource capacity.

Datasets

The framework was rigorously tested on three popular benchmarks:

  • CIFAR-10: Image classification using ResNet20.
  • FEMNIST: Handwritten character recognition (from the LEAF benchmark) using a CNN.
  • IMDB: Sentiment analysis of movie reviews using a Bidirectional LSTM.

The data was distributed in a "non-IID" fashion (using a Dirichlet distribution), mimicking real-world scenarios where different users have very different data distributions.

Key Insights and Ideas

  • The "Similarity" Discovery: Using a technique called SVCCA, the authors found that the input-side layers of a model tend to learn very similar representations across different clients, even without synchronization. In contrast, output-side layers are more client-specific. This justifies why we can "freeze" early layers for weak clients without hurting the global model much.
  • Layer-wise is Better than Channel-wise: Their ablation studies showed that synchronizing half of the layers (depth-wise) preserves model similarity much better than synchronizing half of the channels (width-wise).
  • Batch Norm Resilience: Width-reduction methods often break when Batch Normalization statistics are averaged across different-sized models. EmbracingFL avoids this entirely because every client "sees" the same model dimensions.
Figure 1: Layer-wise data representation similarity (SVCCA) across 128 clients. Early layers (like conv1) show much higher similarity than later layers.

Key Results

  • Accuracy Gains: In CIFAR-10 experiments where 50% of clients were weak, EmbracingFL achieved accuracy within 0.1% of a baseline where all clients were strong. State-of-the-art width-reduction methods lagged behind by 7.1%.
  • Extreme Scaling: When the network was pushed to the limit with 87.5% weak clients, EmbracingFL outperformed width-reduction by a massive 22.6% in accuracy.
  • Real-World Speed: Testing on a OnePlus 9 Pro, the authors found that while the multi-step forward pass adds some I/O overhead, the backward pass is 2x to 5x faster for weak clients. Since the backward pass is the primary bottleneck in deep learning, this results in significant overall efficiency gains.
Figure 4: Comparison of validation accuracy curves. As the number of weak clients increases, the gap between EmbracingFL and Width Reduction grows significantly.

Limitations and Future Work

While impressive, the method has a few trade-offs:

  • I/O Overhead: The multi-step forward pass requires multiple transfers of model chunks between the server/storage and the device's active memory, which can be slow on devices with poor storage bandwidth.
  • Solution Bias: Theoretical analysis indicates that because weak clients don't update early layers, the model converges to a "neighborhood" of the optimal point rather than the exact optimum.
  • Future Directions: The authors suggest exploring ways to reduce the frequency of the multi-step forward pass to further optimize latency.

EmbracingFL offers a practical, theoretically grounded path toward truly inclusive Federated Learning, ensuring that the "weakest links" in our hardware chain can still be strong contributors to global AI.

Summary updated

BibTeX
@misc{lee2024embracing,
  author = {Sunwoo Lee and Tuo Zhang and Saurav Prakash and Yue Niu and Salman Avestimehr},
  title = {{Embracing Federated Learning: Enabling Weak Client Participation via Partial Model Training}},
  year = {2024},
  eprint = {2406.15125},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.15125},
}
Figure