HPN: Personalized Federated Hyperparameter Optimization

Anda Cheng, Zhen Wang, Yaliang Li, Jian ChengarXiv 2023 · DOI

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for collaborative machine learning while preserving data privacy. However, a significant hurdle remains: client heterogeneity. Participants often differ in data distributions, hardware capabilities, and specific task objectives. While existing research has focused on personalizing model weights, this paper introduces HPN, a framework designed to personalize hyperparameters (HPO).

A "one-size-fits-all" approach to hyperparameters—such as learning rates or weight decay—can lead to suboptimal performance or even divergence for certain clients. The challenge lies in the massive search space created by individual client needs and the strict privacy constraints that prevent the central server from inspecting raw client data.

Methodology: The HPN Framework

The authors propose the HyperParameter Network (HPN), a system that treats hyperparameter optimization as a mapping problem rather than a search problem.

Overview of the HPN framework, illustrating the interaction between the Hyperparameter Network, the central server, and heterogeneous clients.

1. The HPN Policy Network

Instead of searching for static values, HPN employs a shared policy network $h_{\theta^{(t)}}$. This network takes a "client encoding" $z_i$ as input and outputs a distribution of hyperparameters $c_i^{(t)}$ tailored to that specific client. By sharing this network across the federation, the system learns general patterns, allowing it to generalize to new clients based on their data "signatures."

2. Privacy-Preserving Client Encoding

To characterize client data without compromising privacy, HPN utilizes Random Fourier Features (RFF). RFF transforms raw data into a frequency-domain sketch that captures the essential shape of the data distribution. This encoding provides enough information for effective HPO while remaining mathematically difficult to reverse-engineer into private records.

3. Random Start Training (RST)

Traditional HPO in FL is computationally prohibitive because full training runs are required for evaluation. Standard "low-fidelity" methods often suffer from "early-stage bias," selecting hyperparameters that perform well initially but fail later. HPN introduces Random Start Training (RST) to address this. RST samples random starting points from a pre-recorded global training trajectory and runs short evaluations from those points. This provides a representative snapshot of hyperparameter performance across the entire training lifecycle at a fraction of the cost.

Experimental Evaluation

The HPN framework was evaluated across three diverse domains: NLP (Twitter sentiment analysis), Graph (molecular graph classification), and Image (CIFAR-10 with simulated heterogeneity).

Key Results

HPN consistently outperformed both global FedHPO baselines and adapted personalized methods.

Performance comparison of HPN against various baselines on the Graph-DC and Twitter datasets.

As shown in the table above, HPN achieved a state-of-the-art accuracy of 70.47% on Graph-DC and 60.32% on the Twitter dataset. Notably, on CIFAR-10, the performance advantage of HPN became more pronounced as data heterogeneity increased, demonstrating its robustness in highly diverse environments.

Conclusion and Future Work

HPN represents a significant step forward in personalized FL by moving beyond weight-based adaptation to hyperparameter personalization. By leveraging a shared policy network and efficient evaluation via RST, it achieves superior performance while maintaining privacy.

Future research directions include developing mechanisms to ensure clients report validation performance honestly, investigating whether personalization inadvertently favors specific client clusters, and strengthening client encodings against sophisticated reconstruction attacks.

Summary updated

BibTeX
@misc{cheng2023hpn,
  author = {Anda Cheng and Zhen Wang and Yaliang Li and Jian Cheng},
  title = {{HPN: Personalized Federated Hyperparameter Optimization}},
  year = {2023},
  eprint = {2304.05195},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.05195},
}
Figure