To Trust Or Not To Trust Your Vision-Language Model's Prediction

Hao Dong, Moru Liu, Jian Liang, Eleni Chatzi, Olga Fink
5/29/2025
cs.CVcs.AIcs.LG

Official code: EPFL-IMOS/TrustVLM (15 stars, last commit 2025-05-30).

Abstract

Vision-Language Models (VLMs) have demonstrated strong capabilities in aligning visual and textual modalities, enabling a wide range of applications in multimodal understanding and generation. While they excel in zero-shot and transfer learning scenarios, VLMs remain susceptible to misclassification, often yielding confident yet incorrect predictions. This limitation poses a significant risk in safety-critical domains, where erroneous predictions can lead to severe consequences. In this work, we introduce TrustVLM, a training-free framework designed to address the critical challenge of estimating when VLM's predictions can be trusted. Motivated by the observed modality gap in VLMs and the insight that certain concepts are more distinctly represented in the image embedding space, we propose a novel confidence-scoring function that leverages this space to improve misclassification detection. We rigorously evaluate our approach across 17 diverse datasets, employing 4 architectures and 2 VLMs, and demonstrate state-of-the-art performance, with improvements of up to 51.87% in AURC, 9.14% in AUROC, and 32.42% in FPR95 compared to existing baselines. By improving the reliability of the model without requiring retraining, TrustVLM paves the way for safer deployment of VLMs in real-world applications. The code is available at https://github.com/EPFL-IMOS/TrustVLM.

View on arXivView PDF

Code Implementations(1)

EPFL-IMOS/TrustVLMOfficial100%

To Trust Or Not To Trust Your Vision-Language Model's Prediction

151Shell, PythonMay 29, 20251 years ago

Similar Papers

Cite this paper

@article{dong2025trust,
  title  = {To Trust Or Not To Trust Your Vision-Language Model's Prediction},
  author = {Hao Dong and Moru Liu and Jian Liang and Eleni Chatzi and Olga Fink},
  year   = {2025},
  eprint = {2505.23745},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.23745v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.23745.svg)](https://codeofpaper.com/paper/2505.23745)

Discussion