Papers › FedHPro: Federated Hyper-Prototype Learning via Gradient Matching
FedHPro: Federated Hyper-Prototype Learning via Gradient Matching
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.
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):
get_harvested_code_for_paper(arxiv_id="2605.13475")get_code(code_sha256="…")with a sample'scode_sha256from the list belowget_citation_path(paper_1="2605.13475", paper_2="…")with another paper's arXiv id or titleget_concepts_for_paper(arxiv_id="2605.13475")
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.
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.
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.
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 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 ec02bbab57d76432 · report
fixture: returned TensorDataset · level recorded 2026-09-22 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 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 7f1c8cbd622ebc50 · report
fixture: signature dataset:list/1/tuple, num_classes:int/0/int · returned list · level recorded 2026-09-22 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 5709bffb148052d0 · report
fixture: signature dataset:MockDataset/0/? · returned bool · level recorded 2026-09-22 5071564c5a3a5910 · report
fixture: signature class_list:list/1/int · returned tuple · level recorded 2026-09-22 9685a8e3bdc388f2 · report
fixture: signature gw_syn:list/1/Tensor, gw_real:list/1/Tensor, args:Args/0/? · returned Tensor · level recorded 2026-09-22 00adaf9b0e883dc4 · report
fixture: signature images:Tensor/2/float, labels:Tensor/1/int, device:str/0/str · returned tuple · level recorded 2026-09-22 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 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 ce0a33dfa808c724 · report
fixture: signature x:Tensor/4/float, param:Param/0/? · returned Tensor · level recorded 2026-09-22 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 17a10de2cc4da2e2 · report
fixture: signature x:Tensor/4/float, param:ParamConfig/0/? · returned Tensor · level recorded 2026-09-22 dffd8500daa6b52b · report
fixture: signature x:Tensor/4/float, param:Param/0/? · returned Tensor · level recorded 2026-09-22 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 2cc42f2e0f92442c · report
fixture: signature x:Tensor/4/float, param:ParamConfig/0/? · returned Tensor · level recorded 2026-09-22 527678683212df5e · report
fixture: signature nclasses:int/0/int, nf:int/0/int · returned ResNet · level recorded 2026-09-22 359d7476c4dac80c · report
fixture: signature dataset:FakeDataset/0/?, clients_indices:list/1/list, num_classes:int/0/int · returned list · level recorded 2026-09-22 65278bf1e0bee215 · report
f006f77e8ccb48cb · report
36ba6f83059427dd · report
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.
- FedHPro entry · level 0 · unverified ·
49b7d702febb94e7 - Global model · level 0 · unverified ·
1ea4d216b47f2c00 - Indices2Dataset helper · level 1 · ran ·
7283f303b7677498 - Local model · level 0 · unverified ·
b958dbfbdd00124a - args_parser helper · level 0 · unverified ·
7f3622cff695824d - classify_label helper · level 1 · ran · our draft was wrong ·
7f1c8cbd622ebc50 - clients_indices helper · level 0 · unverified ·
36ba6f83059427dd - show_clients_data_distribution helper · level 1 · ran · honoured contract ·
359d7476c4dac80c - train_long_tail helper · level 1 · ran · our draft was wrong ·
f33cdbbef61b88bd - TensorDataset helper · level 1 · ran ·
ec02bbab57d76432 - build_dataloader helper · level 1 · ran · our draft was wrong ·
b57b5bd7c4b8f301 - match_loss loss · level 0 · unverified ·
ffc176d761cbbebf - match_meta loss · level 1 · ran · honoured contract ·
9685a8e3bdc388f2 - move_batch_to_device helper · level 1 · ran · our draft was wrong ·
00adaf9b0e883dc4 - resnet10 helper · level 1 · ran · our draft was wrong ·
527678683212df5e - DiffAugment helper · level 1 · ran; the contract check could not run (RAISES) ·
655f5003e174acea - get_class_num helper · level 1 · ran; the contract check could not run (RAISES) ·
5071564c5a3a5910 - ParamAugment helper · level 0 · unverified ·
65278bf1e0bee215 - build_non_iid_by_dirichlet helper · level 1 · ran · our draft was wrong ·
b4c1b12e55eb5ab1 - partition_balance helper · level 1 · ran; the contract check could not run ·
1e2e488b6e0732b4 - _get_img_num_per_cls helper · level 1 · ran; the contract check could not run ·
01b9dc61784ea4b6 - label_indices2indices helper · level 1 · ran · honoured contract ·
aa07673ccf9afd55 - dataset_on_cuda helper · level 1 · ran · violated contract ·
5709bffb148052d0 - distance_wb helper · level 1 · ran · our draft was wrong ·
10e34c46038f259b - BasicBlock helper · level 1 · ran ·
fb092ad2e962f35d - ResNet helper · level 0 · unverified ·
f006f77e8ccb48cb - set_seed_DiffAug helper · level 0 · unverified ·
e11ae486efd933fd - conv3x3 helper · level 1 · ran · our draft was wrong ·
334d6dae5b67e789 - rand_brightness helper · level 1 · ran · our draft was wrong ·
bbcf3d37a05e74fa - rand_contrast helper · level 1 · ran · our draft was wrong ·
da0792c30cd6923d - rand_crop helper · level 1 · ran · our draft was wrong ·
ce0a33dfa808c724 - rand_cutout helper · level 1 · ran · our draft was wrong ·
d3cd62c7852afac2 - rand_flip helper · level 1 · ran · our draft was wrong ·
17a10de2cc4da2e2 - rand_rotate helper · level 1 · ran · our draft was wrong ·
dffd8500daa6b52b - rand_saturation helper · level 1 · ran · our draft was wrong ·
0d4958248aaee956 - 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