Towards Tailored Models on Private AIoT Devices: Federated Direct Neural Architecture Search

Chunhui Zhang, Xiaoming Yuan, Qianyun Zhang, Guangxu Zhu, Lei Cheng, Ning Zhang · OpenReview

Abstract

Neural networks often encounter various stringent resource constraints while deploying on edge devices. To tackle these problems with less human efforts, automated machine learning becomes popular in finding various neural architectures that fit diverse Artificial Intelligence of Things (AIoT) scenarios. Recently, to prevent the leakage of private information while enable automated machine intelligence, there is an emerging trend to integrate federated learning and neural architecture search (NAS). Although promising as it may seem, the coupling of difficulties from both tenets makes the algorithm development quite challenging. In particular, how to efficiently search the optimal neural architecture directly from massive non-independent and identically distributed (non-IID) data among AIoT devices in a federated manner is a hard nut to crack. In this paper, to tackle this challenge, by leveraging the advances in ProxylessNAS, we propose a Federated Direct Neural Architecture Search (FDNAS) framework that allows for hardware-friendly NAS from non-IID data across devices. To further adapt to both various data distributions and different types of devices with heterogeneous embedded hardware platforms, inspired by meta-learning, a Cluster Federated Direct Neural Architecture Search (CFDNAS) framework is proposed to achieve device-aware NAS, in the sense that each device can learn a tailored deep learning model for its particular data distribution and hardware constraint. Extensive experiments on non-IID datasets have shown the state-of-the-art accuracy-efficiency trade-offs achieved by the proposed solution in the presence of both data and device heterogeneity.

Introduction

Deploying deep learning on Artificial Intelligence of Things (AIoT) devices—such as mobile phones, drones, or medical sensors—presents a significant challenge. These devices operate under stringent resource constraints, including limited memory, battery life, and the requirement for low-latency inference. Traditionally, researchers have employed Neural Architecture Search (NAS) to automate the design of efficient models. However, standard NAS often relies on "proxy" datasets that do not accurately reflect the complex, non-independent and identically distributed (non-IID) data found in real-world edge environments.

Furthermore, increasing concerns regarding data privacy prohibit the transfer of raw user data to a centralized server for training. This creates a critical research gap: how can we efficiently search for optimal neural architectures across thousands of devices without compromising private data or ignoring unique hardware limitations?

Methodology

To address these challenges, this research introduces two primary frameworks: Federated Direct NAS (FDNAS) and Cluster Federated Direct NAS (CFDNAS).

Federated Direct NAS (FDNAS)

FDNAS integrates Federated Averaging (FedAvg) with ProxylessNAS. Unlike traditional NAS that searches for "cells" on small proxy datasets, FDNAS searches the entire network depth directly on the target task. It utilizes a "SuperNet" structure with binary gates. During the search process, only two paths are active at any given time, which minimizes memory consumption—a crucial requirement for resource-constrained edge devices. Devices locally update both model weights ($w$) and architecture parameters ($\alpha$), which are then aggregated by a central server to form a global model.

Cluster Federated Direct NAS (CFDNAS)

Recognizing that a "one-size-fits-all" model is often suboptimal for diverse hardware and data distributions, CFDNAS adopts a meta-learning approach to provide "tailored" models.

The CFDNAS framework showing device clustering and architecture tailoring.

The process involves three stages:

  1. Meta-training: FDNAS is executed across all devices to establish a generalized SuperNet.
  2. Clustering: Devices are grouped based on data similarity (using abstract tags like "animal" or "transportation") and hardware specifications (e.g., CPU vs. GPU).
  3. Meta-testing: Each cluster performs local refinement rounds to adapt the architecture to its specific data distribution and hardware constraints, such as optimizing for mobile CPU latency.

Experimental Setup

The frameworks were evaluated on standard benchmarks adapted for federated settings, including CIFAR-10 (partitioned for non-IID data), ImageNet (for transferability testing), and the LEAF (FEMNIST) dataset involving over 3,500 devices. Real-world latency measurements were conducted on TITAN Xp GPUs, Intel Xeon CPUs, and Samsung Galaxy S20 smartphones.

Key Results and Insights

The proposed FDNAS and CFDNAS frameworks demonstrate significant improvements in both accuracy and efficiency.

Performance comparison of FDNAS against state-of-the-art NAS methods.
  • Superior Accuracy: On the CIFAR-10 dataset, FDNAS achieved a federated averaged accuracy of 78.75%, outperforming previous federated NAS methods that rely on proxy-based searches.
  • Efficiency and Personalization: CFDNAS-C, specifically tailored for CPUs, reduced inference computation by 50% compared to the base FDNAS model while maintaining comparable accuracy. This highlights the benefit of hardware-aware search.
  • Transferability: Architectures discovered via FDNAS on CIFAR-10 achieved a 75.3% top-1 accuracy on ImageNet, surpassing MobileNetV2 by 3.3% while utilizing fewer FLOPs (388M vs. 585M).
  • Search Efficiency: The federated search process is highly efficient, requiring only approximately 59 GPU hours for FDNAS on CIFAR-10. This is a massive improvement over older reinforcement learning-based NAS methods that often required thousands of hours.

Conclusion and Future Work

FDNAS and CFDNAS represent a significant step toward automated, privacy-preserving model design for the AIoT era. While the current results are promising, future research will aim to extend these frameworks to more complex tasks such as object detection and semantic segmentation. Additionally, the authors plan to explore deployment on even smaller AIoT devices with more extreme memory constraints and investigate further strategies to reduce communication overhead in low-bandwidth edge environments.

Summary updated

BibTeX
@article{zhang2024towards,
  author = {Chunhui Zhang and Xiaoming Yuan and Qianyun Zhang and Guangxu Zhu and Lei Cheng and Ning Zhang},
  title = {{Towards Tailored Models on Private AIoT Devices: Federated Direct Neural Architecture Search}},
  journal = {IEEE Internet of Things Journal},
  year = {2024},
  url = {https://openreview.net/forum?id=uP74tfWZY2},
}
Figure