PathLang: A Language-Centered Benchmark for Vision-Language Models in Computational Pathology

Fanqi Cheng, Kuo Gong, Shangke Liu, Beidi Zhao, Junchao Zhu, Zheyu Zhu, Leiyue Zhao, Fengbei Liu, John Cannon, Gang Wang, Zu-hua Gao, Kenji Ikemura, Yihe Yang, Yaohong Wang, Yuankai Huo, Xiaoxiao Li, Mert R. Sabuncu, Ruining DengarXiv 2026

TL;DR

PathLang is a new benchmark that exposes the "linguistic fragility" of pathology vision-language models (VLMs). By systematically varying diagnostic language while keeping images and labels fixed, the authors demonstrate that even top-performing models often fail when a clinical diagnosis is simply phrased differently, highlighting a major bottleneck for their real-world deployment.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) have shown immense promise in computational pathology, enabling "zero-shot" tasks like diagnosing a slide without specific training on that disease. However, evaluation has traditionally focused on the vision side—testing how models handle different images while using fixed, "canonical" text prompts.

In the real world, pathologists don't use a single fixed vocabulary. Diagnostic language varies across institutions, reporting styles, and levels of specificity (e.g., "metastasis" vs. "a lymph node containing metastatic carcinoma"). If a VLM succeeds under one prompt but fails under a clinically equivalent paraphrase, it is unreliable. PathLang addresses this gap by treating diagnostic language as a controlled experimental variable.

Methods

The authors introduce a language-centered and clinically grounded evaluation framework. Unlike standard benchmarks that vary images, PathLang holds the slides and ground-truth labels fixed while systematically varying the diagnostic text.

The framework, illustrated in Figure 1, consists of four task families:

  1. Zero-shot Classification (T1): Baseline performance using canonical prompts.
  2. Cross-modal Retrieval (T2): Evaluating image-to-text (I2T) and text-to-image (T2I) alignment.
  3. Paraphrase Robustness (T3): Testing stability under synonyms, varying prompt lengths, and different reporting styles.
  4. Open-vocabulary Diagnosis Retrieval (T4): Testing the model's ability to pick the correct diagnosis out of candidate pools that impose different forms of semantic competition (e.g., organ-agnostic vs. cross-organ distractors).
Fig. 1: Overall framework of PathLang. a. We focus on dual-encoder pathology foundation models; b. We use five datasets including WSIs (20×) from four organs and the pathologist validated prompt pool; c. Our evaluation contains four tasks: zero-shot classification, cross-modal retrieval, paraphrase robustness and open vocabulary retrieval. d. We present a variety of results.

To handle Whole Slide Images (WSIs), the authors use a Hybrid Top-K aggregation strategy, where patch-level embeddings are ranked by similarity to the text query and the top performers are averaged to represent the slide.

Datasets

PathLang utilizes five public pathology datasets spanning four organs:

  • PANDA: Prostate (6-class ISUP grading).
  • UniToPatho: Colon (6-class colorectal polyp subtyping).
  • CAMELYON16 & 17: Breast (lymph-node metastasis detection and staging).
  • TCGA-GBMLGG: Brain (binary glioma classification).

The core contribution is the PathLang Prompt Corpus, a set of per-class diagnostic variants (synonyms, short/long/clinical styles) validated by six board-certified pathologists to ensure medical accuracy and clinical plausibility.

Key Insights and Ideas

  • Linguistic Fragility: Models are often "visually strong but linguistically fragile." They inherit competitive visual features from large-scale pretraining but lack robust semantic understanding of clinical language.
  • Alignment $\neq$ Separability: A surprising finding is that high image-text alignment scores do not necessarily translate to better class separation. As shown in Figure 2, some models (like KEEP) show strong alignment but have a "negative similarity gap," meaning they struggle to distinguish between clinically related classes.
  • The "Prompt Sweet Spot": Models exhibit high sensitivity to prompt length and style. Some perform best on short, keyword-like prompts, while others require long, descriptive clinical narratives to succeed.
  • Abstraction is a Hurdle: Models struggle significantly with abstract, organ-agnostic terms (e.g., "high-grade malignancy") compared to organ-specific language, suggesting they rely on "memorized" linguistic manifolds rather than invariant clinical semantics.
Fig. 2: Zero-shot feature space alignment (left) and discriminative capacity (right) across nine pathology VLMs. Blue indicates positive alignment and strong class separability, while red denotes negative values and poor alignment or semantic confusion. Results are reported under the upper-bound aggregation protocol (Section 3.4); per-setting results and rank-stability analysis are in Appendix A.1.1.

Key Results

The study evaluated nine VLMs (including CONCH, PLIP, and KEEP). Key quantitative findings include:

  • Paraphrase Sensitivity: Performance varies wildly under semantic-equivalence paraphrases. For instance, on CAMELYON16, some models' prediction consistency dropped to zero when synonyms were used.
  • Retrieval Gaps: Cross-modal retrieval (I2T/T2I) is consistently weaker than image-to-image (I2I) retrieval, highlighting the "modality gap" in current pathology foundation models.
  • Ensembling Limits: While averaging multiple prompt embeddings (prompt ensembling) can smooth out some instability, it does not eliminate the underlying fragility and can even hurt performance if favorable phrasings are diluted by weaker ones.

Limitations and Future Work

  • Model Scope: The benchmark currently focuses on dual-encoder VLMs and does not yet cover generative pathology assistants (like those based on GPT-4V) or slide-level encoders.
  • Linguistic Scope: While expert-validated, the perturbations are finite. The corpus doesn't capture the full natural distribution of how every pathologist worldwide might write a report.
  • Oracle Aggregation: The main results use an "oracle" setting for patch aggregation (selecting the best K for each model/dataset), which likely overestimates the performance a user would see in a real-world deployment without such tuning.

The authors suggest that future pathology VLMs must be trained on more diverse, real-world clinical text to move beyond narrow linguistic manifolds and achieve true semantic robustness.

Summary updated

BibTeX
@misc{cheng2026pathlang,
  author = {Fanqi Cheng and Kuo Gong and Shangke Liu and Beidi Zhao and Junchao Zhu and Zheyu Zhu and Leiyue Zhao and Fengbei Liu and John Cannon and Gang Wang and Zu-hua Gao and Kenji Ikemura and Yihe Yang and Yaohong Wang and Yuankai Huo and Xiaoxiao Li and Mert R. Sabuncu and Ruining Deng},
  title = {{PathLang: A Language-Centered Benchmark for Vision-Language Models in Computational Pathology}},
  year = {2026},
  eprint = {2610.11329},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.11329},
}
Figure