Learning When Retrieval Will Hurt a Vision-Language Model

Vision-language models describe images fluently but often invent objects, attributes, or facts that are not there. A natural fix, borrowed from text-only systems, is to retrieve outside documents only when the model seems unsure. That fix assumes retrieval helps whenever the model is unsure. It often does not, for two reasons. First, many multimodal errors are perception errors: the model misread the image. No encyclopedia passage repairs that. Second, retrieved text is noisy, and these models are easily pulled off course by plausible but irrelevant context. A gate that only measures uncertainty will spend retrieval calls where they cannot help, and sometimes on cases where they make the answer worse.

We propose to train a small probe on the model's internal activations. Given an image and a question, the probe predicts which of three actions will most likely yield a correct answer: answer directly, retrieve external text, or look again at the image through randomly transformed copies. The training labels come from deliberately corrupted retrieval contexts. For each training example we run the model under clean, distracting, and subtly wrong retrieved passages, and record whether retrieval helped or hurt. The probe therefore learns how much retrieval is worth under realistic noise, not just how confident the model is.

Core Claim

Uncertainty answers "is this answer likely wrong?" It does not answer "will retrieval fix it, or will it make things worse?" We claim the second question can be learned from synthetic counterfactual labels, meaning labels obtained by actually running the model with and without each kind of help. We further claim that a gate trained this way beats uncertainty-threshold gates on accuracy per unit of compute. The gain should come specifically from two groups of cases: cases the model already gets right that retrieval would spoil, and perception errors that retrieval cannot reach.

The research file's section on existing work connecting the directions is empty, so we cannot rule out unindexed overlap. Among the papers in the file, the closest is Probing-RAG. It attaches a 5MB feed-forward probe to intermediate layers of a text model to decide whether to retrieve. Two things separate this proposal from it. Probing-RAG is text-only and binary (retrieve or not). Its labels also reflect whether retrieval helps under the system's ordinary retriever, not under deliberately varied context quality. Our labels are built by injecting noise into the context, and our action space includes a non-retrieval repair for perception failures.

How Prior Work Shapes the Design

Several papers motivate the gap. Self-Knowledge Guided Retrieval Augmentation splits queries into those where retrieval helps and those where it degrades output. It shows that respecting this split beats full retrieval by 2.91% on InstructGPT. It also shows that simply asking the model "do you know this?" is the weakest gate. We adopt that help-versus-harm framing and move it to images. POPE shows that object hallucination is driven by co-occurrence priors in the language model. Why LVLMs Are More Prone to Hallucinations in Longer Responses shows that attention drifts from image tokens toward previously generated text. Together these suggest that injecting more text is risky precisely for a model that is already under-using the image.

The text-side distraction literature also motivates the design. Distraction-aware Answer Selection shows that zero-shot readers collapse under irrelevant documents. Ext2Gen shows the same for generators facing distractor chunks. Both treat distraction as something to absorb after retrieval. We instead try to predict it before retrieval.

The methods we reuse come from three places. SHARP finds that faithful and hallucinated hidden states in these models are linearly separable, peaking at layers 10–15. That justifies a cheap linear or small feed-forward probe at those layers. Hal-Eval uses GPT-4 to inject object, attribute, relation, and event errors into true captions. We reuse that injection recipe to manufacture the subtly wrong retrieved passages. RITUAL feeds randomly flipped, rotated, color-jittered, or cropped copies of the image alongside the original. It raises LLaVA-1.5's POPE accuracy from 84.13% to 88.87%, and we use it as the "look again" action.

One paper constrains the design. Can Humans Dream of Electric Sheep? finds that human-written and model-generated hallucinations differ in structure. Model-generated errors cascade, while human errors tend to be single spans. A probe trained on synthetic noise may therefore not transfer to real retrieval noise, and our evaluation must use real retrievers, not only synthetic contexts.

Research Program

The work is built on LLaVA-1.5, LLaVA-Next, Qwen2VL-2B, and InternVL2-8B, the models used in the cited hallucination papers.

For each training pair of an image and a question, we record the model's answer under five conditions. The first is no help. The second is the passage returned by a real text retriever. The third is a gold-relevant passage. The fourth is a topical distractor. The fifth is a Hal-Eval-style corrupted passage that names the right entity but injects one wrong attribute or relation. We additionally record the answer under RITUAL-style re-viewing.

From these runs we derive three per-example targets. The first is whether the direct answer is correct. The second is the expected correctness under real retrieval. The third, which we call susceptibility, is the accuracy drop between the gold and corrupted passages. Susceptibility is the ingredient that pure uncertainty lacks.

