GPFM
A ViT-L/14 pathology foundation model that turns histopathology tiles into 1024-dimensional features.
Medical imaging · 695 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
- 303.2M
- Operations
- 695
- Framework
- PyTorch
- Recurrent
- No
- Published
- Nature Biomedical Engineering (arXiv 2024)
- Cited by
- 7 (as of 26 October 2026)
- Authors
- Jiabo Ma, Zhengrui Guo, Fengtao Zhou and others
- Source
- GitHub: birkhoffkiki/GPFM
- License
- CC-BY-NC-ND-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
- m16936
- Graph hash
- c01c3d7c36d5cc0ebba3088fdda5393898bfcd8cacac8d4cfe8dbe4e0eb065f8
- Skeleton hash
- 299b6f1885cfc3fea07883235881e5f0682a50de09bb814de7807023861d855d
- Architecture hash
- fb219a4252b02d6af14af89226ddfe0062eb08d7d82d9b362ebfc27a45e68f24
- Diagram SHA-256
- f879a20e82d0acdd7f8d2faa2bea645a61b9bbd1dfdeb9c86913dd1b65f5e8c5
- 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
GPFM, the Generalizable Pathology Foundation Model, extracts general visual features from histopathology image tiles. The network is a ViT-L/14 in the DINOv2 configuration, corresponding to the timm model vit_large_patch14_dinov2.lvd142m. Input tiles are resized to 224×224, and the output is a feature vector of dimension 1024.
The paper's method is a unified knowledge distillation framework with two parts: expert distillation, where the model learns from several existing expert models, and self-distillation, which learns image representations by aligning local and global views. The experts are UNI, Phikon and CONCH, chosen for doing best at classification, report generation and visual question answering respectively. The rest of the pretraining setup is similar to DINOv2, with teacher-student networks, a masked image modeling loss and a self-distillation loss.
The paper says the model was trained on 190 million images extracted from approximately 72,000 publicly available slides covering 34 major tissue types. The authors also built a benchmark of 72 tasks across six clinical task types. On that benchmark the paper reports an average rank of 1.6 for GPFM, with 42 tasks ranked first, against 3.7 for the second-ranked model, UNI.
Key idea. The paper pretrains a pathology foundation model with a unified knowledge distillation framework that combines distillation from multiple expert models with self-distillation.
- gpfm
- generalizable pathology foundation model
- pathology foundation model
- computational pathology
- histopathology
- whole slide image
- unified knowledge distillation
- feature extraction
- vit-l/14
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{ma2025generalizablepathologyfoundationmodel,
title={Towards A Generalizable Pathology Foundation Model via Unified Knowledge Distillation},
author={Jiabo Ma and Zhengrui Guo and Fengtao Zhou and Yihui Wang and Yingxue Xu and Jinbang Li and Fang Yan and Yu Cai and Zhengjie Zhu and Cheng Jin and Yi Lin and Xinrui Jiang and Chenglong Zhao and Danyi Li and Anjia Han and Zhenhui Li and Ronald Cheong Kin Chan and Jiguang Wang and Peng Fei and Kwang-Ting Cheng and Shaoting Zhang and Li Liang and Hao Chen},
year={2025},
eprint={2407.18449},
archivePrefix={arXiv},
primaryClass={eess.IV},
url={https://arxiv.org/abs/2407.18449},
}