Abstract
Vision-Language Models (VLMs), such as CLIP, have already seen widespread applications. Researchers actively engage in further fine-tuning VLMs in safety-critical domains. In these domains, prediction rationality is crucial: the prediction should be correct and based on valid evidence. Yet, for VLMs, the impact of fine-tuning on prediction rationality is seldomly investigated. To study this problem, we proposed two new metrics called Prediction Trustworthiness and Inference Reliability. We conducted extensive experiments on various settings and observed some interesting phenomena. On the one hand, we found that the well-adopted fine-tuning methods led to more correct predictions based on invalid evidence. This potentially undermines the trustworthiness of correct predictions from fine-tuned VLMs. On the other hand, having identified valid evidence of target objects, fine-tuned VLMs were more likely to make correct predictions. Moreover, the findings are also consistent under distributional shifts and across various experimental settings. We hope our research offer fresh insights to VLM fine-tuning.
Introduction
In high-stakes domains like healthcare and autonomous driving, it is not enough for an AI model to just be right; it needs to be right for the right reasons. While fine-tuning Vision-Language Models (VLMs) is standard practice to boost task-specific accuracy, the community has largely ignored how these methods affect prediction rationality—whether the model's correct predictions are grounded in valid visual evidence.
If a medical VLM correctly diagnoses a tumor but bases its decision on a hospital watermark rather than the tissue itself, doctors cannot trust it. This research investigates how mainstream fine-tuning methods impact this rationality, asking whether standard training pipelines teach models to look at the right things or simply how to exploit spurious correlations more effectively.
Methodology and Metrics
To evaluate whether a model is looking at the right evidence, the authors use the Relevant Mass Accuracy (RMA) score, which measures how much of the model's attention heatmap overlaps with the actual target object (the ground truth mask).
Based on this, two novel metrics are proposed:
- Prediction Trustworthiness (PT): The ratio of correct predictions based on valid evidence to all correct predictions. This answers: "If the model gets the answer right, did it actually look at the right thing?"
- Inference Reliability (IR): The percentage of correct predictions given that the model focused on valid evidence. This answers: "If the model looks at the right thing, does it get the answer right?"
The study evaluates four standard paradigms: Zero-Shot (ZS), Linear-Probing (LP), Finetune Like CLIP Pretrain (FLCP), and standard Fine-Tuning (FT). Explanation heatmaps are generated using "Generic Attention Attribution" for transformer models.
Experimental Setup
The models were tested across several datasets:
- In-Distribution: ImageNet-1K, CalTech-101, Stanford-Dogs, and CUB-200-2011. Ground truth masks were derived from bounding box or segmentation annotations.
- Out-of-Distribution (OOD): ImageNet-C was utilized to test performance across various corruption types (e.g., JPEG compression, noise, frost) and severity levels, simulating real-world environmental shifts.
Key Findings
The Fine-Tuning Trade-off
The research reveals a surprising trade-off: fine-tuning improves a model's ability to predict correctly when looking at the right evidence (higher IR), but it also causes the model to make more "correct" predictions based on irrelevant background clues (lower PT).
- Fine-tuning hurts trustworthiness: Standard fine-tuning methods cause models to rely more on spurious correlations than Zero-Shot models. Because standard objectives only penalize incorrect labels, models take the "easiest path" to minimize loss, often focusing on backgrounds.
- Fine-tuning improves reliability: Conversely, when a fine-tuned model does focus on the correct visual evidence, it is significantly more likely to make the correct classification than a zero-shot model.
Questioning the "Standard"
Previous work suggested FLCP should be the default fine-tuning method for CLIP due to its high accuracy. However, this study shows that FLCP significantly degrades prediction trustworthiness by leaning heavily on invalid evidence. These trends remain consistent even under heavy image corruptions in OOD scenarios.
Results Summary
On the CalTech-101 dataset using the ALBEF-ViT-B/16 model, fine-tuning methods (LP, FLCP, FT) improved overall accuracy but dropped Prediction Trustworthiness (PT) by 17.2%, 13.85%, and 27.31% respectively compared to the Zero-Shot baseline. Meanwhile, on ImageNet-1K using CLIP-ViT-B/16, these methods outperformed Zero-Shot in Inference Reliability (IR) by 12.6%, 8.67%, and 16.92%.
Conclusion and Future Work
This study highlights a critical blind spot in current VLM evaluation. While fine-tuning boosts accuracy, it often undermines the rationality of the model's decisions. There is an urgent need for new fine-tuning methods that explicitly optimize for prediction rationality. Developing loss functions that penalize models for relying on invalid evidence will be essential for the safe deployment of VLMs in high-stakes, real-world applications.
Summary updated