RITUAL: Random Image Transformations as a Universal Anti-hallucination Lever in LVLMs

Sangmin Woo, Jaehyuk Jang, Donguk Kim, Yubin Choi, Changick Kim · Submission to ICLR 2025 · Withdrawn

TL;DR

RITUAL (Random Image Transformations as a Universal Anti-hallucination Lever) is a simple, training-free decoding technique that mitigates visual hallucinations in Large Vision-Language Models (LVLMs). By combining token probability distributions from the original image and a randomly augmented counterpart at inference time, it significantly reduces hallucinated objects without needing auxiliary models or expensive search procedures.

What Problem Does This Paper Address?

Despite the impressive perceptual and conversational capabilities of LVLMs like LLaVA and InstructBLIP, they are notoriously prone to visual hallucinations—generating descriptions of objects, attributes, or relationships that do not exist in the source image.

Most existing remedies require compute-heavy interventions: fine-tuning on curated negative data, Reinforcement Learning from Human Feedback (RLHF), auxiliary detection models, or contrastive decoding (which penalizes outputs conditioned on heavily corrupted images under the assumption that hallucinations stem strictly from language priors). The authors ask: Can we instead mitigate hallucinations purely at inference time by altering how the model perceives visual inputs, without changing model weights or training pipelines?

Methods

RITUAL takes inspiration from Test-Time Augmentation (TTA), applying it directly into the autoregressive decoding step of LVLMs:

  1. Random Image Transformation: At inference time, the original image $V$ is augmented using one randomly selected standard transformation from a predefined pool $\Omega$:
  2. Geometric: Horizontal Flip, Vertical Flip, Rotation ($\pm 180^\circ$), or Random Crop.
  3. Appearance: Color Jitter or Gaussian Blur.
  4. Dual-Input Logit Ensemble: At each autoregressive decoding step $t$, the next token $\eta_t$ is sampled not merely from the distribution conditioned on the original image, but from a linear combination of distributions: $$\eta_t \sim p_\theta(\eta_t \mid V, T, \eta_{<t}) + \alpha \cdot p_\theta(\eta_t \mid V^{(T)}, T, \eta_{<t})$$ where $T$ is the prompt, $\eta_{<t}$ are previously generated tokens, and $\alpha$ is a balancing hyperparameter (empirically set to $\alpha = 3$).

  5. Plausible Constraint Truncation: Following prior contrastive decoding approaches, tokens with low likelihood under the primary image distribution are truncated prior to sampling.

  6. Compatibility with Contrastive Decoding: RITUAL easily integrates alongside contrastive decoding methods like VCD and M3ID by combining their contrasted distributions with the augmented distribution.

Datasets

The authors evaluate RITUAL using:

  • POPE (Polling-based Object Probe Evaluation): Evaluated across MS-COCO, A-OKVQA, and GQA under Random, Popular, and Adversarial settings (3,000 QA pairs each).
  • CHAIR: Object hallucination metric evaluating image captions ($CHAIR_S$ and $CHAIR_I$) on 500 MS-COCO validation images.
  • MME: Evaluated on both the hallucination subset (Existence, Count, Position, Color) and the MME-Fullset (14 subtasks spanning perception and reasoning).
  • LLaVA-Bench: 24 wild, varied images with 60 open-ended queries for qualitative evaluation.

Key Insights and Ideas

  • Transformed images degrade accuracy alone, but rescue it together: Feeding an augmented image alone to an LVLM degrades performance due to visual artifacts. However, combining its predicted logits with those of the original image suppresses false-positive tokens, smoothing over brittle visual representations.
  • Visual ambiguity vs. Language bias: Contrastive decoding methods operate on the premise that hallucinations are primarily caused by over-reliance on language priors (hence subtracting logits from distorted or blank images). RITUAL presents an alternative view: hallucinations often arise from vulnerabilities and ambiguities in the visual features themselves. Showing the model diverse visual angles serves as a multi-perspective sanity check.
  • Synergistic effects: Because RITUAL targets visual representation robustness while contrastive decoding (e.g., VCD) targets language bias, the two methods are complementary; combining them yields even higher accuracy on benchmarks like POPE.

Key Results

  • POPE Benchmark: On MS-COCO (Random setting), RITUAL improves LLaVA-1.5 accuracy from 84.13% (base) to 88.87%, outperforming VCD (85.37%), M3ID (86.00%), and DoLa (85.97%). Combining RITUAL with VCD pushes accuracy to 89.07%.
  • CHAIR Captioning: On LLaVA-1.5, RITUAL reduces per-sentence hallucination ($CHAIR_S$) from 26.2 to 20.6, and per-instance hallucination ($CHAIR_I$) from 9.3 to 6.9. Combining RITUAL with M3ID further drops them to 18.0 and 5.7, respectively.
  • Text Quality & Latency: Evaluated via GPT-4-Turbo, RITUAL preserves generation fluency (9.398) and grammar (9.844). Generation latency is ~43 ms/token—virtually identical to VCD (43.3 ms) and roughly $7\times$ faster than beam-search-based approaches like OPERA (308.5 ms).
  • Generalization: Similar gains are demonstrated across multiple LVLM architectures, including InstructBLIP and mPLUG-owl2, as well as 13B parameter variants.

Limitations and Future Work

  • Double Inference Latency: Because the method computes forward passes for both original and transformed images at each token step, inference compute is roughly doubled compared to vanilla greedy decoding.
  • Transformation Sensitivity on Spatial/Counting Tasks: Random transformations can contradict the query. For example, random crops can remove items needed for "Count" tasks, and flips directly invert the ground truth for "Position" tasks (reflected in lower scores on MME Count and Position).
  • Transformation Selection: The authors experimented with a prompt-based self-feedback variant (RITUAL+) to pick the best transformation per query, but found it added latency with modest improvements. Developing efficient, query-aware augmentation selection remains an open direction.

Summary updated

BibTeX
@misc{woo2024ritual,
  author = {Sangmin Woo and Jaehyuk Jang and Donguk Kim and Yubin Choi and Changick Kim},
  title = {{RITUAL: Random Image Transformations as a Universal Anti-hallucination Lever in LVLMs}},
  year = {2024},
  eprint = {2405.17821},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.17821},
}
Figure