Vocabulary Hijacking in LVLMs: Unveiling Critical Attention Heads by Excluding Inert Tokens to Mitigate Hallucination

Yangneng Chen, Junlin Li, Weijun Yao, Xilai Ma, Guodong Du, Wenya Wang, Jing LiarXiv 2026

TL;DR

Large Vision-Language Models (LVLMs) frequently hallucinate because specific background tokens ("Inert Tokens") hijack the model's attention, causing intermediate states to collapse into fixed, meaningless words. By identifying these hijacked heads and selectively reinforcing the resilient ones through a training-free intervention called HAVAE, hallucinations can be drastically reduced with zero additional computational overhead.

What Problem Does This Paper Address?

While Large Vision-Language Models (LVLMs) excel at multimodal tasks, they suffer from a persistent reliability issue: object hallucination, where the generated text describes objects not present in the image.

While the AI community generally agrees that insufficient attention to visual tokens causes these errors, a fundamental question has remained unanswered: Which specific attention heads are actually critical for accurate visual grounding? Existing attention-based fixes often rely on broad heuristics. This paper aims to demystify the internal attention mechanics of LVLMs to pinpoint exactly why attention goes astray and how to fix it at inference time.

Methods

The authors investigate the model's internal mechanics using the Logit Lens, a technique that projects intermediate hidden states from the model's layers directly into the vocabulary space to see what the model is "thinking" mid-computation.

Through this, they discovered an anomaly they call Vocabulary Hijacking: certain background tokens (dubbed Inert Tokens) persistently absorb massive amounts of attention. Crucially, instead of evolving semantically across layers, their hidden states decode into a rigid, unchanging set of nonsense words (like "kwiet"), which the authors call Hijacking Anchors.

Figure 2: Illustration of the Vocabulary Hijacking phenomenon in LLaVA-1.5 7B. (a) Attention heatmap for the token “phone”, where several irrelevant background tokens capture excessive attention (highlighted in red boxes), which we term Inert Tokens. (b) Logit lens analysis of the top-10 attended visual tokens and their neighbors. Inert Tokens (red boxes) exhibit rigid non-semantic traces, contrasting sharply with target tokens (yellow boxes) that evolve from meaningless words into image-aligned concepts.

To solve this, the authors developed a three-step framework:

  1. Hijacking Anchor-Based Identification (HABI): A statistical strategy that uses a composite score (measuring dominance, frequency, and attention) and Otsu’s thresholding method to precisely localize these problematic Inert Tokens.
  2. Non-Hijacked Visual Attention Ratio (NHAR): A novel metric that calculates the proportion of a head's attention budget allocated to valid, non-hijacked visual content. This acts as a filter to identify the "trustworthy" attention heads.
  3. Hijacking-Aware Visual Attention Enhancement (HAVAE): A training-free, inference-time intervention. It takes the top-ranked attention heads identified by NHAR and amplifies their attention weights using the layer-wise mean attention magnitude, effectively steering the model's focus away from background noise and back to salient objects.

Datasets

The authors used 500 random images from the MSCOCO 2014 validation set for their exploratory analysis and calibration. To evaluate their method, they tested across several prominent hallucination and capability benchmarks:

  • CHAIR: For evaluating object hallucination in long-form image captioning.
  • POPE & POPE-Chat: For query-based object probing in single and multi-turn conversational settings.
  • AMBER: For assessing out-of-domain performance and fine-grained errors (object, attribute, and relationship hallucinations).
  • MME: To ensure the intervention doesn't degrade the model's general perception and cognitive capabilities.

Key Insights and Ideas

  • Active Sinks vs. Passive Noise: Inert tokens aren't just ignored background noise; they act as "Active Sinks." They actively drain the model's attention budget while remaining representationally rigid and semantically empty across layers.
  • Raw Attention is a Flawed Proxy: Simply looking for heads with high visual attention is misleading. Many of these heads are actually trapped by Inert Tokens. True grounding requires filtering out this hijacking behavior using metrics like NHAR.
  • A Pre-training Artifact: The authors discovered that Vocabulary Hijacking is significantly worse in base models before instruction tuning. This suggests that during initial vision-language alignment pre-training, the model learns a shortcut to "dump" unaligned or redundant visual features into specific vocabulary anchors.

Key Results

The proposed HAVAE method achieved state-of-the-art (SOTA) performance in mitigating hallucinations across multiple architectures (LLaVA-1.5, Shikra, MiniGPT-4, and Qwen2-VL):

  • Significant Hallucination Reduction: HAVAE reduced the instance-level hallucination score ($\text{CHAIR}_i$) by 38.7% on LLaVA-1.5 7B and by 46.2% on Shikra-7B compared to the strongest reliable baselines.
  • Zero Computational Overhead: Unlike concurrent methods like AVISC that rely on contrastive decoding (requiring an extra forward pass), HAVAE is a single-pass intervention, consuming roughly half the inference computing resources of its competitors.
  • Preserved General Capabilities: On the MME benchmark, HAVAE maintained or slightly improved scores in both perception and cognition, proving that suppressing inert tokens actually cleans up the model's overall visual reasoning.
Figure 1: Attention maps for generating “phone”. (a) The average of all heads exhibits the Vocabulary Hi- jacking phenomenon, with focus scattered on the back- ground. (b) In contrast, heads selected by HAVAE con- centrate attention precisely on the target object.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Mechanistic Origins: The precise training dynamics that cause vocabulary hijacking to crystallize during pre-training remain unclear.
  • Scale Constraints: Due to hardware limitations, the method was only validated on models up to 13B parameters; testing on larger foundational models is an open next step.
  • Inference vs. Training: HAVAE is an inference-time patch. The authors suggest that developing training-based strategies to prevent vocabulary hijacking from occurring in the first place is a critical avenue for future research.

Summary updated

BibTeX
@misc{chen2026vocabulary,
  author = {Yangneng Chen and Junlin Li and Weijun Yao and Xilai Ma and Guodong Du and Wenya Wang and Jing Li},
  title = {{Vocabulary Hijacking in LVLMs: Unveiling Critical Attention Heads by Excluding Inert Tokens to Mitigate Hallucination}},
  year = {2026},
  eprint = {2605.10622},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.10622},
}
Figure