Evaluation and Analysis of Hallucination in Large Vision-Language Models

Junyang Wang, Yiyang Zhou, Guohai Xu, Pengcheng Shi, Chenlin Zhao, Haiyang Xu, Qinghao Ye, Ming Yan, Ji Zhang, Jihua Zhu, Jitao Sang, Haoyu TangarXiv 2023

Abstract

Large Vision-Language Models (LVLMs) have recently achieved remarkable success. However, LVLMs are still plagued by the hallucination problem, which limits the practicality in many scenarios. Hallucination refers to the information of LVLMs' responses that does not exist in the visual input, which poses potential risks of substantial consequences. There has been limited work studying hallucination evaluation in LVLMs. In this paper, we propose Hallucination Evaluation based on Large Language Models (HaELM), an LLM-based hallucination evaluation framework. HaELM achieves an approximate 95% performance comparable to ChatGPT and has additional advantages including low cost, reproducibility, privacy preservation and local deployment. Leveraging the HaELM, we evaluate the hallucination in current LVLMs. Furthermore, we analyze the factors contributing to hallucination in LVLMs and offer helpful suggestions to mitigate the hallucination problem. Our training data and human annotation hallucination data will be made public soon.

TL;DR

Large Vision-Language Models (LVLMs) frequently "hallucinate" objects and details that aren't actually in an image. Existing benchmarks like POPE fail to capture this accurately due to a strong "yes-bias" in models. This paper introduces HaELM, a cost-effective, locally deployable LLM-based evaluator that identifies hallucinations in free-form descriptions with 95% of the accuracy of ChatGPT.

The Hallucination Challenge in LVLMs

While LVLMs (like LLaVA or MiniGPT-4) have shown incredible zero-shot capabilities, they are notorious for generating "hallucinations"—textual descriptions that do not align with visual input. For example, a model might describe a shower in a bathroom where none exists, or a person carrying a surfboard on a beach when they are simply running.

Examples of hallucinations in LVLM responses where models describe non-existent objects or actions.

The authors identify a major flaw in current object-based evaluation benchmarks like POPE. These benchmarks ask binary questions (e.g., "Is there a chair in this image?"). The researchers discovered that LVLMs have a massive "affirmation bias," answering "yes" to over 80% of queries about non-existent objects. However, when asked to simply "Describe the image," the same models only hallucinate those objects about 10% of the time. This discrepancy means current benchmarks don't reflect real-world usage. To fix this, we need a way to evaluate complex, free-form descriptions without the high cost of human annotators or ChatGPT.

HaELM: A Scalable Evaluation Framework

The authors propose HaELM (Hallucination Evaluation based on Large Language Models). Instead of a binary Q&A, HaELM acts as a judge that compares an LVLM’s generated description against ground-truth reference captions.

The HaELM framework, comparing human-labeled realistic hallucinations with ChatGPT-simulated ones for training.
  1. Data Collection: Since real hallucination data is scarce, the team used ChatGPT to generate a synthetic dataset. By providing ChatGPT with accurate reference captions and asking it to create descriptions with "obvious incorrect associations," they built a corpus of 20,000 samples.
  2. Training: They fine-tuned a LLaMA-7B model using LoRA (Low-Rank Adaptation) on this synthetic dataset, allowing the model to learn the specific patterns of LVLM hallucinations.
  3. Inference: During evaluation, HaELM takes the reference captions and the LVLM's response as input and outputs a simple "yes" or "no" regarding the presence of hallucinations.

Key Insights and Results

  • Performance & Efficiency: HaELM achieves an average F1 score of roughly 88-99% across different LVLMs, reaching about 95% of ChatGPT’s evaluation performance. It reduced evaluation time from 1.6 hours to 0.2 hours and cost from $6.60 to effectively zero after initial training.
  • Linguistic Over Visual Grounding: By visualizing attention, the authors found that when a model hallucinates, its attention shifts away from the image and focuses almost entirely on the previously generated text. It "hallucinates" based on linguistic probability rather than visual evidence.
  • The Length Penalty: There is a direct correlation between response length and hallucination. As the model generates more text, it "drifts" further from the visual constraints of the image.
  • Model Comparison: Among the tested models, LLaVA exhibited the lowest hallucination rate (~19.4%), while MiniGPT-4 was the most prone to "seeing things" (~55%).

Limitations and Future Work

HaELM currently judges hallucinations by comparing text (the response) to more text (the reference captions) without "seeing" the image itself. If reference captions are incomplete, valid observations might be incorrectly flagged. The authors suggest that future work should focus on "penalizing attention" that deviates from the image during the generation process to mitigate the root cause of these errors.

Summary updated

BibTeX
@misc{wang2023evaluation,
  author = {Junyang Wang and Yiyang Zhou and Guohai Xu and Pengcheng Shi and Chenlin Zhao and Haiyang Xu and Qinghao Ye and Ming Yan and Ji Zhang and Jihua Zhu and Jitao Sang and Haoyu Tang},
  title = {{Evaluation and Analysis of Hallucination in Large Vision-Language Models}},
  year = {2023},
  eprint = {2308.15126},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.15126},
}
Figure