Histopathology tile encoder pairing a CNN stem with a multi-scale Swin Transformer, pretrained on 15.6 million unlabeled H&E patches.
No providers recorded yet. Browse all providers
A gigapixel H&E slide yields thousands of tiles, and tissue is repetitive: the same tumour morphology recurs across hundreds of them. Standard contrastive pretraining ignores that. It treats two augmented crops of one tile as the only positive pair and pushes everything else in the batch away as a negative — including the near-duplicate tiles a pathologist would call the same thing.
CTransPath's answer is semantically-relevant contrastive learning (SRCL). Alongside the usual augmented view, it searches a momentum-updated memory bank for the embeddings most similar to the anchor tile and promotes those to additional positives, so each update aligns a small set of visually related tiles rather than a single crop with itself. The backbone is a hybrid: three convolutional layers produce a local feature map that a multi-scale Swin Transformer then processes with shifted-window self-attention, pairing fine-grained texture with the wider tissue context that windowed attention aggregates.
The model was developed by Xiyue Wang and colleagues at Sichuan University with Tencent AI Lab and published in Medical Image Analysis in 2022. It is one of three checkpoints in the authors' TransPath repository and is routinely confused with the earliest: TransPath, from MICCAI 2021, is a separate BYOL-pretrained model on a smaller corpus, and "TransPath" is the repository and family name rather than a synonym for this model. CTransPath predates the DINOv2-era pathology encoders such as UNI, Virchow and Phikon, and for years was the default open tile encoder in computational pathology.
Pretraining used 15,580,262 unlabeled patches cropped at 1,024 × 1,024 pixels from 32,220 whole-slide images: 29,763 TCGA slides at 20× magnification from 10,953 patients, spanning over 25 anatomic sites and over 32 cancer subtypes, plus 2,457 PAIP slides covering six cancer types. The backbone is Swin-Tiny scale at roughly 27.8 million parameters, taking 224 × 224 inputs and producing 768-dimensional embeddings. SRCL was trained for 100 epochs with AdamW at an initial learning rate of 0.00015, a batch size of 1,024, a contrastive temperature of 0.2, four mined positives per anchor and a five-epoch conventional warmup, taking about 250 hours on 48 Nvidia V100 GPUs.
Evaluation covers five task families across nine public datasets, all disjoint from the pretraining corpora. On patch retrieval the frozen features reach ACC@1 of 0.6505 on TissueNet and 0.6329 on UniToPatho. Linear probing on NCT-CRC-HE gives an F1 of 0.9334 using 1% of the training labels, above the 0.9295 of a fully supervised baseline trained on all of them, rising to 0.9482 at 100%. Feeding the frozen embeddings to a CLAM-SB aggregator gives AUCs of 0.942 on CAMELYON16, 0.973 on TCGA-NSCLC and 0.991 on TCGA-RCC. The predecessor TransPath checkpoint, frozen the same way, reaches an F1 of 0.9008 on NCT-CRC-HE — the cleanest measure of what SRCL and the hybrid backbone added.
CTransPath is used as the tile-embedding front end of whole-slide pipelines: slides are tiled,
each tile is embedded once with the frozen encoder, and a multiple-instance-learning aggregator
is trained on the resulting bags for diagnosis, biomarker or outcome prediction. The same
embeddings support content-based slide retrieval, and the backbone can be dropped into a Faster
R-CNN detector or a U-Net encoder for mitosis detection and gland segmentation. Weights are
distributed as a download linked from the repository and require a patched build of timm
0.5.4, under a GPL-3.0 license the authors qualify as non-commercial academic use.
Independent reuse is the clearest evidence of what this checkpoint became. In this catalog alone it supplies the tile encoder inside CHIEF, the tiling front end of Path2Space, the precomputed features shipped with EAGLE, and one of two encoders behind VERN, and it is a standard comparison point for slide-level aggregators such as COBRA. Later benchmarks put its limits plainly: on multi-cohort clinical tasks it trails the larger self-distillation-trained encoders that followed, an outcome attributed to its smaller pretraining corpus and the contrastive objective. Its distribution is also fragile for something so widely depended on — the weights live behind a file-sharing link with no checksum or version pinning rather than in a registry.
Much of this page is generated or calculated automatically. Flag anything that looks off and we will re-run it.