betaFeedback

WorksComputer Science

ROT: Rotating Hidden States towards Contextual Vectors for Hallucination Mitigation in LVLMs

Abstract

Large Vision-Language Models (LVLMs) frequently suffer from object hallucination. Existing training-free interventions primarily manipulate attention weights, which indirectly affect the deep semantics reaching the final predictive layers. In this work, we shift our focus to the hidden state vectors extracted after self-attention and residual addition. Empirical analysis reveals that hallucinated tokens do not simply over-rely on linguistic priors; instead, they exhibit an anomalous contextual deviation, showing significantly lower similarities to both textual and visual contexts in intermediate layers. Motivated by this, we propose ROT, a layer-specific, training-free framework. ROT dynamically detects semantic deviation in the middle layers and applies a norm-preserving rotation to steer the hidden states back toward the local multimodal context plane spanned by the contexts. For subsequent layers, a representational smoothing mechanism is introduced to stabilize the calibrated trajectory. Extensive experiments on multiple benchmarks demonstrate that ROT consistently reduces hallucinations across various model architectures and scales, offering an efficient, geometry-driven solution for grounded generation.

abstract: Large Vision-Language Models (LVLMs) frequently suffer from object hallucination. Existing training-free interventions primarily manipulate attention weights, which indirectly affect the deep semantics reaching the final predictive layers. In this work, we shift our focus to the hidden state vectors extracted after self-attention and residual addition. Empirical analysis reveals that hallucinated tokens do not simply over-rely on linguistic priors; instead, they exhibit an anomalous contextual deviation, showing significantly lower similarities to both textual and visual contexts in intermediate layers. Motivated by this, we propose ROT, a layer-specific, training-free framework. ROT dynamically detects semantic deviation in the middle layers and applies a norm-preserving rotation to steer the hidden states back toward the local multimodal context plane spanned by the contexts. For subsequent layers, a representational smoothing mechanism is introduced to stabilize the calibrated trajectory. Extensive experiments on multiple benchmarks demonstrate that ROT consistently reduces hallucinations across various model architectures and scales, offering an efficient, geometry-driven solution for grounded generation.

Introduction

Large Vision-Language Models (LVLMs) have demonstrated exceptional capabilities in integrating visual perception with linguistic reasoning. However, these models are persistently plagued by object hallucination, generating descriptions of objects or attributes that are inconsistent with the visual input (Li et al., 2023; Zhou et al., 2023). This fundamental flaw poses severe reliability risks for real-world applications. While extensive efforts have been made to mitigate hallucinations via instruction tuning, such training-based paradigms are often computationally prohibitive. Consequently, training-free inference-time interventions have emerged as an efficient alternative to dynamically calibrate model outputs.

Recent inference-time interventions have made notable strides in this direction. For instance, some approaches adjust visual information propagation in the middle layers (Jiang et al., 2025), selectively drop visual tokens based on epistemic uncertainty [5], or leverage gradient-aware saliency to filter ungrounded tokens (Zhang et al., 2026). Despite their effectiveness, these methods primarily manipulate attention weights or passively filter input contexts. We argue that solely adjusting attention weights does not directly determine the actual semantic content reaching the final predictive layers. To effectively rectify hallucinations, we shift our focus to the hidden state vectors after self-attention and before the feed-forward network.

To understand the dynamics of these hidden states during hallucination, we extract the normalized attention matrix at a given layer kk to aggregate the hidden states of the previous layer, yielding a textual context vector CTC_T and a visual context vector CVC_V. Under a simple language-prior explanation, one might expect hallucinated tokens to exhibit stronger alignment with the textual context CTC_T. However, our empirical analysis shows that the hidden states of hallucinated tokens hkh_k exhibit lower cosine similarities with both CTC_T and CVC_V. This observation resonates with recent findings that hallucinations often begin where contextual memory or saliency drops (Zhang et al., 2026). These results suggest that, for the analyzed object-hallucination cases, over-reliance on textual priors alone is insufficient to characterize the observed hidden-state behavior; instead, hallucinated representations exhibit a simultaneous contextual deviation from both modality-specific anchors.

Recognizing this behavior, we propose **ROT, a training-free framework featuring layer-specific hidden state intervention. As shown in Figure 1, we formulate a deviation indicator EE, which is derived from the complement of the cosine similarities between the current hidden state hkh_k and the two context vectors CTC_T and CVC_V. Our layer-wise analysis reveals that the value of EE is predominantly high in the middle transformer layers, indicating a high propensity for hidden states to experience severe semantic deviation in these intermediate stages. Consequently, we specifically target the middle layers for hallucination detection. When EE exceeds a predefined threshold, it signifies an erroneous semantic deviation, thereby triggering the mitigation mechanism.

Figure 1. The overall framework of the proposed ROT method. The process consists of two stages: (1) Dynamic Hallucination Detection in the critical middle layers, which identifies contextual deviation based on the similarities between the hidden state and multimodal contexts; and (2) Layer-Specific Hidden State Mitigation, which applies a norm-preserving rotation in the intermediate layers to steer the deviating representation back toward the grounded factual plane, followed by a representational smoothing mechanism in subsequent layers to maintain stability during propagation.

For mitigation within these middle layers, instead of manipulating attention weights, we introduce a Hidden State Rotation strategy. To explicitly correct the deviation, we rotate the hidden state hkh_k toward the plane spanned by CTC_T and CVC_V. Crucially, this rotation is norm-preserving, ensuring that the erroneous semantic direction is steered back to a reliable context without compromising the token’s inherent representation strength. Furthermore, for the

