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.
SuperFedNAS: Decoupling Training from Search
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.
Local, Training-Free Search
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.
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