Machine learning · 2020

contrastive learning

对比学习

A way to learn image features without labels: two altered views of the same image are pulled together and views of different images are pushed apart. The model learns what makes things alike, then adapts to a medical task with few annotations.

Contrastive learning is one of the main forms of self-supervised learning. Two random augmentations of one image (crops, color jitter, blur) form a positive pair; the other images in the batch are negatives. The InfoNCE loss asks the positive pair to be the most similar among all candidates, which amounts to identifying the matching view among all the images in the batch.

In 2020, SimCLR (Ting Chen, Geoffrey Hinton, and colleagues) and MoCo (Kaiming He and colleagues) made the idea practical. Fine-tuned on just 1% of ImageNet labels, SimCLR reached 85.8% top-5 accuracy. Contrasting images with text instead of with each other gives CLIP.

Medical imaging has few labels and many unlabeled scans, so contrastive pretraining caught on quickly. It needs care: chest films from two different patients can look almost identical and should not necessarily be pushed apart, and color jitter can erase stain differences that matter in pathology.

Sources
  1. Chen T, Kornblith S, Norouzi M, Hinton G. A simple framework for contrastive learning of visual representations. ICML 2020. arXiv:2002.05709. arxiv.org/abs/2002.05709
  2. He K, Fan H, Wu Y, Xie S, Girshick R. Momentum contrast for unsupervised visual representation learning. CVPR 2020. arXiv:1911.05722. arxiv.org/abs/1911.05722

Key works · 19

Landmark2021ICML 2021 (PMLR 139)62,551 citations

Learning Transferable Visual Models From Natural Language Supervision

Alec Radford, Jong Wook Kim … Sandhini Agarwal

CLIP trains separate image and text encoders on 400 million pairs gathered from the internet, increasing the similarity of matching items. It classifies images by comparing them with text descriptions of each class. On ImageNet, the best evaluated CLIP model matched the original ResNet-50 without training on ImageNet labels.

SignificanceUsing class descriptions as the interface made a single pretrained representation reusable for different label sets. BiomedCLIP adopted this training approach for biomedical research figures and captions and provided a domain-specific baseline for retrieval and classification.

Landmark2024Nature Medicine1,750 citations

A visual-language foundation model for computational pathology

Ming Y. Lu, Bowen Chen … Tong Ding

CONCH learned from 1.17 million histopathology image-caption pairs with a joint contrastive and caption-generation objective. The published evaluation used 14 benchmarks spanning classification, segmentation, captioning, and retrieval in both directions. These experiments tested transfer to tasks involving images alone as well as paired image and text.

SignificanceCONCH made pathology-specific image and text features available for tasks such as zero-shot classification and retrieval. The later TITAN study used an updated CONCH tile encoder as input for training at whole-slide scale, extending pathology image-text alignment to complete slides and reports.

Key2020ICML 2020 (PMLR 119)18,214 citations

A Simple Framework for Contrastive Learning of Visual Representations

Ting Chen, Simon Kornblith … Geoffrey Hinton

SimCLR treats two augmented views of an image as a positive pair and other images in the batch as negatives. It applies the contrastive loss after a projection head. Experiments isolate augmentation, nonlinear projection, and batch-size choices and evaluate the resulting features with a linear ImageNet classifier.

SignificanceSimCLR made the effects of basic contrastive pretraining choices measurable in a common experimental setup. BYOL uses it as a reference with negative pairs when testing how well representations can be learned from different views of the same image alone.

Key2020NeurIPS 2020783 citations

Contrastive learning of global and local features for medical image segmentation with limited annotations

Krishna Chaitanya, Ertunc Erdil … Ender Konukoglu

The authors used anatomical similarities between MRI volumes to construct global contrastive examples and added a local contrastive loss for features needed in pixelwise segmentation. Across three MRI datasets, the strategy improved the reported segmentation performance with limited annotations relative to the self-supervised and semi-supervised comparisons.

SignificanceThe paper translated contrastive learning into a framework that learns features needed at individual image locations. A follow-up study retained local contrastive learning and combined it with pseudo-label self-training to exploit unlabeled images during medical segmentation training.

Key2020CVPR 202019,442 citations

Momentum Contrast for Unsupervised Visual Representation Learning

Kaiming He, Haoqi Fan … Ross Girshick

MoCo learns to match representations of two augmented views of an image. A queue stores representations of earlier samples as negatives, while a momentum-updated encoder keeps their representations reasonably consistent. The paper evaluates the pretrained features in classification and in downstream detection and segmentation.

SignificanceThe queue and momentum encoder provided a practical way to maintain a large set of negatives for contrastive image learning. MoCo v3 reused the framework to study training stability in self-supervised vision transformers, making it a baseline across backbone families.