Transformer layers subsequent to the middle layers, we introduce a smoothing mechanism to maintain stability. For each layer in this later stage, we update the representation by performing a weighted interpolation between the current hidden state and the output from the preceding layer using a controllable smoothing factor. This ensures that the corrected semantic trajectory smoothly propagates to the final predictive layers.

Extensive experiments on widely adopted benchmarks (e.g., CHAIR, POPE, and MME) demonstrate the superiority of our proposed method across various LVLM architectures. In summary, our main contributions are as follows:

  • We propose a novel perspective for mitigating LVLM hallucinations by shifting the intervention focus from attention weights to hidden state vectors, addressing the semantic deviation directly in the hidden space.

  • We introduce a robust hallucination detection mechanism based on hidden state dynamics. By observing that the semantic deviation indi…

cator EE is predominantly high in the middle layers, we utilize a similarity-based threshold to precisely detect hallucinations in these susceptible intermediate stages.

  • We design a layer-specific mitigation strategy. For deviating hidden states in the middle layers, we perform a norm-preserving rotation towards the plane formed by textual and visual context vectors; for subsequent layers, we employ a smoothing mechanism to maintain representational stability.

Related Work

Large Vision-Language Models

The rapid evolution of Large Language Models has catalyzed the development of Large Vision-Language Models, extending their profound reasoning capabilities into the multimodal domain. Models such as LLaVA (Liu et al., 2023) bridge the gap between modalities by aligning visual encoders with pre-trained language models through visual instruction tuning. Subsequent advancements, such as Qwen-VL (Bai et al., 2023), have further enhanced these capabilities by introducing robust fine-grained perception and supporting multi-image interactions at varying resolutions. Despite their remarkable success in diverse applications ranging from visual question answering to complex reasoning, these models predominantly suffer from a critical vulnerability: they frequently generate plausible yet ungrounded text, a phenomenon widely recognized as hallucination.

Object Hallucination in LVLMs

Object hallucination in LVLMs refers to the generation of objects, attributes, or relationships that are completely inconsistent with the provided visual input. Previous studies indicate that this flaw primarily stems from an over-reliance on statistical language priors, inadequate visual-linguistic alignment, and the inherent uncertainty during autoregressive decoding. To systematically quantify this issue, several authoritative benchmarks have been established. The CHAIR benchmark (Rohrbach et al., 2018) evaluates hallucinations in open-ended image captioning by analyzing the proportion of generated ungrounded objects at both the instance and sentence levels. More recently, the POPE benchmark (Li et al., 2023) was introduced to assess the phenomenon in a more controlled, discriminative manner by framing the evaluation

as a binary classification task regarding object existence. These metrics have become the standard testbed for evaluating the reliability of LVLMs.

Training-Free Inference Intervention

To mitigate hallucinations, researchers have explored both training-based and inference-time strategies. Given the prohibitive computational cost of retraining or RLHF alignment for massive LVLMs, training-free inference interventions have emerged as a highly efficient and scalable alternative. Recent methods primarily fall into three paradigms. Visual Contrastive Decoding (Leng et al., 2024) mitigates the over-reliance on language priors by contrasting the output distributions between original and distorted visual inputs, though it fundamentally doubles the inference latency. Attention manipulation approaches, such as OPERA (Huang et al., [10]), introduce an over-trust penalty during beam search to trigger rollbacks when the model exhibits abnormal attention patterns. Feature injection methods, like MemVR (Zou et al., 2024), attempt to combat visual amnesia by performing memory-space visual retracing, which overwrites intermediate hidden states with key-value representations.

While these methods have demonstrated considerable success, they primarily rely on passive logits contrast, indirect attention manipulation, or rigid state substitution. In contrast, our proposed ROT framework pioneers a fundamentally different perspective. By discovering that hallucinated tokens suffer from a severe directional deviation in the hidden semantic space, ROT is the first to introduce an active geometric intervention. Rather than merely penalizing weights or replacing tokens, ROT directly rectifies the generation trajectory via a norm-preserving rotation. This targeted directional correction effectively re-anchors the hidden state to the factual multimodal subspace while preserving the original representational intensity, offering a highly efficient and structurally elegant solution to LVLM hallucinations.

Motivation and Empirical Analysis

Preliminaries of Hidden States in LVLMs

Large Vision-Language Models typically adopt a Transformer-based architecture to process interleaved multimodal inputs. Formally, given an input sequence consisting of both textual and visual tokens, the hidden representations are iteratively updated through multiple Transformer layers. In this work, we focus on the internal representation dynamics during the auto-regressive decoding phase.

At a specific layer kk, let Xk−1X^{k-1} denote the sequence of hidden states output from the preceding layer k−1k-1. During the generation of the current token, the self-attention mechanism computes the attention scores between the current query and all preceding key representations. To analyze the information routed from different modalities, we extract the raw attention weights assigned to all past tokens and partition them into two distinct sets based on token modality: the textual attention weights and the visual attention weights. To accurately capture the aggregated semantic influence from each modality, we independently normalize these partitioned attention weights, yielding A~t,j\tilde{A}_{t,j} for the jj-th text token and A~v,i\tilde{A}_{v,i} for the ii-th vision token.

Using these normalized attention weights, we isolate the multimodal context by computing the weighted sum of the corresponding hidden states from Xk−1X^{k-1}. Specifically, we construct a textual context vector CTC_T and a visual context vector CVC_V, which are formulated as follows:

