Bayesian Data Reweighting Improves Multimodal Retrieval for Knowledge-Based Visual Question Answering

Jingchen Sun, Shaobo Han, Ruiyi Zhang, Naresh Kumar Devulapally, Ming Liu, Yitao Long, Vishnu Suresh Lokhande, Changyou ChenarXiv 2026

TL;DR

Standard contrastive learning for Knowledge-Based Visual Question Answering (KB-VQA) retrievers suffers from the "false negative" problem, where unannotated but highly relevant documents are penalized as negatives. This paper introduces Bayesian Data Reweighting (BDR), a probabilistic framework that treats query-document importance as latent variables to adaptively downweight these false negatives. BDR consistently boosts retrieval and downstream VQA performance across multiple benchmarks with virtually zero computational overhead.

What Problem Does This Paper Address?

Knowledge-Based Visual Question Answering (KB-VQA) tasks require a model to answer questions about an image by fetching evidence from massive external knowledge bases. To do this efficiently, multimodal retrievers are trained using contrastive learning objectives like InfoNCE, which aim to pull matching query-document pairs closer together while pushing all other unmatched documents in a mini-batch away.

However, this "all other documents are negative" assumption fails in open-domain knowledge retrieval. Because external knowledge corpora are dense and weakly annotated, an "unmatched" document in a batch might actually contain highly relevant background information or even the exact answer to the question. Treating these semi-relevant documents as strict negatives introduces noisy gradients, confusing the retriever and degrading its performance.

Figure 1: Examples of false negative reweighting. We select representative FN samples from EVQA to illustrate the false-negative issue in KB-VQA, where unpaired documents may still describe related entities or partially relevant evidence. Unlike standard InfoNCE, which uniformly treats these samples as negatives and pushes them away from the query, our method BDR adaptively infers weights for FN passages, suppressing noisy contrastive signals and making the learning pro- cess more robust.

Methods

To mitigate the impact of false negatives, the authors propose Bayesian Data Reweighting (BDR). Instead of assigning a uniform weight of 1.0 to all negative samples, BDR introduces a latent importance weight ($w_{ik} \ge 0$) for each negative query-document pair.

The core technical challenge is that the standard InfoNCE denominator couples all negative weights together, making direct Bayesian inference mathematically intractable (non-conjugate). The authors elegantly bypass this using a Laplace-transform-based augmentation technique, introducing an auxiliary variable ($u_i$) that factorizes the pseudo-likelihood into a clean, conditionally independent exponential-family form.

This factorization enables closed-form conditional posterior updates via Gibbs sampling. The authors explore two types of priors for the weights:

  1. Gamma Prior: Provides smooth, continuous reweighting based on document similarity.
  2. Bernoulli Prior: Acts as a hard binary gate, completely dropping likely false negatives.

The entire framework is optimized using a Stochastic Approximation Expectation-Maximization (SAEM) algorithm, which alternates between inferring the latent weights and updating the retriever's parameters.

Datasets

The authors evaluated BDR across seven diverse, knowledge-intensive visual question answering datasets bundled in the M2KR benchmark:

  • OKVQA & A-OKVQA (Commonsense reasoning)
  • EVQA (Entity-linked VQA)
  • InfoSeek & KVQA (Fine-grained factual knowledge)
  • WIT (Wikipedia Image-Text)
  • OVEN (Open-domain visual entity recognition)
  • LLaVA (Instruction tuning evaluation)

Key Insights and Ideas

  • Uncertainty Modeling Beats Heuristics: Traditional methods to handle false negatives rely on rigid similarity thresholds or manual filtering rules. BDR treats sample importance probabilistically, allowing the model to naturally express uncertainty about whether a document is truly irrelevant.
  • Continuous Nuance Trumps Binary Selection: The Gamma-prior variant consistently outperformed the Bernoulli-prior variant. This indicates that open-domain documents often possess partial relevance, and smoothly downweighting them is more effective than a hard keep-or-drop decision.
  • Cleaner Embedding Spaces: By suppressing the penalty on false negatives, BDR prevents the model from forcing semantically related concepts apart. This results in a significantly wider, cleaner separation gap between true positives and true negatives in the embedding space.
Figure 2: Distribution of query–passage cosine simi- larities on EVQA. The dashed lines denote the mean of similarities, and the annotated gap measures the positive– negative separation.

Key Results

  • State-of-the-Art Retrieval: BDR achieved the highest average retrieval performance across all seven M2KR datasets, outperforming standard InfoNCE and competitive baselines like Hard Negative Reweighting. For example, on the EVQA dataset using a Qwen2-VL-2B backbone, BDR improved Recall@1 from 28.0% to 35.1%.
  • Better Downstream VQA: When the BDR retriever was paired with frozen large multimodal models (like LLaVA-1.6-13B and Qwen2.5-VL-7B), the higher-quality evidence directly translated into superior answer accuracy, narrowing the gap toward an "Oracle" retriever.
  • Zero-Cost Upgrade: Because the EM updates rely on closed-form, element-wise sampling, the computational overhead is negligible. BDR maintains nearly identical GPU memory usage and training times compared to standard InfoNCE.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Multi-hop Retrieval: BDR is currently designed for single-step retrieval and does not inherently account for complex, multi-hop knowledge gathering.
  • Strict Bayesian Formulation: To keep the math tractable, the posterior is derived from a pseudo-likelihood rather than a fully normalized joint probability distribution.

For future work, the authors plan to test BDR under full open-corpus retrieval settings and explore joint retriever-generator optimization for end-to-end multimodal Retrieval-Augmented Generation (RAG) pipelines.

Summary updated

BibTeX
@misc{sun2026bayesian,
  author = {Jingchen Sun and Shaobo Han and Ruiyi Zhang and Naresh Kumar Devulapally and Ming Liu and Yitao Long and Vishnu Suresh Lokhande and Changyou Chen},
  title = {{Bayesian Data Reweighting Improves Multimodal Retrieval for Knowledge-Based Visual Question Answering}},
  year = {2026},
  eprint = {2608.02907},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.02907},
}
Figure