TL;DR
Suppose you shuffled thousands of individual frames from a movie of a blooming flower and fed them into a vision model that has no concept of time. Could the model figure out the exact chronological sequence just from how it organizes those static images in its head? This paper shows that computational pathology foundation models do exactly this for cancer: without any temporal supervision, they implicitly arrange static tissue snapshots along smooth trajectories that mirror real biological disease progression—and the models that do this best also generalize best to unseen diseases.
What Problem Does This Paper Address?
Biology is a continuous movie, but pathology datasets are mostly collections of static snapshots. When a biopsy is stained and digitized into a massive whole-slide image, vision foundation models break it into tiny patches and map them into high-dimensional embedding spaces.
Usually, we test these models with discrete classification benchmarks: Is this patch benign or malignant? That tells us if a model can draw boundaries between buckets, but it misses a deeper geometric question: does the model understand the order of the buckets? A model could easily separate "healthy," "pre-cancer," and "invasive cancer" into three neat clusters while arranging them in a nonsensical triangle rather than a sequential path. Knowing whether models capture true biological progression matters both for trusting them under clinical distribution shifts and for using them to study subtle transitions in how tumors evolve.
Methods
To test for continuous structure, the authors borrow a classic tool from single-cell genomics called Diffusion Pseudotime (DPT) and apply it to visual embeddings for the first time in this context.
Here is how the pipeline works:
- Embed: Pass static tissue patches from different stages of a disease through a frozen foundation model (evaluating five pathology models—UNI-2, Virchow-2, Prov-GigaPath, CONCH, MuSK—plus a natural-image baseline, DINOv2).
- Walk the Manifold: Build a $k$-nearest-neighbor graph over the embeddings using cosine distance. Starting from a "root" patch in the healthiest state, DPT simulates random walks of all lengths across the graph. This measures a multiscale "diffusion distance" that follows curved manifolds much better than straight-line Euclidean distance or PCA.
- Score Fidelity: Each patch gets a continuous "pseudotime" score based on its diffusion distance from the root. The authors then compute trajectory fidelity using Kendall’s rank correlation ($\tau$) between the inferred pseudotime and the known pathological stages ($1$ = perfect biological order, $0$ = random).
Datasets
The authors did not train new models; instead, they evaluated frozen models on progression trajectories constructed from SPIDER (part of the multi-institution, multi-scanner HISTAI collection), which none of the models saw during training. Using expert-annotated $224 \times 224$ patches, they curated four canonical cancer progressions (~2,700 to 4,000 patches per cohort, capped per slide to avoid batch effects):
- Skin Squamous Cell Carcinoma (SCC): Normal epidermis $\rightarrow$ actinic keratosis $\rightarrow$ in situ $\rightarrow$ invasive SCC.
- Colorectal Conventional: Low-grade adenoma $\rightarrow$ high-grade adenoma $\rightarrow$ low-grade adenocarcinoma $\rightarrow$ high-grade adenocarcinoma.
- Colorectal Serrated: Hyperplastic polyp $\rightarrow$ sessile serrated lesion $\rightarrow$ high-grade adenocarcinoma.
- Breast Ductal Carcinoma (BDC): Low-grade DCIS $\rightarrow$ high-grade DCIS $\rightarrow$ invasive carcinoma.
They also used TCGA-KIRC (kidney cancer) in an exploratory check on non-morphological clinical endpoints like stage and survival.
Key Insights and Ideas
- Order is harder than separation—and the models nail it: To prove high $\tau$ wasn't just a mathematical artifact of clean clustering, the authors held pseudotimes fixed and scrambled the ground-truth order of the class labels. Only the true biological sequence consistently sat at the top of the distribution, proving the models arrange clusters in a meaningful directional sequence.
- Vision-only beats Vision-Language here: Purely self-supervised pathology models (like UNI-2 and Virchow-2) captured progression geometry more faithfully and consistently than pathology vision-language models (CONCH, MuSK). Language alignment may compress visual nuances into coarse text-like categories.
- Progression emerges deep in the network: Probing intermediate Vision Transformer layers showed that trajectory fidelity builds steadily with network depth. Interestingly, DINOv2 (trained on natural images) keeps pace in early layers using basic textures, but stalls out deep in the network where domain-specific pathology knowledge takes over.
- Sub-label biological discovery: Using a cell-segmentation tool (HistoPLUS) along the inferred colorectal pseudotime revealed smooth biological waves within coarse diagnostic labels—like fibroblasts dipping as growing glands compress the stroma, then rebounding right as early invasion triggers a desmoplastic reaction.
Key Results
- Recovering Progression: Every pathology foundation model beat random label-shuffled baselines across all cohorts. Vision-only models UNI-2 (mean $\tau = 0.73$) and Virchow-2 (mean $\tau = 0.72$) led the pack, peaking at $\tau = 0.79$ on colorectal serrated progression. DINOv2 trailed everywhere and nearly collapsed on breast cancer ($\tau = 0.22$).
- Manifold Curvature Matters: DPT outperformed simpler ordering baselines across all models, beating cosine distance from the healthy centroid by 14% and 1st-component PCA by 36% on average.
- Predicting Generalization: A model's trajectory fidelity on three reference cancers strongly predicted its 5-shot classification F1 rank on a held-out fourth cancer, achieving a remarkable mean Spearman rank correlation of $\rho = 0.91$.
Limitations and Future Work
- Order $\neq$ Speed: Pseudotime recovers relative topological ordering, not a ticking clock; it cannot tell whether a biological transition took two weeks or ten years.
- Patch-level myopia: Small $224 \times 224$ patches can miss broader tissue context, and ground-truth ordinal labels are still somewhat coarse approximations of messy tumor heterogeneity.
- Correlation vs. Mechanism: High trajectory fidelity shows that embedding geometry aligns with disease progression, not which visual features drive it, nor does it account for errors propagated from external cell-segmentation tools.
- Next steps: Because DPT naturally supports branching math, the authors suggest extending this framework to map diverging evolutionary pathways in tumors, test robustness under harsh stain shifts, and explore other vision domains where continuous processes are captured in static frames.
Summary updated