CT=∑j∈TA~t,jXjk−1,CV=∑i∈VA~v,iXik−1(1)C_T = \sum_{j \in T} \tilde{A}_{t,j} X_j^{k-1}, \qquad C_V = \sum_{i \in V} \tilde{A}_{v,i} X_i^{k-1} \tag*{(1)}

where TT and VV represent the sets of indices for the preceding textual and visual tokens, respectively. The resulting vectors, CTC_T and CVC_V, represent the isolated semantic subspaces grounded strictly in the textual and visual contexts.

Furthermore, we define hkh_k as the hidden state vector of the currently generated token at layer kk, extracted after the self-attention mechanism and the subsequent residual addition, but prior to the layer normalization operation. Because hkh_k aggregates all contextual information and directly dictates the subsequent predictive trajectory through the Feed-Forward Network, investigating its geometric relationship with the modality-specific context vectors (CTC_T and CVC_V) provides a fundamental lens into the semantic dynamics of the model, particularly when hallucinations occur.

The Contextual Deviation of Hallucinated Tokens

To systematically investigate the representation dynamics of hallucination, we conduct an extensive empirical study. We utilize the widely adopted LLaVA-1.5-7B model and decode 3,000 evaluation instances from the standard CHAIR benchmark.

Following the official CHAIR evaluation protocol, we meticulously categorize the generated tokens into two distinct groups: normal tokens and hallucinated tokens. For each token at a given layer kk, we compute its cosine similarity with the textual context vector (ST=cos⁡(hk,CT)S_T = \cos(h_k, C_T)) and the visual context vector (SV=cos⁡(hk,CV)S_V = \cos(h_k, C_V)). We then average these similarity scores across the two token groups for comparative visualization.

Under the prevailing language prior hypothesis, one might naturally expect hallucinated tokens to exhibit an over-reliance on linguistic context, which would mathematically manifest as an anomalously high similarity STS_T between the hidden state hkh_k and the textual context CTC_T. However, our analysis reveals a striking, counter-intuitive phenomenon.

As illustrated in Figure 2, the curves demonstrate a persistent and significant margin between normal and hallucinated tokens. Crucially, the representations of hallucinated tokens exhibit substantially lower cosine similarities with both the textual context CTC_T and the visual context CVC_V compared to their factual counterparts.

Figure 2. Average cosine similarities of the hidden state hkh_k with the textual context (STS_T) and visual context (SVS_V). Hallucinated tokens consistently exhibit significantly lower similarities to both contexts compared to normal tokens.

This observation profoundly refutes the simplistic language prior assumption. The simultaneous and sharp decline in both STS_T and SVS_V indicates that the hidden state hkh_k is semantically derailed. Rather than over-fitting to one modality, the hallucinated representation completely diverges from the grounded multimodal subspace spanned by CTC_T and CVC_V, straying into an erroneous direction in the high-dimensional vector space.

This geometric divergence serves as the fundamental motivation for our method. It implies that passively scaling attention weights is insufficient; instead, an active geometric intervention is required to explicitly steer the diverging hidden states back to the grounded contextual subspace.

Methodology

Dynamic Hallucination Detection

Building upon the empirical observations in § 3.2, we propose a dynamic detection mechanism to identify hallucinated tokens during the inference phase. Our goal is to quantify the semantic deviation of the hidden state hkh_k relative to the grounded contextual subspace. To this end, we define a contextual deviation indicator, denoted as EE, which aggregates the cosine distances between the current hidden state and the modality-specific context vectors:

E=(1−ST)+(1−SV)=2−ST−SV(2)E = (1 - S_T) + (1 - S_V) = 2 - S_T - S_V \tag*{(2)}

where STS_T and SVS_V represent the cosine similarities of hkh_k with the textual context CTC_T and visual context CVC_V, respectively. A higher value of EE indicates weaker joint alignment with the two modality-specific context anchors. We therefore use EE as a contextual-deviation risk indicator for intervention triggering, rather than as a calibrated binary classifier that necessarily identifies hallucination.

As illustrated in Figure 3, we quantify the average EE values across all layers using the LLaVA-1.5-7B model on the CHAIR benchmark. We observe a clear hierarchical aggregation effect: the semantic deviation is not uniformly distributed but is instead concentrated within specific depths of the transformer stack. Specifically, the indicator EE remains relatively low in the early and final layers but exhibits a significant peak in the intermediate stages. This suggests that the middle layers serve as a critical transition zone where multimodal features are

Figure 3. Distribution of the contextual deviation indicator EE across different transformer layers for LLaVA-1.5-7B. The deviation is significantly more pronounced in the intermediate layers.

fused, and it is within this zone that the hidden states are most susceptible to derailment.

Top-K Deviating Layers Selection

Based on the observed layer-wise distribution of EE, we implement a selective intervention strategy rather than applying corrections to the entire network. While this process involves identifying a subset of layers, our approach is fundamentally driven by the magnitude of semantic divergence rather than a fixed layer count. Empirically, for models like LLaVA-1.5-7B, we identify the critical middle layers where the average deviation EE exceeds a specific sensitivity threshold. In our experimental setup, this criterion corresponds to layers 6 through 26, which we designate as the active execution zone for our proposed intervention.

Within these selected intermediate layers, we further refine the intervention to be token-adaptive by introducing a trigger threshold τ\tau. For each generated token, the Norm-Preserving Rotation is activated if and only if the current deviation indicator satisfies E≥τE \ge\tau. This dual-level selection mechanism ensures that the intervention is both spatially targeted at susceptible layers and dynamically triggered for specific tokens, effectively rectifying the generation trajectory only when a significant semantic derailment is detected. Such a design maintains the model’s original representational integrity for factual tokens while precisely capturing and correcting those undergoing contextual deviation.

