Pathology vision language models struggle with language variations in diagnoses

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

Computer Vision and Pattern Recognition

Summary

Pathology vision-language models can understand medical images well, but their ability to handle different ways of saying the same diagnosis is not well studied. The authors created PathLang, a test that changes only the words doctors use to describe diagnoses while keeping images the same. This test shows that the models often perform differently depending on how a diagnosis is phrased, even if the images are identical. This suggests better language understanding is needed in these medical AI systems.

What this means in practice

  • For clinical ai developers: Evaluate and improve pathology models for handling diverse diagnostic language to ensure consistent performance across varied clinical reports.
  • For medical software engineers: Incorporate PathLang resources to test robustness of multimodal tools that assist in pathology diagnosis interpretation.

Authors

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 Deng

Abstract

Pathology vision-language models (VLMs) have shown strong visual perception ability, but their robustness in the language domain remains poorly characterized. Existing pathology VLM benchmarks largely rely on canonical closed-set prompts or perturb only generic templates, treating language as a fixed evaluation component rather than a variable axis of model behavior. In clinical practice, however, diagnostic language varies across reports, institutions, and candidate diagnoses. We introduce PathLang, a language-centered and clinically grounded zero-shot benchmark. PathLang holds the underlying slides, ground-truth labels, and image-text evaluation direction fixed while systematically varying only the diagnostic language, so that performance differences reflect how a diagnosis is phrased rather than what is imaged. The language variation follows how pathologists actually rephrase diagnoses (terminology, specificity, and reporting style), and all prompts and candidate pools are validated by six board-certified pathologists. PathLang covers four task families: (1) zero-shot classification with image-text alignment analysis, (2) cross-modal retrieval, (3) paraphrase robustness, including semantic-equivalence paraphrases, length and reporting-style variation, and prompt ensembling, and (4) open-vocabulary diagnosis retrieval over four candidate pools with distinct forms of semantic competition. Across nine VLMs and five public datasets spanning four organs, we find that performance is highly sensitive to clinically equivalent paraphrases, varies substantially across forms of semantic competition, and that image-text alignment quality does not necessarily translate into inter-class separability. We release the prompt corpus, candidate pools, pre-computed text embeddings, and evaluation code at https://anonymous.4open.science/r/PathLang.