Skip to main content
QUICK REVIEW

[Paper Review] Federated Hyperparameter Tuning: Challenges, Baselines, and Connections to Weight-Sharing

Mikhail Khodak, Renbo Tu|arXiv (Cornell University)|Jun 8, 2021
Advanced Neural Network ApplicationsComputer Science17 citations
TL;DR

This paper introduces FedEx, a novel federated hyperparameter tuning method that leverages weight-sharing principles from neural architecture search to accelerate hyperparameter optimization in federated learning. By jointly training models and tuning hyperparameters like local learning rates, FedEx achieves up to 2-3% higher accuracy than baselines on Shakespeare, FEMNIST, and CIFAR-10 under the same communication budget, while addressing key challenges like distributed validation and resource constraints.

ABSTRACT

Tuning hyperparameters is a crucial but arduous part of the machine learning pipeline. Hyperparameter optimization is even more challenging in federated learning, where models are learned over a distributed network of heterogeneous devices; here, the need to keep data on device and perform local training makes it difficult to efficiently train and evaluate configurations. In this work, we investigate the problem of federated hyperparameter tuning. We first identify key challenges and show how standard approaches may be adapted to form baselines for the federated setting. Then, by making a novel connection to the neural architecture search technique of weight-sharing, we introduce a new method, FedEx, to accelerate federated hyperparameter tuning that is applicable to widely-used federated optimization methods such as FedAvg and recent variants. Theoretically, we show that a FedEx variant correctly tunes the on-device learning rate in the setting of online convex optimization across devices. Empirically, we show that FedEx can outperform natural baselines for federated hyperparameter tuning by several percentage points on the Shakespeare, FEMNIST, and CIFAR-10 benchmarks, obtaining higher accuracy using the same training budget.

Motivation & Objective

  • To formalize the unique challenges of hyperparameter tuning in federated learning, including distributed validation data, extreme resource limitations, and costly personalization evaluation.
  • To propose practical baselines by adapting standard non-federated hyperparameter optimization methods to the federated setting.
  • To develop FedEx, a general-purpose hyperparameter tuning framework that exploits weight-sharing to simultaneously train models and tune hyperparameters.
  • To theoretically justify FedEx's effectiveness in tuning local learning rates under online convex optimization, showing improved convergence without requiring prior knowledge of data similarity.
  • To empirically validate FedEx across multiple federated benchmarks—Shakespeare, FEMNIST, and CIFAR-10—demonstrating consistent performance gains over baselines.

Proposed method

  • FedEx adapts the weight-sharing paradigm from neural architecture search to tune non-architectural hyperparameters such as local SGD learning rates in federated settings.
  • It interleaves standard model weight updates (via FedAvg-style aggregation) with exponentiated gradient updates to hyperparameters based on local validation signals.
  • The method uses a hierarchical elimination strategy to allocate communication rounds across hyperparameter configurations, optimizing budget usage.
  • Hyperparameter updates are computed by aggregating local validation performance across devices, enabling efficient and scalable tuning without full retraining.
  • FedEx is compatible with major federated optimization algorithms including FedAvg, FedProx, and SCAFFOLD, and can be extended to tune architectural hyperparameters.
  • A theoretical analysis using the ARUBA framework shows that a FedEx variant minimizes client-averaged regret by adapting to data similarity, with improved convergence over prior meta-learning theory.

Experimental results

Research questions

  • RQ1How can standard hyperparameter optimization methods be adapted to the federated setting given challenges like distributed validation and limited resources?
  • RQ2What are the key challenges in federated hyperparameter tuning that prevent direct application of non-federated methods?
  • RQ3Can the weight-sharing paradigm from neural architecture search be generalized to tune non-architectural hyperparameters such as learning rates in federated learning?
  • RQ4Does FedEx outperform baselines in terms of final model accuracy under fixed communication budgets across diverse federated benchmarks?
  • RQ5Can FedEx theoretically justify its ability to tune local learning rates effectively in multi-task online convex optimization settings?

Key findings

  • FedEx outperforms standard baselines by 2–3 percentage points in test accuracy on the Shakespeare benchmark, achieving higher performance with the same training budget.
  • On FEMNIST and CIFAR-10, FedEx consistently improves or matches baseline performance, with significant gains observed in non-i.i.d. data settings.
  • Online evaluation shows FedEx matches or exceeds baseline performance by the halfway point of training, despite initial instability due to random initialization.
  • Theoretical analysis confirms that a FedEx variant correctly tunes the on-device learning rate in online convex optimization, minimizing client-averaged regret without requiring knowledge of data similarity.
  • FedEx effectively handles the three core challenges of federated hyperparameter tuning: distributed validation, resource constraints, and personalization evaluation cost.
  • The method is broadly applicable beyond learning rate tuning, enabling federated neural architecture search and tuning of meta-learning algorithms like Reptile and MAML.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.