Heterogeneous Data-Aware Federated Learning

Lixuan Yang, Cedric Beliard, Dario RossiarXiv 2020

Introduction

Standard Federated Learning (FL) often fails when client data is highly diverse or "non-i.i.d." (Independent and Identically Distributed). This paper introduces HDAFL, a method that shares only the generic feature-extraction layers of a neural network while keeping the final classification layers private and local to each client. This approach significantly boosts accuracy in extreme cases—such as when clients have entirely different sets of labels—while simultaneously reducing communication overhead.

The Challenge of Non-i.i.d. Data

Federated Learning allows multiple parties to collaboratively train a global model without sharing raw data. However, real-world data is rarely i.i.d. The authors identify three specific hurdles that degrade standard FL performance:

  1. Class Imbalance: Disparate sample counts across different clients.
  2. Disjoint Classes: Clients observing entirely different label sets (e.g., one client sees digits 0–4, another sees 5–9).
  3. Signal Multi-modality: The same application signature varies significantly across different environments.
Signal multi-modality in network traffic across Home and Enterprise environments, illustrating the challenge of heterogeneous data.

When standard Federated Averaging (FedAvg) is used in these scenarios, the server averages models that are fundamentally in conflict, leading to "model divergence" and poor global performance.

Methodology: Divide et Impera

HDAFL employs a "divide and conquer" strategy based on the hierarchical nature of Convolutional Neural Networks (CNNs). Early layers typically learn generic features (edges, textures), while final layers learn task-specific features (mapping features to labels).

HDAFL splits model parameters into two distinct groups:

  • Generic Parameters ($wb$): The network "body" (feature extractors), which are shared with the server and averaged globally.
  • Specific Parameters ($wl$): The network "head" (the classifier), which remains strictly local to each client and is never transmitted.

This allows clients to benefit from collective feature-extraction knowledge while retaining the freedom to interpret those features within their specific local context.

Key Results

The performance of HDAFL in extreme "disjoint" scenarios was particularly notable compared to traditional methods.

Accuracy comparison between HDAFL and standard Federated Averaging (FA) with 10 clients and disjoint classes, showing the "averaging trap" in standard FL.
  • Accuracy Explosion: On the FEMNIST dataset with disjoint classes, HDAFL achieved ~97.5% accuracy, whereas standard FedAvg collapsed to ~17.4%.
  • Communication Efficiency: HDAFL reduced bandwidth requirements by nearly 2x compared to FedAvg when reaching a target accuracy of 78% on non-i.i.d. data (86.8 MB vs 171.7 MB).
  • Real-World Utility: On the Huawei traffic dataset, HDAFL consistently showed a smaller accuracy drop relative to a centralized model than FedAvg, proving its effectiveness in complex, multi-modal networking environments.

Conclusion

HDAFL addresses the fundamental limitations of standard FL in heterogeneous environments. By decoupling feature extraction from classification, it enables robust learning across diverse datasets with significantly lower communication costs. Future work will explore mitigating potential over-adaptation in clients with very small local datasets and refining client selection strategies.

Summary updated

BibTeX
@misc{yang2020heterogeneous,
  author = {Lixuan Yang and Cedric Beliard and Dario Rossi},
  title = {{Heterogeneous Data-Aware Federated Learning}},
  year = {2020},
  eprint = {2011.06393},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.06393},
}
Figure