Papers › Do not trust what you trust: Miscalibration in Semi-supervised Learning

Do not trust what you trust: Miscalibration in Semi-supervised Learning

22 Mar 2024arXiv:2403.15567archive 2025-07-28

Shambhavi Mishra, Balamurali Murugesan, Ismail Ben Ayed, Marco Pedersoli, Jose Dolz

State-of-the-art semi-supervised learning (SSL) approaches rely on highly confident predictions to serve as pseudo-labels that guide the training on unlabeled samples. An inherent drawback of this strategy stems from the quality of the uncertainty estimates, as pseudo-labels are filtered only based on their degree of uncertainty, regardless of the correctness of their predictions. Thus, assessing and enhancing the uncertainty of network predictions is of paramount importance in the pseudo-labeling process. In this work, we empirically demonstrate that SSL methods based on pseudo-labels are significantly miscalibrated, and formally demonstrate the minimization of the min-entropy, a lower bound of the Shannon entropy, as a potential cause for miscalibration. To alleviate this issue, we integrate a simple penalty term, which enforces the logit distances of the predictions on unlabeled samples to remain low, preventing the network predictions to become overconfident. Comprehensive experiments on a variety of SSL image classification benchmarks demonstrate that the proposed solution systematically improves the calibration performance of relevant SSL models, while also enhancing their discriminative power, being an appealing addition to tackle SSL tasks.

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

Code

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

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

shambhavicodes/miscalibration-ssl officialmentioned in paperpytorchMIT 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

13 samples harvested; 12 ran; 1 honoured the contract we drafted; 1 has 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
4ran · our draft was wrong
7ran
1unverified

Licence: 0 of the 13 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 shambhavicodes/miscalibration-ssl. “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.

array_to_bytes shambhavicodes/miscalibration-ssl/preprocess/preprocess_superb.py official repository ran MIT (permissive) · dc61eede543c56fc · report
average_calibration_error shambhavicodes/miscalibration-ssl/metrics.py official repository ran MIT (permissive) · 518ef932a7896b3d · report
bytes_to_array shambhavicodes/miscalibration-ssl/preprocess/preprocess_superb.py official repository ran MIT (permissive) · b19e0120c50d4fd0 · report
comatch_contrastive_loss shambhavicodes/miscalibration-ssl/semilearn/algorithms/comatch/comatch.py official repository ran · honoured contract MIT (permissive) · 3346c66c873fff6a · report
expected_calibration_error shambhavicodes/miscalibration-ssl/metrics.py official repository ran MIT (permissive) · 2249c8712edfa8ce · report
maximum_calibration_error shambhavicodes/miscalibration-ssl/metrics.py official repository ran MIT (permissive) · 887e7bb16dc8c6b5 · report
param_groups_weight_decay shambhavicodes/miscalibration-ssl/semilearn/nets/utils.py official repository ran · our draft was wrong MIT (permissive) · 88f4962784e09b88 · report
read_TextClassificationDatasets shambhavicodes/miscalibration-ssl/preprocess/preprocess_aclimdb.py official repository ran · our draft was wrong MIT (permissive) · d954c448e1eee8c4 · report
read_aclImdb shambhavicodes/miscalibration-ssl/preprocess/preprocess_aclimdb.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · eed03e5ff5639e09 · report
resize_pos_embed_vit shambhavicodes/miscalibration-ssl/semilearn/nets/utils.py official repository ran MIT (permissive) · 4c0668013863ad3f · report
rotate_img shambhavicodes/miscalibration-ssl/semilearn/algorithms/crmatch/crmatch.py official repository ran fingerprinted MIT (permissive) · 4331f5778c460265 · report
select_data shambhavicodes/miscalibration-ssl/preprocess/preprocess_aclimdb.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 05dda2f18675eb59 · report
load_checkpoint shambhavicodes/miscalibration-ssl/semilearn/nets/utils.py official repository unverified MIT (permissive) · b158ea331635a6c9 · report

Tasks

Image Classificationimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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