Comorbidity-Conditioned Calibration for Self-Training on Long-Tailed Chest X-Rays

Self-training is a semi-supervised method in which a model trained on a few labeled images labels a large unlabeled pool, keeps the predictions it trusts, and retrains on them. In multi-label medical imaging it fails in a predictable way. Common findings produce nearly all the confident predictions, so rare findings receive almost no new labels, and errors on those rare findings compound from one round to the next. Current fixes decide whether to trust a predicted label using only that disease's own score, through per-class thresholds or per-class calibration curves. Radiologists reason differently. A faint score for a rare finding is more believable when the findings that usually accompany it are also present, and less believable when they are absent.

We propose to make that reasoning the acceptance rule. Each pseudo-label for disease $c$ is weighted by an estimate of how likely it is to be correct, given both its own score and the model's scores on $c$'s neighbors in a comorbidity graph (a graph whose edges record how often two findings co-occur). This estimate is learned on a held-out slice of gold labels and re-fit at every round. The proposal also takes seriously the main way this can go wrong. Conditioning on companions could teach the model to detect a rare finding only when its usual companions appear, which would entrench a co-occurrence shortcut. For that reason the evaluation is built around atypical cases, where a finding appears without its usual companions.

Core Claim

The weight on a pseudo-label should be its posterior precision, meaning the probability that the label is correct. DiCaP proves this and estimates the probability per class from confidence bins on a held-out labeled split. We claim that for comorbid findings this probability depends strongly on co-finding context. Using the conditional form

$$w_c(x) = \hat P\big(y_c = \tilde y_c \mid s_c(x),\, s_{\mathcal N(c)}(x)\big),$$

where $s_c(x)$ is the model's score for class $c$ on image $x$, $\tilde y_c$ is the hard pseudo-label, and $s_{\mathcal N(c)}(x)$ are the scores of $c$'s top-$k$ comorbidity neighbors, should recover many more correct tail-class pseudo-labels at equal precision than the marginal form. The expected payoff is improved tail-class mean average precision (mAP) on a long-tailed benchmark. The claim is falsifiable in two ways. It fails if context-conditioned weights do no better than DiCaP's marginal weights at the same labeled budget. It is undermined if the gains vanish, or reverse, on atypical cases.

This sits directly on the tension the research file identifies. CAP argues that estimating instance-level label structure brings in false positives, and that per-class thresholds matched to class frequencies are safer. Graph-based work such as FACT and Improving Multi-label Recognition using Class Co-Occurrence Probabilities argues that ignoring co-occurrence discards real signal. Our rule never estimates a label set or a label count for an image, and it never creates a positive label from neighbors alone. Context can only change how much an existing pseudo-label counts. Any harm from context would therefore appear as miscalibration on the held-out split, where it can be measured, instead of as invented labels.

Relation to Prior Work

Two papers supply the method. DiCaP gives the precision-weighting principle and the split of labeled data into a training part and an estimation part. Its calibration treats classes independently, and it was evaluated only on natural images. We condition that calibration on comorbidity context. CAP sets per-class thresholds from class frequencies and also ignores pairwise structure. We keep its thresholds as a baseline and as the outer gate.

Three papers bring co-occurrence into semi-supervised or noisy-label learning, and each uses it differently from us. ECGMatch adds a loss that pushes the batch-level co-occurrence statistics of unlabeled ECGs to match those of the labeled set. It works on five broad categories and does not decide which individual pseudo-labels to accept. CAD uses a co-occurrence matrix to guide a diffusion denoiser over noisy labels. It has no unlabeled pool and no bootstrapping loop. FACT builds a comorbidity graph processed by a graph neural network into a fully supervised classifier and reports better calibration. It has no self-training.

Two papers motivate the regime. CXR-LT 2024 documents a head-to-tail gap of roughly 0.57 mAP versus 0.13 mAP. Self-Training with Improved Regularization for Few-Shot Chest X-Ray Classification shows that noisy-student self-training on five CheXpert classes works but treats those classes independently. Two further papers constrain the design. NVUM shows that report-mined chest X-ray labels are noisy and that subtracting log class priors helps. The self-training survey warns that errors in early rounds compound. Because of this warning, the calibrator is re-fit every round on gold data that is never pseudo-labeled.

Research Program

The loop starts with a teacher trained on the labeled seed. The comorbidity graph is computed once, from seed labels only, as conditional co-occurrence probabilities. The seed itself is split into a training part and an estimation part, with the estimation part stratified so that every tail class has positives.

The calibrator works per class. It is a small regularized logistic model that takes the class's own score and the scores of its $k$ strongest graph neighbors. Its parameters are tied across classes through a class embedding, so that tail classes with few positives can borrow strength from other classes. At each round we fit the calibrator on the estimation part, predict on the unlabeled pool, and keep pseudo-labels that pass a loose per-class gate in the style of CAP. Each kept label is weighted by $w_c$. We then train a perturbed student, using augmentation and mixup in the noisy-student style of the CheXpert self-training paper, and promote the student to teacher. This runs for four rounds.

