FedHPro: Federated Hyper-Prototype Learning via Gradient Matching

Huan Wang, Jun Shen, Haoran Li, Zhenyu Yang, Jun Yan +4 more
5/13/2026
cs.CV
federated

Official code: mala-lab/FedHPro (5 stars, Python, last commit 2026-05-28).

Abstract

Federated Learning (FL) enables collaborative training of distributed clients while protecting privacy. To enhance generalization capability in FL, prototype-based FL is in the spotlight, since shared global prototypes offer semantic anchors for aligning client-specific local prototypes.

Show full abstract

However, existing methods update global prototypes at the prototype-level via averaging local prototypes or refining global anchors, which often leads to semantic drift across clients and subsequently yields a misaligned global signal. To alleviate this issue, we introduce hyper-prototypes, defined by a set of learnable global class-wise prototypes to preserve underlying semantic knowledge across clients. The hyper-prototypes are optimized via gradient matching to align with class-relevant characteristics distilled directly from clients' real samples, rather than prototype-level descriptors. We further propose FedHPro, a Federated Hyper-Prototype Learning framework, to leverage hyper-prototypes to promote inter-class separability via mutual-contrastive learning with client-specific margin, while encouraging intra-class uniformity through a consistency penalty. Comprehensive experiments under diverse heterogeneous scenarios confirm that 1) hyper-prototypes produce a more semantically consistent global signal, and 2) FedHPro achieves state-of-the-art performance on several benchmark datasets. Code is available at \href{https://github.com/mala-lab/FedHPro}{https://github.com/mala-lab/FedHPro}.

View on arXivView PDF

Code Implementations(1)

mala-lab/FedHProOfficial100%

Official implementation of ICML'26 paper 'FedHPro: Federated Hyper-Prototype Learning via Gradient Matching'.

52PythonMay 8, 20266 months ago

Similar Papers

Cite this paper

@article{wang2026fedhpro,
  title  = {FedHPro: Federated Hyper-Prototype Learning via Gradient Matching},
  author = {Huan Wang and Jun Shen and Haoran Li and Zhenyu Yang and Jun Yan and Ousman Manjang and Yanlong Zhai and Di Wu and Guansong Pang},
  year   = {2026},
  eprint = {2605.13475},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.13475v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.13475.svg)](https://codeofpaper.com/paper/2605.13475)

Discussion