WorksComputer Science
HALMES: Knowing When to Intervene in LVLM Hallucination Mitigation
Abstract
Large Vision-Language Models (LVLMs) have demonstrated strong capabilities in multimodal tasks. Nevertheless, their outputs remain prone to object hallucinations that are inconsistent with visual content. Contrastive decoding, as a training-free inference-time mitigation approach, typically intervenes in the output distribution at every decoding step. However, such indiscriminate full-stage intervention may disrupt originally correct generations and even induce new hallucinations. To address this issue, we first analyze the relationship between internal attention features and hallucinated token segments in LVLMs, revealing that hallucination-related abnormalities already emerge progressively in preceding token segments. Based on this observation, we propose HALMES, a lightweight plug-and-play module that identifies hallucination precursor segments from attention features during generation and selectively triggers contrastive decoding. HALMES can be integrated with various full-stage contrastive decoding methods, transforming indiscriminate intervention into on-demand targeted correction. Extensive experiments across different LVLM architectures and multiple benchmarks show that HALMES further improves the hallucination mitigation performance of existing contrastive decoding methods while reducing the negative impact of full-stage intervention on normal outputs, validating the importance of modeling and selectively intervening on hallucination-prone segments.
Figure 1. Overview of HALMES. By detecting anomalous token segments from internal attention features, HALMES enables early hallucination warning and selectively triggers contrastive decoding, transforming full-stage indiscriminate intervention into on-demand targeted correction.
Introduction
Recent advances in Large Vision-Language Models (LVLMs) have demonstrated impressive capabilities across a wide range of multimodal tasks, including image captioning [39, 40, 7, 13, 15, 9, 51, 21, 42], visual question answering [1, 22, 27, 23, 46], and visual reasoning [34, 32, 43, 52]. However, the ever-growing adoption of LVLMs also gives rise to concerns about the reliability of their outputs. In particular, research has indicated that LVLMs are susceptible to object hallucination, generating textual descriptions that contain objects inconsistent with the given visual input [30, 25, 50, 3, 37, 53]. This tendency not only undermines the trustworthiness of model outputs but also poses potential safety risks in high-stakes applications. Consequently, the reliable detection and effective mitigation of hallucinations are critical for establishing trustworthy LVLMs.
Various approaches have been developed to mitigate object hallucination in LVLMs. Among them, contrastive decoding has attracted considerable attention as a training-free inference-time intervention paradigm. The core idea is to construct a biased contrastive branch relative to the original inference process and suppress hallucination-prone tokens by contrasting the output distributions of the two branches. Depending on how the contrastive signal is constructed, existing methods can be broadly categorized into two lines: one line perturbs the visual or textual input to alleviate visual attention drift [35, 8, 17, 41, 29, 61] and suppress inherent biases from the language modality [58, 36], while another line contrasts output distributions across different layers, leveraging inter-layer information discrepancies to identify and correct hallucinated content [10, 55]. Despite their diverse strategies, these methods share a common paradigm: intervention is applied to the token-level output probability distribution at every decoding step. However, we observe that this indiscriminate, full-stage intervention strategy introduces non-negligible side effects, as it can degrade originally correct outputs and even induce hallucinations in samples that would be hallucination-free without intervention. This observation suggests that contrastive decoding should not be applied in a one-size-fits-all manner. Instead, intervention should be selectively triggered only at positions where hallucination risk is genuinely elevated. This necessitates a mechanism capable of explicitly localizing the onset of hallucination during generation, thereby enabling targeted intervention.
To enable targeted intervention, it is essential to detect hallucination at the token level during generation. Existing token-level hallucination detection methods typically focus on identifying hallucinated object nouns, determining whether a given noun token refers to a real or hallucinated object [19, 47, 49, 31, 18]. However, recent studies provide compelling evidence that hallucination does not necessarily originate from the hallucinated noun token itself. Several works [16, 26, 62] have shown that hallucination-related triggers may emerge as continuous patterns in preceding tokens before the hallucinated object is generated. These findings reveal a critical gap: existing methods can distinguish hallucinated nouns from truthful ones in a post-hoc manner, but isolated token-level decisions are insufficient to capture the progressive anomalous patterns that lead to hallucination during real-time generation. To selectively trigger contrastive decoding, the detector should determine whether the current decoding trajectory has entered a hallucination-prone segment, rather than whether a single token position appears abnormal. We therefore formulate hallucination detection as a token-segment-level problem that captures anomalous patterns across the preceding token sequence.
Motivated by this challenge, we investigate cross-modal fusion in LVLMs by analyzing attention distributions between textual and visual modalities. Specifically, we adopt the Visual Attention Ratio (VAR) metric proposed in [31], which characterizes the degree of attention that each generated token allocates to image tokens across layers and attention heads. Meanwhile, inspired by [18, 11], we further design a set of complementary attention-based implicit features that capture the model’s reliance on different modalities from multiple perspectives during generation. Through systematic statistical analysis, we find that hallucinated token segments and normal token segments exhibit significant distributional differences across all of these implicit features. To verify the applicability of these implicit features across different model architectures, we conduct experiments on two representative mainstream LVLMs [2, 57]. Although the specific anomaly distributions vary across models, the designed implicit features consistently capture hallucination-related anomalous patterns, demonstrating their effectiveness as architecture-agnostic hallucination indicators.
Based on the above empirical findings, we propose HALMES, a lightweight plug-and-play module that detects anomalous token segments during LVLM inference and selectively triggers contrastive decoding. In HALMES, we depart from the conventional token-level noun classification paradigm and instead reformulate hallucination detection as a token-segment-level binary classification problem, capturing hallucination precursor patterns from the attention features of the generated sequence. As an external module, HALMES can be seamlessly deployed on top of any full-stage contrastive decoding method, transforming indiscriminate intervention into on-demand, targeted correction. Extensive experimental results demonstrate that the integration of HALMES further improves the hallucination mitigation performance of full-stage contrastive decoding, which also highlights the importance of modeling and intervening on hallucination-prone anomalous segments.
In summary, our contributions are as follows:
We systematically analyze the relationship between internal attention features and hallucinated token segments in LVLMs, revealing the high specificity of attention-based features as hallucination indicators and verifying their generality across different LVLM architectures.
To the best of our knowledge, we are the first to propose a token-segment-level hallucination detection method, which extends hallucination detection from post-hoc classification of individual noun tokens to real-time anomaly identification over token segments during generation. The proposed method HALMES detects hallucination precursors from anomalous patterns in the attention feature space and integrates with multiple contrastive decoding methods in a plug-and-play manner, transforming full-stage indiscriminate intervention into on-demand targeted intervention.
We conduct comprehensive experiments with multiple contrastive decoding methods across several widely-used benchmarks. The results validate the efficacy of token-segment-level hallucination detection and targeted intervention, and demonstrate that HALMES significantly reduces the side effects of existing state-of-the-art contrastive decoding methods, yielding further improvements in hallucination mitigation performance.
Related Work
Internal Representations for Hallucination Detection. Recent studies have demonstrated that the internal representations of large models contain discriminative signals indicative of hallucination, and have been widely adopted for hallucination detection. At the response level, several methods [6, 33, 44] assess the overall trustworthiness of generated responses through the semantic consistency of hidden states or the uncertainty of output distributions, yet lack the ability to pinpoint where hallucinations occur within the sequence. This limitation has motivated a shift toward token-level detection. In the LLM domain, works such as [11, 63, 47] leverage attention map features, cross-layer hidden state dynamics, or adaptive token selection to identify hallucinated tokens. In the LVLM domain, several approaches [31, 16, 18, 5, 19] further incorporate visual attention patterns or cross-modal hidden states to detect hallucinated object nouns. Despite their notable progress, these token-level methods remain confined to isolated token positions and cannot capture anomalous patterns that may emerge within the token segment preceding a hallucinated noun. Recent work [48] extends detection to the span level but is limited to post-hoc labeling in LLM text generation without real-time triggering during inference. Overall, existing methods cannot yet identify hallucination precursors at the token-segment level during inference. In contrast, HALMES operates at the token-segment level, capturing anomalous attention patterns preceding potential hallucinations to enable on-demand triggering of contrastive decoding.
Contrastive Decoding for Hallucination Mitigation. Contrastive decoding suppresses hallucination components by constructing a contrastive branch that deviates from the original inference process, and has become a mainstream paradigm for hallucination mitigation. Existing methods either amplify hallucination biases by perturbing the visual or textual input and subtract them from the original distribution [35, 17, 58, 45, 60, 64, 29], or operate from the model’s internals by contrasting output distributions across layers or adjusting intermediate attention weights to enhance visual information utilization [10, 41, 31, 14, 61]. However, these methods all apply intervention at every decoding step, which may degrade originally correct outputs. To mitigate this side effect, recent works [26, 62, 54] have explored targeted intervention strategies that detect anomalous patterns or adaptively select intervention schemes, achieving improved performance. Nevertheless, their triggering mechanisms still rely on heuristic rules or single-step feature judgments, lacking systematic modeling of the hallucination generation process. To this end, HALMES leverages the token-segment-level detection described above to enable plug-and-play, on-demand triggering of contrastive decoding.
Preliminaries
Autoregressive Generation in LVLMs. Given an LVLM parameterized by , the input consists of an image and a text query . The text query is tokenized into a sequence of tokens , and a vision encoder maps into a set of -dimensional visual tokens , which are then projected into the shared embedding space of the language model via a modality alignment module. Subsequently, the model generates a response in an autoregressive manner: at timestep , the model processes the input tokens , followed by the previously generated tokens , to predict the next token . Let denote the index of in the vocabulary . The probability distribution over is given by:
where denotes the unnormalized scores from the final layer. The next token is then sampled from this distribution according to the chosen decoding strategy.
Contrastive Decoding. Contrastive decoding mitigates hallucinations by subtracting hallucination-amplified logits from the original logits before the softmax operation. Specifically, given the original input , a contrastive branch is constructed by applying a predefined perturbation to the visual input , the text query , or both, yielding a distorted input that amplifies hallucination biases. The contrastive distribution is computed as:
where controls the strength of hallucination suppression, with reducing to standard decoding. Various sampling strategies [20, 24] can be applied to . Notably, this correction is applied at every timestep , uniformly modifying the output distribution regardless of whether the current token is at risk of hallucination. As discussed in Section 1, such indiscriminate full-stage intervention may unnecessarily perturb correct outputs and even introduce new hallucinations.
Methodology
Attention-based Hallucination Pattern Analysis
Why Attention-based Features? Recent studies have shown that the internal states of LVLMs contain discriminative signals for hallucination detection. Existing approaches have explored such signals from different perspectives, including hidden-state representations [16], generation statistics [18], and attention patterns [31]. These findings suggest that object hallucination is not only reflected in the final output, but also leaves observable traces in the model’s internal dynamics. In LVLMs, object hallucination is often linked to excessive reliance on language priors and insufficient visual grounding during cross-modal fusion, the latter typically manifested as visual attention drift or imbalanced dependence across modalities. For the hallucination precursor segments studied in this work, hidden states are less explicit in revealing how the model reallocates dependence across different information sources, while generation statistics mainly characterize output behavior rather than the internal fusion process itself. By contrast, attention distributions directly capture how the current decoding position attends to visual tokens, prompt tokens, and previously generated text. Therefore, attention-based features provide a more suitable basis for our analysis and modeling.
Features Formulation. Based on the above analysis, we construct a set of implicit features derived from cross-modal attention distributions to characterize the internal state of the current decoding position in terms of visual reliance, textual reliance, the relative balance between textual and visual reliance, and the complexity of the outgoing attention distribution. Let denote the token generated at decoding step . For the -th attention head in the -th layer, we denote by:
as the attention distribution of the current decoding position over all visible tokens, where is the number of visible tokens at step . We further denote by , , and the sets of visual tokens, prompt tokens, and previously generated text tokens, respectively. Under these notations, we define the attention-based features used in our method as follows.
Visual attention ratio (VAR). Following [31], we use VAR to quantify the attention allocated to visual tokens:
where provides a compact measure of the overall visual reliance at decoding step .
Prompt attention. To measure the dependence on the input prompt, we define:
which reflects the extent to which the current decoding position attends to the prompt tokens.
Generated-text attention. We define the average attention to prior generated tokens as:
with this quantity set to zero when no previously generated text is available.
Text-visual ratio. To quantify the balance between textual and visual reliance, we define:
where larger values indicate higher generated-text attention relative to visual attention.
Outgoing attention entropy. To quantify the dispersion of the current token’s attention over all visible tokens, we define the head-level entropy as:
with the final normalized outgoing attention entropy given by:
where measures the degree of concentration of attention at the current decoding position.
Hallucination Pattern Discovery. We construct a token-segment-level dataset from a randomly sampled subset of 5,000 images from MSCOCO train2014 [38]. For each image, we prompt the target LVLM to generate a response and use CHAIR to localize hallucinated object nouns. Based on the localized noun positions, each response is decomposed into multiple token-segment samples. Specifically, for each noun token, we collect the attention-based features of all tokens from the beginning of the response to the position immediately before that noun token, and assign the segment a hallucinated or normal label according to whether the corresponding noun is hallucinated. To avoid ambiguous supervision, we discard all non-hallucinated noun segments that appear after the first hallucinated noun in the same response, since the subsequent generation may already deviate from the normal decoding trajectory. As a result, a single response may yield multiple labeled token-segment samples for the subsequent statistical analysis.
To analyze how generated tokens attend to image tokens, we visualize the average VAR distribution across layers and heads in Figure 2(a). Visual attention is mainly concentrated in the middle layers and a few highly responsive heads, which is consistent with prior observations in [31] and suggests active visual information interaction in the middle layers. Figure 2(b) further shows the average VAR difference between hallucinated and normal samples. Normal samples exhibit stronger visual attention in early layers, indicating earlier visual grounding, whereas hallucinated samples show higher visual attention in middle and deep layers, with the difference gradually weakening toward deeper layers. This suggests that later increases in visual attention do not necessarily correct an already deviated generation trajectory. Overall, VAR across the network carries hallucination-related discriminative information, motivating us to retain the full-layer VAR representation in subsequent modeling.

