PathoDuet
A ViT pathology foundation model pretrained with a pretext token for H&E images and transferred to IHC stains.
Medical imaging · 351 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Medical imaging
- Parameters
- 85.8M
- Operations
- 351
- Framework
- PyTorch
- Recurrent
- No
- Published
- Medical Image Analysis (arXiv 2023)
- Cited by
- 62 (as of 27 October 2026)
- Authors
- Shengyi Hua, Fang Yan, Tianle Shen and others
- Source
- GitHub: openmedlab/PathoDuet
- License
- CC-BY-NC-4.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19280
- Graph hash
- 4a7676c32eed12b35d213341161ca75e012bf11aa8b35f68f208c11b2e1b1c27
- Skeleton hash
- 67a61aa2c018dd742281087a2ce83de42095ff54d6129f1fdba00d2c871ae5e9
- Architecture hash
- a92fbc2f710c68337e3fdd38cce6ba353480b4f3ae7bbb542d564a269006946c
- Diagram SHA-256
- 2f7c9b18a7ff341b4d49eba073da46e562d7c0d7eda9cbb65c430891033b2b04
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
PathoDuet is a series of pretrained models on histopathological images and a self-supervised learning framework for histopathology. The models cover both H&E and IHC stained images. The framework features a pretext token and task raisers that explicitly use relations between images, such as multiple magnifications and stains.
The basic framework is based on MoCo v3, a contrastive learning method. A pretext token is concatenated with the mini-patch embeddings before they are fed into the ViT. In cross-scale positioning, a patch is the pretext token and its surrounding region is the main input. A positioner produces positioning weights over the mini-patches of the region, and the weights extract global features. The global-view and local-view features of the patch are pulled together to strengthen the H&E model. In cross-stain transferring, an IHC reference is the pretext token and its paired H&E patch is the main input. A transferer replaces the mean and standard error of the H&E features with those of the IHC reference. The pseudo and real features are pulled together to obtain an IHC model on the basis of the existing H&E model.
The paper describes its model as an 11K-slide-trained ViT-Base. When a network takes only one kind of input, learnable parameters hold the place of the pretext token, so the models can be used much like a normal ViT. The authors do not use a normalize function in data augmentation, citing the gap between pathological images and natural images.
Key idea. PathoDuet uses two pretext tasks, cross-scale positioning and cross-stain transferring, to pretrain a model on H&E images and transfer it to IHC images.
- PathoDuet
- pathology foundation model
- histopathology
- H&E
- IHC
- self-supervised learning
- pretext token
- cross-scale positioning
- cross-stain transferring
- whole slide image
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{hua2024pathoduetfoundationmodelspathological,
title={PathoDuet: Foundation Models for Pathological Slide Analysis of H&E and IHC Stains},
author={Shengyi Hua and Fang Yan and Tianle Shen and Lei Ma and Xiaofan Zhang},
year={2024},
eprint={2312.09894},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2312.09894},
}