SCCL-DT: Semantic-Conflict-Aware Contrastive Learning with Dual-Rule Teacher Distillation for Zero-Shot Chest X-Ray Diagnosis
Organizations: School of Biomedical Engineering, Division of Life Sciences and Medicine, University of Science and Technology of China, Hefei, Anhui, 230026, P.R. China · Suzhou Institute for Advanced Research, University of Science and Technology of China, Suzhou, Jiangsu, 215123, P.R. China
Abstract
Contrastive vision-language pre-training supports zero-shot chest X-ray diagnosis, but standard objectives treat every off-diagonal image-report pair in a batch as a negative. In radiology, recurring findings across patients mean that instance mismatch need not imply semantic incompatibility, creating false-negative supervision that we term a semantic conflict. A training-trace audit shows that pair-observations selected by the online mask used during training are enriched for report-derived finding agreement, although this proxy analysis does not establish clinical equivalence. Fixed thresholds can become miscalibrated as similarity distributions evolve, while soft reweighting leaves residual repulsive gradients. We therefore propose Semantic-Conflict-Aware Contrastive Learning (SCCL), which tracks modality-specific similarity distributions with exponential-moving-average (EMA) statistics, derives adaptive thresholds, and hard-masks flagged candidates before softmax normalization. Inclusive (OR) and consensus (AND) rules define two SCCL teachers, whose bidirectional cross-modal rankings are consolidated through standard distillation into a single deployable student, SCCL-DT. Across five public chest X-ray benchmarks, SCCL-DT achieves a mean zero-shot AUC of , compared with for the strongest evaluated baseline in our comparison. Code will be made publicly available soon.
Figures & tables
| Method | Open-I | PadChest | ChestX-ray14 | CheXpert | ChestXDet10 | Mean |
|---|---|---|---|---|---|---|
| MedCLIP [ 30 ] | 0.551 | 0.508 | 0.564 | 0.744 | 0.571 | 0.588 |
| BiomedCLIP [ 34 ] | 0.577 | 0.513 | 0.639 | 0.677 | 0.630 | 0.607 |
| GLoRIA [ 12 ] | 0.589 | 0.565 | 0.610 | 0.750 | 0.645 | 0.632 |
| BioViL [ 2 ] | 0.702 | 0.655 | 0.729 | 0.789 | 0.708 | 0.717 |
| CheXzero [ 27 ] | 0.726 | 0.648 | 0.712 | 0.889 | 0.640 | 0.723 |
| MedKLIP [ 31 ] | 0.759 | 0.629 | 0.726 | 0.879 | 0.713 | 0.741 |
| Method | Mean | ATE | CALC | CONS | EFF | EMPH | FIB | FX | MASS | NOD | PTX |
|---|---|---|---|---|---|---|---|---|---|---|---|
| GLoRIA [ 12 ] | 0.368 | 0.479 | 0.053 | 0.737 | 0.528 | 0.667 | 0.366 | 0.013 | 0.533 | 0.156 | 0.143 |
| MedKLIP [ 31 ] | 0.481 | 0.625 | 0.132 | 0.837 | 0.675 | 0.734 | 0.305 | 0.224 | 0.733 | 0.312 | 0.229 |
| KAD [ 35 ] | 0.391 | 0.646 | 0.132 | 0.699 | 0.618 | 0.644 | 0.244 | 0.199 | 0.267 | 0.316 | 0.143 |
| CARZero [ 16 ] | 0.543 | 0.604 | 0.184 | 0.824 | 0.782 | 0.846 | 0.561 | 0.184 | 0.700 | 0.286 | 0.457 |
| RadZero (224 px) [ 24 ] | 0.537 | 0.604 | 0.211 | 0.806 | 0.813 | 0.795 | 0.451 | 0.197 | 0.767 | 0.325 | 0.400 |
| SCCL-DT (Ours) | 0.583 | 0.667 | 0.184 | 0.855 | 0.802 | 0.821 | 0.524 | 0.263 | 0.767 | 0.351 | 0.600 |
| Components | PadChest | Cross-data | ||||||
|---|---|---|---|---|---|---|---|---|
| # | OR | AND | KD | AUC | MCC | F1 | ACC | mAUC |
| (a) | 0.810 | 0.156 | 0.143 | 0.991 | 0.836 | |||
| (b) | 0.826 | 0.179 | 0.165 | 0.991 | 0.840 | |||
| (c) | 0.825 | 0.173 | 0.159 | 0.991 | 0.846 | |||
| (d) | 0.823 | 0.178 | 0.162 | 0.991 | 0.846 | |||
| (e) | 0.822 | 0.169 | 0.155 | 0.991 | 0.844 | |||
| Design choice | AUC | MCC | F1 | ACC |
|---|---|---|---|---|
| A. Threshold sensitivity | ||||
| Fixed | 0.807 | 0.147 | 0.130 | 0.991 |
| Fixed | 0.812 | 0.155 | 0.136 | 0.991 |
| Fixed | 0.814 | 0.156 | 0.138 | 0.991 |
| Adaptive | 0.820 | 0.157 | 0.139 | 0.991 |
| Adaptive (def.) | 0.826 | 0.179 | 0.165 | 0.991 |
| Similarity cue | AUC | MCC | F1 | ACC |
|---|---|---|---|---|
| Image only | 0.814 | 0.158 | 0.141 | 0.991 |
| Text only | 0.816 | 0.157 | 0.138 | 0.991 |
| Both (default) | 0.826 | 0.179 | 0.165 | 0.991 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Variant | Decision/sampling parameters | Logit intervention |
|---|---|---|
| Two-tier | , ; , ; ; training-call warm-up | Symmetric mask; i2t uses , t2i uses ; selected cells replaced by |
| Count-matched Random | OR source: , ; training-call warm-up; full upper-triangular pool; exact per-call ; global seed , mask base seed | Same hard replacement; matches only total unordered-pair count, not row/column degree |
| Soft weighting | , ; training-call warm-up; ; std floor ; pre-log clamp | i2t adds , t2i its transpose, between fusion logits and CE |
| All anchors | Pathology-positive anchors | |||
|---|---|---|---|---|
| Pool / agreement | Flagged | Baseline | Lift ( CI) | Capture | ||||
|---|---|---|---|---|---|---|---|---|
| CheXpert / CheXpert | 178,150,296 | 6,613,862 | 3,267,352 | 261,620 | 3.9556% | 1.8340% | 2.1568 (2.1471–2.1664) | 8.0071% |
| NegBio / NegBio | 170,566,834 | 6,323,181 | 3,306,661 | 255,078 | 4.0340% | 1.9386% | 2.0809 (2.0715–2.0902) | 7.7141% |
| CheXpert / NegBio (fixed pool) | 178,150,296 | 6,613,862 | 3,304,696 | 255,801 | 3.8676% | 1.8550% | 2.0850 (2.0755–2.0943) | 7.7405% |
| Epoch window | Batch size | Batches | All observations / lift |
|---|---|---|---|
| 0–1 | 64 | 6,600 | 13,305,600 / |
| 2–5 | 128 | 7,100 | 57,708,800 / |
| 6–10 | 256 | 4,435 | 144,758,400 / |
| 11–15 | 256 | 4,435 | 144,758,400 / |
| 16–20 | 256 | 4,435 | 144,758,400 / |
| Rule | Agreement | Baseline | Lift | Trigger / capture | ||
|---|---|---|---|---|---|---|
| Image | 1,348,802 | 95,719 | 7.0966% | 1.8340% | 3.8694 | 0.7571% / 2.9296% |
| Text | 5,355,304 | 175,084 | 3.2694% | 1.8340% | 1.7826 | 3.0061% / 5.3586% |
| OR | 6,613,862 | 261,620 | 3.9556% | 1.8340% | 2.1568 | 3.7125% / 8.0071% |
| AND | 90,244 | 9,183 | 10.1757% | 1.8340% | 5.5483 | 0.0507% / 0.2811% |
| Metric | Flagged | Eligible | Difference | Ratio |
|---|---|---|---|---|
| Shared any finding | 57.4% | 45.5% | pp | |
| Mean Jaccard | 0.252 | 0.181 |
| Pair pool | Flagged | Baseline | Lift ( CI) | ||
|---|---|---|---|---|---|
| All eligible pairs | 505,289,600 | 27,476,966 | 35.6397% | 10.1071% | 3.5262 (3.5196–3.5329) |
| Exclude pairs where both are No Finding | 444,327,034 | 17,348,162 | 2.0469% | 1.0037% | 2.0394 (2.0313–2.0474) |
| Both samples have No Finding | 215,233,750 | 7,968,418 | 4.4564% | 2.0720% | 2.1508 (2.1422–2.1593) |
| Both pathology-positive; no patient exclusion | 178,166,296 | 6,619,910 | 3.9619% | 1.8344% | 2.1597 (2.1501–2.1693) |
Radiology VLMs
Radiology vision-language models (VLMs) align medical images and text to support grounded diagnosis, reporting, retrieval, and clinical reasoning.
See all 109 papers