Figure 2. Attention-based feature analysis for hallucinated and normal token segments. (a) Average VAR distribution across layers and attention heads. (b) Layer-wise VAR difference between hallucinated and normal samples. (c) Relative-position differences of prompt attention, generated-text attention, text-visual ratio, and outgoing attention entropy before the noun token.
For the remaining four features, we analyze hallucinated–normal differences at positions preceding the noun token, as shown in Figure 2(c). As decoding approaches the noun token, prompt attention, generated-text attention, and text-visual ratio consistently show negative differences, indicating weaker reliance on the prompt and generated history in hallucinated samples before the noun is produced. In contrast, outgoing attention entropy shows positive and increasingly pronounced differences, suggesting more diffuse attention and weaker focus in hallucinated samples. The right-side distributions further show stable separability between the two groups, while the bottom discriminative-strength curve indicates that such differences become stronger near the noun token. These results support our hypothesis that hallucination precursors emerge progressively within the preceding token segment rather than only at the noun position.
HALMES
Token-Segment-Level Detection Model. During training, each sample is represented as a prefix feature sequence and passed to a lightweight gate model for hallucination precursor prediction. Let denote the feature vector at decoding step , where is composed of the attention-based features defined above. For a training sample, let denote the length of the generated prefix preceding its corresponding noun token. The input sequence is then defined as:
where denotes the retained tail ratio. Therefore, is a local token-level feature segment that captures the attention-pattern evolution before the corresponding noun token. We aggregate along the token dimension into a fixed-dimensional segment representation , which is then fed into the gate model to output a hallucination risk score:
In our implementation, is instantiated as a 2-layer MLP backbone, offering a lightweight and effective architecture that is well suited for efficient deployment at inference time.
Inference-time Deployment. During inference, we attach the gate as an external lightweight module to the original decoding process. Let denote the feature vector extracted at decoding step , which is appended to a feature buffer. To reduce distribution shifts across responses, we use the training-set mean and variance as priors and perform one Welford update [59] with the first sample of the current response. The resulting statistics are then fixed and used to normalize all subsequent window features for the rest of the response. At each step , we extract the most recent feature vectors from the buffer to form a local window and compute:
where and denote the mean and standard deviation after prior initialization and one-step adaptive calibration, is the sliding-window size, is the training-time aggregation, and is the hallucination risk score. To remain consistent with the segment-level training paradigm, we apply the gate to aggregated local token segments rather than isolated token-level features. In practice, is set slightly smaller than the average length of the training samples so that the input segment remains close to that used in training while still enabling early warning of abnormal segments. We further apply a trend-aware double-threshold hysteresis mechanism to the score sequence to reduce false triggering caused by local noise. The detailed inference procedure is provided in the appendix.
Experiments
We evaluated the efficacy of HALMES through extensive experiments on multiple benchmarks. Specifically, we focused on the following research questions.
Q1. Whether the proposed attention-based features can support token-segment-level hallucination detection across different LVLM architectures.
Q2. Whether selectively applying contrastive decoding to detected anomalous token segments can preserve hallucination mitigation efficacy while reducing the side effects of indiscriminate full-stage intervention.
Further details on the implementation and additional experimental results are provided in the appendix.
Q1: Attention-based Features for Token-Segment-Level Hallucination Detection
To validate whether the proposed attention-based features can support hallucination-prone segment detection, we varied the VAR layer range while keeping the remaining four features fixed to examine the layer-wise distribution of hallucination-related cues.
The results are shown in Table 1. On both LVLM architectures, full-layer VAR achieves the highest AUROC, indicating that the proposed attention-based features can serve as useful indicators for token-segment-level hallucination detection. Meanwhile, the second-best layer range differs across architectures: middle-layer VAR (13–24) performs second-best on Qwen3VL-8B, whereas deep-layer VAR (25–36) is more competitive on InternVL3.5-8B. This suggests that hallucination-related cues are distributed across layers, while their most prominent ranges vary across LVLM architectures. Considering that full-stage contrastive decoding may introduce side effects on normal outputs, we paid particular attention to whether the detector could maintain high Recall while controlling the false positive rate (FPR). Although full-layer VAR does not always achieve the lowest FPR, it obtains the highest Recall on both models and provides a better trade-off with second-best or near-second-best FPR. Therefore, we adopted full-layer VAR as the input for subsequent modeling.
| VAR layers | Qwen3VL-8B | InternVL3.5-8B | ||||||||
| AUROC ↑ | Accuracy ↑ | Recall ↑ | PR-AUC ↑ | FPR ↓ | AUROC ↑ | Accuracy ↑ | Recall ↑ | PR-AUC ↑ | FPR ↓ | |
| 1–12 | 88.35 | 80.00 | 72.89 | 88.72 | 18.22 | 88.28 | 79.61 | 82.14 | 88.05 | 22.92 |
| 13–24 | 90.64 | 84.00 | 84.89 | 90.82 | 16.89 | 88.92 | 81.40 | 81.85 | 87.57 | 19.06 |
| 25–36 | 89.91 | 83.11 | 76.89 | 90.26 | 10.67 | 90.24 | 82.59 | 86.01 | 88.78 | 20.83 |
| 1–36 | 91.31 | 86.73 | 86.39 | 88.76 | 12.93 | 90.52 | 83.63 | 87.20 | 90.03 | 19.94 |
Table 1. Hallucination detection performance under different VAR layer ranges on two LVLM architectures [2, 57]. All settings include the remaining four features and differ only in the chosen VAR layer range. The best and second-best results are highlighted in color.
Q2: Selective Contrastive Decoding on Detected Anomalous Token Segments
Object Hallucination Mitigation on MSCOCO and AMBER. As shown in Table 2, we evaluated the effect of HALMES on object hallucination mitigation using MSCOCO val2014 [38] and AMBER [56]. The results show that integrating HALMES into five full-stage contrastive decoding methods further reduces hallucination metrics in most settings, indicating that contrastive decoding does not necessarily need to be applied indiscriminately throughout the generation process. Instead, restricting intervention to detected anomalous token segments can preserve hallucination mitigation efficacy while potentially improving it. For MSCOCO, different contrastive decoding methods exhibit different behaviors: some methods reduce hallucination, whereas others even aggravate hallucination under full-stage intervention. After introducing HALMES, all CD methods obtain consistent improvements, suggesting that selective triggering can alleviate the instability of full-stage intervention. Meanwhile, the visual ground-truth coverage (Cov.) decreases for some methods, indicating that HALMES may make descriptions slightly more conservative while reducing hallucinated object mentions. This reflects a potential trade-off between hallucination mitigation and visual coverage. For AMBER, HALMES reduces hallucination in most settings, with a maximum HalRate reduction of 27.6%, though its gains are limited for M3ID and Self-Aug. This indicates that selective triggering can behave differently across CD methods and benchmark settings. Overall, these results support our central claim that selective contrastive decoding over anomalous token segments can mitigate hallucination more effectively than indiscriminate full-stage intervention in most settings.
| Method | Qwen3VL-8B | InternVL3.5-8B | ||||||||||||
| MSCOCO | AMBER | MSCOCO | AMBER | |||||||||||
| CI | CS | Cov. | CHAIR | Cover | Cog | Hal | CI | CS | Cov. | CHAIR | Cover | Cog | Hal | |
| Base | ||||||||||||||
| Beam | 13.35 | 30.80 | 52.26 | 7.48 | 53.55 | 3.52 | 35.33 | 18.02 | 30.00 | 37.20 | 11.73 | 43.22 | 3.67 | 41.00 |
| Nucleus | 13.84 | 33.60 | 51.20 | 8.82 | 52.89 | 3.02 | 35.60 | 16.07 | 43.20 | 66.94 | 6.37 | 52.46 | 3.72 | 34.33 |
| Full-Stage Contrastive Decoding | ||||||||||||||
| VCD (CVPR 2024) | 12.96 | 35.40 | 51.96 | 7.56 | 52.25 | 3.65 | 37.33 | 14.92 | 44.00 | 68.22 | 7.34 | 59.20 | 4.06 | 38.67 |
| M3ID (CVPR 2024) | 14.50 | 35.80 | 50.98 | 7.37 | 52.99 | 3.03 | 34.67 | 13.26 | 37.80 | 67.92 | 7.25 | 54.71 | 3.16 | 38.00 |
| AVISC (ACL 2025) | 14.26 | 38.80 | 53.39 | 8.86 | 53.26 | 3.53 | 43.00 | 14.87 | 43.60 | 69.35 | 7.75 | 55.04 | 3.21 | 41.00 |
| SID (ICLR 2025) | 12.74 | 37.40 | 53.39 | 9.12 | 52.91 | 3.53 | 40.33 | 14.07 | 41.40 | 69.50 | 7.55 | 54.94 | 3.24 | 37.33 |
| Self-Aug (ICLR 2026) | 12.11 | 31.20 | 51.66 | 7.33 | 52.16 | 3.01 | 35.33 | 13.92 | 40.80 | 68.30 | 6.14 | 54.58 | 2.98 | 32.33 |
| HALMES (Ours) | ||||||||||||||
| HALMES+VCD | 11.50 | 31.80 | 54.14 | 7.52 | 54.18 | 3.23 | 37.33 | 13.00 | 38.20 | 68.30 | 6.18 | 54.93 | 2.98 | 28.00 |
| HALMES+M3ID | 10.76 | 30.00 | 53.69 | 7.67 | 52.57 | 3.56 | 37.33 | 12.01 | 35.60 | 68.00 | 7.76 | 54.79 | 3.91 | 34.67 |
| HALMES+AVISC | 11.41 | 29.00 | 52.03 | 8.04 | 54.42 | 3.40 | 39.67 | 12.00 | 38.40 | 69.05 | 7.46 | 54.27 | 3.41 | 33.33 |
| HALMES+SID | 11.44 | 31.80 | 53.24 | 8.19 | 54.66 | 3.45 | 40.00 | 12.30 | 37.80 | 67.62 | 5.98 | 55.34 | 2.89 | 32.67 |
| HALMES+Self-Aug | 11.27 | 30.60 | 53.24 | 7.84 | 53.79 | 3.08 | 38.33 | 12.58 | 36.40 | 70.11 | 6.52 | 54.05 | 3.16 | 30.33 |
| absolute (pp) vs. corresponding contrastive decoding method (+: improvement, -: degradation) | ||||||||||||||
| HALMES+VCD | +1.46 | +3.60 | +2.18 | +0.04 | +1.93 | +0.42 | 0.00 | +1.92 | +5.80 | +0.08 | +1.16 | -4.27 | +1.08 | +10.67 |
| HALMES+M3ID | +3.74 | +5.80 | +2.71 | -0.30 | -0.42 | -0.53 | -2.66 | +1.25 | +2.20 | +0.08 | -0.51 | +0.08 | -0.75 | +3.33 |
| HALMES+AVISC | +2.85 | +9.80 | -1.36 | +0.82 | +1.16 | +0.13 | +3.33 | +2.87 | +5.20 | -0.30 | +0.29 | -0.77 | -0.20 | +7.67 |
| HALMES+SID | +1.30 | +5.60 | -0.15 | +0.93 | +1.75 | +0.08 | +0.33 | +1.77 | +3.60 | -1.88 | +1.57 | +0.40 | +0.35 | +4.66 |
| HALMES+Self-Aug | +0.84 | +0.60 | +1.58 | -0.51 | +1.63 | -0.07 | -3.00 | +1.34 | +4.40 | +1.81 | -0.38 | -0.53 | -0.18 | +2.00 |
| relative (%) vs. corresponding contrastive decoding method (+: improvement, -: degradation) | ||||||||||||||
| HALMES+VCD | +11.3% | +10.2% | +4.2% | +0.5% | +3.7% | +11.5% | 0.0% | +12.9% | +13.2% | +0.1% | +15.8% | -7.2% | +26.6% | +27.6% |
| HALMES+M3ID | +25.8% | +16.2% | +5.3% | -4.1% | -0.8% | -17.5% | -7.7% | +9.4% | +5.8% | +0.1% | -7.0% | +0.1% | -23.7% | +8.8% |
| HALMES+AVISC | +20.0% | +25.3% | -2.5% | +9.4% | +2.2% | +3.7% | +7.7% | +19.3% | +11.9% | -0.4% | +3.7% | -1.4% | -6.2% | +18.7% |
| HALMES+SID | +10.2% | +15.0% | -0.3% | +10.2% | +3.3% | +2.3% | +0.8% | +12.6% | +8.7% | -2.7% | +20.8% | +0.7% | +10.8% | +12.5% |
| HALMES+Self-Aug | +6.9% | +1.9% | +3.1% | -7.0% | +3.1% | -2.3% | -8.5% | +9.6% | +10.8% | +2.7% | -6.2% | -1.0% | -6.0% | +6.2% |
Table 2. Hallucination evaluation results on MSCOCO and AMBER for Qwen [2] and InternVL [57]. Arrows indicate the preferred direction. Bold denotes the best result. In the blocks, + and - indicate improvement and degradation over the corresponding contrastive decoding method.
General LVLM Evaluation on MMHal-Bench and Bingo. We further evaluated HALMES on MMHal-Bench [53] and Bingo [12] to assess its impact on the model’s generation capability, with results summarized in Table 3. HALMES improves the hallucination rate and response score on MMHal-Bench in most settings, with relatively stable gains for VCD and AVISC, indicating that selective intervention still provides hallucination mitigation benefits in comprehensive evaluation scenarios. However, the improvements on Bingo are limited, and slight degradation is observed in some settings, suggesting that intervention on anomalous segments may affect response completeness or expression quality. Overall, HALMES has a positive effect on hallucination reduction, but in broader evaluation settings, it still requires a careful balance between hallucination mitigation and response quality.
| Method | Qwen3VL-8B | InternVL3.5-8B | ||||
| MMHal-Bench | Bingo | MMHal-Bench | Bingo | |||
| Hal | Score | Score | Hal | Score | Score | |
| Base | ||||||
| Beam | 45.26 | 3.81 | 3.54 | 63.83 | 2.36 | 2.43 |
| Nucleus | 47.37 | 3.71 | 3.52 | 37.89 | 3.66 | 3.18 |
| Full-Stage Contrastive Decoding | ||||||
| VCD (CVPR 2024) | 51.06 | 3.50 | 3.50 | 44.79 | 3.48 | 3.14 |
| M3ID (CVPR 2024) | 51.61 | 3.42 | 3.47 | 38.54 | 3.75 | 3.15 |
| AVISC (ACL 2025) | 44.68 | 3.69 | 3.43 | 47.92 | 3.38 | 3.09 |
| SID (ICLR 2025) | 43.01 | 3.83 | 3.56 | 42.55 | 3.59 | 3.24 |
| Self-Aug (ICLR 2026) | 35.42 | 4.14 | 3.50 | 41.67 | 3.59 | 3.14 |
| HALMES (Ours) | ||||||
| HALMES+VCD | 40.66 | 3.79 | 3.49 | 36.84 | 3.76 | 3.14 |
| HALMES+M3ID | 49.46 | 3.57 | 3.56 | 41.05 | 3.74 | 3.12 |
| HALMES+AVISC | 42.55 | 3.87 | 3.37 | 42.71 | 3.68 | 3.10 |
| HALMES+SID | 48.35 | 3.36 | 3.54 | 41.67 | 3.68 | 3.13 |
| HALMES+Self-Aug | 33.33 | 4.24 | 3.55 | 38.54 | 3.52 | 3.29 |
| vs. corresponding contrastive decoding method (+: improvement, -: degradation) | ||||||
| HALMES+VCD | +10.40 | +0.29 | -0.01 | +7.95 | +0.28 | 0.00 |
| HALMES+M3ID | +2.15 | +0.15 | +0.09 | +2.51 | -0.01 | -0.03 |
| HALMES+AVISC | +2.13 | +0.18 | -0.06 | +5.21 | +0.30 | +0.01 |
| HALMES+SID | -5.34 | -0.47 | -0.02 | +0.88 | +0.09 | -0.11 |
| HALMES+Self-Aug | +2.09 | +0.10 | +0.05 | +3.13 | -0.07 | +0.15 |
Table 3. Hallucination evaluation results on MMHal-Bench and Bingo for Qwen [2] and InternVL [57]. Bold denotes the best result. In the block, + and - indicate improvement and degradation over the corresponding contrastive decoding method.
Effect and Side-effect Analysis of HALMES. To further characterize the benefits and potential side effects of HALMES, we analyzed the sample-level harm induced by full-stage CD and the corrective effect of HALMES, as shown in Figure 3. Red points show cases where full-stage CD underperforms base decoding, blue points show the remaining harmful cases after HALMES, and green segments indicate rescued cases. Full-stage CD causes non-negligible degradation across models, datasets, and methods, whereas HALMES substantially reduces such harm and rescues around 60% of degraded samples in most settings. The collateral-risk analysis further shows that HALMES may introduce new degradation for samples that originally benefited from CD. Overall, HALMES significantly reduces the risk caused by indiscriminate intervention, while the selective triggering mechanism could be further refined to better avoid false activations and unnecessary interventions.