Layer-Specific Hidden State Mitigation

Norm-Preserving Rotation (Top-K Deviating Layers)

For the intermediate layers identified in the selection phase, we execute a geometric intervention termed Norm-Preserving Rotation to explicitly rectify the deviating hidden states. Our objective is to steer the derailed representation hkh_k back toward the grounded contextual subspace while preserving its inherent representational intensity.

First, we define a grounded semantic plane P\mathcal{P} formed by the textual and visual context vectors:

P=span⁡{CT,CV}(3)\mathcal{P} = \operatorname{span}\{C_T, C_V\} \tag*{(3)}

This plane characterizes a factual subspace within the high-dimensional hidden space, providing a grounded reference for rectifying the deviating hkh_k through rotation. Within this coplanar space, we establish a reference target direction, CtargetC_{\mathrm{target}}, which represents the ideal grounded orientation for the current token. The orientation of CtargetC_{target} is dynamically determined by balancing the textual and visual anchors:

Ctarget=Norm⁡((1−α)⋅CT+α⋅CV)(4)C_{target} = \operatorname{Norm}((1-\alpha) \cdot C_T + \alpha\cdot C_V) \tag*{(4)}

where Norm⁡(⋅)\operatorname{Norm}(\cdot) denotes the vector normalization operation, and α∈[0,1]\alpha\in[0,1] is a hyperparameter that adjusts the relative proximity of the target direction toward the visual versus textual context.

Subsequently, we perform a rotation to move the hidden state hkh_k toward CtargetC_{target}. To ensure that the intervention only modifies the semantic direction without disrupting the model’s activation magnitude, we implement a norm-preserving rotation. The updated hidden state hnewh_{new} is formulated using the principle of spherical linear interpolation:

hnew=∥hk∥⋅Norm⁡(Slerp⁡(hk,Ctarget;β))(5)h_{new} = \lVert h_k \rVert\cdot\operatorname{Norm}\left(\operatorname{Slerp}(h_k, C_{target}; \beta)\right) \tag*{(5)}

where β∈[0,1]\beta\in[0,1] controls the rotation intensity. A larger β\beta signifies a stronger correction that pulls hkh_k closer to the grounded plane. By maintaining ∥hnew∥=∥hk∥\lVert h_{new} \rVert= \lVert h_k \rVert, we guarantee that the calibration does not inadvertently weaken the feature’s signal strength before it enters the LayerNorm and the subsequent FFN. This precise directional correction ensures that the generation trajectory is re-anchored to the factual multimodal context.

Representational Smoothing (Subsequent Layers)

While the rotation mechanism effectively rectifies peak semantic deviations in the middle layers, applying aggressive directional changes in the final layers of the Transformer stack may interfere with the stabilization of the probability distribution over the vocabulary. Therefore, for the layers subsequent to the active execution zone, we transition from rotation to a Representational Smoothing strategy.

In this stage, rather than forcing a geometric redirection, we aim to enhance the coherence of the corrected trajectory by incorporating historical semantic information. For each layer kk in the later stages, the hidden state is updated via a weighted interpolation with the representation from the preceding layer:

hk=γhk−1+(1−γ)hk(6)h_k = \gamma h_{k-1} + (1-\gamma)h_k \tag*{(6)}

where γ∈[0,1]\gamma\in[0,1] is the smoothing factor. This operation facilitates a more consistent representation update, allowing the calibrated semantic signals from the intermediate layers to propagate reliably to the final prediction head. This dual-stage intervention, which combines rotation for correction and smoothing for stability, ensures a robust and grounded generation process throughout the entire network depth.

Experiments

Experimental Setups

Models. To comprehensively evaluate the effectiveness and generalizability of our proposed ROT framework, we conduct experiments across multiple mainstream Large Vision-Language Models with varying architectures and parameter scales. Specifically, we select the widely adopted LLaVA-1.5 series, including LLaVA-1.5-7B and LLaVA-1.5-13B (Liu et al., 2024c). Furthermore, to validate our method on state-of-the-art models, we incorporate the Qwen-VL family, utilizing both Qwen2-VL-7B (Wang et al., 2024b) and the highly capable Qwen2.5-VL-32B (Bai et al., 2025).

Baselines. We compare ROT against standard Greedy Decoding and a comprehensive suite of strong inference baselines. These include contrastive-based methods such as VCD (Leng et al., 2024), attention-payment methods like OPERA ([10]), and recent advanced mitigation strategies including RITUAL (Woo et al., 2024), Vissink (Kang et al., 2025), SID (Huo et al., 2024), and TAME (Tang et al., 2025). Additionally, we compare our method with LVLMs-Saliency (Zhang et al., 2026), a recent gradient-aware sampling approach.

Benchmarks and Metrics. To evaluate the effectiveness of our approach in mitigating object hallucinations, we conduct experiments on three widely adopted benchmarks: CHAIR (Rohrbach et al., 2018), POPE (Li et al., 2023), and MME ([8]). Following standard evaluation protocols, we primarily evaluate the hallucination rate at the sentence level CSC_S and instance level CIC_I for the CHAIR benchmark, where lower scores indicate better hallucination mitigation.

Main Results

Mitigation of Object Hallucination. We first evaluate the hallucination mitigation performance on the LLaVA-1.5-7B model, as detailed in Table

