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

Alind Khare, Animesh Agrawal, Myungjin Lee, Alexey Tumanov, Lee, Myungjin, Latapie, Hugo, Tumanov, Alexey

Abstract

Neural Architecture Search (NAS) for Federated Learning (FL) is an emerging field that automates the design and training of Deep Neural Networks (DNNs) when data cannot be centralized due to privacy or communication restrictions. While recent federated NAS methods improve accuracy over traditional FL like FedAvg, they struggle to satisfy diverse deployment targets (e.g., varying hardware, latency budgets, or battery levels) common in on-device inference. Most existing methods incur prohibitive training costs by repeating the training and search process for each target, resulting in $O(N)$ complexity for $N$ targets. SuperFedNAS addresses these challenges by decoupling training and search. It co-trains a diverse set of DNN architectures within a single "supernet" in an FL setting. Post-training, clients perform local NAS to extract specialized DNNs with no additional training, reducing the cost to $O(1)$. We introduce MaxNet, a novel FL training algorithm for multi-objective optimization of a large supernet. SuperFedNAS achieves up to 37.7% higher accuracy or up to 8.13x reduction in MACs compared to existing federated NAS methods.

Introduction: The Challenge of Heterogeneous Deployment

Federated Learning (FL) enables training AI models on decentralized data, preserving privacy. However, deploying these models across a diverse ecosystem of mobile devices—ranging from high-end smartphones with dedicated neural engines to older devices with limited battery—presents a significant challenge.

Existing Federated Neural Architecture Search (FedNAS) methods typically couple the training and search processes. This coupling means that to optimize a model for multiple hardware targets, the expensive training process must be repeated for each case, leading to an $O(N)$ training cost. Furthermore, these methods often use restricted search spaces, resulting in inefficient models that fail to exploit specific device capabilities.

Comparison of existing FedNAS methods vs. SuperFedNAS, highlighting the shift from O(K) to O(1) training cost and the move toward more efficient architectures.

SuperFedNAS shifts the paradigm by decoupling the training of the architecture space from the search for specific deployment targets.

The Supernet Approach

Instead of training individual models, SuperFedNAS trains a single "supernet"—a massive network containing approximately $5 \times 10^8$ possible sub-networks (subnets) with varying widths and depths. These subnets share weights, allowing the training of billions of potential models simultaneously within one federated training cycle.

The MaxNet Algorithm

Training a massive supernet in a federated environment is challenging due to interference between subnets and data heterogeneity. The authors propose MaxNet, which includes:

  • Weighted Parameter Aggregation: Balances updates from large and small subnets using a decaying factor to minimize interference.
  • Robust Optimization: Minimizes the loss of the worst-performing subnets on each client, ensuring robustness against non-IID (heterogeneous) data distributions.
  • Weight-Sharing Sampling: Prioritizes subnets that share the most weights to maintain the "freshness" of the entire supernet.

Once the supernet is trained, the $O(1)$ training cost is realized. Client devices can locally "carve out" the optimal subnet for their specific constraints (e.g., latency, battery) in about two minutes using simple MLP-based accuracy predictors, requiring no further training.

Experimental Evaluation and Results

The framework was evaluated on image (CIFAR-10, CIFAR-100, CINIC-10) and text (Shakespeare) datasets. To simulate real-world conditions, Dirichlet distributions were used to create non-IID data imbalances across clients.

Performance comparison showing SuperFedNAS's advantages in computation cost, communication cost, and test accuracy over baselines.

Key Findings

  • Efficiency and Scalability: SuperFedNAS reduces training costs by 11x when targeting 20 different deployment scenarios compared to standard FedNAS.
  • Performance Gains: It achieves up to 37.7% higher accuracy for the same computational budget (MACs) or an 8.13x reduction in MACs for the same accuracy level.
  • Architecture Specialization: By allowing layer-wise elastic width and depth, SuperFedNAS finds highly specialized models that outperform repeated-block architectures.

Conclusion

SuperFedNAS provides a scalable solution for on-device AI by moving from $O(N)$ to $O(1)$ search costs. While current work focuses on inference optimization, future research may incorporate training-time system heterogeneity, such as varying client bandwidth, to further enhance the practicality of federated NAS in highly constrained environments.

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 Myungjin Lee and Alexey Tumanov and Lee, Myungjin and Latapie, Hugo and Tumanov, Alexey},
  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