Papers › Model-Contrastive Federated Learning

Model-Contrastive Federated Learning

30 Mar 2021CVPR 2021 1arXiv:2103.16257archive 2025-07-28

Qinbin Li, Bingsheng He, Dawn Song

Federated learning enables multiple parties to collaboratively train a machine learning model without communicating their local data. A key challenge in federated learning is to handle the heterogeneity of local data distribution across parties. Although many studies have been proposed to address this challenge, we find that they fail to achieve high performance in image datasets with deep learning models. In this paper, we propose MOON: model-contrastive federated learning. MOON is a simple and effective federated learning framework. The key idea of MOON is to utilize the similarity between model representations to correct the local training of individual parties, i.e., conducting contrastive learning in model-level. Our extensive experiments show that MOON significantly outperforms the other state-of-the-art federated learning algorithms on various image classification tasks.

PaperPDFConference PDFCodeCode 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="2103.16257")

Code

Syntology Ran 2 of 9 code samples harvested from 2 repositories linked to this paper; 7 have no recorded run. Of those that ran: 2 ran · our draft was wrong.

By repository: named in the paper: 2 samples from 1 repository, 2 ran; community (archive-listed): 7 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

adap/flower officialtf report
QinbinLi/MOON mentioned in papermentioned on GitHubpytorchMIT report
KarhouTam/FL-bench mentioned on GitHubpytorchGPL-3.0 report
Koukyosyumei/AIJack mentioned on GitHubpytorch report
yjlee22/cyclicaggregation mentioned 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

9 samples harvested; 2 ran; 0 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 · our draft was wrong
7unverified

Licence: 0 of the 9 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

conv1x1 QinbinLi/MOON/resnetcifar.py named in the paper ran · our draft was wrong MIT (permissive) · d9def42110729a85 · report
conv3x3 QinbinLi/MOON/resnetcifar.py named in the paper ran · our draft was wrong MIT (permissive) · 160bb14bd76201b4 · report
csv_reader yjlee22/cyclicaggregation/exp0.py community (archive-listed) unverified MIT (permissive) · 17038838dfc15bda · report
csv_reader yjlee22/cyclicaggregation/exp2.py community (archive-listed) unverified MIT (permissive) · 19ab64bb591f0a02 · report
load_data yjlee22/cyclicaggregation/utils/dataset.py community (archive-listed) unverified MIT (permissive) · ac7a4bfb5211f401 · report
noniid yjlee22/cyclicaggregation/utils/sampling.py community (archive-listed) unverified MIT (permissive) · 9db1d39396c6173b · report
restricted_softmax yjlee22/cyclicaggregation/src/update.py community (archive-listed) unverified MIT (permissive) · cef7a737bbb9e0c3 · report
server_opt yjlee22/cyclicaggregation/src/aggregation.py community (archive-listed) unverified MIT (permissive) · 2bea7f2b80b97b55 · report
tabulate_events yjlee22/cyclicaggregation/tb2csv.py community (archive-listed) unverified MIT (permissive) · 9e54cc90c5f2698e · report

Tasks

Contrastive LearningFederated LearningImage Classificationimage-classificationmodel

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

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