Skip to content

Beyond the current prediction: tracking decoding trajectories to detect object hallucination in LVLMsBeyond the Current Prediction: Tracking Decoding Trajectories for Object Hallucination Detection in LVLMs

Wenjie Zhao, Jia Li, Ruiyu Mao, Yunhui Guo
The University of Texas at Dallas
arXivarXiv:2612.04714Originally published Indexed by this site · 2 days agoAlignment

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose a training-free detector HART, using decoding-history uncertainty to detect LVLM object hallucination; its average AUROC on 8 LVLMs is better than PAS.

Threat modelThe task is detection, not attack: a frozen pretrained LVLM may output objects not supported by the image under original-image-conditioned generation. HART reads only generated token probabilities; it does not train, does not assist generation, and does not read internal representations; an object category not in the image's ground-truth set is labeled as hallucination.

Questions
LVLMs generate objects that do not exist in the image. Existing detectors mostly take signals at the moment an object is generated, so hesitation during earlier decoding is no longer visible, potentially missing hallucinations naturally induced by preceding text.
Methods
HART training-free records the NLL of each generated token at each step, accumulates prior uncertainty with exponential decay while keeping the total weight, and then combines it with the current NLL of the object's first token into an object-level score.
Experiments and results
The authors compare six training-free baselines on 11 LVLMs, three image captioning benchmarks, and VQA. The authors report that HART has the highest average AUROC in each main table, and analyze the history window, half-life, and low-FPR settings.
Limitations and future work
The authors note that the fixed decay is not adapted to different objects, and that the method requires token probabilities, making it difficult to use with closed-source models that only output text; attribute and relation hallucination and multi-step reasoning remain to be studied. Evaluation is mainly object-level AUROC.
Experimental setupShikra-7B、InternVL3.5-4B-HF et al. · MSCOCO、Pascal VOC et al. · AUROC、hallucination recall (TPR) et al.
AI summaryHART is a training-free LVLM object hallucination detection method that tracks predictive uncertainty throughout decoding. It measures uncertainty by the negative log-likelihood of each generated token, and scores each object by combining the uncertainty of the current prediction with the uncertainty accumulated over preceding steps. On MSCOCO, Pascal VOC, and Objects365 across multiple LVLMs, incorporating decoding history outperforms scoring with only the current step, and performs strongly compared with existing training-free methods.

