Abstract: Despite remarkable progress in recent years, vision language models (VLMs) remain prone to overconfidence and hallucinations on tasks such as Visual Question Answering (VQA) and Visual Reasoning. Bayesian methods can potentially improve reliability by helping models selectively predict, that is, models respond only when they are sufficiently confident. Unfortunately, Bayesian methods are often assumed to be costly and ineffective for large models, and so far there exists little evidence to show otherwise, especially for multimodal applications. Here, we show the effectiveness and competitive edge of variational Bayes for selective prediction in VQA for the first time. We build on recent advances in variational methods for deep learning and propose an extension called "Variational VQA". This method improves calibration and yields significant gains for selective prediction on VQA and Visual Reasoning, particularly when the error tolerance is low ($\leq 1\%$). Often, just one posterior sample can yield more reliable answers than those obtained by models trained with AdamW. In addition, we propose a new risk-averse selector that outperforms standard sample averaging by considering the variance of predictions. Overall, we present compelling evidence that variational learning is a viable option to make large VLMs safer and more trustworthy.
Introduction
Modern Vision Language Models (VLMs) are incredibly capable but notoriously overconfident. In tasks like Visual Question Answering (VQA), they often hallucinate—confidently providing wrong answers rather than admitting they are unsure. This lack of self-awareness is a major hurdle for deploying these models in safety-critical areas like medical diagnosis or assistance for the visually impaired.
The core challenge lies in selective prediction: the ability of a model to respond only when its confidence exceeds a certain threshold. While Bayesian methods are the gold standard for uncertainty estimation, they have historically been viewed as too computationally expensive or ineffective for the massive transformer architectures used in modern VLMs. This research introduces Variational VQA (VarVQA), a framework that enables VLMs to "know what they don't know" by learning a distribution over model parameters.
Methodology
Variational VQA integrates the recent IVON optimizer into the training of multimodal models. Unlike standard training (e.g., AdamW) which learns a single fixed value for every parameter, VarVQA builds uncertainty directly into the model weights by learning a probability distribution (mean and variance).
Key components of the framework include:
- Intrinsic Uncertainty: By learning a posterior distribution of weights, the model captures uncertainty without requiring external "head" models.
- The IVON Optimizer: A variational Markov Chain Monte Carlo-like optimizer that matches AdamW in training cost while providing a weight distribution.
- Risk-Averse Selector ($g_{BPA}$): The authors introduce "Beyond Predictive Averaging." While standard methods average predictions across samples, $g_{BPA}$ penalizes high-variance predictions: $g_{BPA}(x) = \text{mean} - \text{standard deviation}$. This creates a safety margin for high-stakes decisions.
Experimental Setup
The approach was evaluated on three major benchmarks:
- VQAv2: The standard benchmark for open-ended visual question answering.
- NLVR2 (Natural Language Visual Reasoning): Requires complex reasoning about pairs of images.
- AdVQA: An adversarial dataset designed to test robustness under distribution shifts.
Key Results and Discussion
VarVQA demonstrates that Bayesian learning is a viable and efficient option for large-scale multimodal transformers. Notably, the method exhibits high sample efficiency; in many cases, just 2–4 samples from VarVQA provided better reliability than 64 samples from traditional Monte Carlo (MC) Dropout models.
Selective Prediction and Calibration
On VQAv2, at a strict 0.5% risk level, VarVQA improved coverage by 7–9% in absolute terms compared to AdamW. On NLVR2, these gains reached 9–14%. Furthermore, VarVQA consistently achieved lower Expected Calibration Error (ECE), often staying below 0.02 on VQAv2, meaning the model's reported confidence closely matched its actual accuracy.
Robustness to Distribution Shift
When tested on mixtures of in-distribution (VQAv2) and out-of-distribution (AdVQA) data, VarVQA maintained its calibration and reliability much better than standard models as the fraction of difficult, adversarial questions increased. This "baked-in" reliability suggests that the variational training process itself leads to better-behaved models, even when using only the learned means without sampling.
Conclusion
Variational VQA provides a path toward safer, more trustworthy VLMs. While the IVON optimizer requires careful hyperparameter tuning (specifically the relationship between learning rate and Hessian initialization), it eliminates the "performance tax" typically associated with Bayesian methods. Future work may focus on "variance propagation" to estimate uncertainty in a single forward pass, further reducing computational overhead and closing the remaining gap in model coverage at very low risk levels.
Summary updated