Figure 3. Sample-level rescue and collateral risk analysis of HALMES. HALMES reduces harmful cases caused by full-stage contrastive decoding, while the right-side bars show the collateral risk introduced by selective triggering.
Relationship Between Intervention Frequency and Hallucination Mitigation. To investigate whether HALMES’s improvements arise from targeted intervention rather than merely reducing CD activation frequency, we conducted controlled experiments on 100 randomly sampled COCO images disjoint from the training set. Specifically, we considered two alternative activation strategies: random activation, which randomly determines whether to apply CD at each decoding step, and periodic activation, which applies CD over consecutive steps within a repeating 10-step cycle. We first analyzed the intervention statistics of HALMES and found that CD correction is activated at approximately 70% of decoding steps. Based on this observation, we evaluated both random and periodic activation strategies at ratios of 30%, 50%, and 70%, with the 70% settings serving as frequency-comparable baselines. All results are averaged across the five evaluated CD methods.
As shown in Table 4, neither random nor periodic activation at 70% yields notable improvements over full-stage CD, despite reducing the intervention frequency by approximately 30%. In particular, both strategies increase from 13.11 to 14.60 and 14.67, respectively, while showing limited differences in and Coverage. In contrast, HALMES achieves the best performance across all three metrics, substantially outperforming both frequency-comparable baselines. Specifically, HALMES reduces by 2.31/4.45 and 2.38/4.08 percentage points compared with the frequency-comparable random and periodic activation, respectively, while improving Coverage by 4.01 and 3.78 points. These results indicate that simply reducing CD activation frequency does not consistently improve hallucination mitigation. Instead, they further support the association between hallucination risk and internal attention patterns, highlighting the importance of identifying anomalous token segments and applying targeted intervention during generation.
| Metric | Base | Full-stage | Random | Random | Random | Periodic | Periodic | Periodic | Ours |
| Nucleus | CD | 30% | 50% | 70% | 3:7 | 5:5 | 7:3 | HALMES | |
| 14.45 | 13.11 | 13.90 | 13.90 | 14.60 | 14.18 | 14.28 | 14.67 | 12.29 | |
| 37.02 | 36.44 | 36.90 | 36.63 | 36.85 | 35.63 | 36.86 | 36.48 | 32.40 | |
| Cov. | 38.77 | 40.68 | 40.86 | 42.71 | 40.80 | 41.06 | 41.60 | 41.03 | 44.81 |
Table 4. Comparison with random and periodic CD activation on a COCO subset. Results are averaged across the five CD methods. Bold denotes the best result.
Conclusion
In this work, we propose HALMES, a lightweight plug-and-play module that detects hallucination-prone token segments from internal attention features during LVLM inference and selectively triggers contrastive decoding, converting indiscriminate full-stage intervention into on-demand correction. Experiments across different LVLM architectures and benchmarks show that HALMES improves existing contrastive decoding methods in most settings while reducing their negative impact on normal outputs. We also observe performance variations across datasets and decoding methods, indicating that reducing false triggers and improving cross-scenario robustness remain important future directions. Overall, these findings highlight the value of shifting inference-time hallucination mitigation from full-stage intervention to fine-grained anomalous-segment-level intervention.
Acknowledgments and Disclosure of Funding
This work was supported in part by the New Generation Artificial Intelligence-National Science and Technology Major Project under Grant 2025ZD0123701, in part by the National Natural Science Foundation of China under Grants 62672348, 62476202, and 62272343, in part by the Explorers Program of Shanghai (Basic Research Funding) from Shanghai Municipal Science and Technology Commission under Grant 26TS1403800, in part by the Innovation Ecosystem Development Program of Shanghai Municipal Science and Technology Commission under Grant 26510761200, and in part by the Fundamental Research Funds for the Central Universities.
Appendix
In this appendix, we provide more details about the implementation, training recipe, and inference strategy of HALMES to complement the main paper. Additional benchmark descriptions, evaluation metrics, experimental results, and discussion are also incorporated. Below is the table of contents.
Model
Implementation Details
The hallucination detector in HALMES is implemented as a 2-layer MLP to predict the hallucination risk of token segments. Specifically, the detector first maps the input segment representation into a 256-dimensional hidden space through a linear layer, followed by LayerNorm, GELU activation, and Dropout for normalization, nonlinear transformation, and regularization. A residual MLP block is further introduced to enhance nonlinear modeling capacity. Finally, a linear classification head outputs a scalar logit, which is converted into a hallucination risk score through a sigmoid function. For a token segment of length , its input attention features are denoted as , where is the feature dimension of each token. Specifically, VAR is represented as a layer-head matrix and flattened into a 1152-dimensional vector, while the remaining four attention-based features, including prompt attention, generated-text attention, text-visual ratio, and outgoing attention entropy, are scalar values. Since different samples contain token segments of varying lengths, we aggregate along the token dimension using five statistics: full-segment mean, tail mean over the last 5 tokens, standard deviation, temporal slope, and maximum value. These statistics are concatenated into a fixed-dimensional segment representation with dimension , and the MLP outputs a single value indicating the probability that the token segment is hallucination-prone.
Training Recipe
To construct the training data for the hallucination abnormal segment detector, we perform offline data generation on a single NVIDIA A800-SXM4-80GB GPU. Specifically, we run the base LVLM on 5,000 randomly sampled images from the MSCOCO train2014 dataset [38] and record attention-related internal features at each token decoding step during caption generation. We then extract nouns from the generated captions and determine whether each noun refers to a non-existent object in the image according to the CHAIR protocol. For each noun, we locate its token id in the generated sequence and construct a token bag using the historical token features preceding that noun. Thus, each response yields as many token bags as its extracted nouns. The bag label is determined by whether the corresponding noun is hallucinated. In this way, the training data explicitly models the generation context before hallucination occurs, enabling the detector to learn abnormal token-segment patterns preceding hallucinated objects. During training, we split the dataset into training and validation sets in a stratified manner according to positive and negative labels, and adopt class reweighting to
Algorithm 1 Inference-time deployment of HALMES
Require: Feature stream $\{z_t\}_{t=1}^{T}$, HALMES model $g_{\phi}$, window size $K$, prior statistics, thresholds $\theta_{\mathrm{high}}, \theta_{\mathrm{low}}$
Ensure: Intervention decisions $\{q_t\}_{t=1}^{T}$
1: Initialize feature buffer $\mathcal{B} \leftarrow \varnothing$, intervention state $q_0 \leftarrow 0$
2: Initialize warm-up counter $u \leftarrow 0$ and cool-down counter $c \leftarrow 0$
3: for $t = 1$ to $T$ do
4: Append $z_t$ to $\mathcal{B}$
5: if statistics are uninitialized then
6: Initialize statistics from priors and update once with $z_t$
7: end if
8: Construct $Z_t$ from the last $\min(K, |\mathcal{B}|)$ features in $\mathcal{B}$
9: Normalize $Z_t$ to obtain $\hat{Z}_t$, set $s_t \leftarrow \operatorname{Agg}(\hat{Z}_t)$, and compute $p_t \leftarrow \operatorname{sigmoid}(g_{\phi}(s_t))$
10: if $q_{t-1} = 0$ and $p_t > \theta_{\mathrm{high}}$ then
11: Increase warm-up counter $u$ and reset cool-down counter $c \leftarrow 0$
12: Set $q_t = 1$ once $u$ reaches a preset limit; otherwise keep $q_t = 0$
13: else if $q_{t-1} = 1$ and $p_t < \theta_{\mathrm{low}}$ then
14: Increase cool-down counter $c$ and reset warm-up counter $u \leftarrow 0$
15: Set $q_t = 0$ once $c$ reaches a preset limit; otherwise keep $q_t = 1$
16: else
17: Reset the inactive counter and keep the current intervention state
18: end if
19: if $q_t = 1$ then
20: Use the contrastive decoding branch
21: else
22: Use the original decoding branch
23: end if
24: end for
alleviate the imbalance between hallucinated and non-hallucinated samples. The model is optimized with AdamW, using a linear warmup followed by cosine learning-rate decay. We further employ mixed precision and gradient clipping to improve stability. During validation, AUROC is used as the primary criterion for model selection, and the checkpoint with the best validation performance is saved for real-time hallucination abnormal segment detection during inference.
Inference Strategy
Inference-time Deployment. During inference, HALMES is integrated into the original LVLM decoding process as an external lightweight module. At each decoding step, we extract the attention-based feature vector from the current attention maps and append it to a feature buffer. To mitigate feature distribution shifts across different responses, we initialize the normalization statistics with the mean and variance computed from the training set, and perform a one-step Welford update using the first feature vector of the current response. The updated statistics are then fixed and used to normalize subsequent window features within the same response. Specifically, at each step, HALMES constructs a local token segment from the most recent feature vectors in the buffer and outputs the hallucination risk score of the current window. To avoid frequent activation or deactivation caused by local noise, we adopt a trend-aware double-threshold hysteresis mechanism. Based on the resulting intervention state, HALMES uses the corresponding contrastive decoding branch for high-risk segments and keeps the original decoding branch for normal segments. The complete inference procedure is shown in Algorithm 1.
Threshold Calibration. The main inference hyperparameters include the local window size , the activation threshold , and the deactivation threshold . Among them, is mainly determined according to the length distribution of token segments in the training data. Since HALMES learns abnormal patterns from token segments preceding hallucinated nouns during training, the inference window should remain close to the effective length of training samples. Meanwhile, to preserve early-warning capability, we set the local window size slightly smaller than the average effective length of training samples. After fixing , we further calibrate and on the validation set according to the trade-off between Recall and false positive rate (FPR). Since HALMES aims to identify high-risk token segments before hallucinated objects are generated, high Recall is prioritized to reduce missed detections. At the same time, an excessively high FPR may falsely trigger intervention during normal generation and reintroduce the over-intervention problem. Therefore, we select a threshold combination that controls FPR while maintaining high Recall, and set to form a hysteresis interval, reducing frequent state switching caused by short-term score fluctuations. The effects of different threshold settings are reported in the Table 5.
| Setting | Gap | CHAIR | Cover | Cog | Hal | |
| Varying FPR budget | ||||||
| Conservative budget | 0.05 | 0.10 | 7.25 | 49.36 | 3.78 | 31.00 |
| Balanced budget | 0.10 | 0.10 | 9.51 | 49.48 | 4.52 | 46.00 |
| Relaxed budget | 0.15 | 0.10 | 10.68 | 50.83 | 4.35 | 49.00 |
| Varying hysteresis gap | ||||||
| No hysteresis | 0.05 | 0.00 | 8.53 | 48.77 | 3.42 | 41.00 |
| Narrow gap | 0.05 | 0.05 | 8.81 | 51.81 | 4.14 | 45.00 |
| Wide gap | 0.05 | 0.15 | 8.92 | 50.68 | 3.67 | 46.00 |
Table 5. Threshold selection analysis on a held-out AMBER calibration subset using Qwen3VL+VCD, disjoint from the final test samples. The first block varies the FPR budget with the hysteresis gap fixed at 0.10, while the second block varies the hysteresis gap with the selected FPR budget fixed at . Bold denotes the configuration used in our main experiments.
Experiments
Baselines
We select VCD [35], M3ID [17], AVISC [61], SID [28], and Self-Aug [29] as the main baselines because the central goal of this work is to examine whether contrastive decoding should be applied selectively to hallucination-prone segments, rather than continuously throughout the entire generation process. HALMES is therefore positioned as a plug-and-play triggering module for existing CD methods, instead of a standalone adaptive decoding rule. For this reason, we focus on controlled comparisons within each CD backbone: we keep its original contrastive formulation, logit adjustment, and decoding rule unchanged, and compare the full-stage version with its HALMES-guided counterpart. This design isolates the contribution of the triggering mechanism and evaluates whether selective intervention can preserve the hallucination mitigation ability of contrastive decoding while reducing its side effects on normal generation trajectories.
Benchmarks & Evaluation Metrics
Benchmarks. We evaluate HALMES on four datasets, namely MSCOCO [38], AMBER [56], MMHal-Bench [53], and Bingo [12]. Following prior work [8, 16, 26], we randomly sample 500 examples from MSCOCO val2014 for evaluation. For AMBER, we use the first 300 samples in our experiments. MSCOCO and AMBER mainly assess object hallucination in open-ended generation based on object existence and visual factual consistency. MMHal-Bench covers tasks such as fine-grained visual understanding, relational reasoning, scene-level judgment, and open-ended description, evaluating both the informativeness and visual faithfulness of model responses. Bingo further examines model robustness from the perspectives of regional bias, OCR bias, factual bias, and image/text-induced interference. Together, these datasets allow us to evaluate both the hallucination mitigation capability of HALMES and its robustness under complex evaluation scenarios.
Evaluation Metrics. We adopt the official evaluation protocol and metrics for each benchmark and report them separately. Specifically, MSCOCO and AMBER follow their standard object-level hallucination protocols, which evaluate object mentions in generated responses against image annotations, while MMHal-Bench and Bingo follow their original LLM-based judging protocols.
For MSCOCO, we report , , and Cov. Following the original CHAIR definition, measures the fraction of hallucinated object mentions among all mentioned objects, while measures the fraction of generated sentences containing at least one hallucinated object:
The hallucinated objects are object mentions in generated captions that are not supported by the corresponding images. Lower and indicate fewer object hallucinations. We additionally report coverage (Cov.) to measure the coverage of ground-truth objects:
where denotes the distinct ground-truth objects correctly mentioned in generated responses, and denotes all ground-truth objects in the evaluated images. A higher Cov. indicates better object coverage.
For AMBER, we report CHAIR, Cover, Hal, and Cog on the generative task. Following the original AMBER protocol, given a model response , nouns are first extracted to obtain the initial object set , which is then filtered by the full annotated object list :
Let denote the set of annotated objects that truly appear in the image, denote the predefined hallucinatory target object set, and denote the number of elements in a set. The four generative metrics in AMBER are defined as:
CHAIR and Hal quantify hallucination severity at the object and response levels, respectively. Cover measures ground-truth object coverage and Cog reflects the tendency to generate predefined hallucination-prone objects. Better performance is reflected by lower CHAIR, Hal, and Cog values and a higher Cover value. Consistent with the original AMBER protocol, each metric is obtained by averaging the corresponding response-level scores over the test set.
For MMHal-Bench and Bingo, we adopt their original LLM-based evaluation protocols, with GPT-4o used as the judge model in our implementation. MMHal-Bench reports Hal and Score, where Hal measures the proportion of responses judged to contain hallucinations, and Score reflects the average response quality in terms of informativeness and visual faithfulness. Bingo reports Score to evaluate response reliability under regional bias, OCR bias, factual bias, image-to-image interference, and text-to-image interference. The reported scores for both benchmarks are averaged over test samples.
More Experimental Results
How can the intervention threshold be selected?
To analyze the effect of threshold selection on detection performance, we consider multiple threshold configurations from two aspects: the FPR budget and the hysteresis gap . For each , the threshold pair is selected on the validation set according to the following criterion:
where and denote the high and low thresholds for activating and deactivating intervention, respectively. As illustrated in Figure 4, increasing sensitivity improves Recall but also raises the risk of false activations on normal segments. Therefore, the FPR constraint is used to limit false activations and reduce the side effects caused by unnecessary intervention. Among the threshold pairs satisfying this constraint, we choose the one with the highest Recall to cover as many hallucination-prone segments as possible. This strategy therefore selects the most sensitive detector under a controlled FPR budget.
Figure 4. (a) Detector score distribution. (b) Recall–FPR trade-off. Threshold selection analysis for HALMES. The score distribution shows the separability between normal and hallucination-prone segments, while the Recall–FPR curve illustrates the trade-off between detecting hallucination-prone segments and avoiding false activations.
To cover different threshold behaviors, we consider the following configurations:
FPR budget. We first fix the hysteresis gap at 0.10 and vary to examine the Recall–FPR trade-off under different levels of FPR control. These three settings correspond to conservative, balanced, and relaxed triggering constraints, respectively.
Hysteresis gap. Based on the selected FPR budget from the above comparison, we further vary the hysteresis gap . The zero-gap setting corresponds to single-threshold triggering without hysteresis, while larger gaps introduce wider activation–deactivation intervals to improve triggering stability under local score fluctuations.
As shown in Table 5, the conservative budget provides the most reliable hallucination reduction, achieving the lowest CHAIR and Hal among all settings. In comparison, larger FPR budgets introduce more aggressive triggering and increase hallucination-related errors, while alternative hysteresis gaps do not further improve the hallucination metrics. Therefore, to preserve the hallucination mitigation effect and maintain a low false-triggering tendency, we use the threshold pair selected under the conservative budget as the default setting.
Can a hallucination detector trained on one LVLM architecture be transferred to another LVLM architecture?
To examine cross-architecture transferability, we compare in-domain detectors with cross-model evaluation. As shown in Table 6, although the transferred detectors still retain moderate AUROC values, their performance is clearly lower than in-domain evaluation. Specifically, AUROC drops from above 90 to 80.02/85.67, while FPR increases substantially to 34.22/33.63, indicating that cross-model detectors introduce more false activations. Interestingly, the Qwen-to-InternVL setting achieves a high Recall of 92.86, but this is accompanied by a high FPR of 33.63. This suggests that the transferred detector tends to over-trigger on the target model rather than accurately separating hallucination-prone and normal segments. These results indicate that different LVLMs exhibit distinct attention distributions and decision boundaries, which limits the reliability of direct cross-model detector transfer.
| Train LVLM | Test LVLM | AUROC↑ | Accuracy↑ | Recall↑ | PR-AUC↑ | FPR↓ |
| In-domain evaluation | ||||||
| Qwen3VL-8B | Qwen3VL-8B | 91.31 | 86.73 | 86.39 | 88.76 | 12.93 |
| InternVL3.5-8B | InternVL3.5-8B | 90.52 | 83.63 | 87.20 | 90.03 | 19.94 |
| Cross-architecture evaluation | ||||||
| InternVL3.5-8B | Qwen3VL-8B | 80.02 | 74.22 | 82.67 | 77.46 | 34.22 |
| Qwen3VL-8B | InternVL3.5-8B | 85.67 | 79.61 | 92.86 | 83.30 | 33.63 |
Table 6. Cross-architecture evaluation of HALMES detectors. Base denotes in-domain evaluation, where the detector is trained and tested on the same LVLM architecture. Cross-architecture rows evaluate whether a detector trained on one LVLM can be transferred to another.
How does deploying the HALMES affect inference speed during contrastive decoding?
To evaluate the impact of the MLP detector on inference efficiency, we compare Pure CD and HALMES + CD in Figure 5. We report per-token latency, end-to-end latency, and throughput, corresponding to the decoding time per generated token, the total time per sample, and the number of generated tokens per second, respectively. HALMES + CD introduces only a slight slowdown across these metrics, since the detector is a lightweight MLP with marginal forward cost compared with LVLM decoding. These results indicate that HALMES enables selective hallucination mitigation with acceptable inference overhead.
Figure 5. Inference speed comparison between Pure CD and HALMES + CD. All results are measured on the same hardware over 100 test samples, with per-token latency, end-to-end latency, and throughput reported to quantify the overhead introduced by the HALMES detector.
How do the attention-based features contribute to hallucination detection and mitigation?
Hallucination Detection. To evaluate the contribution of individual attention-based features, we conduct leave-one-feature-out ablations on both LVLMs while keeping the detector architecture and training settings unchanged. As shown in Table 7, removing any feature decreases AUROC and increases FPR on both models, indicating that all five features contribute to hallucination-risk detection. Among them, VAR plays the most important role, as its removal decreases AUROC by 12.37 and 8.80 percentage points on Qwen3VL-8B and InternVL3.5-8B, respectively, while substantially increasing FPR. Although certain ablations slightly improve individual metrics such as Recall or PR-AUC, the full feature set achieves the highest AUROC and lowest FPR on both architectures. These results suggest that the proposed attention-based features provide complementary information for identifying hallucination-prone token segments.
Table 7: Component-wise ablation of the attention-based features for hallucination detection. All metrics are reported as percentages. Bold denotes the best result for each LVLM.
| Setting | AUROC | Accuracy | Recall | PR-AUC | FPR |
| Qwen3VL-8B | |||||
| w/o VAR | 78.94 | 73.11 | 81.78 | 76.53 | 35.56 |
| w/o Prompt Attention | 88.68 | 80.22 | 75.56 | 88.42 | 15.11 |
| w/o Generated-Text Attention | 88.80 | 82.22 | 84.89 | 89.54 | 20.44 |
| w/o Text-Visual Ratio | 87.87 | 82.22 | 82.67 | 88.81 | 18.22 |
| w/o Outgoing Attention Entropy | 87.91 | 82.44 | 80.89 | 88.89 | 16.00 |
| Full | 91.31 | 86.73 | 86.39 | 88.76 | 12.93 |
| InternVL3.5-8B | |||||
| w/o VAR | 81.72 | 75.30 | 88.10 | 79.28 | 37.50 |
| w/o Prompt Attention | 88.14 | 81.70 | 85.71 | 88.63 | 22.32 |
| w/o Generated-Text Attention | 88.07 | 81.85 | 87.80 | 88.68 | 24.11 |
| w/o Text-Visual Ratio | 88.15 | 81.70 | 77.98 | 88.71 | 21.13 |
| w/o Outgoing Attention Entropy | 88.13 | 80.95 | 80.36 | 88.58 | 21.96 |
| Full | 90.52 | 83.63 | 87.20 | 90.03 | 19.94 |
Table 7.
Hallucination Mitigation. We further integrate each feature-ablated detector with the five CD methods to examine how individual features affect hallucination mitigation. The averaged results are reported in Table 8. The full feature set consistently achieves the lowest and on both LVLMs, outperforming all feature-ablated variants. Removing any feature leads to increased hallucination metrics, although the extent of degradation varies across features and architectures. In particular, removing the Text-Visual Ratio substantially weakens mitigation performance on InternVL3.5-8B, while removing VAR also considerably reduces the improvements obtained by HALMES. Meanwhile, Coverage remains relatively stable on Qwen3VL-8B but exhibits a more noticeable trade-off on InternVL3.5-8B. Overall, these findings further demonstrate the complementary contributions of the five attention-based features, supporting their joint use for effective hallucination detection and targeted intervention.
Table 8: Component-wise ablation of the attention-based features for hallucination mitigation on a randomly sampled 100-image COCO subset disjoint from the training set. Results are averaged across the five CD methods. All metrics are reported as percentages. Bold denotes the best result among HALMES variants for each LVLM.
| Setting | Qwen3VL-8B | InternVL3.5-8B | ||||
| Cov. | Cov. | |||||
| Base | ||||||
| Nucleus | 12.50 | 28.00 | 56.00 | 12.31 | 36.00 | 68.00 |
| Full-Stage Contrastive Decoding | ||||||
| Full-stage CD | 11.71 | 29.40 | 54.16 | 11.87 | 38.20 | 67.92 |
| HALMES (Feature Ablations) | ||||||
| w/o VAR | 11.30 | 26.80 | 55.04 | 12.13 | 37.60 | 66.96 |
| w/o Prompt Attention | 11.38 | 27.20 | 55.76 | 11.57 | 36.40 | 66.96 |
| w/o Generated-Text Attention | 10.14 | 26.40 | 55.76 | 10.82 | 34.80 | 66.88 |
| w/o Text-Visual Ratio | 11.37 | 28.00 | 55.36 | 12.64 | 38.40 | 67.76 |
| w/o Outgoing Attention Entropy | 10.27 | 24.60 | 54.24 | 11.63 | 36.40 | 68.48 |
| Full | 9.11 | 24.40 | 55.68 | 9.98 | 30.20 | 66.48 |
Table 8.
Can HALMES preserve general LVLM capabilities beyond object hallucinations?
To further investigate the impact of HALMES on general LVLM capabilities, we conduct additional evaluations on MME [21], covering object existence, counting, position, color, OCR, and reasoning. To better accommodate token-segment-level detection, we adopt complete-response prompting to encourage sufficiently detailed responses during generation. As shown in Table 9, HALMES improves the overall MME score across all ten combinations of LVLMs and CD methods, with maximum relative gains of 4.14% on Qwen3VL-8B and 2.63% on InternVL3.5-8B. Notably, improvements are observed in reasoning for nine of the ten settings, together with considerable gains in position understanding. Although some categories exhibit slight degradation, these results suggest that HALMES can largely preserve and potentially enhance broader LVLM capabilities while mitigating object hallucinations, further indicating the potential extensibility of the proposed targeted intervention paradigm.
| CD Method | Exist. | Count | Position | Color | OCR | Reasoning | Total |
| Qwen3VL-8B | |||||||
| VCD | 0.00 | +2.86 | +6.74 | -5.00 | +4.41 | +3.07 | +1.67 |
| M3ID | 0.00 | 0.00 | +9.78 | +2.70 | +8.45 | +5.31 | +4.14 |
| AVISC | 0.00 | 0.00 | +9.78 | -2.56 | 0.00 | +8.56 | +2.22 |
| SID | 0.00 | +3.74 | 0.00 | 0.00 | +4.23 | +4.45 | +2.00 |
| Self-Aug | +2.63 | 0.00 | +13.95 | 0.00 | -4.23 | -1.28 | +1.45 |
| InternVL3.5-8B | |||||||
| VCD | +2.63 | +0.99 | +12.22 | -7.69 | +4.62 | +4.81 | +2.43 |
| M3ID | +2.70 | -2.80 | +9.57 | -3.42 | 0.00 | +7.54 | +1.85 |
| AVISC | 0.00 | +9.78 | -1.02 | -0.90 | +4.62 | +4.92 | +2.63 |
| SID | 0.00 | +1.98 | -1.00 | +2.86 | -4.62 | +6.00 | +0.77 |
| Self-Aug | +2.63 | +1.94 | +1.03 | +0.94 | -4.41 | +2.92 | +0.83 |
Table 9. Relative MME score changes (%) of HALMES over the corresponding full-stage CD methods under complete-response prompting. Positive values indicate improvements.
Can HALMES remain effective on a more native multimodal architecture?
To further examine the applicability of HALMES to different LVLM architectures, we conduct additional experiments on Qwen3.5-9B, which adopts a hybrid attention architecture combining linear and full attention, distinct from the previously evaluated models. After lightweight model-specific detector training, HALMES achieves an AUROC of 88.18% and an FPR of 19.09%, as shown in Table 10, indicating that hallucination-related attention patterns remain detectable on this architecture. We further integrate HALMES with five CD methods and evaluate object hallucination mitigation on a COCO subset. As shown in Table 11, HALMES consistently reduces both CHAIR metrics across all five CD methods, although Coverage varies across settings. These results further demonstrate the effectiveness of HALMES on a more native multimodal architecture, supporting the broader applicability of attention-based hallucination detection and targeted intervention.
| LVLM | AUROC | Accuracy | Recall | PR-AUC | FPR |
| Qwen3.5-9B | 88.18 | 81.15 | 82.38 | 88.44 | 19.09 |
Table 10. Hallucination detection performance of HALMES on Qwen3.5-9B. All metrics are reported as percentages.
| Method | |||
| Base | |||
| Nucleus | 9.72 | 33.33 | 63.13 |
| Full-Stage Contrastive Decoding | |||
| VCD | 8.78 | 28.12 | 63.12 |
| M3ID | 9.53 | 27.08 | 64.80 |
| AVISC | 9.14 | 28.12 | 65.75 |
| SID | 7.98 | 26.04 | 65.58 |
| Self-Aug | 9.74 | 29.17 | 66.81 |
| HALMES (Ours) | |||
| HALMES+VCD | 7.64 | 26.37 | 62.87 |
| HALMES+M3ID | 7.87 | 22.92 | 63.06 |
| HALMES+AVISC | 6.40 | 21.88 | 68.61 |
| HALMES+SID | 7.57 | 25.77 | 62.00 |
| HALMES+Self-Aug | 7.32 | 26.60 | 67.45 |
Table 11. Object hallucination mitigation results of HALMES on Qwen3.5-9B over a COCO subset. All metrics are reported as percentages. Bold denotes the best result.
Qualitative Results
Figure 6 and Figure 7 show qualitative comparisons between Pure CD and HALMES-guided CD. HALMES retains the hallucination mitigation effect of contrastive decoding while alleviating its side effects on normal generations, leading to more visually faithful and stable responses.
Figure 6. Qualitative comparison of M3ID, AVISC, VCD and their HALMES-guided variants.
Figure 7. Qualitative comparison of SID, Self-Aug, and their HALMES-guided variants.
Discussion
Limitations & Future Work
HALMES currently relies on predefined thresholds to determine whether contrastive decoding should be activated. Since different LVLM architectures, input scenarios, and generation stages may exhibit distinct attention distributions and risk-score scales, a fixed threshold may not capture the optimal decision boundary in all cases, potentially leading to false activations or missed interventions for certain samples. Therefore, future work should explore dynamic and adaptive thresholding mechanisms, enabling abnormality decisions to adjust according to the generation context and internal model states. In addition, we plan to investigate an end-to-end training framework that jointly optimizes hallucination-prone segment detection and contrastive decoding activation, thereby reducing the dependence on manually specified thresholds and further improving the robustness of HALMES across different models and complex scenarios.
Potential Impacts
This work introduces a selective hallucination mitigation framework for LVLMs, which converts full-stage implicit contrastive decoding into explicit on-demand intervention. It could potentially be used in multimodal assistant scenarios where faithful visual grounding and stable response generation are required, such as image captioning, visual question answering, and interactive vision-language applications. In scenarios where contrastive decoding is adopted for hallucination mitigation, HALMES can serve as a more targeted alternative by activating intervention only on hallucination-prone token segments. This may help reduce unnecessary perturbations to normal generation trajectories while retaining the mitigation ability of contrastive decoding. However, since HALMES relies on internal risk estimation rather than external factual verification, careful evaluation is still needed before applying it to safety-critical domains.
NeurIPS Paper Checklist
Claims
Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
Answer: [Yes]
Justification: The abstract and introduction of this paper accurately reflect its contributions and scope.
Guidelines:
The answer [N/A] means that the abstract and introduction do not include the claims made in the paper.
The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers.
The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings.
It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: Yes, the paper discusses the limitations of the work in the appendix.
Guidelines:
The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper.
The authors are encouraged to create a separate “Limitations” section in their paper.
The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be.
The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated.
The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon.
The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size.
If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness.
While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
Theory assumptions and proofs
Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
Answer: [Yes] Justification: The paper provide the full set of assumptions and a complete (and correct) proof.
Guidelines:
The answer [N/A] means that the paper does not include theoretical results.
All theorems, formulas, and proofs in the paper should be numbered and cross-referenced.
All assumptions should be clearly stated or referenced in the statement of any theorems.
The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition.
Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material.
Theorems and Lemmas that the proof relies upon should be properly referenced.
Experimental result reproducibility
Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
Answer: [Yes]
Justification: The paper fully discloses all the necessary information to reproduce the main experimental results, ensuring that the main claims and conclusions can be independently verified.
Guidelines:
The answer [N/A] means that the paper does not include experiments.
If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not.
If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable.
Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general. releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed.
While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
Open access to data and code
Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
Answer: [Yes]
Justification: The code and data have been submitted as supplementary material in ZIP format.
Guidelines:
The answer [N/A] means that paper does not include experiments requiring code.
Please see the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark).
The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc.
The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why.
At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).
Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
Experimental setting/details
Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?
Answer: [Yes]
Justification: This paper provides comprehensive details on the training and test settings, including data splits, hyperparameters.
Guidelines:
The answer [N/A] means that the paper does not include experiments.
The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them.
The full details can be provided either with the code, in appendix, or as supplemental material.
Experiment statistical significance
Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
Answer: [No]
Justification: The paper does not provide error bars, confidence intervals, or statistical significance tests for the experiments.
Guidelines:
The answer [N/A] means that the paper does not include experiments.
The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper.
The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).
The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.)
The assumptions made should be given (e.g., Normally distributed errors).
It should be clear whether the error bar is the standard deviation or the standard error of the mean.
It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified.
For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates).
If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
Experiments compute resources
Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
Answer: [Yes]
Justification: We provide the type of compute workers (GPUs) and the size of memory.
Guidelines:
The answer [N/A] means that the paper does not include experiments.
The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage.
The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute.
The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper).
Code of ethics
Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?
Answer: [Yes]
Justification: The research fully adheres to the NeurIPS Code of Ethics.
Guidelines:
The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics.
If the authors answer [No], they should explain the special circumstances that require a deviation from the Code of Ethics.
The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
Broader impacts
Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
Answer: [Yes]
Justification: The paper discusses both potential positive societal impacts and negative societal impacts of the work performed.
Guidelines:
The answer [N/A] means that there is no societal impact of the work performed.
If the authors answer [N/A] or [No], they should explain why their work has no societal impact or why the paper does not address societal impact.
Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.
The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster.
The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology.
If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
Safeguards
Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?
Answer: [N/A]
Justification: The paper poses no such risks.
Guidelines:
The answer [N/A] means that the paper poses no such risks.
Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters.
Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images.
We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
Licenses for existing assets
Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
Answer: [Yes]
Justification: They are properly credited and the license and terms of use are explicitly mentioned and properly respected.
Guidelines:
The answer [N/A] means that the paper does not use existing assets.
The authors should cite the original paper that produced the code package or dataset.
The authors should state which version of the asset is used and, if possible, include a URL.
The name of the license (e.g., CC-BY 4.0) should be included for each asset.
For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided.
If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.
For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.
If this information is not available online, the authors are encouraged to reach out to the asset’s creators.
13. New assets
Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
Answer: [Yes]
Justification: The documentation is provided alongside the assets.
Guidelines:
The answer [N/A] means that the paper does not release new assets.
Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc.
The paper should discuss whether and how consent was obtained from people whose asset is used.
At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
14. Crowdsourcing and research with human subjects
Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
Answer: [N/A]
Justification: The paper does not involve crowdsourcing nor research with human subjects.
Guidelines:
The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper.
According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
15. Institutional review board (IRB) approvals or equivalent for research with human subjects
Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
Answer: [N/A]
Justification: The paper does not involve crowdsourcing nor research with human subjects.
Guidelines:
The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper.
We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution.
For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
Declaration of LLM usage
Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.
Answer: [N/A]
Justification: The core method development in this research does not involve LLMs as any important, original, or non-standard components.
Guidelines:
The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components.
Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.
References
- [1]Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. VQA: Visual Question Answering. In Int. Conf. Comput. Vis., pages 2425–2433, 2015.
- [2]Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631, 2025.arxiv.org/abs/2511.21631
- [3]Zechen Bai, Pichao Wang, Tianjun Xiao, Tong He, Zongbo Han, Zheng Zhang, and Mike Zheng Shou. Hallucination of multimodal large language models: A survey. arXiv preprint arXiv:2404.18930, 2024.arxiv.org/abs/2404.18930
- [5]Liwei Che, Tony Qingze Liu, Jing Jia, Weiyi Qin, Ruixiang Tang, and Vladimir Pavlovic. Hallucinatory Image Tokens: A Training-free EASY Approach to Detecting and Mitigating Object Hallucinations in LVLMs. In Int. Conf. Comput. Vis., pages 21635–21644, 2025.arxiv.org/abs/2503.07772
- [6]Chao Chen, Kai Liu, Ze Chen, Yi Gu, Yue Wu, Mingyuan Tao, Zhihang Fu, and Jieping Ye. INSIDE: LLMs’ internal states retain the power of hallucination detection. arXiv preprint arXiv:2402.03744, 2024.arxiv.org/abs/2402.03744
- [7]Lin Chen, Jinsong Li, Xiaoyi Dong, Pan Zhang, Conghui He, Jiaqi Wang, Feng Zhao, and Dahua Lin. Sharegpt4v: Improving large multi-modal models with better captions. In Eur. Conf. Comput. Vis., pages 370–387, 2024.arxiv.org/abs/2311.12793
- [8]Zhaorun Chen, Zhuokai Zhao, Hongyin Luo, Huaxiu Yao, Bo Li, and Jiawei Zhou. HALC: Object Hallucination Reduction via Adaptive Focal-Contrast Decoding. arXiv preprint arXiv:2403.00425, 2024.arxiv.org/abs/2403.00425
- [9]Kanzhi Cheng, Wenpo Song, Jiaxin Fan, Zheng Ma, Qiushi Sun, Fangzhi Xu, Chenyang Yan, Nuo Chen, Jianbing Zhang, and Jiajun Chen. CapArena: Benchmarking and Analyzing Detailed Image Captioning in the LLM Era. arXiv preprint arXiv:2503.12329, 2025.arxiv.org/abs/2503.12329
- [10]Yung-Sung Chuang, Yujia Xie, Hongyin Luo, Yoon Kim, James Glass, and Pengcheng He. Dola: Decoding by contrasting layers improves factuality in large language models. arXiv preprint arXiv:2309.03883, 2023.arxiv.org/abs/2309.03883
- [11]Yung-Sung Chuang, Linlu Qiu, Cheng-Yu Hsieh, Ranjay Krishna, Yoon Kim, and James Glass. Lookback lens: Detecting and mitigating contextual hallucinations in large language models using only attention maps. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 1419–1436, 2024.
- [12]Chenhang Cui, Yiyang Zhou, Xinyu Yang, Shirley Wu, Linjun Zhang, James Zou, and Huaxiu Yao. Holistic Analysis of Hallucination in GPT-4V(ision): Bias and Interference Challenges. arXiv preprint arXiv:2311.03287, 2023.arxiv.org/abs/2311.03287
- [13]Wenliang Dai, Junnan Li, Dongxu Li, Anthony Tiong, Junqi Zhao, Weisheng Wang, Boyang Li, Pascale N Fung, and Steven Hoi. Instructblip: Towards general-purpose vision-language models with instruction tuning. Adv. Neural Inform. Process. Syst., 36:49250–49267, 2023.
- [14]Jingyuan Deng and Yujiu Yang. Maskcd: Mitigating lvlm hallucinations by image head masked contrastive decoding. arXiv preprint arXiv:2510.02790, 2025.arxiv.org/abs/2510.02790
- [15]Hongyuan Dong, Jiawen Li, Bohong Wu, Jiacong Wang, Yuan Zhang, and Haoyuan Guo. Benchmarking and improving detail image caption. arXiv preprint arXiv:2405.19092, 2024.arxiv.org/abs/2405.19092
- [16]Jinhao Duan, Fei Kong, Hao Cheng, James Diffenderfer, Bhavya Kailkhura, Lichao Sun, Xiaofeng Zhu, Xiaoshuang Shi, and Kaidi Xu. TruthPrInt: Mitigating Large Vision-Language Models Object Hallucination Via Latent Truthful-Guided Pre-Intervention. In Int. Conf. Comput. Vis., pages 7372–7382, 2025.arxiv.org/abs/2503.10602
- [17]Alessandro Favero, Luca Zancato, Matthew Trager, Siddharth Choudhary, Pramuditha Perera, Alessandro Achille, Ashwin Swaminathan, and Stefano Soatto. Multi-modal hallucination control by visual information grounding. In IEEE Conf. Comput. Vis. Pattern Recog., pages 14303–14312, 2024.arxiv.org/abs/2403.14003
- [18]Laura Fieback, Jakob Spiegelberg, and Hanno Gottschalk. Metatoken: Detecting hallucination in image descriptions by meta classification. arXiv preprint arXiv:2405.19186, 2024.arxiv.org/abs/2405.19186
- [19]Laura Fieback, Nishilkumar Balar, Jakob Spiegelberg, and Hanno Gottschalk. Efficient Contrastive Decoding with Probabilistic Hallucination Detection-Mitigating Hallucinations in Large Vision Language Models. arXiv preprint arXiv:2504.12137, 2025.arxiv.org/abs/2504.12137
- [20]Markus Freitag and Yaser Al-Onaizan. Beam search strategies for neural machine translation. arXiv preprint arXiv:1702.01806, 2017.DOI
- [21]Chaoyou Fu, Peixian Chen, Yunhang Shen, Yulei Qin, Mengdan Zhang, Xu Lin, Jinrui Yang, Xiawu Zheng, Ke Li, Xing Sun, et al. MME: A Comprehensive Evaluation Benchmark for Multimodal Large Language Models. arXiv preprint arXiv:2306.13394, 2023.arxiv.org/abs/2306.13394
- [22]Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Making the V in VQA Matter: Elevating the Role of Image Understanding in Visual Question Answering. In IEEE Conf. Comput. Vis. Pattern Recog., pages 6904–6913, 2017.
- [23]Danna Gurari, Qing Li, Abigale J Stangl, Anhong Guo, Chi Lin, Kristen Grauman, Jiebo Luo, and Jeffrey P Bigham. Wizviz grand challenges: Answering visual questions from blind people. In IEEE Conf. Comput. Vis. Pattern Recog., pages 3608–3617, 2018.arxiv.org/abs/1802.08218
- [24]Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. The curious case of neural text degeneration. arXiv preprint arXiv:1904.09751, 2019.arxiv.org/abs/1904.09751
- [25]Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, et al. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. ACM Transactions on Information Systems, 43(2): 1–55, 2025.DOI
- [26]Qidong Huang, Xiaoyi Dong, Pan Zhang, Bin Wang, Conghui He, Jiaqi Wang, Dahua Lin, Weiming Zhang, and Nenghai Yu. Opera: Alleviating hallucination in multi-modal large language models via over-trust penalty and retrospection-allocation. In IEEE Conf. Comput. Vis. Pattern Recog., pages 13418–13427, 2024.arxiv.org/abs/2311.17911
- [27]Drew A Hudson and Christopher D Manning. GQA: A New Dataset for Real-World Visual Reasoning and Compositional Question Answering. In IEEE Conf. Comput. Vis. Pattern Recog., pages 6700–6709, 2019.arxiv.org/abs/1902.09506
- [28]Fushuo Huo, Wenchao Xu, Zhong Zhang, Haozhao Wang, Zhicheng Chen, and Peilin Zhao. Self-introspective decoding: Alleviating hallucinations for large vision-language models. arXiv preprint arXiv:2408.02032, 2024.arxiv.org/abs/2408.02032
- [29]Eun Woo Im, Muhammad Kashif Ali, and Vivek Gupta. Self-Aug: Query and Entropy Adaptive Decoding for Large Vision-Language Models. arXiv preprint arXiv:2510.13315, 2026.arxiv.org/abs/2510.13315
- [30]Ziwei Ji, Nayeon Lee, Rita Frieske, Tiezhen Yu, Dan Su, Yan Xu, Etsuko Ishii, Ye Jin Bang, Andrea Madotto, and Pascale Fung. Survey of hallucination in natural language generation. ACM computing surveys, 55(12):1–38, 2023.DOI
- [31]Zhangqi Jiang, Junkai Chen, Beier Zhu, Tingjin Luo, Yankun Shen, and Xu Yang. Devils in middle layers of large vision-language models: Interpreting, detecting and mitigating object hallucinations via attention lens. In IEEE Conf. Comput. Vis. Pattern Recog., pages 25004–25014, 2025.arxiv.org/abs/2411.16724
- [32]Justin Johnson, Bharath Hariharan, Laurens Van Der Maaten, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoning. In IEEE Conf. Comput. Vis. Pattern Recog., pages 2901–2910, 2017.arxiv.org/abs/1612.06890
- [33]Jannik Kossen, Jiatong Han, Muhammed Razzak, Lisa Schut, Shreshth Malik, and Yarin Gal. Semantic Entropy Probes: Robust and Cheap Hallucination Detection in LLMs. arXiv preprint arXiv:2406.15927, 2024.arxiv.org/abs/2406.15927
- [34]Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. Int. J. Comput. Vis., 123(1):32–73, 2017.arxiv.org/abs/1602.07332
- [35]Sicong Leng, Hang Zhang, Guanzheng Chen, Xin Li, Shijian Lu, Chunyan Miao, and Lidong Bing. Mitigating object hallucinations in large vision-language models through visual contrastive decoding. In IEEE Conf. Comput. Vis. Pattern Recog., pages 13872–13882, 2024.arxiv.org/abs/2311.16922
- [36]Xiang Lisa Li, Ari Holtzman, Daniel Fried, Percy Liang, Jason Eisner, Tatsunori Hashimoto, Luke Zettlemoyer, and Mike Lewis. Contrastive Decoding: Open-ended Text Generation as Optimization. arXiv preprint arXiv:2210.15097, 2023.arxiv.org/abs/2210.15097
- [37]Yifan Li, Yifan Du, Kun Zhou, Jinpeng Wang, Wayne Xin Zhao, and Ji-Rong Wen. Evaluating object hallucination in large vision-language models. In Proceedings of the 2023 conference on empirical methods in natural language processing, pages 292–305, 2023.arxiv.org/abs/2305.10355
- [38]Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In Eur. Conf. Comput. Vis., pages 740–755, 2014.arxiv.org/abs/1405.0312
- [39]Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. Adv. Neural Inform. Process. Syst., 36:34892–34916, 2023.
- [40]Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. Improved baselines with visual instruction tuning. In IEEE Conf. Comput. Vis. Pattern Recog., pages 26296–26306, 2024.arxiv.org/abs/2310.03744
- [41]Shi Liu, Kecheng Zheng, and Wei Chen. Paying More Attention to Image: A Training-Free Method for Alleviating Hallucination in LVLMs. In Eur. Conf. Comput. Vis., pages 125–140, 2024.arxiv.org/abs/2407.21771
- [42]Yuan Liu, Haodong Duan, Yuanhan Zhang, Bo Li, Songyang Zhang, Wangbo Zhao, Yike Yuan, Jiaqi Wang, Conghui He, Ziwei Liu, et al. MMBench: Is Your Multi-modal Model an All-around Player? In Eur. Conf. Comput. Vis., pages 216–233, 2024.arxiv.org/abs/2307.06281
- [43]Pan Lu, Swaroop Mishra, Tanglin Xia, Liang Qiu, Kai-Wei Chang, Song-Chun Zhu, Oyvind Tafjord, Peter Clark, and Ashwin Kalyan. Learn to explain: Multimodal reasoning via thought chains for science question answering. Adv. Neural Inform. Process. Syst., 35:2507–2521, 2022.arxiv.org/abs/2209.09513
- [44]Potsawtee Manakul, Adian Liusie, and Mark Gales. Selfcheckgpt: Zero-resource black-box hallucination detection for generative large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 9004–9017, 2023.
- [45]Avshalom Manevich and Reut Tsarfaty. Mitigating Hallucinations in Large Vision-Language Models (LVLMs) via Language-Contrastive Decoding (LCD). In Findings of the Association for Computational Linguistics: ACL 2024, pages 6008–6022, 2024.
- [46]Kenneth Marino, Mohammad Rastegari, Ali Farhadi, and Roozbeh Mottaghi. OK-VQA: A Visual Question Answering Benchmark Requiring External Knowledge. In IEEE Conf. Comput. Vis. Pattern Recog., pages 3195–3204, 2019.arxiv.org/abs/1906.00067
- [47]Mengjia Niu, Hamed Haddadi, and Guansong Pang. Robust Hallucination Detection in LLMs via Adaptive Token Selection. arXiv preprint arXiv:2504.07863, 2025.arxiv.org/abs/2504.07863
- [48]Yuya Ogasa and Yuki Arase. Hallucinated Span Detection with Multi-View Attention Features. In Proceedings of the 14th Joint Conference on Lexical and Computational Semantics (* SEM 2025), pages 381–394, 2025.arxiv.org/abs/2504.04335
- [49]Vishnu Prabhakaran, Purav Aggarwal, Vinay Kumar Verma, Gokul Swamy, and Anoop Saladi. VADE: Visual attention guided hallucination detection and elimination. In Findings of the Association for Computational Linguistics: ACL 2025, pages 14949–14965, 2025.
- [50]Vipula Rawte, Amit Sheth, and Amitava Das. A survey of hallucination in large foundation models. arXiv preprint arXiv:2309.05922, 2023.arxiv.org/abs/2309.05922
- [51]Anna Rohrbach, Lisa Anne Hendricks, Kaylee Burns, Trevor Darrell, and Kate Saenko. Object hallucination in image captioning. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 4035–4045, 2018.arxiv.org/abs/1809.02156
- [52]Dustin Schwenk, Apoorv Khandelwal, Christopher Clark, Kenneth Marino, and Roozbeh Mottaghi. A-OKVQA: A Benchmark for Visual Question Answering using World Knowledge. In Eur. Conf. Comput. Vis., pages 146–162, 2022.arxiv.org/abs/2206.01718
- [53]Zhiqing Sun, Sheng Shen, Shengcao Cao, Haotian Liu, Chunyuan Li, Yikang Shen, Chuang Gan, Liang-Yan Gui, Yu-Xiong Wang, Yiming Yang, Kurt Keutzer, and Trevor Darrell. Aligning Large Multimodal Models with Factually Augmented RLHF. arXiv preprint arXiv:2309.14525, 2023.arxiv.org/abs/2309.14525
- [54]Wei Suo, Lijun Zhang, Mengyang Sun, Lin Yuanbo Wu, Peng Wang, and Yanning Zhang. Octopus: Alleviating hallucination via dynamic contrastive decoding. In IEEE Conf. Comput. Vis. Pattern Recog., pages 29904–29914, 2025.arxiv.org/abs/2503.00361
- [55]Jiaqi Wang, Yifei Gao, and Jitao Sang. Valid: Mitigating the hallucination of large vision language models by visual layer fusion contrastive decoding. arXiv preprint arXiv:2411.15839, 2024.arxiv.org/abs/2411.15839
- [56]Junyang Wang, Yuhang Wang, Guohai Xu, Jing Zhang, Yukai Gu, Haitao Jia, Jiaqi Wang, Haiyang Xu, Ming Yan, Ji Zhang, et al. AMBER: An LLM-free Multi-dimensional Benchmark for MLLMs Hallucination Evaluation. arXiv preprint arXiv:2311.07397, 2023.arxiv.org/abs/2311.07397
- [57]Weiyun Wang, Zhangwei Gao, Lixin Gu, Hengjun Pu, Long Cui, Xingguang Wei, Zhaoyang Liu, Linglin Jing, Shenglong Ye, Jie Shao, et al. InternVL3.5: Advancing open-source multimodal models in versatility, reasoning, and efficiency. arXiv preprint arXiv:2508.18265, 2025.arxiv.org/abs/2508.18265
- [58]Xintong Wang, Jingheng Pan, Liang Ding, and Chris Biemann. Mitigating hallucinations in large vision-language models with instruction contrastive decoding. In Findings of the Association for Computational Linguistics: ACL 2024, pages 15840–15853, 2024.arxiv.org/abs/2403.18715
- [59]Barry Payne Welford. Note on a method for calculating corrected sums of squares and products. Technometrics, 4(3):419–420, 1962.
- [60]Sangmin Woo, Jaehyuk Jang, Donguk Kim, Yubin Choi, and Changick Kim. Ritual: Random image transformations as a universal anti-hallucination lever in large vision language models. arXiv preprint arXiv:2405.17821, 2024.arxiv.org/abs/2405.17821
- [61]Sangmin Woo, Donguk Kim, Jaehyuk Jang, Yubin Choi, and Changick Kim. Don’t Miss the Forest for the Trees: Attentional Vision Calibration for Large Vision Language Models. arXiv preprint arXiv:2405.17820, 2025.arxiv.org/abs/2405.17820
- [62]Xiaofeng Zhang, Yuanchao Zhu, Chaochen Gu, Xiaosong Yuan, Qiyan Zhao, Jiawei Cao, Feilong Tang, Sinan Fan, Yaomin Shen, Chen Shen, and Hao Tang. Hallucination Begins Where Saliency Drops. arXiv preprint arXiv:2601.20279, 2026.arxiv.org/abs/2601.20279
- [63]Zhenliang Zhang, Xinyu Hu, Huixuan Zhang, Junzhe Zhang, and Xiaojun Wan. ICR probe: Tracking hidden state dynamics for reliable hallucination detection in LLMs. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 17986–18002, 2025.
- [64]Lanyun Zhu, Deyi Ji, Tianrun Chen, Peng Xu, Jieping Ye, and Jun Liu. IBD: Alleviating Hallucinations in Large Vision-Language Models via Image-Biased Decoding. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 1624–1633, 2025.arxiv.org/abs/2402.18476
Machine contribution statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.