Key2021ICCV 2021882 citations

Big Self-Supervised Models Advance Medical Image Classification

Shekoofeh Azizi, Basil Mustafa … Jonathan Deaton

The authors followed self-supervised pretraining on natural images with another pretraining stage on unlabeled medical images. When multiple images represented the same patient case, their method used these as positive contrastive pairs. On skin images and chest radiographs, the reported classifiers improved on supervised ImageNet pretraining baselines.

SignificanceThe study showed how multiple views of a case could supply a contrastive signal, with evaluation under reduced labels and distribution shift. The later REMEDIS study examined continued self-supervised training on medical data across a broader set of imaging domains.

Key2021IEEE/CVF ICCV 2021907 citations

GLoRIA: A Multimodal Global-Local Representation Learning Framework for Label-Efficient Medical Image Recognition

Shih-Cheng Huang, Liyue Shen … Serena Yeung

GLoRIA learned global alignment between a chest radiograph and its report and local alignment between image regions and report words using attention. The authors tested transfer on retrieval, classification, and segmentation, including settings with few task labels and a zero-shot classification evaluation.

SignificanceGLoRIA made it possible to examine whether words and image regions aligned during report-supervised pretraining, along with whether the resulting representation transferred to recognition tasks. MGCA later retained both local and image-level alignment and added disease-level structure across cases.

Key2022Machine Learning for Healthcare 2022 (PMLR 182)881 citations

Contrastive Learning of Medical Visual Representations from Paired Images and Text

Yuhao Zhang, Hang Jiang … Curtis P. Langlotz

ConVIRT used a bidirectional contrastive objective to pretrain on medical images and their descriptive text. The authors transferred the learned visual encoder to four classification and two zero-shot retrieval tasks, where it generally improved on natural-image pretraining or image-only self-supervision.

SignificanceConVIRT established an early controlled comparison of pretraining with paired clinical text and with visual supervision alone. CheXzero later used it as a baseline when testing if explicitly contrastive report-image representations could support zero-shot, multilabel chest radiograph classification.

Key2022Nature Biomedical Engineering736 citations

Expert-level detection of pathologies from unannotated chest X-ray images via self-supervised learning

Ekin Tiu, Ellie Talius … Pranav Rajpurkar

CheXzero learned jointly from chest radiographs and their reports and used positive and negative text prompts to classify findings without task-specific labels at training time. In an external dataset, it outperformed one fully supervised comparator on three of eight findings.

SignificanceThe study operationalized CLIP-style classification for multilabel imaging findings using positive and negative prompts and external evaluation. Subsequent experiments on zero-shot chest radiograph recognition have used CheXzero as a comparison when testing more detailed disease descriptions and image-text alignment.

Key2022ECCV 2022 (LNCS 13696)756 citations

Making the Most of Text Semantics to Improve Biomedical Vision–Language Processing

Benedikt Boecking, Naoto Usuyama … Stephanie Hyland

BioViL paired a chest radiograph encoder with a text encoder pretrained for radiology reports, retaining a masked language modeling objective during contrastive training. The authors used MS-CXR annotations to evaluate how well phrases could be located in an image and also assessed classification and segmentation.

SignificanceMS-CXR provided a way to test whether a radiology phrase referred to the correct image region. The study also made the design of the report encoder an explicit experimental variable, providing a reference for testing how text semantics affect visual grounding.

Key2022EMNLP 20221,441 citations

MedCLIP: Contrastive Learning from Unpaired Medical Images and Text

Zifeng Wang, Zhenbang Wu … Jimeng Sun

MedCLIP decoupled images from their original reports and used medically informed semantic matching to identify combinations that should be close in the representation space. This addressed false negatives when two patients shared a finding. The study reported gains on classification and retrieval benchmarks.

SignificanceMedCLIP made repeated medical findings usable as training information even across original image-report pair boundaries. Later work such as CARZero used it as a reference for zero-shot chest radiograph classification when evaluating alternative ways to align images with text.

Key2022NeurIPS 2022368 citations

Multi-Granularity Cross-Modal Alignment for Generalized Medical Visual Representation Learning

Fuying Wang, Yuyin Zhou … Lequan Yu

MGCA learned from chest radiographs and reports at three levels, aligning local image and text tokens, whole images and reports, and shared disease semantics across examples. The authors tested the features on public classification, detection, and segmentation tasks under limited annotation.

SignificanceMGCA made shared disease patterns an explicit pretraining signal alongside image-report pairing and local alignment. Later experiments in CARZero included MGCA in a multi-dataset zero-shot classification comparison, giving a direct reference for studies of alternative alignment methods.

Key2022Medical Image Analysis1,058 citations

Transformer-based unsupervised contrastive learning for histopathological image classification

