TL;DR
When doctors face a baffling medical scan, they want to see images of other patients who had the exact same condition—yet AI systems struggle with this because we lack large-scale datasets linking clinically similar scans across different people. By cleverly following the trail of academic citations between medical case reports and using language models to "interview" the texts, the authors built PMC-PaIR: a massive dataset of over 86,000 clinically matched image pairs. Remarkably, the AI pipeline builds this visual dataset without ever looking at the images, creating an unbiased, scalable resource that substantially boosts medical image retrieval.
What Problem Does This Paper Address?
Imagine a radiologist staring at an unusual shadow on a CT scan. Finding historical scans of patients with that exact rare presentation can be the key to cracking a tough diagnosis. While content-based medical image retrieval aims to automate this search, training and testing these systems requires ground-truth data specifying which images from different patients show the same clinical finding.
Published medical case reports in the PubMed Central (PMC) Open Access Subset are a goldmine of rare and atypical presentations. However, existing large-scale PMC datasets (like PMC-15M or MedICaT) only link an image to the caption in its own paper. Meanwhile, existing retrieval benchmarks are either tiny (dozens to hundreds of queries) or restricted to a single organ or scan type (like chest X-rays). Relying on human doctors to manually pair up tens of thousands of scans across the literature is prohibitively expensive.
Methods
To connect similar patients without human labor, the authors follow academic citations: doctors writing up a rare case frequently cite earlier reports of similar patients. However, a citation alone isn't enough—authors also cite papers to contrast differing diseases, or even just to mention how they used ChatGPT to draft the text! Furthermore, a single case report might contain multiple figures showing complications, surgeries, or unrelated conditions.
To untangle this, the authors introduce CHIPA (Citation-guided Hierarchical Image-Pair Annotation), a four-stage pipeline powered by OpenAI language models (gpt-5.4-mini and gpt-5.4-nano) that read only text—never the images:
- Citation-Intent Analysis: Reads titles, abstracts, and citation contexts to figure out why Report A cited Report B.
- Question Generation: Generates comparative yes/no questions across three hierarchical levels: (1) broad modality and organ system, (2) diagnostic category, and (3) specific clinical/imaging findings.
- Question Answering: Answers those questions strictly using the two case descriptions.
- Image-Pair Proposal: Reads the figure captions alongside the Q&A context to match specific radiology, nuclear-medicine, or ophthalmic figures that share the same modality, anatomy, and abnormality.
To prove the dataset's utility, the authors fine-tune BiomedCLIP (a standard biomedical vision–language model) on two tasks: image-only (i2i) retrieval using InfoNCE contrastive loss, and image-plus-text ((i+t)2i) retrieval—where the user supplies a scan plus a short phrase naming the finding—using triplet-ranking losses and mined hard negatives.
Datasets
The paper introduces PMC-PaIR, containing 86,144 positive image pairs (86,893 distinct images) drawn from 56,013 single-patient case reports published through February 2026. Candidate links were sourced from PMC-Patients (combining the 2022 release with a newly regenerated version up to 2026) and filtered to remove diagrams and veterinary reports.
Using regex rules, free-text descriptors are mapped into image-level labels spanning 12 modalities (e.g., CT, MRI, radiography), 20 anatomies, and 40 diagnoses. Crucially, the benchmark splits (80% train, 10% validation, 10% test) are partitioned by connected "article groups" so no image pair or source paper ever leaks across splits. The release also includes 121,831 citation-intent records and clinical Q&As.
Key Insights and Ideas
- Zero-vision curation prevents model bias: Because CHIPA matches figures purely through text and clinical reasoning, the resulting image pairs are completely independent of any vision backbone—making PMC-PaIR a fair, uncontaminated benchmark for evaluating visual models.
- Structured clinical "interviews" beat brute-force reading: Giving an LLM two full XML papers and asking it to match captions directly misses over half the valid pairs. Forcing the model to first establish citation intent and answer hierarchical clinical questions acts as cognitive scaffolding, doubling recall while eliminating false positives.
- Graphs matter when sampling negatives: Because PMC-PaIR only records positive links, unlinked pairs aren't guaranteed to be clinically different. Excluding indirectly linked images (connected via multi-hop citation chains) from acting as negative examples during contrastive training and evaluation prevents penalizing models for finding real, unannotated similarities.
Key Results
- High annotation quality: Two medical experts reviewed 163 random pairs, agreeing that 90.2% matched overall and 95.7% matched in diagnosis (with 0% diagnostic mismatches; Cohen's $\kappa = 0.70$). Image-level labels were 93.4% accurate.
- CHIPA vs. single-step LLM baseline: On 50 sampled case pairs, CHIPA achieved 100% precision (25/25) and 92.6% relative recall (25/27), whereas single-step matching achieved 85.7% precision (12/14) and just 44.4% relative recall (12/27).
- Substantial retrieval gains: Fine-tuning BiomedCLIP on PMC-PaIR improved performance across all 44 tested modality, anatomy, and diagnosis categories. On 8,096 test queries,
i2iHit@10 jumped from 21.47% to 28.31% (median positive rank improved from 65 to 37). For(i+t)2i, Hit@10 leaped from 29.68% to 42.98% (Recall@10 up by 11.09 points; median rank cut from 34 to 15). - Clinical relevance: A board-certified radiologist reviewing the top 5
(i+t)2iresults for 17 cardiovascular CT queries found clinically matching diagnoses in 70.6% of queries.
Limitations and Future Work
- Unlabeled positives & modality constraints: Unlisted pairs are unlabeled rather than true negatives, meaning standard benchmark metrics underestimate true clinical retrieval performance. Additionally, pairs must share an imaging modality, excluding valid cross-modality matches (e.g., matching a CT scan to an MRI of the same tumor).
- Compound and marked-up figures: Published figures often contain multiple sub-panels or burned-in author arrows and letters; users may need compound-figure separation or masking tools. Also, foundation models pretrained on PMC (like BiomedCLIP) may have seen some test images during pretraining, and 68 images are withheld due to licensing/privacy constraints.
- Future directions: The open-source curation pipeline can be continuously rerun as PubMed Central grows. Meanwhile, the 121k clinical Q&A records offer rich supervision for training models to compare clinical cases or distilling the multi-step CHIPA workflow into smaller open-weights models.
Summary updated