MethodCHAIR CS↓CS \downarrowCHAIR CI↓CI \downarrowCHAIR Recall↑\uparrowCHAIR length↑\uparrowPOPE Acc↑\uparrowPOPE F1↑\uparrowMME Exist.↑\uparrowMME Pos.↑\uparrowMME Color↑\uparrowMME Total↑\uparrow
Greedy54.415.775.282.785.585.9175.67114.00151.00440.67
VCD (Leng et al., 2024)51.114.775.282.385.085.3184.67128.67153.00466.34
OPERA (Huang et al., [10])47.014.674.577.185.284.2180.67111.67123.33415.67
RITUAL (Woo et al., 2024)45.213.274.380.384.385.2187.50125.00164.17476.67
Vissink (Kang et al., 2025)52.414.575.183.486.586.0190.00138.33155.00483.33
SID (Huo et al., 2024)44.212.873.080.485.885.6183.90127.80155.90467.60
TAME (Tang et al., 2025)41.312.474.479.985.785.4193.00139.00164.67496.67
LVLMs-Saliency (Zhang et al., 2026)35.68.275.479.587.587.0190.00133.33175.00498.33
ROT (Ours)33.06.775.685.186.686.3195.00143.33168.33506.66

Table 1. Performance comparison of ROT against various state-of-the-art training-free baselines on LLaVA-1.5-7B across CHAIR, POPE, and MME benchmarks.

  1. On the CHAIR benchmark, our ROT framework achieves remarkable quantitative improvements, establishing a new standard for training-free interventions. Compared to the standard greedy decoding, ROT drastically reduces the sentence-level hallucination metric CSCS from 54.4 to 33.0 and the instance-level metric CICI from 15.7 to 6.7. Even when compared to the highly competitive, second-best method, LVLMs-Saliency, our geometric intervention proves superior, further depressing CSCS by an absolute margin of 2.6 points and CICI by 1.5 points. Transitioning to the POPE benchmark, ROT continues to deliver robust quantitative gains. It elevates the Accuracy from the greedy baseline of 85.5 to 86.6 and boosts the F1-score from 85.9 to 86.3, decisively outperforming widely adopted baseline strategies such as OPERA, VCD, and TAME. On the comprehensive MME benchmark, ROT surpasses all evaluated methods and achieves a state-of-the-art total score of 506.66. This validates that correcting the semantic trajectory directly in the hidden space is a highly effective mechanism for anchoring generation to factual visual evidence across diverse evaluation protocols.

Ablation Study

To demonstrate the universal applicability and scalability of ROT, we extend our evaluation across diverse model families and parameter sizes, encompassing LLaVA-1.5-7B, LLaVA-1.5-13B, Qwen2-VL-7B, and Qwen2.5-VL-32B, as presented in Table 2. Across all tested architectures, ROT consistently and significantly suppresses hallucinated outputs on the CHAIR benchmark. Quantitatively, the intervention achieves an average relative reduction of 26.4% in CSCS and an impressive 42.7% in CICI across the four models. Beyond CHAIR, we comprehensively assess factual grounding using the POPE benchmark. Across the four diverse models and all testing subsets, our method guarantees steady improvements, yielding consistent Accuracy lifts of up to 2.0 absolute points relative to their respective greedy decoding baselines. Exhibiting robust efficacy even on massive, highly optimized models like Qwen2.5-VL-32B underscores that the semantic deviation of hidden states is a fundamental issue across LVLMs, and our geometric intervention provides a scalable, architecture-agnostic solution.

MethodCHAIR CS↓CS \downarrowCHAIR CI↓CI \downarrowPOPE Adversarial Acc↑\uparrowPOPE Adversarial F1↑\uparrowPOPE Popular Acc↑\uparrowPOPE Popular F1↑\uparrowPOPE Random Acc↑\uparrowPOPE Random F1↑\uparrow
Greedy54.415.780.481.786.286.489.989.6
VCD51.114.781.282.185.785.988.088.1
MemVR50.414.379.881.886.385.989.489.6
ROT33.06.782.382.687.286.690.289.8
Greedy41.412.783.884.486.186.887.588.4
VCD44.713.181.981.885.785.187.486.6
MemVR42.211.581.282.487.185.388.288.5
ROT30.84.385.084.587.786.989.588.6
Greedy24.28.085.984.887.686.489.388.6
ROT21.44.987.386.289.288.590.589.9
Greedy43.69.585.884.686.985.688.587.1
ROT30.98.786.585.587.486.489.388.1

Table 2. Generalization performance of ROT across various LVLM architectures and parameter scales on CHAIR and the POPE benchmark (including its adversarial, popular, and random subsets).

To validate the efficacy and necessity of the core components within our proposed framework, we conduct a comprehensive ablation study on the CHAIR benchmark. We isolate the two primary mechanisms of our approach: the Norm-Preserving Rotation in the intermediate layers (denoted as w/o Rotation) and the Representational Smoothing in the subsequent layers (denoted as w/o Smoothing). The evaluation is performed on both LLaVA-1.5-7B and Qwen2-VL-7B architectures, with the quantitative results presented in Table 3.

MethodLLaVA-1.5-7BQwen2-VL-7B
CS↓C_S \downarrowCI↓C_I \downarrowCS↓C_S \downarrowCI↓C_I \downarrow
Greedy54.515.724.28.0
ROT33.06.721.44.9
w/o Rotation40.512.423.46.6
w/o Smoothing38.28.321.95.2

Table 3. Ablation study of ROT components on LLaVA-1.5-7B and Qwen2-VL-7B models across the CHAIR benchmark.