Two analyses accompany the method. The first measures, round by round, the precision and recall of accepted tail-class pseudo-labels against held-back true labels. This directly shows whether context lets in more correct rare labels and fewer wrong ones. The second is a shortcut diagnostic. We split the test positives of each class into typical cases, where at least one top-$k$ neighbor is present, and atypical cases, where none is. We then track the gap between the two splits across rounds. A widening gap means the method is amplifying co-occurrence bias. If that happens, we test a corrective in which the calibrator's context features are dropped out at random during fitting.

Baselines

The naive reference point is supervised training on the seed alone. It uses the same ResNet-50 backbone, augmentation, and number of epochs as every other method, with log-prior logit adjustment in the style of NVUM. Every self-training gain is measured against this model. A second reference is a fully supervised model trained on all CXR-LT labels. For context, the winning Task 1 team in CXR-LT 2024 reports mAP = 0.281, with roughly 0.57 mAP on head classes and 0.13 on tail classes. That system was much larger, so we treat it as a ceiling-style anchor and not as a head-to-head comparison.

The basic self-training baseline is noisy-student self-training with fixed thresholds and independent sigmoid outputs, following Self-Training with Improved Regularization. That paper reports W-AUC 0.844 and W-PRC 0.684 on the CheXpert five-class setting with 12,500 labeled images, and we reproduce that setting to confirm our implementation.

The strongest competitors are CAP and DiCaP, because they are the existing multi-label pseudo-labeling methods built for imbalance and calibration. The research file has no reported result on any medical benchmark for either: no reported result found on Lacuna for CAP or DiCaP on CXR-LT or CheXpert. The closest reported figure is CAP's 44.82% mAP on NUS-WIDE with 5% labels. We will re-implement both inside the identical loop. They will share the backbone, unlabeled pool, number of rounds, student perturbations, and estimation split, and each method gets the same 20-configuration hyperparameter search scored on validation tail mAP. We also include an ECGMatch-style baseline that adds the co-occurrence alignment loss to CAP.

The decisive ablation is our method with neighbor scores removed from the calibrator, which reduces it to DiCaP with tied parameters across classes. A second ablation replaces the comorbidity neighbors with random classes. This checks whether the benefit comes from clinical structure or simply from extra input features.

Beating the field means three things at once. Tail-class mAP must exceed DiCaP's by more than the spread across three seeds. Head-class mAP must not degrade. The gap between typical and atypical cases must not widen relative to DiCaP.

Why not just…?

Why not just use CAP's class-wise thresholds or DiCaP's marginal calibration? This is the real threat. A score for a tail finding may already be well calibrated on its own, in which case context adds nothing. The context-ablation comparison settles it. If the context-conditioned calibrator does not improve held-out calibration error, or tail mAP, over the marginal version, the core claim is wrong and we will report that.

Why not just train a comorbidity-aware supervised model like FACT on the seed and pseudo-label with it? That approach puts co-occurrence inside the teacher's features, but the selection rule still trusts each score on its own. We will run FACT-style graph refinement as the teacher under DiCaP selection, and also combine it with our rule. If the graph-aware teacher alone matches our method, then the selection rule is redundant.

Why not just add ECGMatch's co-occurrence alignment loss? That loss matches statistics over a batch, so a wrong rare pseudo-label in an image that happens to look typical is not penalized. It also pulls the unlabeled pool toward the seed's co-occurrence pattern, which is exactly the shortcut risk. The atypical-case split will show whether either method suffers from this.

Why not just apply log-prior adjustment and reweighting in the loop? Reweighting helps rare classes, but NVUM shows that naive reweighting amplifies gradients from noisy minority-class labels. We nonetheless include prior adjustment in every arm, including ours, so that any gain we report sits on top of it.

Proposed Experiments

The primary benchmark is CXR-LT 2024, which has 40 labels from MIMIC-CXR. We keep the labels for 5% and 10% of patients and hide the rest of the training set, treating it as the unlabeled pool. Results are reported on the 406-image manually vetted gold-standard set and on the full test set, with mAP for head, medium, and tail classes, expected calibration error, and the typical-versus-atypical gap. We hold out the pool's true labels, which come from radiology reports, solely to audit pseudo-label precision.

The secondary benchmark is CheXpert with 12,500 labeled images. Here the target is to exceed the reported W-PRC of 0.684 using the five classes plus the other observations as context.

A shift test trains on NIH ChestX-ray14 and evaluates on Indiana OpenI and PadChest. Its purpose is to check whether a comorbidity graph estimated on the seed still holds up when the patient population changes. RAD-ChestCT, with 83 labels, is reserved as a follow-up only if the chest X-ray results are positive, given the compute cost of CT volumes.

Three outcomes decide the question. The first is the accepted-pseudo-label precision-recall curve for tail classes, compared with DiCaP at round one. The second is the context ablation's effect on tail mAP. The third is whether the atypical-case gap grows across rounds.