FEATHERS: Federated Architecture and Hyperparameter Search

Jonas Seng, Pooja Prasad, Devendra Singh Dhami, Martin Mundt, Kristian KerstingAutoML Workshop 2024

TL;DR

This paper introduces FEATHERS, a novel method that jointly optimizes neural network architectures and their hyperparameters in a federated learning setting, all while preserving data privacy using differential privacy. This is a significant step towards automating the design of AI models in sensitive, distributed environments like healthcare and finance.

What Problem Does This Paper Address?

Designing high-performing deep neural networks often requires extensive human expertise and computational resources for Neural Architecture Search (NAS) and Hyperparameter Optimization (HO). These processes become even more challenging and often infeasible in federated learning (FL) scenarios. FL allows models to be trained on decentralized data without sharing raw information, which is crucial for privacy-sensitive domains like healthcare or finance. However, existing NAS and HO methods are typically designed for centralized data and don't inherently support privacy guarantees, often requiring data to be aggregated. Furthermore, NAS and HO are usually performed sequentially, which is inefficient, especially in FL where communication is a bottleneck. The core problem FEATHERS addresses is the need for a method that can jointly optimize both architecture and hyperparameters in a federated and privacy-preserving manner.

Methods

FEATHERS tackles this challenge through a two-stage, alternating process:

  1. Hyperparameter Optimization (HO) Phase: This phase uses a "n-armed bandit" approach to efficiently identify promising hyperparameters. It iteratively samples hyperparameter configurations, trains models on clients, and uses the resulting validation loss to update reward estimates for each configuration. This allows the system to learn which hyperparameters are most effective over time.
  2. Neural Architecture Search (NAS) Phase: Once promising hyperparameters are identified, this phase uses a differentiable NAS approach (inspired by DARTS) to optimize the neural network architecture. The differentiability allows for averaging architectural parameters across clients using Federated Averaging (FedAvg).

Crucially, FEATHERS integrates Differential Privacy (DP) into both the HO and NAS phases. This is achieved by clipping gradients and adding Gaussian noise to model parameters, architectural parameters, and even the rewards sent to the server. This ensures that the information leaked through these communications is bounded, thus protecting the privacy of the distributed data.

Datasets

The paper evaluates FEATHERS on several standard image classification datasets:

  • Fashion-MNIST
  • CIFAR-10
  • Tiny-Imagenet

Additionally, they use a fraud detection dataset for evaluation, which is characterized by a highly skewed class distribution (95% negative, 5% positive). This dataset was sampled uniformly and standardized for experiments.

Key Insights and Ideas

  • Joint Optimization is Key: The paper strongly argues that architecture and hyperparameters are interdependent and should be optimized jointly, not sequentially, for efficiency and better performance, especially in FL.
  • Federated & Private by Design: FEATHERS is one of the first methods to successfully combine federated learning, NAS, HO, and differential privacy, addressing a critical gap for real-world applications.
  • Adaptive Hyperparameter Selection: The HO phase dynamically adjusts hyperparameter choices over time, often selecting more "cautious" values (like lower learning rates) than typical manual tuning, leading to more stable convergence.
  • Privacy Doesn't Kill Performance (with caveats): While strong privacy guarantees (low epsilon values) can slightly degrade performance, FEATHERS maintains competitive results even with DP, especially for privacy budgets (epsilon) greater than 1.

Key Results

  • State-of-the-Art Performance: FEATHERS achieves competitive, and often superior, accuracy compared to existing federated NAS/HO methods (like DARTS and FedEx) across various datasets and client numbers, even under non-i.i.d. (label-skewed) data distributions. For example, on Fashion-MNIST with 100 clients, FEATHERS achieved 93% accuracy compared to DARTS' 91%.
  • Scalability: The method scales well with an increasing number of clients, showing stable performance.
  • Privacy-Performance Trade-off: With a privacy budget $\epsilon \ge 1$, FEATHERS-DP performs nearly as well as the non-DP version. Performance decreases for lower $\epsilon$ values, but remains reasonable.
  • Runtime Overhead: FEATHERS adds a manageable overhead (around 0.4 GPU-days) compared to DARTS, primarily due to the HO phase. FedEx, which doesn't perform NAS, is faster but less comprehensive.

Limitations and Future Work

  • Discrete Hyperparameter Space: FEATHERS currently assumes a discrete set of hyperparameter candidates. The authors suggest relaxing this to handle continuous hyperparameters more naturally in the future.
  • Stateless Bandit Approach: The current HO strategy is stateless. Future work could explore stateful bandit approaches that leverage the training progress more effectively for informed hyperparameter choices.
  • Cross-Silo Focus: The current work focuses on a cross-silo FL setting. Extending FEATHERS to other FL scenarios (e.g., cross-device) could broaden its applicability.
  • Human-in-the-Loop: While FEATHERS automates model design, the authors acknowledge that for critical systems, a human-in-the-loop evaluation and monitoring remain essential.
  • Runtime with DP: While DP is integrated, it does increase training time (approximately 1.5-2x longer) due to the need for gradient manipulation, which affects parallelization. This trade-off between privacy and efficiency is noted.

Summary updated

BibTeX
@inproceedings{seng2024feathers,
  author = {Jonas Seng and Pooja Prasad and Devendra Singh Dhami and Martin Mundt and Kristian Kersting},
  title = {{FEATHERS: Federated Architecture and Hyperparameter Search}},
  booktitle = {AutoML Workshop},
  year = {2024},
  url = {https://openreview.net/forum?id=dzHILEMszV},
}
Figure