TL;DR
UniProbe is a lightweight, learnable detector that identifies token-level hallucinations in Large Vision-Language Models (LVLMs) by analyzing their internal computational traces without modifying the underlying model. By structuring hidden states and attention maps into a multi-modal graph, it enables real-time correction during generation, slashing object hallucinations by up to 55% with negligible latency overhead.
What Problem Does This Paper Address?
Large Vision-Language Models (LVLMs) excel at visual reasoning but frequently "hallucinate"—generating text descriptions that are completely ungrounded in or contradict the input image. To fix this behavior without discarding perfectly good sentences, models need token-level localization (the ability to pinpoint exactly which word is a hallucination).
Existing solutions fall short: full-model fine-tuning is computationally expensive and risks degrading the model's core capabilities; external verifiers are slow and ignore the model's internal generation process; and simple probing methods flatten internal signals into basic statistics, discarding vital spatial, sequential, and relational context.
Methods
UniProbe leaves the base LVLM completely frozen. Instead, it extracts a "computational trace"—specifically, the hidden states and attention maps from a single intermediate layer—during a forward pass.
Using this trace, UniProbe constructs a directed, heterogeneous graph where nodes represent image patches, query tokens, and generated response tokens, with edges weighted by attention scores. To process this complex graph, UniProbe passes the representations through $L$ alternating blocks containing three specialized, structure-aware modules:
- Graph Neural Network (GNN): Mixes cross-modal evidence across attention edges to update response nodes based on their visual and textual context.
- Vision Transformer (ViT): Processes the 2D spatial geometry of the image patches.
- Gated Recurrent Unit (GRU): Captures the sequential, autoregressive order of the generated response text.
Real-Time Mitigation & Self-Adaptation
- Streaming Decoding: By swapping the bidirectional GRU for a unidirectional one, UniProbe can evaluate candidate tokens on the fly. If a token's hallucination probability crosses a threshold, it is rejected and resampled before it ever reaches the final output.
- Self-Adaptation: Detectors trained on static benchmarks often suffer from a severe train-test distribution shift when deployed on a new model. UniProbe fixes this by automatically generating captions from a small unannotated dataset, labeling them using an automated rule-based metric (CHAIR), and fine-tuning itself to align with the host model's specific generation dynamics.
Datasets
The authors evaluated UniProbe across several prominent benchmarks:
- MHALO & HalLoc: Fine-grained, token-level hallucination localization benchmarks.
- POPE: A standard benchmark for evaluating object-presence hallucinations via binary (yes/no) questions.
- Objects365: A subset of images used without manual annotations to power the self-adaptation pipeline.
- MS COCO: Used to evaluate the quality and hallucination rate of freely generated captions.
Key Insights and Ideas
- Structure is Essential: Flat vector probes or simple transformers operating on raw activations perform poorly. Treating internal representations as a structured graph that preserves spatial, sequential, and relational information unlocks significantly higher detection accuracy.
- The "Sweet Spot" is in the Middle Layers: Visual grounding signals peak in the middle layers of the network (e.g., layer 20 of 40 for GLM-4.1V, and layer 14 of 32 for LLaVA-1.5). Early layers contain generic features, while late layers specialize in next-token prediction rather than cross-modal grounding.
- Self-Adaptation Closes the Deployment Gap: A detector's precision drops drastically when evaluating its own host model's freely sampled generations versus third-party data. Fine-tuning on the model's own output distribution is crucial for real-world reliability.
Key Results
- State-of-the-Art Detection: UniProbe outperforms both zero-shot frontier models (like GPT-4o and Claude-3.5-Sonnet) and existing trained detectors on token-level benchmarks (MHALO and HalLoc).
- Massive POPE Improvements: On the POPE object hallucination benchmark, UniProbe boosts the detection F1 score from a prior best of 41.0 to 63.1, reaching an AUC of 90.0.
- Highly Efficient Mitigation: When integrated into the streaming generation pipeline, UniProbe reduces object hallucinations by up to 55% while maintaining caption quality and adding a mere 1.06× latency overhead (compared to 1.30× for competing methods like HaloDet).
Limitations and Future Work
- White-Box Access Required: Because UniProbe relies on internal hidden states and attention maps, it can only be applied to open-source models or implemented internally by closed-source API providers.
- Model-Specific Training: A separate readout network must be trained for each specific VLM backbone, as internal representations do not naturally translate across different architectures. The authors leave cross-backbone transfer learning as an open direction for future research.
Summary updated