Papers › Improving Semi-supervised Federated Learning by Reducing the Gradient Diversity of Models

Improving Semi-supervised Federated Learning by Reducing the Gradient Diversity of Models

26 Aug 2020arXiv:2008.11364archive 2025-07-28

Zhengming Zhang, Yaoqing Yang, Zhewei Yao, Yujun Yan, Joseph E. Gonzalez, Michael W. Mahoney

Federated learning (FL) is a promising way to use the computing power of mobile devices while maintaining the privacy of users. Current work in FL, however, makes the unrealistic assumption that the users have ground-truth labels on their devices, while also assuming that the server has neither data nor labels. In this work, we consider the more realistic scenario where the users have only unlabeled data, while the server has some labeled data, and where the amount of labeled data is smaller than the amount of unlabeled data. We call this learning problem semi-supervised federated learning (SSFL). For SSFL, we demonstrate that a critical issue that affects the test accuracy is the large gradient diversity of the models from different users. Based on this, we investigate several design choices. First, we find that the so-called consistency regularization loss (CRL), which is widely used in semi-supervised learning, performs reasonably well but has large gradient diversity. Second, we find that Batch Normalization (BN) increases gradient diversity. Replacing BN with the recently-proposed Group Normalization (GN) can reduce gradient diversity and improve test accuracy. Third, we show that CRL combined with GN still has a large gradient diversity when the number of users is large. Based on these results, we propose a novel grouping-based model averaging method to replace the FedAvg averaging method. Overall, our grouping-based averaging, combined with GN and CRL, achieves better test accuracy than not just a contemporary paper on SSFL in the same settings (>10\%), but also four supervised FL algorithms.

PaperPDFCodeCode Syntology ran

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

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2008.11364")

Code

Syntology Ran 4 of 11 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · our draft was wrong; 1 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. 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

11 samples harvested; 4 ran; 2 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · our draft was wrong
1ran
7unverified

Licence: 0 of the 11 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 jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning. “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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

accuracy jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/models/base.py official repository ran fingerprinted MIT (permissive) · c7442eb6f91cb5bd · report
compute_conv_output_size jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/models/Semi_net.py official repository ran · honoured contract MIT (permissive) · e71c2a2bc2fc8909 · report
flatten_tensors jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/comm_helpers.py official repository ran · honoured contract MIT (permissive) · de96e9b005b53e0f · report
unflatten_tensors jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/comm_helpers.py official repository ran · our draft was wrong MIT (permissive) · 349c36e737eadfe1 · report
Load_Avgmodel_weights jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/Grad_Diff.py official repository unverified MIT (permissive) · f901f7345452fe78 · report
Load_model_grad_checkpoint jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/Grad_Diff.py official repository unverified MIT (permissive) · 8c55f4031b35b37a · report
accuracy jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/models/resnet9.py official repository unverified MIT (permissive) · 3c7852aeade0ad78 · report
communicate jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/comm_helpers.py official repository unverified MIT (permissive) · 7dbc4e9dd1b3e1a1 · report
conv_bn_relu_pool jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/models/resnet9.py official repository unverified MIT (permissive) · b83c8090ce555da4 · report
get jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/models/cifar.py official repository unverified MIT (permissive) · f8be03d81632009c · report
get_groups jhcknzzm/SSFL-Benchmarking-Semi-supervised-Federated-Learning/Grad_Diff.py official repository unverified MIT (permissive) · 068a61460ff86dc6 · report

Tasks

DiversityFederated Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Batch NormalizationGroup Normalization

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