Removing the rotation mechanism causes severe performance degradation. On LLaVA-1.5-7B, omitting rotation drastically increases CIC_I from 6.7 to 12.4 and CSC_S from 33.0 to 40.5. This confirms that merely applying passive smoothing is insufficient; actively redirecting the hidden state toward the grounded factual plane is essential to fundamentally correct semantic deviations.

Similarly, disabling the smoothing mechanism notably increases hallucination rates, degrading LLaVA-1.5-7B’s CIC_I from 6.7 to 8.3. This indicates that while rotation effectively anchors the semantic direction, the absence of subsequent smoothing allows the calibrated hidden states to destabilize in deeper layers, triggering secondary ungrounded fluctuations.

Ultimately, the full ROT framework significantly outperforms both incomplete variants. The norm-preserving rotation provides crucial geometric correction at peak deviation, while smoothing reliably preserves this structural integrity to the output head, confirming their strong synergy in mitigating multimodal hallucinations.

Case Study

To intuitively demonstrate the mechanism and effectiveness of our proposed method, we present a qualitative case study from the CHAIR benchmark using the LLaVA-1.5-7B model, as illustrated in Figure 4.

Figure 4. Qualitative comparison and hidden state similarities. The baseline model hallucinates a bench and a clock, which exhibit distinctly lower STS_T and SVS_V compared to the factual token fence generated by ROT.

In this example, given an image of a person skateboarding, the baseline model generates a description containing ungrounded objects, specifically hallucinating a bench situated near the ramp and a clock on the wall. By analyzing the internal representations at the moment of generation, we find that

these hallucinated tokens exhibit notably low contextual similarities. Specifically, the token bench presents an STS_T of 0.41 and SVS_V of 0.24, while the token clock further drops to an STS_T of 0.36 and SVS_V of 0.20. These values indicate that the hidden states of these tokens have deviated significantly from the grounded textual and visual context.

In contrast, our ROT framework dynamically detects this deviation and applies the norm-preserving rotation to steer the representation back toward the grounded semantic plane. As a result, the model successfully identifies the factual object in the scene, generating the token fence with significantly higher similarities (ST=0.54S_T = 0.54, SV=0.36S_V = 0.36). This case demonstrates that ROT effectively re-anchors the generation trajectory to the visual evidence, replacing ungrounded hallucinations with accurate, grounded descriptions.

Conclusion

In this paper, we introduce ROT, a novel training-free framework designed to mitigate object hallucinations in LVLMs. Our approach is motivated by the empirical discovery that hallucinated tokens exhibit a significant directional deviation in the hidden semantic space, rather than a simple over-reliance on language priors. To address this, we propose a layer-specific intervention strategy consisting of two key components: a norm-preserving rotation that explicitly corrects the semantic trajectory in the most deviating intermediate layers, and a representational smoothing mechanism that ensures stability in subsequent layers. Extensive experiments across multiple benchmarks, including CHAIR, POPE, and MME, demonstrate that ROT consistently reduces hallucination rates and outperforms various state-of-the-art baselines while maintaining the model’s fundamental multimodal capabilities. Our findings underscore the importance tance of geometric calibration in the hidden space as a robust and efficient solution for grounded generation.

Limitations

Despite the effectiveness of the ROT framework, several limitations remain to be addressed in future work. First, the construction of the grounded semantic plane is derived solely from the local textual and visual contexts provided within the model’s attention mechanism. While effective, this approach does not incorporate external structured knowledge or global scene graphs, which could potentially offer a more comprehensive reference for resolving complex hallucinations. Second, the identification of the critical deviating layers and the selection of the trigger threshold τ\tau are currently based on empirical observations from representative model families. While ROT demonstrates strong generalization across different scales (7B to 32B), these configurations might require adaptive fine-tuning or automated search strategies when applied to ultra-large-scale models with significantly different depth-wise representational dynamics.

Algorithm of the ROT Framework

To facilitate a deeper understanding and ensure the reproducibility of our proposed method, we provide the detailed pseudocode for the ROT framework in Algorithm 1.

The algorithm operates during the autoregressive decoding phase at each generation step. It takes the layer-wise hidden states and attention distributions as inputs, dynamically computes the modality-specific contexts, and applies the dual-stage intervention (Norm-Preserving Rotation and Representational Smoothing) based on the layer depth and the contextual deviation indicator EE.