Xiyue Wang, Sen Yang … Xiao Han

CTransPath combined convolution with a transformer and pretrained on unlabeled histology tiles, treating visually similar tiles as additional positive examples in contrastive learning. The authors evaluated feature transfer across nine public datasets in retrieval, classification, weakly supervised slide prediction, mitosis detection, and gland segmentation.

SignificanceCTransPath gave downstream methods a reusable pathology-specific tile encoder, providing a concrete alternative to features learned from natural images. UNI used CTransPath directly as a reference encoder when comparing transfer across classification, segmentation, and other pathology tasks.

Key2023CVPR 20232,288 citations

ImageBind One Embedding Space to Bind Them All

Rohit Girdhar, Alaaeldin El-Nouby … Ishan Misra

ImageBind uses images as anchors to train a shared embedding space for images, text, audio, depth, thermal images, and inertial sensor data. The study directly evaluated text-to-audio retrieval using the resulting embeddings, although training did not use directly paired text and audio examples.

SignificanceThe experiment showed how a shared space can be trained without collecting paired examples for every combination of modalities. Cross-modal retrieval tested the indirect alignment explicitly, making the paper a reference for using an anchor modality to extend a representation.

Key2025NEJM AI553 citations

A Multimodal Biomedical Foundation Model Trained from Fifteen Million Image–Text Pairs

Sheng Zhang, Yanbo Xu … Robert Tinn

The authors collected about 15 million biomedical figures and captions from about 4.4 million articles in PubMed Central and trained image and text encoders on the resulting corpus. They evaluated BiomedCLIP on image–text retrieval, image classification, and visual question answering.

SignificanceScientific figures and captions supplied a large source of biomedical supervision, and the team released pretrained models. The study provides a benchmark comparison between general and biomedical pretraining across multiple tasks, with the training distribution defined by scientific publications.

Key2026Nature Biomedical Engineering424 citations

Generalist foundation models from a multimodal dataset for 3D computed tomography

Ibrahim Ethem Hamamci, Sezgin Er … Sevval Nil Esirgun

CT-RATE paired 25,692 noncontrast chest CT volumes from 21,304 patients with their radiology reports. The authors used it to train the CT-CLIP contrastive model and evaluated abnormality classification and case retrieval. They then connected the vision encoder to a language model for scan-based question answering.

SignificanceThe work made paired volumes and reports available for studying representation learning at whole-scan scale. It also provided separate experiments for classification, retrieval, and question answering, allowing subsequent work to test how much a shared CT encoder contributes to each task.

Key2026Nature273 citations

Merlin: a computed tomography vision–language foundation model and dataset

Louis Blankemeier, Ashwin Kumar … Dave Van Veen

Merlin learned a volumetric representation from 15,331 abdominal CT examinations, their radiology reports, and diagnosis codes. Tasks included retrieving the findings or impression section of a report from a CT volume, classifying imaging findings, and segmentation after adaptation. The external evaluation covered 44,098 exams in total from three sites and two public datasets, with different sample sizes by task.

SignificanceThe study combined routinely recorded clinical information with full 3D scans for pretraining and evaluated transfer across several independent sources. The reported task-level results give later abdominal CT models a reference for assessing how three-dimensional representations transfer.

Notable2022Journal of medical imaging139 citations

Contrastive self-supervised learning from 100 million medical images with optional supervision

Florin C. Ghesu, Bogdan Georgescu … Pragnesh Kumar Patel

The researchers combined contrastive learning and online feature clustering to pretrain on more than 105 million images across radiography, CT, MRI, and ultrasound. They evaluated the learned features in downstream supervised and hybrid settings, reporting gains in accuracy or convergence on tasks including chest radiograph abnormalities, head CT hemorrhage, and MR lesion detection.

SignificanceThis study documented contrastive pretraining at a scale far larger than early single-organ restoration experiments. Its supervised and hybrid comparisons showed how the same learning framework could be evaluated across modalities and provided an empirical reference for scaling medical-domain pretraining.

Notable2026Nature Communications15 citations

FineST: contrastive learning integrates histology and spatial transcriptomics for nuclei-resolved ligand-receptor analysis

Lingyu Li, Tianjie Wang … Yuanhua Huang

FineST aligned histology and spatial transcriptomics with contrastive learning and used locations of segmented nuclei to estimate expression on a finer grid. The study evaluated the method with colorectal cancer Visium HD and breast cancer Xenium data and used the estimates for spatial ligand-receptor analysis.

SignificanceFineST connected morphology-based nuclear localization with spatial expression estimates in the same analysis framework. Its use of two spatial assay platforms provided reference measurements for evaluating the inferred signal and a concrete example of how such estimates can be used to investigate cell-cell communication.