Where Hallucinations Live: A Cross-Architecture Circuit in VQ-Tokenized Vision-Language Models

Shamanthak Hegde, Xiangrui Liu, Maitreya Patel, Yezhou YangarXiv 2026

TL;DR

Unified vision-language models that use discrete vector-quantized (VQ) tokens suffer from severe, systematic object hallucinations. This paper discovers a shared, early-layer ($L_0$) attention routing circuit in the LLM backbone that causally drives this behavior. By targeting and ablating this specific circuit, the authors achieve a significant reduction in object hallucinations during open-ended text generation—a feat that standard decoding-time fixes fail to replicate.

What Problem Does This Paper Address?

Unified Vision-Language Models (VLMs) integrate visual and textual processing inside a single transformer backbone. To make this integration seamless, many state-of-the-art models use a Vector-Quantized (VQ) codebook, mapping continuous visual features to discrete tokens that share the same vocabulary space as text.

While elegant, this architecture introduces a persistent failure mode: VQ-tokenized models exhibit extreme, systematic biases on grounded yes/no benchmarks. Some models answer "YES" up to 81% of the time regardless of the image content, while others collapse to the opposite extreme, almost never saying "YES." Continuous-projector models (like LLaVA) don't suffer from these wild swings.

Existing interventions treat these hallucinations as generic logit miscalibrations and attempt decoding-time patches. However, they lack an architectural explanation for why these errors happen and are rarely tested on open-ended generation tasks. This paper uncovers the exact mechanistic circuit responsible for these systematic hallucinations.

Methods

The authors employ a mix of mechanistic interpretability techniques and structural architectural experiments:

  • Activation Patching: To find where the pathological signals originate, the authors run models on clean images and corrupted variants (using calibrated Gaussian noise or image-swapping). They cache the activations and systematically patch clean activations back into the corrupted runs to locate the exact layers restoring correct behavior.
  • Three-Gate Diagnostic Chain: They formalize their findings into a structural diagnostic to identify if a model contains the hallucination circuit:
  • Gate A1 (Residual Divergence): Verifies if a visual perturbation triggers an early divergence in the residual stream that successfully propagates downstream.
  • Gate A2 (Attention Concentration): Measures if the model concentrates significant attention mass on image tokens in the very first layer ($L_0$).
  • Gate A3 (Codebook Off-Manifold Rate): Checks for "snapping artifacts," confirming that input noise causes visual embeddings to jump to entirely different codebook entries.
  • Causal Induction Experiment: To isolate vector quantization as the root cause, the authors take a healthy continuous-projector model (LLaVA-1.6) and perform a single-variable swap, replacing its projector with a VQ+Linear setup. They compare this against a matched-compute MLP control trained on identical data.
Figure 1: Methodology overview. Clean and corrupted image pairs are constructed and passed through the transformer; residual divergence and early-layer attention mass are measured to detect a routing circuit via a three-gate diagnostic. Models passing all three gates have a VQ-installed L0 circuit confirmed by a single-variable causal control: swapping only the projector type from MLP to VQ installs the circuit; a matched-compute MLP control does not. Ablating L0 reduces object hallucination in open-ended generation (CHAIRi drops 31% relative) while tuned DoLA achieves better binary calibration.

Datasets

The study utilizes several established benchmarks for training, calibration, and evaluation:

  • POPE & AMBER: Grounded binary (yes/no) benchmarks used to evaluate object hallucination and model biases.
  • NaturalBench: Used to provide image-swap pairs for the activation patching pipeline.
  • MS COCO: Used to evaluate open-ended image captioning performance.
  • CHAIR (Caption Hallucination Assessment with Image Relevance): The primary metric used to quantify object hallucinations in open-ended text generation.
  • CC3M: A 50k image-caption subset used to train the induced projector variants.

Key Insights and Ideas

  • The VQ Bottleneck is the Culprit: Discretizing visual features into a codebook creates "snapping artifacts," where tiny input perturbations cause embeddings to snap to unrelated codes. This discrete bottleneck is what instigates the pathological circuit.
  • Hallucinations Live in the Backbone Weights: Surprisingly, the circuit does not reside in the visual projector itself. VQ-based pretraining actually bakes the pathological routing behavior directly into the LLM backbone weights. A healthy backbone already possesses the $L_0$ attention pathways; VQ training simply floods them with pathological signal content.
  • The Binary vs. Generative Dissociation: There is a sharp disconnect between forced-choice binary benchmarks and open-ended generation. Popular decoding-time fixes like DoLA or VCD manipulate output logits to score well on yes/no questions, but they fail to disrupt the underlying $L_0$ circuit. As a result, they do not reduce actual object hallucinations when the model generates free-form text.