Algorithm 1 Dynamic Hallucination Detection and Mitigation via ROT
Input: Current token hidden states XX; Normalized attention weights A~\tilde{A}; Textual token indices TT; Visual token indices VV.
Parameters: Rotation execution zone (layers 1 to LmidL_{mid}); Smoothing zone (layers Lmid+1L_{mid}+1 to LL); Trigger threshold τ\tau; Balance factor α\alpha; Rotation intensity β\beta; Smoothing factor γ\gamma.
Output: Calibrated hidden states for vocabulary prediction.
1: Initialize h0h_0 as the input embedding of the current token.
2: for each transformer layer k=1k = 1 to LL do
3: // Forward pass through Self-Attention
4: Attn_Output, A~\tilde{A} ←\leftarrow Self-Attention(hk−1,Xh_{k-1}, X)
5: hk←hk−1+h_k \leftarrow h_{k-1} + Attn_Output ▹\triangleright Extract post-residual hidden state
6: // Context Aggregation
7: CT←∑j∈TA~t,jXjk−1▹C_T \leftarrow\sum_{j \in T} \tilde{A}_{t,j}X_j^{k-1} \triangleright Textual context
8: CV←∑i∈VA~v,iXik−1▹C_V \leftarrow\sum_{i \in V} \tilde{A}_{v,i}X_i^{k-1} \triangleright Visual context
9: // Layer-Specific Interventions
10: if k≤Lmidk \le L_{mid} then ▹\triangleright Active execution zone for Rotation
11: ST←cos⁡(hk,CT)S_T \leftarrow\cos(h_k,C_T)
12: SV←cos⁡(hk,CV)S_V \leftarrow\cos(h_k,C_V)
13: E←2−ST−SV▹E \leftarrow2 - S_T - S_V \triangleright Calculate contextual deviation
14: if E≥τE \ge\tau then ▹\triangleright Trigger Norm-Preserving Rotation
15: Ctarget←Norm⁡(α⋅CV+(1−α)⋅CT)C_{target} \leftarrow\operatorname{Norm}(\alpha\cdot C_V + (1-\alpha)\cdot C_T)
16: hnew←∥hk∥⋅Norm⁡(Slerp⁡(hk,Ctarget,β))h_{new} \leftarrow\lVert h_k\rVert\cdot\operatorname{Norm}(\operatorname{Slerp}(h_k,C_{target},\beta))
17: hk←hnew▹h_k \leftarrow h_{new} \triangleright Rectify semantic trajectory
18: end if
19: else ▹\triangleright Subsequent layers for Smoothing
20: hk←γ⋅hk−1(prev)+(1−γ)⋅hk▹h_k \leftarrow\gamma\cdot h_{k-1}^{(prev)} + (1-\gamma)\cdot h_k \triangleright Representational smoothing
21: end if
22: hk−1(prev)←hk▹h_{k-1}^{(prev)} \leftarrow h_k \triangleright Cache current state for the next layer’s smoothing
23: // Forward pass through FFN
24: hk←LayerNorm⁡(hk)h_k \leftarrow\operatorname{LayerNorm}(h_k)
25: hk←hk+FFN⁡(hk)h_k \leftarrow h_k + \operatorname{FFN}(h_k)
26: end for
27: return hL▹h_L \triangleright Final hidden state for language modeling head

Table 1 (PDF p. 12).

Evaluation Metrics Definitions

To comprehensively evaluate the hallucination mitigation performance, we employ three widely used benchmarks. The detailed formulations of their respective metrics are defined as follows:

CHAIR Metrics. The Caption Hash Algorithm for Image Reporting (CHAIR) benchmark quantifies object hallucination in open-ended image captioning at two different granularities: the instance level (CIC_I) and the sentence level (CSC_S). The instance-level metric CIC_I calculates the proportion of hallucinated object instances among all objects mentioned by the model:

CI=# of hallucinated objects# of all objects mentioned(7)C_I = \frac{\#\text{ of hallucinated objects}}{\#\text{ of all objects mentioned}} \tag*{(7)}

The sentence-level metric CSC_S measures the proportion of sentences that contain at least one hallucinated object:

CS=# of sentences with hallucinated objects# of all sentences(8)C_S = \frac{\#\text{ of sentences with hallucinated objects}}{\#\text{ of all sentences}} \tag*{(8)}

For both metrics, a lower value indicates a reduced degree of object hallucination.

POPE Metrics. The Polling-based Object Probing Evaluation (POPE) frames hallucination evaluation as a binary visual question answering task. We report the standard Accuracy (Acc) and F1-score:

  • Accuracy (Acc): The ratio of correctly answered probing questions (both existing and non-existing objects) to the total number of questions.

  • F1-score: The harmonic mean of Precision and Recall. It provides a balanced measure

of the model’s ability to correctly identify existing objects without falsely confirming non-existent ones.

MME Metrics. For the MME benchmark, we focus on the foundational perception subtasks (e.g., Existence, Position, Color). Following the official MME scoring protocol, the score for each subtask is derived from a combination of basic accuracy and pair-wise accuracy. Specifically, the evaluation utilizes pairs of positive and negative questions. The maximum possible score for each subtask is 200, where 100 points correspond to the basic accuracy across all individual questions, and the remaining 100 points are awarded based on strict pair-wise accuracy (i.e., both questions regarding a specific object must be answered correctly).

Experimental Details

In this section, we elaborate on the concrete hardware environment and the specific hyperparameter configurations employed throughout our empirical evaluations to guarantee reproducibility. All experiments, encompassing both the standard greedy decoding baselines and our proposed ROT framework, are consistently executed on a unified computing node equipped with an NVIDIA A800 (80GB) GPU.

The dual-stage intervention mechanism of ROT is governed by three key hyperparameters: the context balance factor α\alpha, the rotation intensity β\beta, and the representational smoothing factor γ\gamma. Taking CHAIR as an example, for the LLaVA model family, the hyperparameters for the LLaVA-1.5-7B model are established at α=0.44\alpha= 0.44, β=0.062\beta= 0.062, and γ=0.51\gamma= 0.51. When scaling up to the larger LLaVA-1.5-13B architecture, the configurations are tuned to α=0.45\alpha= 0.45, β=0.050\beta= 0.050, and γ=0.55\gamma= 0.55. On the Qwen2-VL-7B model, we configure the intervention framework with α=0.50\alpha= 0.50, β=0.048\beta= 0.048, and γ=0.43\gamma= 0.43. For the Qwen2.5-VL-32B model, the parameters are fine-tuned to α=0.46\alpha= 0.46, β=0.024\beta= 0.024, and γ=0.41\gamma= 0.41.

System Prompts

In our experiments, we design specific system prompts to guide the Large Vision-Language Models to generate appropriate responses tailored to the evaluation formats of different benchmarks. To ensure fair and rigorous comparisons, these instruction templates are kept strictly identical across the baseline methods and our proposed ROT framework.

