Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Federated Hyperparameter Tuning: Challenges, Baselines, and Connections to Weight-Sharing

About

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.

Mikhail Khodak, Renbo Tu, Tian Li, Liam Li, Maria-Florina Balcan, Virginia Smith, Ameet Talwalkar• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-10--
471
Federated Character PredictionShakespeare (i.i.d.)
Test Error44.52
8
Federated Character PredictionShakespeare (non-i.i.d.)
Test Error45.24
8
Federated Image ClassificationFEMNIST non-i.i.d.
Test Error14.76
8
Federated Image ClassificationCIFAR-10 (i.i.d.)
Test Error20.82
8
Image ClassificationFEMNIST non-i.i.d.
Test Error Rate14.76
8
Language ModelingShakespeare (i.i.d.)
Test Error44.52
8
Language ModelingShakespeare (non-i.i.d.)
Test Error45.24
8
Federated Image ClassificationFEMNIST (i.i.d.)
Test Error Rate14.97
8
Image ClassificationFEMNIST (i.i.d.)
Test Error14.97
8
Showing 10 of 10 rows

Other info

Code

Follow for update