Papers › FedHPro: Federated Hyper-Prototype Learning via Gradient Matching

FedHPro: Federated Hyper-Prototype Learning via Gradient Matching

13 May 2026ICMLarXiv:2605.13475added by Syntology

Huan Wang, Jun Shen, Haoran Li, Zhenyu Yang, Jun Yan, Ousman Manjang, Yanlong Zhai, Di Wu, Guansong Pang

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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. 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 https://github.com/mala-lab/FedHPro.

PaperPDFCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 29 code samples harvested from 1 repository linked to this paper: 21 ran (of which 2 constructed an object rather than computing a result; 5 with no instrument failure: 2 honoured, 1 violated, 2 with no contract checked; 16 where Syntology's instrument failed) · 8 unverified. Where Syntology's instrument failed: 14 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 29 samples from 1 repository, 21 ran (5 with no instrument failure; 16 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

mala-lab/FedHPro found in paper text by SyntologySyntology: 29 samples, 21 ran (16 instrument-failed) · 8 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

29 samples harvested: 21 ran (of which 2 constructed an object rather than computing a result; 5 with no instrument failure: 2 honoured, 1 violated, 2 with no contract checked; 16 where Syntology's instrument failed) · 8 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

2ran · honoured contract
1ran · violated contract
14ran · our draft was wrong
2ran; the contract check could not run
2ran
8unverified

Licence: 29 of the 29 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mala-lab/FedHPro. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 1 sample that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

mala-lab/FedHPro found in paper text by Syntology 29 samples, 21 ran (16 instrument-failed) · 8 unverified
BasicBlock in 126 papers
census: 6 implementations from 6 papers, 5 distinct outputs on one shared input
main_run.py ran fingerprinted no licence file found · pointer only · fb092ad2e962f35d · report fixture: returned BasicBlock · level recorded 2026-09-22
DiffAugment in 28 papers
census: 7 implementations from 5 papers, 5 distinct outputs across 2 buckets, one shared input per bucket this sample: bucket 1 of 2, arg 1: rank 4, kind float, dtype float32
main_run.py ran; the contract check could not run (RAISES) no licence file found · pointer only · 655f5003e174acea · report fixture: signature x:Tensor/4/float, param:DiffAugParam/0/? · returned Tensor · level recorded 2026-09-22
TensorDataset main_run.py ran no licence file found · pointer only · ec02bbab57d76432 · report fixture: returned TensorDataset · level recorded 2026-09-22
build_dataloader in 19 papers main_run.py ran · our draft was wrong no licence file found · pointer only · b57b5bd7c4b8f301 · report fixture: signature dataset:SimpleDataset/0/?, batch_size:int/0/int, shuffle:bool/0/bool, device:str/0/str · returned DataLoader · level recorded 2026-09-22
build_non_iid_by_dirichlet in 5 papers main_run.py ran · our draft was wrong fingerprinted no licence file found · pointer only · b4c1b12e55eb5ab1 · report fixture: signature seed:int/0/int, indices2targets:ndarray/2/int, non_iid_alpha:float/0/float, num_classes:int/0/int, num_indices:int/0/int, n_workers:int/0/int · returned list · level recorded 2026-09-22
classify_label main_run.py ran · our draft was wrong no licence file found · pointer only · 7f1c8cbd622ebc50 · report fixture: signature dataset:list/1/tuple, num_classes:int/0/int · returned list · level recorded 2026-09-22
conv3x3 in 1,376 papers main_run.py ran · our draft was wrong no licence file found · pointer only · 334d6dae5b67e789 · report fixture: signature in_planes:int/0/int, out_planes:int/0/int, stride:int/0/int · returned Conv2d · level recorded 2026-09-22
dataset_on_cuda main_run.py ran · violated contract no licence file found · pointer only · 5709bffb148052d0 · report fixture: signature dataset:MockDataset/0/? · returned bool · level recorded 2026-09-22
get_class_num main_run.py ran; the contract check could not run (RAISES) fingerprinted no licence file found · pointer only · 5071564c5a3a5910 · report fixture: signature class_list:list/1/int · returned tuple · level recorded 2026-09-22
match_meta main_run.py ran · honoured contract no licence file found · pointer only · 9685a8e3bdc388f2 · report fixture: signature gw_syn:list/1/Tensor, gw_real:list/1/Tensor, args:Args/0/? · returned Tensor · level recorded 2026-09-22
move_batch_to_device main_run.py ran · our draft was wrong no licence file found · pointer only · 00adaf9b0e883dc4 · report fixture: signature images:Tensor/2/float, labels:Tensor/1/int, device:str/0/str · returned tuple · level recorded 2026-09-22
rand_brightness in 25 papers
census: 7 implementations from 9 papers, 5 distinct outputs across 2 buckets, one shared input per bucket this sample: bucket 1 of 2, arg 1: rank 4, kind float, dtype float32
main_run.py ran · our draft was wrong no licence file found · pointer only · bbcf3d37a05e74fa · report fixture: signature x:Tensor/4/float, param:ParamConfig/0/? · returned Tensor · level recorded 2026-09-22
rand_contrast in 7 papers
census: 6 implementations from 6 papers, 3 distinct outputs across 2 buckets, one shared input per bucket this sample: bucket 1 of 2, arg 1: rank 4, kind float, dtype float32
main_run.py ran · our draft was wrong no licence file found · pointer only · da0792c30cd6923d · report fixture: signature x:Tensor/4/float, param:Param/0/? · returned Tensor · level recorded 2026-09-22
rand_crop in 6 papers main_run.py ran · our draft was wrong no licence file found · pointer only · ce0a33dfa808c724 · report fixture: signature x:Tensor/4/float, param:Param/0/? · returned Tensor · level recorded 2026-09-22
rand_cutout in 7 papers
census: 6 implementations from 6 papers, 4 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 4, kind float, dtype float32
main_run.py ran · our draft was wrong no licence file found · pointer only · d3cd62c7852afac2 · report fixture: signature x:Tensor/4/float, param:Param/0/? · returned Tensor · level recorded 2026-09-22
rand_flip in 6 papers main_run.py ran · our draft was wrong no licence file found · pointer only · 17a10de2cc4da2e2 · report fixture: signature x:Tensor/4/float, param:ParamConfig/0/? · returned Tensor · level recorded 2026-09-22
rand_rotate in 5 papers main_run.py ran · our draft was wrong no licence file found · pointer only · dffd8500daa6b52b · report fixture: signature x:Tensor/4/float, param:Param/0/? · returned Tensor · level recorded 2026-09-22
rand_saturation in 24 papers
census: 6 implementations from 9 papers, 3 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 4, kind float, dtype float32
main_run.py ran · our draft was wrong no licence file found · pointer only · 0d4958248aaee956 · report fixture: signature x:Tensor/4/float, param:Param/0/? · returned Tensor · level recorded 2026-09-22
rand_scale in 10 papers main_run.py ran · our draft was wrong no licence file found · pointer only · 2cc42f2e0f92442c · report fixture: signature x:Tensor/4/float, param:ParamConfig/0/? · returned Tensor · level recorded 2026-09-22
resnet10 in 13 papers main_run.py ran · our draft was wrong no licence file found · pointer only · 527678683212df5e · report fixture: signature nclasses:int/0/int, nf:int/0/int · returned ResNet · level recorded 2026-09-22
show_clients_data_distribution main_run.py ran · honoured contract no licence file found · pointer only · 359d7476c4dac80c · report fixture: signature dataset:FakeDataset/0/?, clients_indices:list/1/list, num_classes:int/0/int · returned list · level recorded 2026-09-22
FedHPro main_run.py unverified no licence file found · pointer only · 49b7d702febb94e7 · report
Global main_run.py unverified no licence file found · pointer only · 1ea4d216b47f2c00 · report
Local main_run.py unverified no licence file found · pointer only · b958dbfbdd00124a · report
ParamAugment main_run.py unverified no licence file found · pointer only · 65278bf1e0bee215 · report
ResNet in 139 papers main_run.py unverified no licence file found · pointer only · f006f77e8ccb48cb · report
args_parser main_run.py unverified no licence file found · pointer only · 7f3622cff695824d · report
clients_indices main_run.py unverified no licence file found · pointer only · 36ba6f83059427dd · report
match_loss in 9 papers main_run.py unverified no licence file found · pointer only · ffc176d761cbbebf · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for FedHPro (graph method: FedHPro). 36 bricks; individually on a fixture: 27 ran (of which 3 constructed an object rather than computing a result; 7 with no instrument failure: 3 honoured, 1 violated, 3 with no contract checked; 20 where Syntology's instrument failed) · 9 unverified. The assembly has not been run end-to-end.

  1. FedHPro entry · level 0 · unverified · 49b7d702febb94e7
  2. Global model · level 0 · unverified · 1ea4d216b47f2c00
  3. Indices2Dataset helper · level 1 · ran · 7283f303b7677498
  4. Local model · level 0 · unverified · b958dbfbdd00124a
  5. args_parser helper · level 0 · unverified · 7f3622cff695824d
  6. classify_label helper · level 1 · ran · our draft was wrong · 7f1c8cbd622ebc50
  7. clients_indices helper · level 0 · unverified · 36ba6f83059427dd
  8. show_clients_data_distribution helper · level 1 · ran · honoured contract · 359d7476c4dac80c
  9. train_long_tail helper · level 1 · ran · our draft was wrong · f33cdbbef61b88bd
  10. TensorDataset helper · level 1 · ran · ec02bbab57d76432
  11. build_dataloader helper · level 1 · ran · our draft was wrong · b57b5bd7c4b8f301
  12. match_loss loss · level 0 · unverified · ffc176d761cbbebf
  13. match_meta loss · level 1 · ran · honoured contract · 9685a8e3bdc388f2
  14. move_batch_to_device helper · level 1 · ran · our draft was wrong · 00adaf9b0e883dc4
  15. resnet10 helper · level 1 · ran · our draft was wrong · 527678683212df5e
  16. DiffAugment helper · level 1 · ran; the contract check could not run (RAISES) · 655f5003e174acea
  17. get_class_num helper · level 1 · ran; the contract check could not run (RAISES) · 5071564c5a3a5910
  18. ParamAugment helper · level 0 · unverified · 65278bf1e0bee215
  19. build_non_iid_by_dirichlet helper · level 1 · ran · our draft was wrong · b4c1b12e55eb5ab1
  20. partition_balance helper · level 1 · ran; the contract check could not run · 1e2e488b6e0732b4
  21. _get_img_num_per_cls helper · level 1 · ran; the contract check could not run · 01b9dc61784ea4b6
  22. label_indices2indices helper · level 1 · ran · honoured contract · aa07673ccf9afd55
  23. dataset_on_cuda helper · level 1 · ran · violated contract · 5709bffb148052d0
  24. distance_wb helper · level 1 · ran · our draft was wrong · 10e34c46038f259b
  25. BasicBlock helper · level 1 · ran · fb092ad2e962f35d
  26. ResNet helper · level 0 · unverified · f006f77e8ccb48cb
  27. set_seed_DiffAug helper · level 0 · unverified · e11ae486efd933fd
  28. conv3x3 helper · level 1 · ran · our draft was wrong · 334d6dae5b67e789
  29. rand_brightness helper · level 1 · ran · our draft was wrong · bbcf3d37a05e74fa
  30. rand_contrast helper · level 1 · ran · our draft was wrong · da0792c30cd6923d
  31. rand_crop helper · level 1 · ran · our draft was wrong · ce0a33dfa808c724
  32. rand_cutout helper · level 1 · ran · our draft was wrong · d3cd62c7852afac2
  33. rand_flip helper · level 1 · ran · our draft was wrong · 17a10de2cc4da2e2
  34. rand_rotate helper · level 1 · ran · our draft was wrong · dffd8500daa6b52b
  35. rand_saturation helper · level 1 · ran · our draft was wrong · 0d4958248aaee956
  36. rand_scale helper · level 1 · ran · our draft was wrong · 2cc42f2e0f92442c

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2605.13475") returns these assemblies with each brick's role and wiring (how to connect).

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.13475, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections