Rethinking Contrastive Targets in Radiology Language-Image Pretraining

Yunhe Gao, Ashwin Kumar, Jiaming Liu, Chong Wang, Maya Varma, Fuying Wang, Stefania L Moroianu, Louisa Fay, Sergios Gatidis, Akshay S Chaudhari, Curtis Langlotz

TL;DR

When you train a CLIP-style vision–language model on radiology scans and reports, two weird things happen: zero-shot accuracy peaks early and then steadily rots away, and large-batch training completely collapses. The culprit isn't medical jargon or noisy scans, but a structural mismatch: CLIP assumes every unpaired report in a batch is a "negative," even when dozens of patients share the exact same clinical facts (like "lungs are clear"). By simply tweaking the training target so any text asserting true facts about an image counts as a match, the authors rescue large-batch scaling, stop late-training degradation, and boost accuracy across X-rays and 3D CTs.

What Problem Does This Paper Address?

On the open web, CLIP works wonders by pulling an image and its unique caption together while pushing every other caption in the batch away. If you have a photo of a corgi on a surfboard, it’s safe to assume the other 1,023 captions in your batch don't describe that exact scene.

Radiology is different. Every chest X-ray depicts the same basic anatomy (heart, lungs, pleura), and reports bundle together findings from a small, recurring clinical vocabulary. Dozens of unpaired reports in a batch might state "no pleural effusion"—which is completely true for your anchor image! Yet, vanilla CLIP forces the model to treat those compatible reports as pure negatives.

Because of this "paired-identity" assumption, medical CLIP models suffer from two mysterious ailments that don't happen in standard supervised learning:

  1. Rise-then-fall dynamics: At moderate batch sizes ($B=128$), zero-shot accuracy rises, hits a ceiling, and then degrades—even as training loss keeps smoothly dropping.
  2. Large-batch collapse: Crank the batch size up ($B=1024$), which normally supercharges web-scale CLIP, and the medical model fails to learn entirely, hovering near random chance.
Figure 1: Two dynamics of vanilla CLIP. On MIMIC-CXR (A, B) and CLEVR-Radiology (C, D), moderate-batch training shows rise-then-fall evaluation while loss keeps decreasing; large-batch training collapses, with AUC near random and loss near log B. Stars mark peak-AUC checkpoints. The supervised and CLIP losses are not directly comparable in absolute value; we contrast their training trajectories, not their levels.

Methods

First, the authors mathematically decompose vanilla CLIP’s gradient into two competing forces: a semantic signal (which teaches the model actual clinical facts) and a deterministic identity bias (which pressures the model to tell apart clinically identical images/reports).

To fix this without overhauling the model architecture, optimizer, or loss function, they introduce CorLIP (Compatibility-corrected Language-Image Pretraining). Instead of using a strict one-hot identity matrix as the contrastive target, CorLIP uses an offline clinical text parser (evaluating both the 13-label CheXbert and a finer 30-label MedGemma-27B parser) to extract structured facts from reports before training begins.

During training, CorLIP builds a target matrix based on fact compatibility:

  • Sentence-level training: Uses hard entailment—any sentence in the batch whose clinical assertions are true of the anchor image shares positive target probability.
  • Report/Impression-level training: Uses soft partial agreement—if an unpaired report agrees on four out of five asserted findings, it gets partial positive weight rather than being repelled as a negative.

Datasets

  • CLEVR-Radiology (New Benchmark): A clever synthetic dataset built to isolate data structure from medical quirks. Images contain fixed 3D shapes (cubes, spheres, cylinders—standing in for anatomy) with discrete attributes (color, size, material—standing in for clinical states), paired with generated reports. Vanilla CLIP fails in the exact same ways here, proving the bug is structural.
  • Chest X-Ray (CXR): Trained on MIMIC-CXR (60k–120k frontal pairs). Evaluated zero-shot on MIMIC-CXR, out-of-distribution on CheXpert (14 classes) and VinDr (28 classes), and tested for visual localization on MS-CXR phrase grounding.
  • 3D CT: Trained and evaluated on the Merlin 3D abdominal CT dataset (30 findings) to test cross-modality transfer.

