Paper: 2612.04517 — When Text Lies, Patches Don’t: Jacobian Lenses for Object Hallucination Detection in Multimodal LLMs
Authors: Davide Bucciarelli, Chongzhe Zhang, Driton Salihu, Marcella Cornia, Lorenzo Baraldi, Feng Liu
Categories: cs.CV, cs.AI
Reading scope: Full original arXiv HTML (https://arxiv.org/html/2612.04517, 489,569 bytes, all sections 1–5 and Appendices A–D read without excerpting). Figures 1 and 2 were visually inspected and reproduced below; Figures 3 and 5–9 were read through their captions and quantitative text in Sections 4 and B.
The Problem
Show a multimodal large language model (MLLM) a photograph of a calico cat sitting beneath an open black umbrella (Figure 1). Ask it to describe the scene in detail. The model begins accurately: “The image features a cat sitting under an open umbrella…” Then language habit takes over. Umbrellas usually come with hands, so the sentence glides right into “…curious about the umbrella or the person holding it.” There is no person anywhere in the frame.

Figure 1 (reproduced from Bucciarelli et al., 2026): On the same generated caption, the Logit Lens barely highlights the real cat and fires scattered hits for the hallucinated “person” (scoring 0.35), while J-List lights up the exact patches for “cat” and “umbrella” and stays silent on “person” (allowing JAMES to flag it at 0.90).
When an MLLM invents an object like that phantom person, the natural impulse is to look inside the model’s visual tokens—the grid of image patches fed into the language backbone—and ask whether those patches actually contain a person. Yet existing hallucination detectors rarely decode what intermediate image patches say. Many monitor only the text-side hidden states or vision–text attention weights, reading visual grounding indirectly. Others that inspect image patches fall back on geometric similarity or on the Logit Lens, which feeds an intermediate hidden state directly into the model’s final word-prediction matrix as if it were already at the last layer.
That shortcut breaks down on visual tokens for a structural reason (Section 1 and Section 3.2). During training, the next-token prediction loss is masked on image positions: the model is never trained to predict words at visual token slots, only at assistant response slots. Intermediate visual representations therefore sit in a different coordinate space from the output vocabulary. On semantic segmentation checks across COCO validation images (Table 1), the Logit Lens recovers the true object class in the top-10 readouts only 1.6% to 1.8% of the time across the first half of layers in LLaVA-1.5-7B, Gemma-3-4B, and Qwen3.5-4B. Even the original text-fitted Jacobian Lens (J-Txt) scores only 0.2% to 3.4% in early layers, and fitting a Jacobian directly from image patches to final-layer image patches (image -> image) still stalls at 4.6% to 8.2%, because final-layer visual states themselves are unsupervised and unaligned with the vocabulary.
To see whether the image patches back up the cat and reject the person, you cannot ask what word an image patch looks like at its own position. You have to ask how that image patch steers the words the model is actually trained to speak.
The Explanation
The authors make two linked contributions: J-List, a closed-form Jacobian lens built specifically for intermediate visual tokens (Section 3.2), and JAMES (JAcobian MEntion Scorer), a lightweight linear hallucination detector that combines J-List’s multi-layer visual evidence with the mention’s textual decoding state (Section 3.3).
Decoupling Sources from Targets: How J-List Reads Image Patches
Think of a standard Logit Lens as holding a stethoscope to a translator’s ear and expecting spoken English to come out. An image patch inside layer 6 is not speaking English yet; it is nudging later text tokens toward saying “cat” or “umbrella.” The authors’ core pivot is to decouple the source and target positions in the input–output Jacobian (Figure 2a, Section 3.2).

Figure 2 (reproduced from Bucciarelli et al., 2026): (a) J-List computes one linear translator matrix per layer by averaging how non-sink image patches at layer l causally shift the final-layer states of the model’s self-generated object list. (b) JAMES pairs multi-layer J-List patch evidence with a PCA-compressed textual decoding state at one intermediate layer inside an L2-regularized logistic regression.
Specifically, for each layer, J-List computes a single context-independent linear matrix by averaging the exact derivative of the final-layer residual states at assistant response positions (the supervised targets) with respect to the intermediate residual states at non-sink image patch positions (the visual sources). Because every response token sits after the image, every visual patch is evaluated against the exact same downstream target set, removing positional bias. Rare “visual attention sinks”—patches whose vector norm exceeds 10 times the median norm at that layer (only 2.0 to 3.4 tokens per image on average, Section A.1)—are excluded from the Jacobian average while remaining untouched in the forward pass.
One subtle design choice turns a decent visual lens into a sharp one: what prompt the model answers while fitting the Jacobian. If you fit the lens on free-form captions (J-Image), much of the assistant response consists of function words and syntactic filler (“the,” “is,” “in,” “with”) that dilute the visual signal. Instead, J-List prompts the model with “List all the objects in this image, separated by commas.” and computes the exact closed-form Jacobian on the model’s own greedily generated lists across just 50 unlabeled COCO images for segmentation evaluation (and 100 images for detection, with no gradient-descent optimization).
Table 1 shows each step of this design paying off on COCO patch-level semantic segmentation (mean Pass@10 across all layers and the first half of layers):
- Baseline misalignment: Logit Lens gets 1.6% / 1.8% / 1.8% Early Pass@10 on LLaVA-1.5-7B, Gemma-3-4B, and Qwen3.5-4B; text-fitted J-Txt gets 3.4% / 0.2% / 0.4%;
image -> imageJacobian stays at 5.0% / 8.2% / 4.6%. - Decoupling visual sources to supervised text targets (
J-Image): Early Pass@10 jumps by 14 to 19 points over J-Txt, reaching 19.4% / 18.9% / 14.6% (and 21.2% / 17.6% / 13.0% across all layers). - Switching to the object-listing prompt (
J-List): Adds another +2.1 to +4.3 points across all layers (24.4% / 19.7% / 17.3% All; 22.5% / 22.7% / 20.9% Early), outperforming distillation-trained Tuned Lens baselines trained on 200 images everywhere except LLaVA’s response-tuned lens on late layers. Randomly subsampling target positions to match token counts changes All Pass@10 by at most 0.9 points, confirming the gain comes from object-concept density rather than response length. Even 10 fitting images already reach near-convergence (24.8%on LLaVA-1.5-7B, Section B.1).
Turning Patch Readouts into a Hallucination Detector (JAMES)
Returning to the cat-and-umbrella caption, once J-List is fitted once per model, scoring any object mention (“cat,” “umbrella,” or “person”) requires no backpropagation—just one forward pass and matrix multiplications on the image patches (Figure 2b, Section 3.3). For every mention, JAMES builds two complementary feature vectors:
- Multi-layer visual evidence across every layer from 1 to the last layer: (a) the highest log-probability the mention’s first sub-token receives on any single image patch; (b) log-compressed counts of how many patches decode a lexical variant of the word as top-1 or rank-weighted top-5; (c) the same top-1 and rank-weighted top-5 patch counts for single-token synonyms of the object’s category; plus two binary flags telling the classifier when lexical or synonym token sets are empty so zero counts are not misread as missing visual support.
- A compact text-side decoding state: the residual stream vector at the mention’s first sub-token taken from a single cross-validated intermediate layer (landing between 38% and 62% depth across all six models, Table 6) and compressed via principal component analysis (PCA) to 93 or 256 dimensions.
Standardizing both vectors and fitting a plain L2-regularized logistic regression on just 500 labeled COCO calibration images produces JAMES. In the cat-and-umbrella example (Figure 1), J-List densely highlights the cat and umbrella (p(halluc.) = 0.00 and 0.06) while finding zero top-5 patches for “person,” allowing JAMES to flag “person” at 0.90 where the Logit Lens stalls at 0.35.
What the Benchmarks Show
Evaluated on 5,000 held-out COCO test images across six MLLMs spanning three distinct architectures—LLaVA-1.5 (7B, 13B), Gemma-3 (4B, 12B), and Qwen3.5 (4B, 9B), where 16% to 22% of mentions are hallucinated (Section 4.2, Table 2):
- Visual evidence alone already beats every zero-shot method: A logistic regression using only J-List’s visual features reaches 89.5 to 93.3 AUROC across the six models, outperforming the strongest of six zero-shot baselines by +3.7 to +12.5 AUROC.
- Combining visual patches and textual decoding state sets the high-water mark: Full JAMES reaches 92.3 AUROC on both LLaVA-1.5-7B and 13B, 94.0 / 94.3 on Gemma-3-4B / 12B, and 95.5 / 95.6 on Qwen3.5-4B / 9B. It beats all 14 zero-shot and learned competitors on every model by +1.1 to +2.6 AUROC and +5.3 to +9.9 AUPR (precision-recall area with hallucinations as positives, up to 86.1 AUPR on Qwen3.5-9B).
- Zero-shot transfer without refitting (Tables 3 and 8): Taken straight from the 500 COCO images with zero retraining, JAMES ranks first on all 6 models on Objects365 (5,000 images, 365 fine-grained classes, 35%–40% hallucination rate: 82.3–85.8 AUROC, beating the best competitor by +1.6 to +4.4), first on 5 of 6 models on Pascal VOC 2012 (5,823 images: 91.5–94.9 AUROC; TruthLens edges it by 0.3 points on LLaVA-1.5-7B at 91.8 vs. 91.5, while JAMES leads Gemma-3 and Qwen3.5 by +3.9 to +4.7), and first on 5 of 6 models on AMBER (1,004 images: 86.6–90.2 AUROC; UniProbe edges it by 0.3 on Gemma-3-12B at 89.2 vs. 88.9).
- Sample efficiency and linear separability (Figure 5, Figure 8, Section B.5): Trained on only 100 labeled COCO images, JAMES already achieves 89.8–94.5 AUROC (+3.0 to +4.9 over the best competitor at that budget, surpassing TruthLens trained on 4,000 images and HIRE trained on 8,000). Swapping logistic regression for gradient-boosted trees, RBF-SVMs, or 1–2 layer MLPs yields scores within 0.7 AUROC on COCO (1.1 on Objects365) from 500 images onward, with linear logistic regression frequently ranking first.
- Reasoning-trace bonus (Table 9, Section B.6): On Qwen3.5-4B and 9B with thinking enabled, reading visual patches with J-List (92.8 / 92.2 AUROC) still outperforms reading the text reasoning trace with J-Txt (90.9 / 90.8); combining both reaches 93.4 / 93.2, and adding the decoding state reaches 95.4 / 95.5.
The Counterintuitive Twist: Why Late Layers Go Blind
Looking at the layer-by-layer curves (Figure 3 and Section 4.1), a curious puzzle appears: J-List dominates early and middle layers, then collapses sharply in the final layers of every model—right where the Logit Lens finally wakes up. Is J-List broken near the top of the network?
To test this, the authors run a direct causal swap on 200 COCO images per model (Section B.2, Figure 7). At each layer, they replace the entire image’s visual states with the visual states of a completely different image containing disjoint objects, and measure how much the caption’s probability mass shifts from the first image’s objects to the second’s. The result flips the usual intuition about representation lenses upside down:
Layer depth: Early ------------------> Middle ------------------> Final
Image causal pull: [======== STRONG ========][=== FADING ===][... NEAR ZERO ...]
J-List readability: [======== HIGH ==========][=== FADING ===][... COLLAPSES ...]
Logit Lens readout: [... NEAR BLIND .........][=== RISING ===][===== HIGH ======]
In the final layers of every tested MLLM, swapping the entire image barely changes the caption at all—the language model has already extracted the visual information it intends to use earlier in the forward pass. Correlating each layer’s Pass@10 readout quality with its causal effect on the caption produces a stark contrast:
- Logit Lens shows a strongly negative Spearman correlation across layers (-0.77 on LLaVA-1.5-7B, -0.71 on Gemma-3-4B, -0.81 on Qwen3.5-4B). It reads best in the exact layers that matter least, and reads worst where the image actually steers generation.
- J-List flips to a positive correlation on Gemma-3-4B (+0.75) and Qwen3.5-4B (+0.55), and stays nearly flat (-0.10) on LLaVA-1.5-7B. Its readout collapses in the final layers precisely because visual tokens no longer causally influence the output there.
Core Concepts
1. Decoupled Visual-to-Text Jacobian (J-List)
A closed-form linear translator per layer that maps an intermediate image patch into the output vocabulary by averaging how nudging that patch shifts the final-layer states of supervised text tokens. On the cat-and-umbrella photo, reading a patch over the cat’s ear via its own final-layer state fails because no training loss ever forced image slots to align with English words. Changing the target from the image slot to the downstream object-list response transforms the question from “what does this patch resemble?” into “what word does this patch push the model to say?” Without decoupling sources and targets, Early Pass@10 collapses from 20.9%–22.7% back down to 4.6%–8.2% (Table 1).
2. Spatial Coverage Over a Single Peak
In JAMES’s visual feature vector, the authors track not only the strongest single-patch log-probability for a mention, but also how many patches across the grid decode that word (or its category synonyms) in top-1 and top-5 readouts. On the cat-and-umbrella example, a real cat lights up a dense cluster of patches across its face and torso, whereas noisy false alarms tend to pop up on isolated patches. Table 4’s feature ablation confirms this design choice matters most: adding peak probability alone to the textual decoding state raises COCO AUROC by only +0.2 to +0.6, whereas adding the top-1 spatial patch counts delivers the largest jump (+2.2 AUROC on Gemma-3-4B and +1.6 on Qwen3.5-4B).
3. Complementary Visual Evidence and Textual Decoding State
Knowing what the image patches encode is only half the story; knowing how the model’s language side committed to writing the word is the other half. On the cat photo, visual patches tell JAMES “zero patches support ‘person’”, while the intermediate residual state at the word “person” captures the language-prior drift that produced it. On COCO (Table 2 and Table 4), neither side alone matches their pair: textual state alone scores 90.9–93.2 AUROC across the three smaller models and J-List visual evidence alone scores 89.5–93.3 across all six, while concatenating them lifts every model by another +2.2 to +4.0 AUROC over visual evidence alone (reaching 92.3–95.6).
The Insight
The paper establishes a sharp diagnostic rule for multimodal interpretability and hallucination detection: when a modality is masked from the language-modeling loss, you should read its intermediate states through their causal sensitivity on supervised text outputs rather than through static vocabulary alignment—and you should inspect the early and middle layers where image tokens still causally steer generation, not the final layers where the Logit Lens looks cleanest. Within white-box MLLMs and object-level mentions, combining that causally aligned spatial patch evidence with a compact textual decoding state turns hallucination detection into a nearly linearly separable problem solvable with a few hundred calibration images.
A Critical Reading
The evidence is unusually thorough across architectures (CLIP-projected LLaVA-1.5, bidirectional-vision Gemma-3, and hybrid linear/full-attention Qwen3.5), baselines (14 recent detectors), and four benchmarks, with transparent ablations in Appendices A–D. Still, several grounded boundaries and open questions remain:
- Dependence on curated synonym sets (evidenced in Table 7 and Section B.3): While combining the textual state with J-List peak probability and lexical-only patch counts already beats every Table 2 competitor (
91.9 / 91.8 / 93.8vs.90.8 / 91.4 / 93.0), adding the CHAIR category synonym counters supplies a substantial extra lift on Gemma-3-4B (+2.2 AUROC) and Qwen3.5-4B (+1.7). In open-vocabulary settings without predefined synonym tables—or in tokenizers where multi-token words fall back to first sub-tokens (which happens for one-third of mentions on LLaVA, Section B.3)—that extra margin is not guaranteed. - Object nouns only, not relations or actions (acknowledged in Appendix C): Because J-List is fitted once per model as a prompt-agnostic object lister, it checks whether an object appears in the patches, not whether the cat is under versus on top of the umbrella, how many cats exist, or whether an action or abstract claim is true.
- Linear, dataset-averaged approximation (acknowledged in Appendix C): Averaging Jacobians over 100 images makes J-List fast and cheap, but it captures average linear transport rather than input-specific nonlinear reasoning.
- White-box access and baseline reimplementations (Section A.3): Fitting J-List requires exact backward passes through the MLLM (
ceil(d/b)passes per fitting image) and inference requires reading internal hidden states at every layer, restricting JAMES to open-weights or self-hosted deployments. Note also that four learned/zero-shot competitors (VisER,VIB-Probe,UniProbe,CADMP) lacked public implementations and were reimplemented by the authors. - Detection, not verified mitigation: The paper stops at scoring hallucinated mentions; whether steering or rejecting tokens using J-List during decoding reduces hallucinations without harming caption completeness remains untested here.
What You Can Use
Return to the opening problem of deploying an open-weights MLLM that occasionally slips a phantom “person” into an image description.
- Stop probing only final-layer visual tokens: If you build internal visual grounding monitors or interpretability tools for MLLMs, the causal-swap experiment in Section B.2 shows that late-layer visual tokens have largely finished influencing the answer. Focus probes and lenses on early-to-middle layers, and evaluate visual representations by their causal effect on supervised text positions rather than raw Logit Lens alignment.
- Pair spatial patch coverage with a single middle-layer text state: If you control model weights and want a fast post-hoc object hallucination gate, you do not need to fine-tune LoRA adapters on thousands of captions or train complex graph neural networks. Fitting a one-time closed-form
J-Listlens on ~50–100 unlabeled images using an object-listing prompt, extracting multi-layer patch coverage counts, and pairing them with a PCA-compressed intermediate textual state inside an L2 logistic regression calibrated on ~100–500 labeled examples already captures most of the achievable gain—provided your target failure mode is object presence rather than relations, counts, or free-form reasoning claims.
论文: 2612.04517 — When Text Lies, Patches Don’t: Jacobian Lenses for Object Hallucination Detection in Multimodal LLMs
作者: Davide Bucciarelli, Chongzhe Zhang, Driton Salihu, Marcella Cornia, Lorenzo Baraldi, Feng Liu
分类: cs.CV, cs.AI
阅读范围: 通读 arXiv 原文完整 HTML(https://arxiv.org/html/2612.04517,489,569 字节,正文第 1–5 节及附录 A–D 未截取片段)。图 1 和图 2 经人工视觉检视并附于正文;图 3 及图 5–9 依据原文图注与第 4 节、附录 B 的定量数据解读。
问题
给多模态大模型看一张照片:一只三花猫坐在一把撑开的黑伞底下(图 1)。 让它详细描述画面。 模型开头说得很准:“画面里有一只猫坐在一把打开的雨伞下面……” 可写着写着,语言惯性占了上风。 现实里伞总得有人举着,于是模型顺嘴接了下去:“……似乎对雨伞或举着伞的人很好奇。” 可整张照片里根本没有半个人影。

图 1(引自 Bucciarelli 等人,2026):面对同一句生成描述,Logit Lens 在真物体“cat”上只零星点亮几个点,反而在虚构的“person”上给出杂乱响应(幻觉概率仅判 0.35);J-List 则准确点亮“cat”和“umbrella”对应图块,对“person”保持彻底沉默,让 JAMES 以 0.90 的高概率精准抓出幻觉。
既然模型嘴上编出了一个不存在的“人”,最直觉的查账办法,就是直接去翻它内部读进来的图像词元——也就是送进语言骨干网络的那些图像块——看看图块里到底有没有“人”。 可已有的幻觉检测方法很少真正把中间层的图像块“读”出来。 大多数检测器只盯着文本侧的隐藏状态或图文注意力权重,属于隔着门缝猜画里有什么。 少数直接去读图像块的方法,要么只算图文向量余弦相似度,要么套用 Logit Lens——把中间层的隐藏状态当成最后一层,硬塞进最终词表输出矩阵里解词。
这套做法放在图像块上会撞上一堵结构性的墙(第 1 节与第 3.2 节)。
多模态模型在训练时,预测下一个词的语言建模损失只算在文本回复位置上,图像块位置是被屏蔽掉的。
模型从来没被训练过要在图像块位置直接吐出单词,因此早中期图像块的向量空间跟词表输出矩阵完全没对齐。
在 COCO 验证集的语义分割定位评测里(表 1),把模型前半段所有层取平均,Logit Lens 的前十词命中率(Pass@10)在 LLaVA-1.5-7B、Gemma-3-4B 和 Qwen3.5-4B 上只有 1.6% 到 1.8%,几乎是瞎的。
即便是先前在纯文本上拟合的雅可比透镜(J-Txt),前半层命中率也只有 0.2% 到 3.4%;哪怕改用图像块到最后一层图像块的雅可比矩阵(image -> image),前半层依然困在 4.6% 到 8.2%——因为最后一层图像块本身也没受过词表监督,照样对不上词表。
想弄清图块到底站在“猫”这边还是站在“人”那边,问“这个图像块在自己位置上像哪个词”是问错了方向。 真正该问的是:这个中间层的图像块,会把模型后面真正要说出口的文字往哪个词上推?
翻译
作者沿着这个转折拿出了两件串联的工具:专门解码中间层图像块的闭式雅可比透镜 J-List(第 3.2 节),以及把多层视觉证据和文本解码状态合二为一的轻量幻觉检测器 JAMES(第 3.3 节)。
拆开源头与目标:J-List 怎样让图像块开口说真话
如果说 Logit Lens 像是把听诊器贴在同声传译员耳朵上、指望直接听见译文,那肯定听不清;第 6 层的图像块本身还没在说英语,它正在做的是把后面文本位置的输出推向“cat”或“umbrella”。 作者的核心一转,就是把输入—输出雅可比矩阵里的源位置和目标位置彻底拆开(图 2a,第 3.2 节)。

图 2(引自 Bucciarelli 等人,2026):(a)J-List 在模型自生成的物体清单上,计算各层非汇聚图像块对最后一层回复状态的平均因果敏感度,每层得到一个线性翻译矩阵;(b)JAMES 将多层图块读出特征与单个中间层的文本解码状态拼接,用轻量 L2 逻辑回归判断每个物体提及是否属于幻觉。
具体来说,针对网络里的每一层,J-List 算出一个固定的线性矩阵,测量模型最后一层在助手回复位置上的状态(受过语言损失监督、能直接映射到词表的目标),对这一层非汇聚图像块状态(视觉源头)的平均一阶敏感度。 因为所有回复词元都排在图像后面,每个图像块面对的都是同一套下游目标,顺带消除了普通文本雅可比透镜里“靠前位置累加更多下游词”的位置偏差。 至于极少数“视觉注意力汇聚点”——也就是向量范数超过同层所有图像块中位数 10 倍的异常块(每张图平均仅 2.0 到 3.4 个,附录 A.1)——前向传播时原样保留,只在求平均雅可比矩阵时剔除,免得带偏统计。
紧接着,作者还做了一个看似不起眼却非常关键的设计选择:拟合透镜时,到底让模型回答什么提示词? 如果让模型写自由发挥的图像描述(记作 J-Image),回复里充斥着“the、is、in、with”这类不承载具体物体的虚词和句法填充,会把视觉概念信号冲淡。 于是作者改用一句极简指令:“用逗号分隔,列出这张图里的所有物体。” 模型自己贪心吐出物体清单后,直接在这一批高密度物体词元上闭式算出精确雅可比矩阵,不需要梯度下降迭代训练;在分割评测里只用了 50 张无标注 COCO 图片,在幻觉检测里也只用了 100 张。
表 1 把每一步改动的收益拆得明明白白(COCO 图块级语义分割 Pass@10,分别看全层均值与前半层均值):
- 旧路失灵:在 LLaVA-1.5-7B、Gemma-3-4B 和 Qwen3.5-4B 上,Logit Lens 前半层只有 1.6% / 1.8% / 1.8%;纯文本拟合的 J-Txt 只有 3.4% / 0.2% / 0.4%;
image -> image也停在 5.0% / 8.2% / 4.6%。 - 把源头和受监督回复目标拆开(
J-Image):前半层 Pass@10 相对 J-Txt 一口气暴涨 14 到 19 个百分点,升至 19.4% / 18.9% / 14.6%(全层均值达 21.2% / 17.6% / 13.0%)。 - 换成物体清单提示词(
J-List):全层均值再涨 +2.1 到 +4.3 个百分点(达到 24.4% / 19.7% / 17.3%,前半层达到 22.5% / 22.7% / 20.9%),全面压过用 200 张图蒸馏训练的 Tuned Lens(仅在 LLaVA 后半层上略低于回复版 Tuned Lens,但后者在其他家族跌到 11.5% 以下)。 如果固定提示词后随机抽样目标位置以对齐长度,全层结果波动不超过 0.9 个百分点,说明提升确实来自物体清单里更高的视觉概念密度,而不是字数变长。 而且雅可比透镜极省数据:附录 B.1 显示,只用 10 张图 J-List 就已接近收敛(LLaVA-1.5-7B 上达 24.8%)。
从图块读出到抓出幻觉(JAMES)
回到那张猫和雨伞的照片。 每个模型只需一次性算好 J-List 矩阵,之后每次给生成文本里的物体词(比如“cat”“umbrella”“person”)打分时,不再需要反向传播,一次前向推理加矩阵乘法就能读出全层图块(图 2b,第 3.3 节)。 JAMES 为每个物体提及拼出两组互补特征:
- 多层视觉证据:覆盖第 1 层到最后一层,每一层提取五个数——该词首子词在全图所有图块里的最高对数概率;有多少个图块把该词的词形变体排在第一名,或按名次倒数加权排进前五名(经对数压缩);以及有多少个图块把该物体类别的单词同义词排进第一名或前五名;末尾再附带两个二值标记,告诉分类器词形集合或同义词集合本身是否为空,避免把“词表里没有对应单词”误判成“图里没看到”。
- 紧凑的文本侧解码状态:取出模型生成这个物体词首子词时的残差流向量,只选经交叉验证定下的单个中间层(六个模型都落在网络深度的 38% 到 62% 之间,表 6),再通过主成分分析(PCA)压缩成 93 维或 256 维,防止过拟合。
两组特征标准化后直接拼在一起,在 500 张带标注的 COCO 校准图上训一个最朴素的 L2 正则逻辑回归,这就是 JAMES。 在图 1 的猫伞照片里,J-List 把猫身和伞面整片点亮(JAMES 给出幻觉概率 0.00 和 0.06),却在“person”上找不到哪怕一个前五命中的图块,再叠加上文本侧的生成状态,直接以 0.90 的高概率揪出这个虚构的“人”——而换成 Logit Lens 时,概率只有含糊的 0.35。
跨家族、跨数据集的实证结果
在 5,000 张留出的 COCO 测试图上,作者横跨三大不同架构、六个模型规模做了系统评测——LLaVA-1.5(7B、13B)、Gemma-3(4B、12B)和 Qwen3.5(4B、9B),各模型生成描述中幻觉提及占比为 16% 至 22%(第 4.2 节,表 2):
- 单靠视觉证据就甩开所有零样本方法:只拿 J-List 的视觉特征训逻辑回归,六个模型就能拿到 89.5 到 93.3 AUROC,比 6 个零样本基线里最强的还高出 +3.7 到 +12.5。
- 图文双路合体全面领跑:完整版 JAMES 在 LLaVA-1.5 的 7B/13B 上均拿到 92.3 AUROC,Gemma-3-4B/12B 拿到 94.0 / 94.3,Qwen3.5-4B/9B 高达 95.5 / 95.6。 在全部六个模型上,JAMES 在 AUROC 和 AUPR(把幻觉当正类的精确率—召回率曲线下面积,Qwen3.5-9B 上高达 86.1)双指标全面击败 14 个 2025–2026 年的零样本与有监督对手,领先最强对手 +1.1 到 +2.6 AUROC 以及 +5.3 到 +9.9 AUPR。
- 不重新拟合的零样本跨域迁移(表 3 与表 8):直接把在 500 张 COCO 图上拟合好的透镜和分类器搬到新数据集:
- Objects365(5,000 张图,365 个细粒度类别,幻觉率 35%–40%):6 个模型全部第一(82.3–85.8 AUROC,领先最强对手 +1.6 到 +4.4)。
- Pascal VOC 2012(5,823 张图,20 类,幻觉率 18%–27%):6 个模型中 5 个第一(91.5–94.9 AUROC;仅 LLaVA-1.5-7B 落后 TruthLens 0.3 分,91.5 对 91.8,而在 Gemma-3 和 Qwen3.5 上领先 +3.9 到 +4.7)。
- AMBER(1,004 张图,幻觉率 11%–23%):6 个模型中 5 个第一(86.6–90.2 AUROC;仅 Gemma-3-12B 落后 UniProbe 0.3 分,88.9 对 89.2)。
- 极低标注成本与近线性可分性(图 5、图 8、附录 B.5):只给 100 张标注 COCO 图,JAMES 就已经达到 89.8–94.5 AUROC,比同预算最强对手高 +3.0 到 +4.9,甚至赢过用 4,000 张图微调 LoRA 的 TruthLens 和用 8,000 张图训练的 HIRE。 把逻辑回归换成梯度提升树、RBF 核支持向量机或一两层多层感知机后,500 张图以上各分类器差距在 COCO 上不超过 0.7 AUROC(Objects365 上不超过 1.1),线性逻辑回归反而常居第一,说明这组特征本身已高度线性可分。
- 推理链场景的延伸(表 9,附录 B.6):在开启思考模式的 Qwen3.5-4B/9B 上,用 J-List 读图像块(92.8 / 92.2 AUROC)依然胜过用 J-Txt 读文本思考链(90.9 / 90.8);把两条信号拼起来升到 93.4 / 93.2,再加上文本解码状态最终达到 95.4 / 95.5。
最反直觉的副发现:为什么越靠近输出层,图块越读不出东西?
看逐层准确率曲线(图 3 和第 4.1 节)时,会出现一个乍看像缺陷的怪现象:J-List 在早中期一路碾压,可到了网络最后几层却断崖式下跌——偏偏就在 Logit Lens 终于开始管用的那几层。 是 J-List 在深层坏掉了吗?
作者在附录 B.2(图 7)做了一个干净利落的因果偷换实验:每个模型挑 200 张 COCO 图,在第 l 层把整张图的图像块状态,全部硬替换成另一张物体完全不重合的照片的图像块,观察生成描述在真实物体位置上,概率质量从原图物体转向新图物体的幅度。 结果把大家对表征透镜的直觉彻底翻了个个儿:
网络层数: 早期 ---------------------> 中期 ---------------------> 末层
图像块因果影响力: [======== 很强 ========][=== 逐步衰减 ===][... 趋近于零 ...]
J-List 可读性: [======== 很高 ========][=== 逐步衰减 ===][... 断崖下跌 ...]
Logit Lens 读出: [... 几乎失明 .........][=== 逐步升高 ===][===== 最高 =====]
在所有测试模型的最后几层里,把整张图片彻底换成另一张,对模型最终说出的描述几乎没有任何因果影响——语言模型早在前中期就已经把要用的视觉信息抽干了。 把每一层的“图块可读性(Pass@10)”和这一层的“真实因果影响力”算斯皮尔曼等级相关,反差触目惊心:
- Logit Lens 在三个模型上全是强负相关(LLaVA-1.5-7B 为 -0.77,Gemma-3-4B 为 -0.71,Qwen3.5-4B 为 -0.81)。 也就是说,Logit Lens 读得最清楚的恰恰是最无关紧要的层,而真正决定答案的早中期它反倒最糊涂。
- J-List 则在 Gemma-3-4B(+0.75)和 Qwen3.5-4B(+0.55)上翻转为显著正相关,在 LLaVA-1.5-7B 上基本走平(-0.10)。 它在最后几层掉下去不是因为透镜失灵,而是因为图像块到了那里本来就不再左右回答了。
核心概念
1. 源与目标解耦的视觉雅可比透镜(J-List)
每层一个闭式线性映射矩阵,靠平均“轻推某图像块时,最后一层受监督文本回复状态如何变化”,把原本不在词表空间里的中间层图像块翻译成词表概率。 回到猫与雨伞的例子,直接拿猫耳朵处的图块去乘词表输出矩阵会失灵,因为训练损失从未要求图像位置对齐英文单词;把目标位挪到后面的物体清单回复上,问题就从“这个图块自身长得像哪个词”变形为“这个图块在把模型往哪个词上推”。 少了这一步解耦,前半层分割命中率立刻从 20.9%–22.7% 跌回 4.6%–8.2%(表 1)。
2. 空间覆盖计数,胜过单点峰值
JAMES 提取视觉证据时,不仅记下全图最高的那一个图块概率,更要数清整张网格里有多少个图块把该物体(或其类别同义词)排在第一名和前五名。 在猫伞照片里,真正的猫会成片点亮猫脸和躯干,而噪声误报往往只是孤零零一两个散点。 表 4 的消融实验直接坐实了这一点:在文本解码状态上只加单点最高概率,COCO 的 AUROC 只涨 +0.2 到 +0.6;一旦补上第一名图块的空间计数,Gemma-3-4B 直接跳涨 +2.2,Qwen3.5-4B 跳涨 +1.6,成为整个视觉特征里贡献最大的一块。
3. 视觉证据与文本解码状态的双路互补
查清图块里有没有东西只是一半,摸清模型下笔那一刻语言侧是不是在顺嘴溜冰是另一半。 在猫伞例子里,图块证据告诉分类器“整张图没有任何区域支持 person”,而“person”位置上的中间层残差状态则暴露出模型是被“雨伞—人”的语言先验推着走的。 表 2 和表 4 显示,单用文本解码状态在三个小模型上为 90.9–93.2 AUROC,单用 J-List 视觉证据在六个模型上为 89.5–93.3,两者拼合后每个模型又在纯视觉基础上稳步再抬 +2.2 到 +4.0(达到 92.3–95.6)。
洞见
这项研究在多模态可解释性与幻觉检测上确立了一条非常清晰的判断:当某一模态的输入词元在训练时被屏蔽在语言建模损失之外,就别指望用静态词表对齐去读它;应该沿着它对受监督文本输出的因果敏感度反向去读,而且盯紧图像仍具因果拉力的早中期层,而非 Logit Lens 看起来最漂亮的末层。 在白盒多模态模型和物体提及这一边界内,把这种因果对齐的图块空间覆盖信号,与单个中间层的文本解码状态拼在一起,物体幻觉检测就会退化为一个用几百张图就能解得很好的近似线性分类问题。
博导审稿
这篇工作把一个真问题切得很准:跨了三种结构差异不小的多模态家族(CLIP 投影的 LLaVA-1.5、图像双向注意力的 Gemma-3、线性与全注意力交错的 Qwen3.5),对比了 14 个近两年基线,测了 COCO、Objects365、Pascal VOC 和 AMBER 四个基准,尤其是附录 B.2 用因果替换解释了深层读出塌缩,很有研究诚意。 不过沿着原文证据细看,也有几处硬边界和待验证之处必须讲清:
- 对类别同义词表的依赖不可忽视(表 7 与附录 B.3):虽然“文本状态 + 峰值概率 + 仅凭原词词形的图块计数”就已经在三个小模型上超过表 2 的所有对手(
91.9 / 91.8 / 93.8对比90.8 / 91.4 / 93.0),但加入 CHAIR 同义词计数后,Gemma-3-4B 又涨了 +2.2、Qwen3.5-4B 又涨了 +1.7。 真放到没有预设同义词表的开放词表场景,或者遇到分词器把物体拆成多个子词的情况(LLaVA 上就有三分之一提及不得不退回首子词且同义词集合为空,附录 B.3),这截额外优势未必能全保住。 - 只管“有没有物体”,不管关系、动作和数量(附录 C 自承):J-List 是按模型一次性拟合的提示词无关读出,它能查“图里有没有猫和伞”,却查不出“猫是在伞下面还是伞上面”“图里有几只猫”或“画面里发生了什么动作”。
- 数据集平均线性近似的局限(附录 C 自承):在 100 张图上求平均雅可比矩阵换来了低成本和闭式求解,但也意味着它刻画的是平均线性传递,不是针对单张复杂图像的非线性细粒度推理。
- 白盒门槛与部分基线复现(附录 A.3):拟合 J-List 需要对模型做多轮精确反向传播,推理时也需要读取每一层的内部残差状态,因此只适用于开源权重或自托管模型,拿黑盒 API 没法直接用。
另外需要注意,
VisER、VIB-Probe、UniProbe和CADMP四个对手没有公开官方实现,是由作者按论文配方自行复现的。 - 停在“检出”,尚未验证“纠偏”:论文只证明 JAMES 能高准确率给已生成的物体词打幻觉风险分;如果在线把 J-List 读出接回解码端做干预或重采样,会不会在压低幻觉的同时误伤正常细节,原文尚未验证。
启发
回到开头那个在业务里部署开源多模态模型、担心它凭语言习惯凭空编出“举伞的人”的场景:
- 别再去末层检查图像词元了:如果你在自研多模态系统的可解释性探针或视觉对齐监控,附录 B.2 的因果替换实验已经说明,末层图像块基本不再左右最终回答。 排查视觉信息有没有丢失或被忽略,应该把探针往前挪到早中期层,并且用“对受监督文本输出的因果影响”而非静态 Logit Lens 对齐作为衡量标准。
- 轻量幻觉闸门可以这样搭:只要你掌握开源模型权重,且核心痛点是图像描述、电商审图或报告生成里的物体凭空捏造,不必动辄拿几千张图微调 LoRA 判别器或训练复杂的图神经网络。
先用 50 到 100 张无标注图片配合“列出图中所有物体”的提示词,一次性闭式算出该模型的
J-List矩阵;在线推理时汇总多层图块空间覆盖计数,拼上单个中间层 PCA 压缩后的文本解码状态,再用 100 到 500 张业务标注图训一个 L2 逻辑回归,就能拿到极高的性价比——但请记住它的适用边界:它管的是物体存在性,遇到空间关系、计数或复杂动作推理仍需其他机制补位。