For the open-ended image captioning task in the CHAIR benchmark, we utilize a standard descriptive prompt to encourage comprehensive textual generation:

"Please describe this image in detail."

For the probing-based tasks in the POPE and MME benchmarks, we instruct the model to first briefly analyze the image content and then output the final binary classification result. This step-by-step instruction effectively standardizes the output format for automated exact-match evaluation:

"Please describe the image content concisely, and then answer with yes or no at the end."

Extensive Qualitative Results

To further demonstrate the robust effectiveness of the ROT framework in mitigating object hallucinations, we present additional qualitative case studies in this section. These examples illustrate how our geometric intervention correctly anchors the generation trajectory across diverse and complex visual scenes.

As illustrated in Figure 5, the standard greedy decoding hallucinates non-existent objects, specifically fabricating a “bench” and a “clock”. Our proposed ROT method effectively corrects this contextual deviation, completely eliminating these hallucinations while successfully identifying and generating the correct factual token “fence”.

Figure 5. Baseline. The image captures a young man skillfully riding a skateboard down a ramp. He is in the middle of performing a trick, with his arms outstretched for balance. The skateboarder is wearing a black shirt and appears to be enjoying the thrill of the ride.\n\nIn the background, there is a bench situated near the ramp, and a clock can be seen hanging on the wall. The scene is set in an outdoor area, possibly a park or a skate park. ROT (Ours). The image features a young man performing a skateboarding trick. He is in the air, jumping, and is in the middle of a skateboarding trick. The skateboarder is wearing a black shirt and a blue wristband. The skateboarder is in the air, and his skateboard is visible.\n\nThe scene takes place in a park, with a fence visible in the background. The skateboarder is performing his trick in a park, and the skateboard is visible in the air. Qualitative Example 1. ROT successfully removes the hallucinated “bench” and “clock”, and accurately describes the “fence”.

In Figure 6, the baseline model erroneously generates a “handbag” that does not exist in the visual input. The ROT framework not only removes this hallucinated object but also demonstrates a strong capability to capture global visual attributes, accurately describing the overall scene as “black and white” to match the monochrome nature of the image.

Figure 6. Baseline. The image features a man riding a bicycle on a sidewalk. He is wearing a hat and appears to be enjoying his ride. The bicycle is positioned towards the left side of the scene.\n\nIn the background, there is a building with a window, and a car is parked nearby. The scene also includes a handbag placed on the ground, possibly belonging to the man riding the bicycle. ROT (Ours). The image features a man riding a bicycle, standing on the street. He is wearing a hat and standing next to a wall. The bicycle is positioned near the left side of the image. The man appears to be looking at the camera, possibly taking a picture. The scene is black and white, giving it a vintage feel. Qualitative Example 2. ROT eliminates the hallucinated “handbag” and correctly identifies the “black and white” attribute of the image.

As shown in Figure 7, the greedy strategy suffers from object hallucination by fabricating a “bench” in the background. ROT successfully intercepts this ungrounded semantic shift in the intermediate layers, yielding a concise and strictly factual description without introducing any non-existent instances.

Figure 7. Baseline. The image captures a man riding a skateboard down a sidewalk. He is wearing a blue jacket and a green hat, adding a touch of color to the scene. The man appears to be enjoying his ride, possibly performing a trick or simply cruising down the street.\n\nIn the background, there are a few cars parked along the sidewalk, and a bench can be seen further down the path. The overall atmosphere of the scene is lively and energetic, with the skateboarder being the main focus. ROT (Ours). The image features a man riding a skateboard, wearing a hat. He is riding on a street, possibly in a park. The skateboarder is wearing a blue jacket and a hat. The skateboarder is in motion, moving down the street.\n\nIn the background, there is a car visible, adding to the urban setting. The scene is captured in a yellow filter, giving it a warm, vintage feel. Qualitative Example 3. ROT intercepts the semantic deviation to prevent the hallucination of a “bench”.

Figure 8 demonstrates a more complex scenario where the baseline model suffers from severe multi-object hallucinations, incorrectly fabricating a “truck”, “traffic lights”, and “handbags”. Conversely, ROT effectively suppresses this clustered hallucination and precisely anchors the generation to the actual visual evidence, accurately identifying the “bridge”.

Figure 8. Qualitative Example 4. ROT effectively suppresses clustered hallucinations (truck, traffic lights, handbags) and correctly recognizes the “bridge”.

References

  1. [5]Yixiong Fang, Ziran Yang, Zhaorun Chen, Zhuokai Zhao, and Jiawei Zhou. 2024. Enhancing vision-language model reliability with uncertainty-guided dropout decoding. arXiv preprint arXiv:2412.06474.arxiv.org/abs/2412.06474
  2. [8]Chaoyou Fu, Peixian Chen, Yunhang Shen, Yulei Qin, Mengdan Zhang, Xu Lin, Jinrui Yang, Xiawu Zheng, Ke Li, Xing Sun, et al. 2026. Mme: A comprehensive evaluation benchmark for multimodal large language models. Advances in Neural Information Processing Systems, 38.
  3. [10]Qidong Huang, Xiaoyi Dong, Pan Zhang, Bin Wang, Conghui He, Jiaqi Wang, Dahua Lin, Weiming Zhang, and Nenghai Yu. 2024. Opera: Alleviating hallucination in multi-modal large language models via over-trust penalty and retrospection-allocation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13418–13427.arxiv.org/abs/2311.17911

Paper details

vlnc:W_yyvr7879
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents