TL;DR
Vision-Language Models (VLMs) frequently hallucinate—confidently describing objects in an image that aren't actually there. Instead of inspecting static snapshots of a model's brain, TRACE maps a VLM’s internal states across layers and time as a 2D graph, catching the exact moment a factual thought mutates into a fabrication. Best of all, even when trained only on cheap, whole-sentence labels ("this sentence has an error"), TRACE learns to highlight the exact offending words on its own.
What Problem Does This Paper Address?
When a VLM looks at an empty street and describes "people walking," its internal linguistic priors have overwhelmed its visual grounding. Catching these hallucinations post-hoc usually forces researchers into a frustrating "granularity dilemma":
- Sentence-level labels are cheap to collect, but they only tell you that a sentence went wrong, not where.
- Token-level labels pinpoint the exact fabricated words, but require painstaking, expensive human annotation that doesn't scale.
To see inside the model without expensive labels, researchers often probe internal hidden states or attention maps at a single layer. However, at any static layer, truthful and hallucinated representations overlap heavily. The authors ask: What if a hallucination isn't a static state, but a dynamic motion across layers—and can we use that motion to pinpoint bad tokens using only cheap sentence-level data?
Methods
The authors introduce TRACE (Token Representation Analysis with Cross-layer Evolution), a lightweight detector that sits on top of a frozen VLM. Instead of viewing internal activations as flat vectors, TRACE models them as a 2D heterogeneous spatio-temporal graph across $K=8$ uniformly sampled layers ("space") and generated token steps ("time").
Wait—let's trace the blueprint of how this graph is built and read (as shown in the architecture overview below):
- Nodes: Pooled image tokens act as uncorrupted, source-only vision anchors at each layer, while generated words form text nodes.
- Three Edge Types:
- Cross-layer evolution edges connect the same token from one layer to the next (weighted by cosine similarity) to track semantic mutations.
- Contextual edges link past words to current words within a layer (pruned by an attention threshold) to track how an early error snowballs.
- Cross-modality edges connect the vision anchor to text tokens using top-$k$ attention weights—a drop here signals the model has stopped "looking" at the image.
- GNN + MIL Readout: A heterogeneous Graph Neural Network (GNN) passes messages along these edges. Rather than pooling high-dimensional features into a single sentence score, TRACE uses a token-first Multiple Instance Learning (MIL) bottleneck. Every token gets its own hallucination risk score first, and a smooth maximum function (
Log-Sum-Exp) aggregates them into a final sentence probability. Training on binary sentence labels naturally forces the network to push up the scores of the specific tokens responsible for the lie.
Datasets
TRACE does not introduce new datasets, instead evaluating across three established benchmarks spanning two granularities:
- M-HalDetect (Source training): Provides coarse, sentence/segment-level binary hallucination labels on detailed image descriptions.
- ViGoR (Out-of-distribution target): Another coarse-grained benchmark used to test zero-shot domain transfer without retraining.
- HalLoc: A recent fine-grained benchmark providing exact token-level hallucination annotations across VQA, Instruction, and Captioning tasks.
Key Insights and Ideas
- Hallucinations are "trajectory drifts": Factual tokens maintain a steady representational path anchored to the image across network layers. Hallucinated tokens undergo sudden directional mutations in deeper layers.
- Static probes memorize domain quirks; dynamics generalize: Classifiers trained on static hidden states overfit to the linguistic style of the training dataset and collapse on new domains. Cross-layer drift appears to be a domain-invariant signature of hallucination.
- Visual grounding is the linchpin: In ablation studies, deleting cross-modal edges caused the largest performance crash (AUPR dropping from 0.77 to 0.55), proving that VLM hallucinations cannot be diagnosed by looking at text dynamics alone.
- The "Goldilocks" pooling temperature: For emergent word-level localization, the MIL pooling sharpness matters immensely. Too soft (mean pooling) dilutes the blame across innocent words; too sharp (hard max) blames only a single peak token and misses multi-word phrases.
Key Results
- Out-of-Distribution Robustness: Trained on M-HalDetect and tested zero-shot on ViGoR (with Qwen3-VL), static hidden-state probes plummet from 0.70 in-domain AUPR to 0.58. TRACE achieves 0.85 in-domain and retains 0.77 AUPR on ViGoR, outperforming prior attention-map state-of-the-art VADE (0.73) and black-box VLM verifiers (0.65).
- Zero-Shot Token Localization: On HalLoc (LLaVA-1.5), TRACE trained strictly on sentence-level labels achieves 0.79 F1 on VQA and 0.68 F1 on Instruct, crushing heuristic baselines like CHAIR (0.19 / 0.13) and rivaling fully token-supervised models like HalLocalizer. When given full token-level supervision, TRACE hits 0.98 F1 (VQA) and 0.94 F1 (Instruct) with a single unified head.
- Blink-and-you-miss-it Overhead: On a single RTX 3090 GPU, TRACE adds just 15.2 ms of median latency and 28.6 MiB of VRAM per response.
Limitations and Future Work
- White-box requirement: Because TRACE hooks into internal hidden states and attention matrices, it cannot be used on closed-source, API-only models (like GPT-4o or Claude).
- Long-context memory scaling: Storing multi-layer representations grows linearly with sequence length, creating memory overhead on very long generations. The authors plan to explore long-context compression.
- Blind spots for silent omissions: Sentence-supervised token scores occasionally miss subtle sub-spans, and cannot highlight "omission" hallucinations where the model simply fails to mention something important (since there are no generated tokens to flag). Future work aims to feed TRACE's signals directly into real-time decoding to steer models away from hallucinations mid-sentence.
Summary updated