Key Results

  • Circuit Identification: The three-gate diagnostic successfully identified the shared routing circuit across 5 natural VQ-VLMs (including VILA-U, Liquid, and Chameleon) and 5 induced variants, while correctly rejecting 15 continuous or non-aligned models.
Table 1: Five natural unified-VQ VLMs spanning three LLM families that pass the three-gate diagnostic. For A1, init is the maximum relative divergence over layers [0, 8) and prop the maximum over ℓ≥12; both must reach 0.4. A2 is scored on L0 mass for projector-amplified models (P) and the [0, 8) window total for unified-vocabulary models (U); both apply a ≥15 threshold (Section 3.1). Behavioral 95% CIs from 10,000 paired-record bootstrap resamples. †Lumina-mGPT is held out: baseline yes-rate at the behavioral floor.
  • Causal Proof via Projector Swapping: Introducing a VQ projector into a healthy LLaVA model successfully installed the pathological circuit, causing its POPE yes-rate to skyrocket to 85.5%. The matched-compute MLP control showed no such behavior, isolating the codebook as the causal mechanism.
Table 2: The matched-compute contrast under identical training parameters on POPE. The VQ projector installs the L0 routing circuit; the matched-compute MLP projector does not, failing both halves of A1, passing A2.
  • Fixing Open-Ended Generation: Directly ablating the $L_0$ attention routing circuit reduced instance-level object hallucinations ($\text{CHAIR}_i$) on VILA-U by 31% relatively (dropping from 10.3% to 7.1%). In contrast, tuned decoding baselines like DoLA and VCD left the hallucination rate unchanged or actively worsened it.

Limitations and Future Work

  • Associational Polarity: While the presence of the circuit is causally linked to vector quantization, what determines whether a model biases toward "YES" or "NO" (its polarity) remains mostly associational, tied to the training distribution of the surviving codes. Some anomalies (like a specific $K=4096$ codebook capacity inversion) still lack a mechanistic explanation.
  • Model-Specific Interventions: While the circuit's topology is shared, the exact steering directions for interventions like Visual Token Intervention (VTI) are highly model-specific and must be re-derived for each architecture.
  • Scope of Generative Evidence: The open-ended generation improvements were robustly demonstrated on VILA-U, but the induced variants showed less statistically significant image-level changes, indicating a need for broader testing across more diverse generative tasks.

Summary updated

Abstract

Unified vision-language models (VLMs) that tokenize images through a vector-quantized (VQ) codebook routinely hallucinate objects on grounded yes/no benchmarks, yet existing decoding-time fixes treat this as generic miscalibration without an architectural account. Using activation patching across twenty-five models spanning eight LLM families, we identify an early-layer ($L_0$) attention routing circuit shared across VQ-tokenized VLMs and propose a three-gate diagnostic that distinguishes the models carrying it from those that do not. The diagnostic isolates ten positive models (five natural unified-VQ VLMs across three LLM families and five induced variants) and rejects the remaining fifteen. A single-variable architectural swap (LLaVA-1.6 CLIP+MLP $\rightarrow$ VQ+Linear) installs the circuit, while a matched-compute MLP control on identical data does not, isolating vector quantization as the source of the pathological signal; the routing pathway that carries it is one that the backbone already provides. Against tuned VCD and DoLA baselines, tuned DoLA wins on binary calibration, but \textbf{only $L_0$ ablation reduces object hallucination in open-ended generation} (CHAIR$_i$ reduces by $31\,\%$ relatively, whereas tuned DoLA and VCD leave it unchanged or worsen it). These results recast object hallucination in unified VQ VLMs as a property of architecture and pretraining, and yield a targeted intervention that mechanism-agnostic decoding cannot replicate.
BibTeX
@misc{hegde2026where,
  author = {Shamanthak Hegde and Xiangrui Liu and Maitreya Patel and Yezhou Yang},
  title = {{Where Hallucinations Live: A Cross-Architecture Circuit in VQ-Tokenized Vision-Language Models}},
  year = {2026},
  eprint = {2609.29048},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.29048},
}
Figure