Federated Learning with Flexible Architectures

Jong-Ik Park, Carlee Joe-Wong

Abstract

Standard Federated Learning (FL) often suffers from a "one-size-fits-all" bottleneck, requiring all participating devices to train identical model architectures regardless of their local hardware constraints. This paper presents FedFA (Federated Learning with Flexible Architectures), a novel training framework designed to accommodate heterogeneous networks. By introducing layer grafting and scalable aggregation, FedFA ensures that every component of a global model is updated by every client, significantly enhancing both model accuracy and robustness against backdoor attacks compared to existing flexible FL methodologies.

Introduction

Federated Learning has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving privacy. However, a significant practical hurdle remains: hardware heterogeneity. In a typical FL ecosystem, a high-performance server and a low-resource IoT sensor may both be participants. Forcing both to run the same large-scale model either excludes the sensor due to memory constraints or wastes the server's computational potential by using an undersized model.

While existing solutions like HeteroFL and NeFL allow for flexible architectures (varying widths or depths), they introduce two critical flaws. First, they often result in "incomplete aggregation," where specific weights in the global model are only updated by a subset of high-resource clients, creating security vulnerabilities. Second, the varying scales of weight updates from different architectures can skew the global model, hindering convergence and fairness. FedFA addresses these challenges through a unified framework that standardizes updates across diverse device profiles.

The FedFA Framework

FedFA introduces two primary mechanisms to harmonize the training process across heterogeneous clients:

Layer Grafting for Complete Aggregation

To solve the problem of varying model depths, FedFA employs Layer Grafting. This technique standardizes the depth of local models before they are transmitted to the server. The authors observed that residual blocks within the same section of modern CNNs (such as ResNet) exhibit high statistical similarity. By "grafting" or duplicating the final residual block of a section to fill the gaps in shallower models, FedFA ensures that every weight in the global model receives a contribution from every client. This "complete aggregation" eliminates the "weak points" that are typically exploited by attackers to plant backdoors.

Scalable Aggregation

Models with different widths and depths naturally produce weight updates of varying magnitudes. Simple averaging in these scenarios leads to a global model biased toward the most complex architectures. FedFA introduces Scalable Aggregation, which calculates a scaling factor based on the L2 norm of the weights. To ensure robustness against outliers and noisy data, the framework utilizes the 95th percentile of weights for these calculations. This prevents atypical local models from disproportionately influencing the global parameters.

Architecture Selection

To further optimize local performance, FedFA allows clients to utilize Neural Architecture Search (NAS) methods—specifically ZiCo—to identify the most effective sub-architecture for their specific hardware and data distribution.

Experimental Results

The researchers evaluated FedFA against standard benchmarks, including CIFAR-10, CIFAR-100, and Fashion MNIST for computer vision, and WikiText-2 for language modeling.

Accuracy and Performance

In non-IID (Independent and Identically Distributed) settings, which reflect real-world data skew, FedFA demonstrated superior performance. It achieved up to 1.20x higher global accuracy and 1.13x higher local accuracy than state-of-the-art competitors like FlexiFed and HeteroFL. On the WikiText-2 dataset, FedFA reduced perplexity by a factor of 1.07 to 4.50, showcasing its versatility across different model families, including Transformers.

Security and Robustness

One of the most significant advantages of FedFA is its resilience to adversarial intervention. Under backdoor attack scenarios, previous flexible FL strategies experienced accuracy drops up to 3.31x greater than FedFA. Even when 20% of the participating clients were malicious, FedFA maintained high performance, proving that complete aggregation effectively dilutes the influence of attackers.

Conclusion

FedFA represents a significant step forward in making Federated Learning practical for diverse, real-world device networks. By leveraging the inherent similarities in residual architectures through layer grafting and implementing robust scaling, it bridges the gap between hardware flexibility and model security.

While currently limited to uniform architectural families (e.g., all clients using variants of ResNet), future work aims to support heterogeneous network types, such as mixing ResNet and MobileNet architectures within a single global model. Additionally, further refinements in NAS and communication efficiency will continue to lower the barrier for edge device participation in collaborative learning.

Summary updated

BibTeX
@inproceedings{park2024federated,
  author = {Jong-Ik Park and Carlee Joe-Wong},
  title = {{Federated Learning with Flexible Architectures}},
  booktitle = {ECML/PKDD},
  year = {2024},
  doi = {10.1007/978-3-031-70344-7\_9},
}
Figure