PerFedRLNAS: One-for-All Personalized Federated Neural Architecture Search

Dixi Yao, Baochun LiAAAI 2024

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving privacy. However, the practical deployment of FL faces significant hurdles due to data heterogeneity (varying data distributions across clients) and system heterogeneity (diverse hardware capabilities). While Personalized Federated Learning (PFL) attempts to address these issues by allowing clients to maintain local model components, current approaches often rely on manual heuristics to decide which parts of a model should be shared or personalized.

The Challenge of Heterogeneity

In standard FL, a single global model is trained and distributed to all clients. This "one-size-fits-all" approach often fails when clients have vastly different data or hardware.

Standard Federated Averaging (FedAvg) shares the entire model across all clients, ignoring local data and hardware differences.

To improve performance, researchers have proposed PFL strategies like FedRep, which shares representation layers while personalizing the classification head. However, determining the optimal split between shared and private components remains a manual and often sub-optimal process.

FedRep personalizes only the network 'head' while sharing the 'representation' layers, a manual design choice that may not fit all scenarios.

Furthermore, existing Federated Neural Architecture Search (FedNAS) methods—which aim to automate model design—are typically slow and struggle to tailor the model structure to individual client constraints effectively.

PerFedRLNAS: Automated Architectural Personalization

The authors introduce PerFedRLNAS (Personalized Federated RL-based NAS), a framework that treats architecture selection as a Reinforcement Learning (RL) problem managed by the server.

The Mechanism

  1. Supernet Search Space: The server maintains a "Supernet" containing a wide variety of architectural paths (e.g., different kernel sizes, layer counts).
  2. Virtual RL Agents: For each client, the server hosts a virtual agent that learns a policy to sample a personalized sub-network from the Supernet.
  3. Feedback-Driven Optimization: Clients train their assigned sub-networks and return weights along with local test accuracy. The server uses this accuracy, combined with system metrics like latency (round time), as a multi-objective reward to update the RL agent's policy.
  4. One-Stage Training: PerFedRLNAS integrates search, training, and personalization into a single, simultaneous process, avoiding the multi-phase overhead of traditional NAS.

Crucially, the RL computation is offloaded to the server, ensuring that edge devices face no additional computational burden compared to standard Federated Averaging.

Key Insights

  • Theoretical Necessity: The paper includes a mathematical theorem (Theorem 1) proving that as client data distributions diverge, their optimal architectures must also diverge, justifying the need for structural personalization.
  • Hardware-Awareness: By incorporating "Round Time" into the reward function, the system automatically learns to assign lighter models to resource-constrained devices and more complex models to high-performance hardware.
  • Efficiency: The "One-for-All" approach allows the server to quickly find optimal architectures for new clients joining the network with minimal additional rounds.

Empirical Evaluation

PerFedRLNAS was evaluated on CIFAR-10 and CIFAR-100 benchmarks using non-i.i.d. data splits and various search spaces (NASViT, MobileNetV3, and DARTS).

  • Performance: On CIFAR-10 with a Vision Transformer (ViT) space, PerFedRLNAS achieved 85.02% accuracy, outperforming FedAvg (72.22%) and the previous best personalized method, FedTP (80.27%).
  • Speed: In the DARTS search space, the framework reached convergence in 3.72 hours, a nearly 6x speedup over standard FedNAS (22.22 hours).
  • Resource Management: The system successfully navigated memory constraints, dynamically adjusting model complexity (from ~159M to ~1293M FLOPs) based on simulated device budgets.

Conclusion

PerFedRLNAS represents a significant step forward in making Federated Learning practical for heterogeneous environments. By automating the design of personalized architectures through server-side RL agents, it eliminates manual design guesswork while improving both accuracy and hardware efficiency. Future work may extend this "One-for-All" philosophy to other domains such as Natural Language Processing and multi-modal tasks.

Summary updated

BibTeX
@inproceedings{yao2024perfedrlnas,
  author = {Dixi Yao and Baochun Li},
  title = {{PerFedRLNAS: One-for-All Personalized Federated Neural Architecture Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i15.29576},
}
Figure