A probe on mid-layer activations, computed from a single forward pass before any answer is generated, predicts all three targets plus the gain from re-viewing. The gate then picks the action with the highest predicted correctness minus a cost penalty $\lambda c(a)$. Here $c(a)$ is the extra forward passes or retrieval calls that action $a$ requires, and $\lambda$ is swept to trace an accuracy-versus-compute curve.

The analysis asks three questions. Where on the curve does the counterfactual-trained gate dominate? How much of the gain comes from refusing harmful retrieval versus routing perception errors to re-viewing? Does susceptibility predicted from synthetic corruptions correlate with actual harm under a real retriever?

Baselines

The naive reference points are never retrieving and always retrieving, both using the same retriever and the same prompt. Always-retrieve also gives a direct measure of how often retrieval harms answers that were correct, which is the quantity our premise depends on.

The strongest uncertainty-only competitor is VL-Uncertainty, thresholded to trigger retrieval. It perturbs the image and question, clusters the answers by meaning, and treats high entropy as a sign of hallucination. On MM-Vet it reports detection-accuracy gains of +10.09% on InternVL2-8B and +9.17% on Qwen2VL-2B over GAVIE and semantic entropy. It is the best detector in the file. However, it needs multiple perturbed forward passes plus an auxiliary model, so we charge that cost in the compute axis.

The strongest probe-based competitor is a Probing-RAG-style probe trained only on direct-answer correctness, at the same layer and with the same parameter count. In text it reached 35.8% average accuracy on Gemma-2B against 27.4% for single-step retrieval, while skipping retrieval 57.46% of the time. That number is not comparable to multimodal settings. We found no reported result on Lacuna for uncertainty-gated retrieval in vision-language models on POPE, MM-Vet, ScienceQA, or MMMU.

We also include a SHARP-style linear hallucination probe used as a gate, and RITUAL applied to every query.

The key ablations remove susceptibility training while keeping the gold-versus-none labels, and collapse the three actions to two (dropping re-viewing). All gates share the same training images and the same hyperparameter search budget. Each is tuned on a held-out split to its best operating point.

Beating the baselines means two things. Our gate's accuracy-versus-compute curve must lie above the curves of VL-Uncertainty gating and the correctness-only probe, at matched average cost. In addition, its rate of turning correct answers into wrong ones must be significantly lower than always-retrieve.

Why not just…?

Why not just threshold an uncertainty score? Uncertainty flags likely errors but cannot tell a knowledge gap from a misread image. The POPE analysis attributes object hallucination to language priors, which retrieval does not touch. If an uncertainty threshold matches our gate on the full curve, the three-action and susceptibility components are unnecessary, and our comparison against VL-Uncertainty gating will show it directly.

Why not always retrieve and make the reader robust to noise? This is a real threat. DAS-style abstention prompts and Ext2Gen-style evidence extraction show large gains in text, for example 0.557 versus 0.473 for Ext2Gen on Llama3.1-8b. We will run always-retrieve with a DAS-style abstention instruction as an extra baseline. If its harm rate is near zero and its cost is acceptable, gating is not worth it. Our method then reduces to a compute-saving device, and we would report it as such.

Why not just train a correctness probe, as Probing-RAG does? If retrieval almost always helps when the model is wrong and never hurts when it is right, correctness labels and counterfactual labels coincide. The susceptibility ablation tests exactly this. We will also report the fraction of training examples where the two labels disagree. If that fraction is tiny, we will drop the counterfactual labeling.

Proposed Experiments and Decisive Checks

Knowledge-dependent evaluation uses ScienceQA, MMMU, and MM-Vet, with LLaVA-Bench as additional open-ended evaluation. Perception-dependent evaluation uses POPE (random, popular, and adversarial splits), MME perception, and CHAIR. CHAIR results are reported with care, since the POPE paper shows CHAIR varies strongly with the prompt template. Corrupted training passages draw on HaloQuest images and Hal-Data-style injection. We will test transfer to the human-written errors in SHEEP.

The first decisive check comes before any gate is trained. On each benchmark we measure how often always-retrieve flips a correct direct answer to a wrong one, and how often re-viewing fixes errors that retrieval does not. If both rates are small, the premise fails and the project stops there.

The second check is whether the advantage holds under the real retriever, not just under synthetic contexts. Specifically, susceptibility predicted from synthetic corruptions must correlate with observed harm from real retrieved passages on held-out data.

The third check is the routing pattern. Retrieval should be chosen mainly on ScienceQA and MMMU items, and re-viewing mainly on POPE adversarial items. If the gate routes the same way on both benchmark types, it has not learned the distinction we claim.