Do Pathology Foundation Models Encode Disease Progression? A Pseudotime Analysis of Visual Representations

Pritika Vig, Renchin Wu, William LotterNeurIPS 2026

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.

Figure 1: Overview of trajectory fidelity evaluation. H&E patches representing disease states (here: skin squamous cell carcinoma progression from epidermis through actinic keratosis and carcinoma in situ to invasive SCC) are embedded by a foundation model (Virchow-2). We apply diffusion pseudotime analysis to the embedding space, visualized here via diffusion components (DC1, DC2). Left: patches colored by ground-truth class; Right: the same embeddings colored by inferred pseudotime. Trajectory fidelity (τ, Kendall’s rank correlation) quantifies agreement between pseudotime ordering and ground-truth ordinal class labels.

Here is how the pipeline works:

  1. 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).
  2. 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.
  3. 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$).
Figure 2: Trajectory fidelity across foundation models and disease progressions. Kendall’s τ between diffusion pseudotime and ground-truth class labels for six foundation models across four cancer progressions. All CPath models significantly exceed the null baseline (gray ×, label-shuffled controls). UNI-2 and Virchow-2 show the highest average fidelity, while the natural image baseline (DINOv2) shows the lowest. Exact values reported in Appendix D.
  • 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$.
Figure 5: Model rankings by trajectory fidelity transfer to few-shot classification of held-out diseases. Cross-task generalization using a leave-one-out protocol. For each target disease, we ranked models by mean τ on the remaining cohorts (x-axis) and by 5-shot F1 on the held-out target (y-axis). Diagonal indicates perfect rank preservation. Model rankings transfer reliably across tissue types.

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

Abstract

Vision foundation models trained on discretely sampled images achieve strong performance on classification benchmarks, yet whether their representations encode the continuous processes underlying their training data remains unclear. This question is especially pertinent in computational pathology, where we posit that models whose latent representations implicitly capture ordinal disease progression may better reflect underlying biology, support more robust generalization, and enable quantitative analyses of features associated with disease transitions. Using diffusion pseudotime, a method developed to infer developmental trajectories from single-cell transcriptomics, we probe whether foundation models organize disease states along coherent progression directions in representation space. Across four cancer progressions and six models, we find that all pathology-specific models recover trajectory orderings significantly exceeding null baselines, with pathology vision-only models achieving the highest average fidelities. Model rankings by trajectory fidelity on reference diseases predict few-shot classification performance on held-out diseases ($\rho = 0.91$), and exploratory analysis shows cell-type composition varies along inferred trajectories in patterns consistent with known stromal remodeling. Together, these results suggest that vision foundation models can implicitly learn to represent continuous processes from independent static observations, and that trajectory fidelity provides a complementary measure of representation quality beyond downstream performance. While demonstrated in pathology, this framework could be applied to other domains where continuous processes are observed through static snapshots.
BibTeX
@inproceedings{vig2026do,
  author = {Pritika Vig and Renchin Wu and William Lotter},
  title = {{Do Pathology Foundation Models Encode Disease Progression? A Pseudotime Analysis of Visual Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=dCbetXpnpa},
}
Figure