Key Insights and Ideas

  • The "Semantic Floor" breeds shortcuts: Why does accuracy drop while loss keeps falling? Once the model learns to score all factually compatible texts equally, the semantic gradient hits zero—reaching a mathematical loss boundary the authors call the semantic floor. To push loss below this floor, the remaining identity bias forces the encoders to memorize non-clinical shortcuts: specific phrasing in text, or hospital border markers and medical tubes in X-rays! On MIMIC-CXR, attention heatmaps literally drift off the heart and onto image borders late in training.
As training pushes past the predicted semantic loss floor, evaluation performance begins to degrade.
  • Batch size amplifies the wrong signal: At initialization, the ratio of unproductive identity-bias energy to useful semantic energy grows linearly with batch size ($O(B)$). At $B=1024$, the model is overwhelmed trying to play "find the exact paired report" among dozens of identical findings before it even knows what a lung is, causing total collapse.
  • Sentences are the right unit of contrast: Full reports bundle too many facts, omissions, and stylistic quirks into a single lossy similarity score. Individual sentences act like atomic clinical assertions, making compatibility unambiguous and keeping training rock-solid up to $B=2048$.

Key Results

  • Halting degradation & boosting scores: On MIMIC-CXR ($B=128$), vanilla CLIP drops 1.7–7.0 AUC points after its peak. Sentence-level CorLIP virtually eliminates this drop (0.0 to 0.2 point delta) and lifts final zero-shot AUC from 66.5 (vanilla sentence) to 81.4 (CorLIP-CB) and 75.8 (CorLIP-MG), beating the supervised baseline (74.8).
  • Unlocking data and batch scaling: Doubling training data from 60k to 120k barely nudges vanilla CLIP’s peak AUC (68.2 $\rightarrow$ 70.6), whereas CorLIP-CB surges to 86.5. Furthermore, CorLIP sentence training is the only tested method that survives up to $B=2048$, turning larger batches into performance gains (peaking at 77.0 AUC at $B=512$).
  • OOD, Grounding, and 3D CT: CorLIP-MG achieves the best out-of-distribution AUC on CheXpert (86.6) and VinDr (87.3), boosts MS-CXR phrase-grounding accuracy from 30.7 to 41.6, and improves 3D CT zero-shot AUC on Merlin from 67.9 (vanilla report) to 79.3.

Limitations and Future Work

Defining "compatibility" requires choosing a clinical schema, which introduces an inherent granularity trade-off. A coarse schema (like merging left and right pleural effusion) over-corrects and blurs clinically distinct details, while an overly fine flat schema shrinks the pool of compatible positives back toward vanilla CLIP's paired identity. Because the current schemas use flat lists of present/absent findings, the authors point toward richer, ontology-driven hierarchical kernels—capturing severity, anatomy, laterality, and change over time—as well as testing CorLIP on downstream report generation and segmentation.

Summary updated

Abstract

CLIP-style contrastive image--text pretraining is widely used in radiology data, where each image is paired with one report and every other report in the batch is treated as a negative. Under this recipe, two failures appear, neither systematically addressed by existing contrastive learning theory: zero-shot evaluation peaks then degrades while training loss keeps decreasing, and training fails to learn at all at large batches. We hypothesize the cause is structural rather than radiology-specific: many unpaired reports share clinical findings with a given image, so CLIP's paired-identity target is systematically biased, not merely noisy. To test this, we construct CLEVR-Radiology, a synthetic testbed that preserves only this overlapping-fact structure and reproduces both failures. With evidence that the structure is sufficient to reproduce the failures, we develop a target-misspecification theory that derives both failures from a single deterministic gradient bias amplified by batch size, and use it to motivate a minimal compatibility-based correction, CorLIP: a text is treated as positive whenever its clinical assertions agree with the image, with no other change to the training pipeline. Beyond benchmark improvements, CorLIP removes the post-peak degradation, makes large-batch training succeed where it previously collapsed, substantially amplifies the gains from more data, and is the only configuration that remains stable up to B=2048. The correction also transfers from chest X-ray to 3D CT modalities.
BibTeX
@inproceedings{gao2026rethinking,
  author = {Yunhe Gao and Ashwin Kumar and Jiaming Liu and Chong Wang and Maya Varma and Fuying Wang and Stefania L Moroianu and Louisa Fay and Sergios Gatidis and Akshay S Chaudhari and Curtis Langlotz},
  title = {{Rethinking Contrastive Targets in Radiology Language-Image Pretraining}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uRbyMugqG7},
}
Figure