Distributed Architecture Search Over Heterogeneous Distributions

Erum Mushtaq, Chaoyang He, Jie Ding, Salman AvestimehrTMLR 2023

Abstract: Federated learning (FL) is an efficient learning framework that assists distributed machine learning when data cannot be shared with a centralized server. Recent advancements in FL use predefined architecture-based learning for all clients. However, given that clients' data are invisible to the server and data distributions are non-identical across clients, a predefined architecture discovered in a centralized setting may not be an optimal solution for all the clients in FL. Motivated by this challenge, we introduce SPIDER, an algorithmic framework that aims to Search PersonalIzed neural architecture for feDERated learning. SPIDER is designed based on two unique features: (1) alternately optimizing one architecture-homogeneous global model in a generic FL manner and architecture-heterogeneous local models that are connected to the global model by weight-sharing-based regularization, (2) achieving architecture-heterogeneous local models by a perturbation-based neural architecture search method. Experimental results demonstrate superior prediction performance compared with other state-of-the-art personalization methods.

Introduction

Federated learning (FL) has emerged as a powerful paradigm for training machine learning models across distributed clients while preserving data privacy. However, the standard "one-size-fits-all" approach—where a central server coordinates clients to train a single, predefined neural architecture—often falls short in real-world scenarios. In practice, data distributions are frequently non-identical (non-I.I.D.) across clients, and the raw data remains invisible to the server. A model architecture optimized for a global average may be suboptimal for specific local silos, such as different medical facilities with varying imaging equipment.

To address these challenges, the SPIDER framework (Search PersonalIzed neural architecture for feDERated learning) enables distributed clients to evolve their own custom neural architectures tailored to their specific local data distributions.

The SPIDER Framework

SPIDER moves beyond personalizing only model weights by enabling the personalization of the neural architecture itself. The framework operates through a bi-level optimization process involving two primary components: the SPIDER Trainer and the SPIDER Searcher.

Overview of the SPIDER framework, illustrating the interaction between the global Supernet and personalized local Child models across three phases.

SPIDER Trainer

The trainer manages the relationship between a homogeneous global model (a "Supernet") and heterogeneous local models ("Child" models). It utilizes weight-sharing-based regularization to bridge the gap between these models. This allows the local models to benefit from the collaborative knowledge of the global network while maintaining their unique, specialized structures, even if their structures differ significantly.

SPIDER Searcher

Unlike traditional gradient-based Neural Architecture Search (NAS) methods, which can be unstable in a federated environment, the SPIDER Searcher employs a robust perturbation-based selection method. It evaluates the importance of architectural components by observing the impact of their removal on local validation accuracy. This "progressive search" occurs over three distinct phases:

  1. Warm-up: Training the initial Supernet to establish a baseline.
  2. Progressive Search: Iteratively searching the architecture edge-by-edge on the fly.
  3. Final Training: Fine-tuning the discovered personalized architecture for optimal performance.

Experimental Evaluation

The effectiveness of SPIDER was evaluated on three image classification benchmarks: CIFAR10, CIFAR100, and CINIC10. To simulate realistic data heterogeneity, the researchers applied a Latent Dirichlet Allocation (LDA) distribution ($\alpha = 0.2$), ensuring high variance in data distribution across clients.

Results and Key Insights

Experimental results demonstrate that SPIDER consistently outperforms state-of-the-art personalization methods, including Ditto, perFedAvg, and KNN-Per.

  • Performance Gains: On the CIFAR100 dataset, SPIDER achieved an accuracy of 72.36%, representing a 5.31% improvement over the best-performing baseline. The authors measured a "personalization gain"—the performance advantage of a client's own searched architecture over others—ranging from 4.70% to 7.84%.
  • Fairness and Privacy: SPIDER exhibited lower standard deviation in accuracy across clients, indicating a more equitable distribution of benefits. Furthermore, the server does not need to know the final architecture of local models, adding a layer of "architectural privacy."
  • Efficiency: While the search process is computationally intensive, the resulting personalized models are often significantly more compact than standard baselines. For instance, searched models averaged ~2.3M parameters compared to ~11M for a standard ResNet18, leading to faster local inference.

Conclusion

SPIDER represents a significant step forward in Federated Learning by shifting the focus from weight personalization to architectural personalization. By allowing clients to "weave" their own neural webs, the framework effectively handles data heterogeneity while maintaining privacy. Future work will focus on reducing computational overhead for resource-constrained "cross-device" settings and incorporating hardware heterogeneity into the search process.

Summary updated

BibTeX
@article{mushtaq2023distributed,
  author = {Erum Mushtaq and Chaoyang He and Jie Ding and Salman Avestimehr},
  title = {{Distributed Architecture Search Over Heterogeneous Distributions}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=sY75NqDRk1},
}
Figure