Papers › FreeMatch: Self-adaptive Thresholding for Semi-supervised Learning

FreeMatch: Self-adaptive Thresholding for Semi-supervised Learning

15 May 2022arXiv:2205.07246archive 2025-07-28

Yidong Wang, Hao Chen, Qiang Heng, Wenxin Hou, Yue Fan, Zhen Wu, Jindong Wang, Marios Savvides, Takahiro Shinozaki, Bhiksha Raj, Bernt Schiele, Xing Xie

Semi-supervised Learning (SSL) has witnessed great success owing to the impressive performances brought by various methods based on pseudo labeling and consistency regularization. However, we argue that existing methods might fail to utilize the unlabeled data more effectively since they either use a pre-defined / fixed threshold or an ad-hoc threshold adjusting scheme, resulting in inferior performance and slow convergence. We first analyze a motivating example to obtain intuitions on the relationship between the desirable threshold and model's learning status. Based on the analysis, we hence propose FreeMatch to adjust the confidence threshold in a self-adaptive manner according to the model's learning status. We further introduce a self-adaptive class fairness regularization penalty to encourage the model for diverse predictions during the early training stage. Extensive experiments indicate the superiority of FreeMatch especially when the labeled data are extremely rare. FreeMatch achieves 5.78%, 13.59%, and 1.28% error rate reduction over the latest state-of-the-art method FlexMatch on CIFAR-10 with 1 label per class, STL-10 with 4 labels per class, and ImageNet with 100 labels per class, respectively. Moreover, FreeMatch can also boost the performance of imbalanced SSL. The codes can be found at https://github.com/microsoft/Semi-supervised-learning.

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="2205.07246")

Code

Syntology Ran 4 of 14 code samples harvested from 5 repositories linked to this paper; 10 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 1 ran with no contract checked.

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

microsoft/semi-supervised-learning officialmentioned in papermentioned on GitHubpytorchMIT report
torchssl/torchssl officialmentioned in papermentioned on GitHubpytorchMIT report
abbaasalif/freematch-improved mentioned on GitHubpytorch report
beandkay/epass mentioned on GitHubpytorch report
shreejalt/freematch-pytorch mentioned on GitHubpytorch report
siyi-wind/STiL mentioned on GitHubpytorchApache-2.0 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

14 samples harvested; 4 ran; 1 honoured the contract we drafted; 10 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.

1ran · honoured contract
1ran · our draft was wrong
1ran · fixture could not drive it
1ran
10unverified

Licence: 2 of the 14 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 5 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.

consistency_loss torchssl/torchssl/models/freematch/freematch.py official repository ran · fixture could not drive it MIT (permissive) · 8d4e503501f8115a · report
entropy_loss microsoft/semi-supervised-learning/semilearn/algorithms/freematch/freematch.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · e4d38b3bf55a8430 · report
replace_inf_to_zero microsoft/semi-supervised-learning/semilearn/algorithms/freematch/freematch.py official repository ran · honoured contract fingerprinted MIT (permissive) · c5976b5c715825f6 · report
FreeMatch torchssl/torchssl/models/freematch/freematch.py official repository unverified MIT (permissive) · 68352b4ace632b5c · report
ConsistencyLoss shreejalt/freematch-pytorch/utils/losses.py community (archive-listed) ran · metamorphic tier: invariant MIT (permissive) · 8837096520e4398d · report
ConsistencyLoss abbaasalif/freematch-improved/utils/losses.py community (archive-listed) unverified no licence file found · pointer only · 26ae35625bab2b43 · report
SelfAdaptiveThresholdLoss abbaasalif/freematch-improved/utils/losses.py community (archive-listed) unverified no licence file found · pointer only · ad8a877057eed809 · report
SelfAdaptiveThresholdLoss shreejalt/freematch-pytorch/utils/losses.py community (archive-listed) unverified MIT (permissive) · a169b5b35ae13821 · report
conv1x1 siyi-wind/STiL/models/resnets.py community (archive-listed) unverified Apache-2.0 (permissive) · 7487c583dca6a842 · report
conv3x3 siyi-wind/STiL/models/resnets.py community (archive-listed) unverified Apache-2.0 (permissive) · c5e915e62a479bd7 · report
convert_to_float siyi-wind/STiL/datasets/ContrastiveImagingAndTabularDataset.py community (archive-listed) unverified Apache-2.0 (permissive) · b45ebdf32841b261 · report
convert_to_ts siyi-wind/STiL/datasets/ContrastiveImagingAndTabularDataset.py community (archive-listed) unverified Apache-2.0 (permissive) · 4e0f862bc1278ba0 · report
convert_to_ts_01 siyi-wind/STiL/datasets/ContrastiveImagingAndTabularDataset.py community (archive-listed) unverified Apache-2.0 (permissive) · 4369fbda3bd2eef3 · report
resnet18 siyi-wind/STiL/models/resnets.py community (archive-listed) unverified Apache-2.0 (permissive) · cec899f733d5acb7 · report

Tasks

FairnessSemi-Supervised Image Classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Semi-Supervised Image Classification CIFAR-10, 250 Labels FreeMatch Percentage error 4.88 #14 of 27 Archive leaderboard report
Semi-Supervised Image Classification CIFAR-10, 40 Labels FreeMatch Percentage error 4.9 #2 of 21 Archive leaderboard report
Semi-Supervised Image Classification CIFAR-100, 2500 Labels FreeMatch Percentage error 26.47 #9 of 16 Archive leaderboard report
Semi-Supervised Image Classification CIFAR-100, 400 Labels FreeMatch Percentage error 37.98 #9 of 21 Archive leaderboard report
Semi-Supervised Image Classification cifar-100, 10000 Labels FreeMatch Percentage error 21.68 #10 of 29 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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