Manuscript Offprint

arXiv:2610.06056

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

Yijing Du, Xiangcheng Zhan, Shuo Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 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 (Fang et al., 2024), 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 k 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

∗^{*}Corresponding author

Figure

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.

hidden state intervention. As shown in Figure 1, we formulate a deviation indicator E, 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 E 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 E exceeds a predefined threshold, it signifies an erroneous semantic deviation, thereby triggering the mitigation mechanism.

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 E 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.

References (37)