SuperFedNAS: Cost-Efficient Federated Neural Architecture Search for On-Device Inference

Alind Khare, Animesh Agrawal, Aditya Annavajjala, Payman Behnam, Myungjin Lee, Hugo Latapie, Alexey Tumanov

Training deep learning models on edge devices via Federated Learning (FL) is a powerful way to preserve privacy. However, the "edge" is a messy place: one user might have a brand-new iPhone with a dedicated neural engine, while another is using a five-year-old Android on 10% battery. Standard Neural Architecture Search (NAS) methods for FL struggle here because they typically require retraining the entire system for every new hardware constraint or latency budget.

SuperFedNAS changes the game by decoupling training from search, allowing a single training run to support an infinite variety of deployment targets.

TL;DR

SuperFedNAS co-trains a massive "supernet" containing over 500 million potential architectures in a single federated learning stage. Once trained, devices can locally perform a training-free search to find the optimal model for their specific hardware and battery constraints, reducing the training cost from $O(N)$ to $O(1)$ for $N$ deployment targets.

What Problem Does This Paper Address?

Existing federated NAS methods face two major hurdles:

  1. Prohibitive Costs (C1): Most methods perform "train-and-search" simultaneously. If you want a model for a high-end GPU and another for a low-power CPU, you have to run the entire expensive federated training process twice. As deployment targets grow, the cost scales linearly ($O(N)$).
  2. Sub-optimal Architectures (C2): Many methods use "repeated stacking"—finding one good building block and repeating it. This lacks the architectural diversity (varying depth and width per layer) needed to truly squeeze performance out of heterogeneous hardware.
Fig. 1: SuperFedNAS vs Existing Federated NAS methods [16, 18]

Methods

The core innovation of SuperFedNAS is the MaxNet training algorithm. Instead of training one static model, it trains a supernet—a large network where smaller "subnets" share weights.

Key technical components include:

  • Decoupled Search: Training happens once globally. Search happens locally on the client device. Because the supernet is already trained, "searching" just means picking the best pre-trained weights for a specific architecture.
  • MaxNet Algorithm: Training a supernet in FL is hard because small subnets can "interfere" with the training of larger ones. MaxNet solves this by optimizing a novel objective: it explicitly minimizes the loss of the worst-performing subnets on each client's data partition. This forces the supernet to adapt to diverse data distributions (non-IID data) and reduces interference.
  • Weight-Shared Sampling: To prevent "staleness" (where some parts of the supernet aren't updated often enough), MaxNet prioritizes sampling subnets that share the most weights with the overall supernet.
  • Predictor-Guided Search: To make local search nearly instantaneous, the authors use small Multi-Layer Perceptrons (MLPs) to predict the accuracy and latency of subnets, allowing a device to find its ideal model in about 2 minutes.
Fig. 2: Supernet and its Naive FL-Training Methods. (a) Supernet consists of subnets within it that differ in depth/width. (b) Multi-Stage method sends entire supernet to clients. (c) Single-Stage Supernet FL-Training sends subnets to clients.

Datasets

The authors evaluated SuperFedNAS across several standard benchmarks to test both image and text performance:

  • Image: CIFAR-10, CIFAR-100, and CINIC-10.
  • Text: The Shakespeare dataset (derived from the LEAF benchmark), which simulates a tough FL environment with 660 clients and non-IID data.

Key Insights and Ideas

  • Worst-Case Optimization is a Win-Win: By focusing on the worst-performing subnets, MaxNet actually improves the performance of the best subnets too. This is due to weight sharing; a "rising tide lifts all boats" effect.
  • Diversity Matters: Unlike prior FL-NAS works that just stack blocks, SuperFedNAS allows for different widths and depths at every stage. This flexibility is what allows it to find a "shallow/thin" model for an old CPU and a "wide/deep" model for a modern GPU from the same supernet.
  • The $O(1)$ Advantage: By moving the search to a post-training phase, the communication and computation cost for the server remains constant regardless of how many different types of devices you are targeting.
SuperFedNAS maintains a constant training cost as the number of deployment targets increases, unlike linear scaling in baselines.

Key Results

  • Accuracy Boost: SuperFedNAS achieves up to 37.7% higher accuracy for the same computational budget (MACs) compared to existing federated NAS methods.
  • Efficiency Gain: It can provide the same accuracy as baselines while requiring 8.13x fewer MACs.
  • Scalability: For 20 different deployment targets, SuperFedNAS reduced training costs by 11x compared to traditional methods.
  • Robustness: It significantly outperformed baselines in highly non-IID (heterogeneous data) settings, thanks to the MaxNet objective.

Limitations and Future Work

While SuperFedNAS excels at handling diversity in inference targets (the devices the model runs on after training), the authors note that it does not yet explicitly account for system heterogeneity during training (e.g., some clients having much lower bandwidth than others during the FL process). Integrating training-time constraints is a suggested direction for future research.

Summary updated

Abstract

Neural Architecture Search (NAS) for Federated Learning (FL) is an emerging field. It automates the design and training of Deep Neural Networks (DNNs) when data cannot be centralized due to privacy, communication costs, or regulatory restrictions. Recent federated NAS methods not only reduce manual effort but also help achieve higher accuracy than traditional FL methods like FedAvg. Despite the success, existing federated NAS methods still fall short in satisfying diverse deployment targets common in on-device inference like hardware, latency budgets, or variable battery levels. Most federated NAS methods search for only a limited range of neuro-architectural patterns, repeat them in a DNN, thereby restricting achievable performance. Moreover, these methods incur prohibitive training costs to satisfy deployment targets. They perform the training and search of DNN architectures repeatedly for each case. SuperFedNAS addresses these challenges by decoupling the training and search in federated NAS. SuperFedNAS co-trains a large number of diverse DNN architectures contained inside one supernet in the FL setting. Post-training, clients perform NAS locally to find specialized DNNs by extracting different parts of the trained supernet with no additional training. SuperFedNAS takes O(1) (instead of O(N)) cost to find specialized DNN architectures in FL for any N deployment targets. As part of SuperFedNAS, we introduce MaxNet - a novel FL training algorithm that performs multi-objective federated optimization of a large number of DNN architectures ($\approx 5*10^8$) under different client data distributions. Overall, SuperFedNAS achieves upto 37.7% higher accuracy for the same MACs or upto 8.13x reduction in MACs for the same accuracy than existing federated NAS methods.
BibTeX
@inproceedings{khare2024superfednas,
  author = {Alind Khare and Animesh Agrawal and Aditya Annavajjala and Payman Behnam and Myungjin Lee and Hugo Latapie and Alexey Tumanov},
  title = {{SuperFedNAS: Cost-Efficient Federated Neural Architecture Search for On-Device Inference}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72986-7\_10},
}
Figure