HART is a training-free LVLM object hallucination detection method that tracks predictive uncertainty throughout decoding. It measures uncertainty by the negative log-likelihood of each generated token, and scores each object by combining the uncertainty of the current prediction with the uncertainty accumulated over preceding steps. On MSCOCO, Pascal VOC, and Objects365 across multiple LVLMs, incorporating decoding history outperforms scoring with only the current step, and performs strongly compared with existing training-free methods.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Targeting the detection blind spot of signals computed only at object generation, the authors propose HART, a training-free detector that uses the entire decoding history.

    Core problem: Object hallucination in LVLMs may leave cues before generation, but existing detectors usually take signals only at the moment the object is generated.

    • Problem setting: LVLMs generate descriptions token by token, and already-generated text influences subsequent objects; the authors give the example that a hallucinated object may naturally follow the preceding text even if it does not exist in the image. Information about the model's earlier hesitation among multiple options is not retained in the text prefix.
    • Shortcomings of existing methods: The authors group existing signals into probability, visual attention, internal representations, and cross-modal similarity, and argue that they are all computed when the object is generated and do not explicitly retain the uncertainty of earlier predictions.
    • Core observation: The authors use the NLL of generated tokens to measure uncertainty. The text annotations in Figure 1 give two types of regions: hallucinated objects can show low current NLL and high cumulative historical NLL, while non-hallucinated objects can show the opposite pattern; the authors therefore consider the two kinds of information complementary.
    • Proposed method: History-Aware Risk Tracking (HART) adds an object's first-token current NLL to the historical uncertainty of previous steps, exponentially decayed and normalized to a constant total weight. It reads only the token probabilities from the original decoding and can be updated incrementally; the authors state that the additional computation and storage per step are constant.
    • Task boundary: This is detection after or during generation, not a mitigation method that modifies decoding. An object category not in the set of ground-truth categories provided by the benchmark is labeled as hallucination, and the goal is for hallucinated objects to receive higher detection scores.
  2. What related research exists?

    Related work covers hallucination evaluation, generation-time mitigation and inference-time detection; the authors position HART as a complement to existing current-step signals.

    Object hallucination evaluation and causes

    • CHAIR (Rohrbach et al., 2018): Measures whether generated objects in image descriptions are grounded in the image; this paper follows its object-level evaluation protocol.
    • POPE (Li et al., 2023) and subsequent protocols: POPE is used to systematically evaluate object hallucination in LVLMs, and subsequent work further evaluates ungrounded object mentions in open-ended generation.
    • Studies of causes: The paper mentions that existing research links hallucination to language priors, object co-occurrence and insufficient use of visual evidence.

    Generation-time hallucination mitigation

    • Decoding calibration methods: Existing methods calibrate step-wise logits via visual contrast or conditional mutual information, penalize excessive attention trust and roll back in beam search, or mix candidate token representations at high-entropy steps.
    • Visual uncertainty methods: Other methods project visual tokens into text space to estimate uncertainty and perform dropout and voting, or use adversarial image perturbations to mask uncertain tokens in the visual encoder's self-attention.
    • Supervised intervention methods: Existing work trains hidden-state MLP detectors to reject tokens and roll back, or fine-tunes the model to output verification tokens for retrospective resampling. The authors summarize that these methods update weights, require multiple forward passes or change decoding, whereas this paper studies training-free detection on standard unmodified generation.

    Inference-time detection and generation context

    • Probability and internal signals: Zhou et al. (2024) analyze the negative log probability of object tokens; Internal Confidence projects intermediate image representations through the language head, Contextual Lens uses contextualized representations, GLSim uses global and local cross-modal similarity, and SVAR analyzes visual attention patterns.
    • Generation context: PAS measures the dependence of the current object prediction on previous output tokens, and the authors state that it finds dependence on the generated prefix can be related to hallucination. Other work studies confidence fluctuations across denoising steps in diffusion language models.
    • Baselines and benchmarks in this paper: Comparisons with Category NLL, Entropy, IC, GLSim, SVAR and PAS, using MSCOCO, Pascal VOC and Objects365, with open-ended VQA added in the appendix.

    The authors position the distinction of this paper as: retaining the predictive uncertainty of previous decoding steps and using it together with the current object prediction, rather than introducing another visual or representational signal computed only at the current step.

  3. How does the paper address this problem?

    HART adds the NLL of the current object token to a cumulative historical NLL term that preserves total mass and gives greater weight to recent steps.

    HART does not change the original generation: it saves the NLL of the selected token at each step, and when an object appears, reads its current risk and the prior trajectory risk to form an object-level hallucination score.

    Problem setting and labels

    • Given an image, a prompt and an autoregressive response, the model provides probabilities for the actually generated tokens. Evaluated objects are ordered by first occurrence, and when the same category appears repeatedly, only the first occurrence is kept.
    • An object's position is the first token of its first occurrence; the benchmark protocol provides the categories that truly exist in the image, and a generated object category not among them is a hallucination.
    • The LVLM is frozen, and the detector can only use signals from generation conditioned on the original image, with no additional training or auxiliary generation.

    Current risk and historical decay

    • Current uncertainty is the NLL of the object's first token; the lower the probability, the larger the NLL. It describes only the moment the object first appears and does not include previous steps.
    • For a previous step s, a relative weight w_s,t = γ^(t−1−s) is assigned, where γ = 2^(−1/h), h is the half-life; for every additional h tokens of distance, the weight halves.
    • The authors' design rationale is that recent steps are closer to the current object context. The main experiments uniformly use h = 32.

    History accumulation preserving the total

    • Direct decay would shrink the total of the history term, so the weights are normalized so that the sum of weights over all previous positions remains t−1: Ct=∑s=1t−1αs,tℓs,  ∑s=1t−1αs,t=t−1. Here C_t is the historical uncertainty before object generation; decay only changes the allocation across positions, not the total historical weight.
    • Only tokens before the current token in the response are accumulated, excluding the text prompt and the current token.
    • Maintain the decayed NLL sum A_t and the decayed weight sum Z_t, updating each step as A_(t+1)=γA_t+ℓ_t, Z_(t+1)=γZ_t+1, then compute C_t=(t−1)A_t/Z_t, without traversing the full history.

    Object-level score and special cases

    • The final score is S(ok)=log Ctk+ℓtk; the logarithm is used to reduce the scale difference between the accumulated historical quantity and the current token NLL, and does not change the ranking of the historical signal.
    • log C can be split into log(t_k−1) and log(A/Z): the former preserves the step-count accumulation scale, the latter incorporates the actual historical NLL. Setting all previous NLLs to 1 gives the unit-step variant.
    • The authors state that the current term can provide a supplement when historical risk carries over to subsequent real objects; in the annotated example of Figure 2, the current NLL ranking is wrong, whereas HART ranks the hallucinated object before two real objects.

    Evaluation and statistical methods

    • The default prompt asks for a detailed description of the image, and object recognition and labels follow the CHAIR object-level protocol; all methods use the same responses and annotations.
    • The main metric is AUROC (%), and hallucination recall at low FPR is additionally examined on the more confident half of objects.
    • The 95% confidence interval of AUROC is computed by percentile bootstrap over images with 10,000 resamples, and the value after ± is the interval half-width; the trajectory comparison additionally uses stratified matching to control for object start position and target-step HART risk.
  4. What experiments did the paper conduct?

    The authors compare six baselines on 11 LVLMs, three captioning benchmarks, and VQA, and perform component, history-range, and trajectory analyses.

    Experimental Setup

    • Models evaluated: The main text covers Shikra-7B, InternVL3.5-4B-HF, InternVL3.5-8B-HF, Veason-R1-3B, LLaVA-OneVision-Qwen2-0.5B, ViP-LLaVA-7B, LLaVA-1.5-7B, and LLaVA-1.5-13B; the appendix additionally tests Qwen3.5-0.8B, Qwen3.5-4B, and Qwen3.8-27B.
    • Data scale: 5,000 images from MSCOCO val2014; the full Pascal VOC val2012, 5,823 images in total; 5,000 images from the Objects365 validation set, 365 classes.
    • Baselines and protocol: Category NLL, Entropy, IC, GLSim, SVAR, PAS; all methods share the generated responses and CHAIR object-level annotations, with no LLM judging.
    • Metrics and repetitions: Main metric AUROC (%) with 95% confidence intervals; image-level bootstrap with 10,000 iterations. The paper does not report the number of repeated generations per model.
    • Default parameters: HART half-life h=32; the default prompt asks for a detailed image description. In the appendix Qwen experiments, because default responses are very long, the Short prompt is used uniformly and thinking mode is disabled.

    Main Results

    The table below lists HART and the strongest average baseline, PAS, from Table 1 and Table 2; AUROC is in %, averaged across MSCOCO and Pascal VOC.

    Swipe horizontally to read the table

    ModelPAS averageHART averageSource
    Shikra-7B85.0886.28Table 1
    InternVL3.5-4B-HF75.16578.495Table 1
    InternVL3.5-8B-HF73.8577.32Table 1
    Veason-R1-3B77.1079.185Table 1
    LLaVA-OneVision-Qwen2-0.5B78.2279.945Table 2
    ViP-LLaVA-7B83.2985.425Table 2
    LLaVA-1.5-7B84.9186.055Table 2
    LLaVA-1.5-13B85.0186.095Table 2
    • Cross-architecture results: In Table 1, HART's overall average AUROC is 80.32, versus 77.80 for PAS; the authors report that HART is highest on both datasets for all four models.
    • LLaVA results and exception: In Table 2, HART's overall average is 84.38, versus 82.86 for PAS; however, on MSCOCO for LLaVA-OneVision-Qwen2-0.5B, HART is 78.81±0.92, lower than SVAR's 78.99±0.98, so it does not win every cell.
    • Objects365: In Table 3, HART is highest on all four models, averaging 68.19%, versus 65.39% for SVAR and 64.51% for PAS; the authors state that this benchmark contains dense scenes and 365 fine-grained categories.

    Length, Prompts, and VQA Generalization

    • Length and wording: Table 4 compares Short (19.2 tokens), Medium (88.0), and three Long versions (114.2–121.1) on LLaVA-1.5-7B and MSCOCO. HART's columns are 84.28, 86.60, 86.40, 86.13, and 87.40, averaging 86.16; PAS averages 83.54.
    • Short-response exception: In the same table under the Short condition, IC, GLSim, and SVAR are 63.11, 56.26, and 68.34, respectively, all below 69%; HART is 84.28. The authors use this to emphasize that the historical term still has an effect in short texts.
    • Open-ended VQA: Table 9 uses LLaVA-1.5-7B and three question types on MSCOCO; HART is 83.72, 83.84, and 83.30 on VQA-1/2/3, averaging 83.62%; PAS averages 81.04%. The authors state that historical uncertainty remains useful across these three task types.

    Component, Trajectory, and Low-FPR Analysis

    • Component ablation: Table 5 uses LLaVA-1.5-7B. Current only is 64.45, 65.97, and 70.40 on Pascal VOC, Objects365, and MSCOCO; Historical only is 85.41, 71.13, and 84.34; full HART is 85.98, 73.81, and 86.13. The authors state that the historical term contributes the main gain and the current term provides a supplement.
    • Matched trajectories: Figure 4 compares relative positions −32 to 0 on MSCOCO and Pascal VOC after controlling for starting position and target-step risk; the authors state that hallucinated objects have higher risk before the target token. Appendix A.4 retains objects with starting position at least 32, leaving 24/25 stratified cells for MSCOCO and 25/25 for Pascal VOC.
    • High-confidence subset: Figure 5 takes only the 50% of objects on which the current prediction is more confident; the caption reports that at 5% FPR, HART's hallucination recall relative to PAS is 3.3 percentage points higher on MSCOCO and 1.5 percentage points higher on Pascal VOC.

    Other Ablations and Analyses

    • History composition: In Table 6, on MSCOCO Short/Long, Position only is 80.02/83.73, unit-step is 83.40/85.85, and full HART is 84.28/86.13.
    • History range: In Table 7, the most recent 16, most recent 32, and earliest 16 tokens on MSCOCO are 85.89, 86.11, and 85.55, respectively, versus 86.13 for the full history; all use mass normalization.
    • Half-life: In Table 8, for h=4 to 64, MSCOCO ranges from 85.790 to 86.126 and Pascal VOC from 85.714 to 85.980; the main setting is h=32.
    • Recent models: In Table 10, on the three Qwen models, HART's overall average across the two datasets is 76.72%, versus 71.97% for PAS; HART is highest for each model across both datasets.
    • Qualitative exception: Appendix A.7 notes that a real object immediately following a hallucination may inherit a higher historical risk; the authors state that a lower current risk can reduce its full HART score, and Figure 7 gives such examples.
  5. What are some points that can be further explored?

    The authors list three limitations: fixed decay, dependence on token probabilities, and task generalization; the experiments also have explicit evaluation boundaries.

    Limitations and future directions noted by the authors

    • Fixed decay: Section 5.6 notes that HART uses a fixed exponential decay for previous steps, but the relevance of early uncertainty may vary with object and context; the authors believe more adaptive weighting could better identify informative trajectory segments.
    • Applicability to closed-source models: Section 5.6 notes that the method requires token-level probabilities and is therefore difficult to use with closed-source models that only expose generated text.
    • Hallucination types and tasks: Section 5.6 notes that the main evaluation is object hallucination in image descriptions on three datasets, and open-ended VQA is only preliminary results; whether ungrounded content such as attributes and relations, and complex multi-step reasoning, exhibit the same trajectory patterns remains to be studied.
    • Cross-setting transfer: Section 5.6 proposes that broader evaluation is needed to determine how general historical uncertainty is in multimodal generation settings.

    Scope of experimental coverage

    • Model scope: The main text covers 8 LVLMs, and Appendix A.6 adds 3 Qwen models; the Qwen experiments use the Short prompt and disable thinking mode.
    • Data and tasks: Covers image descriptions on MSCOCO, Pascal VOC and Objects365, and three types of open-ended VQA on MSCOCO; labels are produced under the CHAIR object-level protocol.
    • Detection output: The main result is object-level AUROC; hallucination recall at low FPR on the more confident half of objects is also reported, and no latency or query-cost measurements of a complete detection system are given.
    • Statistical information: Table 1 and Table 2 give 95% bootstrap confidence intervals for AUROC; the paper does not report the number of generation repetitions, nor human annotation agreement.
    • Mechanism evidence: Figure 4 is a trajectory comparison controlling for position and current risk, and Tables 5–8 are component and parameter ablations; these experiments analyze the detection signal and do not change model weights or the decoding process.
  6. Summarize the main content of the paper

    HART supplements the uncertainty of the current token with the decoding trajectory, achieving a higher average AUROC in multiple object hallucination detection evaluations.

    HART is a training-free detector for object hallucination in LVLMs, focusing on uncertainty from earlier decoding rather than taking signals only when the object appears.

    • Problem: Autoregressive generation lets hallucinated objects naturally follow already-generated text; the authors argue that hesitation at earlier choices is not retained in the text prefix, so current-step probabilities, attention, or representations may miss such cues.
    • Method: Records the NLL of actually generated tokens, weights history with exponential decay at half-life h=32, and normalizes to keep the total historical weight constant; an object's score is the sum of its first token's current NLL and the log of the accumulated historical quantity. The method freezes the model, does not assist generation, and can be updated recursively online.
    • Main results: On the four cross-architecture LVLMs in Table 1, HART's overall average AUROC on MSCOCO and Pascal VOC is 80.32, versus 77.80 for PAS; on the four LLaVAs in Table 2, they are 84.38 and 82.86, respectively.
    • Generalization results: On the four models in Table 3 on Objects365, average AUROC is 68.19%; on LLaVA-1.5-7B across three VQA types in Table 9, the average is 83.62%; on the three Qwen models and two datasets in Table 10, the average is 76.72%.
    • Analysis and exceptions: Table 5 shows the historical term alone already provides most of the detection capability, and adding the current term further improves on all three datasets; Figure 5 reports that on the more confident half of objects at 5% FPR, MSCOCO recall is 3.3 percentage points higher than PAS. Table 2 also has one cell-level exception: on MSCOCO for LLaVA-OneVision-Qwen2-0.5B, HART is slightly lower than SVAR.
    • Authors' conclusions and boundaries: The authors believe retaining generation uncertainty helps identify unreliable outputs, and that both the cumulative scale and the actual historical NLL matter; they also acknowledge that fixed decay, the requirement for token probability access, and generalization to attribute and relation hallucinations and multi-step reasoning remain to be studied.

Research lineage

Connected via shared benchmarks in library
Explore in knowledge graph →

Related papers

Show 3 more papers
Read originalarxiv.org