Logit-Level Uncertainty Quantification in Vision-Language Models for Histopathology Image Analysis
Authors: Betul Yurdem, Ferhat Ozgur Catak, Murat Kuzlu, Mehmet Kemal Gullu
Organizations: Department of Electrical and Electronics Engineering, Izmir Bakircay University, 35665 Izmir, Turkey · Department of Electrical Engineering and Computer Science, University of Stavanger, 4021 Stavanger, Norway · Batten College of Engineering and Technology, Old Dominion University, Norfolk, VA 23529, USA
Vision-Language Models (VLMs) with their multimodal capabilities have demonstrated remarkable success in almost all domains, including education, transportation, healthcare, energy, finance, law, and retail. Nevertheless, the utilization of VLMs in healthcare applications raises crucial concerns due to the sensitivity of large-scale medical data and the trustworthiness of these models (reliability, transparency, and security). This study proposes a logit-level uncertainty quantification (UQ) framework for histopathology image analysis using VLMs to deal with these concerns. UQ is evaluated for three VLMs using metrics derived from temperature-controlled output logits. The proposed framework demonstrates a critical separation in uncertainty behavior. While VLMs show high stochastic sensitivity (cosine similarity (CS) <0.71 and <0.84, Jensen-Shannon divergence (JS) <0.57 and <0.38, and Kullback-Leibler divergence (KL) <0.55 and <0.35, respectively for mean values of VILA-M3-8B and LLaVA-Med v1.5), near-maximal temperature impacts (ΔT≈1.00), and displaying abrupt uncertainty transitions, particularly for complex diagnostic prompts. In contrast, the pathology-specific PRISM model maintains near-deterministic behavior (mean CS >0.90, JS <0.10, KL <0.09) and significantly minimal temperature effects across all prompt complexities. These findings emphasize the importance of logit-level uncertainty quantification to evaluate trustworthiness in histopathology applications utilizing VLMs.
Figures & tables
Property
VILA-M3
LLaVA-Med
PRISM
Parameters
8B
7B
0.6B
Domain
General
Biomedical
Pathology
Vision Encoder
CLIP
CLIP
Virchow
Base LLM
Llama-3
Mistral
Custom
KV-Cache
✓
✓
×
Stochastic
✓
✓
Limited
TABLE I : Comparison of Vision-Language Models
Fig. 1 : Diagram with key highlights from the proposed logit-level uncertainty quantification framework.
Fig. 2 : Embedding spaces of the evaluated VLMs and positions of the used histopathological patches.
Fig. 3 : Normalized CS versus temperature for three VLMs across three question complexity levels is shown. Higher values indicate greater consistency between repeated iterations.
Fig. 4 : Normalized JS divergence versus temperature. Lower values indicate minimal uncertainty between repeated iterations.
Fig. 5 : Normalized KL divergence versus temperature. Lower values indicate exceptional stability and highly reproducible probability distributions.
Fig. 6 : Normalized MAE of logits versus temperature. VLMs show monotonic growth with convergence at higher temperatures.
Temperatures
Metric
Question
Model
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
Cosine Similarity
Q1
VILA-M3
0.999
0.968
0.843
0.714
0.600
0.492
0.423
0.367
0.293
0.262
0.223
LLaVA-Med
1.000
0.980
0.937
0.839
0.677
0.562
0.387
0.261
0.192
0.173
0.175
PRISM
0.988
0.992
0.991
0.984
0.967
0.931
0.867
0.759
0.596
0.359
0.029
Q2
VILA-M3
0.999
0.937
0.809
0.596
0.408
0.261
0.176
0.100
0.051
0.026
0.000
LLaVA-Med
1.000
0.910
0.638
0.460
0.357
0.299
0.246
0.201
0.146
0.102
0.034
TABLE II : Summary of Normalized Uncertainty Metrics Across Temperature Range ( T∈[0,1] )
Model
Q
Cosine Similarity
JS Divergence
KL Divergence
MAE
μ
ΔT
μ
ΔT
μ
ΔT
μ
ΔT
VILA-M3
Q1
0.712
0.644
0.188
0.482
0.173
0.330
0.358
0.649
Q2
0.519
0.624
0.495
1.000
0.486
0.906
0.541
0.972
Q3
0.397
0.707
0.572
0.752
0.556
0.821
0.601
0.999
LLaVA-Med
Q1
0.837
0.433
0.018
0.116
0.013
0.090
0.278
0.609
Q2
0.580
1.000
0.321
1.000
0.336
0.899
0.552
0.990
TABLE III: Summary Statistics of Normalized Uncertainty Metrics Across Temperature Range ( T∈[0,1] )
Metric
CS
JS
KL
MAE
Cosine Similarity (CS)
1.000
−0.924
−0.918
−0.963
JS Divergence (JS)
−0.924
1.000
0.997
0.958
KL Divergence (KL)
−0.918
0.997
1.000
0.951
MAE
−0.963
0.958
0.951
1.000
TABLE IV : Pearson Correlation Coefficients Between Normalized Uncertainty Metrics
Safe deployment of clinical vision-language models (VLMs) requires reliable uncertainty estimation (UE): a signal indicating when predictions should be trusted or escalated to a clinician. We test whether current UE methods actually deliver this signal. Benchmarking 8 methods across 12 VLMs on clinical visual question-answering (VQA), we find that UE quality is not an intrinsic property of the UE method: it tracks model accuracy, degrading precisely where the model performance is weakest, and therefore where reliability is most needed. When we stress-test models by hiding the correct option among the multiple-choice answers (NOTA perturbations), accuracy collapses while uncertainty barely changes, leaving models systematically miscalibrated. Yet, we find that uncertainty on the unperturbed input reliably anticipates which predictions will collapse under NOTA, indicating that UE in current VLMs carries diagnostic information about model fragility. Our results position UE as a diagnostic tool for identifying fragile predictions and motivate perturbation-based evaluation as a path toward safe clinical deployment.
Arnisa Fazla, Alberto Testoni, Ameen Abu-Hanna +2
Department of Medical Informatics, Amsterdam University Medical Center, University of Amsterdam, Amsterdam, The Netherlands. · Amsterdam Public Health, Methodology, Amsterdam, The Netherlands. · MaiNLP, Center for Information and Language Processing, LMU Munich, Germany. +1
Vision-Language Models (VLMs) offer significant potential in computational pathology by enabling interpretable image analysis, automated reporting, and scalable decision support. However, their widespread clinical adoption remains limited due to the absence of reliable, automated evaluation metrics capable of identifying subtle failures such as hallucinations. To address this gap, we propose PathGLS, a novel reference-free evaluation framework that assesses pathology VLMs across three dimensions: Grounding (fine-grained visual-text alignment), Logic (entailment graph consistency using Natural Language Inference), and Stability (output variance under adversarial visual-semantic perturbations). PathGLS supports both patch-level and whole-slide image (WSI)-level analysis, yielding a comprehensive trust score. Experiments on Quilt-1M, TCGA, REG2025, PathMMU and TCGA-Sarcoma datasets demonstrate the superiority of PathGLS. Specifically, on the Quilt-1M dataset, PathGLS reveals a steep sensitivity drop of 40.2% for hallucinated reports compared to only 2.1% for BERTScore. Moreover, validation against expert-defined clinical error hierarchies reveals that PathGLS achieves a strong Spearman's rank correlation of ρ=0.71 (p<0.0001), significantly outperforming Large Language Model (LLM)-based approaches (Gemini 3.0 Pro: ρ=0.39, p<0.0001). These results establish PathGLS as a robust reference-free metric. By directly quantifying hallucination rates and domain shift robustness, it serves as a reliable criterion for benchmarking VLMs on private clinical datasets and informing safe deployment. Code can be found at: https://github.com/My13ad/PathGLS
Minbing Chen, Zhu Meng, Fei Su
Beijing University of Posts and Telecommunications
Vision-language models (VLMs) are increasingly deployed in high-stakes settings where reliable uncertainty quantification (UQ) is as important as predictive accuracy. Extended reasoning via chain-of-thought (CoT) prompting or reasoning-trained models has become ubiquitous in modern VLM pipelines, yet its effect on UQ reliability remains poorly understood. Our results show that reasoning tends to degrade the quality of many uncertainty estimates, even when it improves task accuracy. We identify implicit answer conditioning as the primary mechanism: as reasoning traces converge on a conclusion before the final answer is generated, token probabilities increasingly reflect consistency with the model's own reasoning trace rather than uncertainty about correctness. In effect, the model becomes overconfident in its answer. In contrast, agreement-based consistency remains robust and often improves under reasoning, making it a practical choice for uncertainty estimation in reasoning-enabled VLMs.
Robert Welch, Emir Konuk, Kevin Smith
KTH Royal Institute of Technology, Stockholm, Sweden · Science for Life Laboratory, Stockholm, Sweden