Evaluating Hallucination in Large Vision-Language Models based on Context-Aware Object Similarities

Shounak Datta, Dhanasekar Sundararaman · DOI

Introduction

Large Vision-Language Models (LVLMs) such as LLaVA and InstructBLIP have demonstrated impressive capabilities in image captioning and visual reasoning. However, they remain susceptible to "object hallucination"—the generation of descriptions for objects that do not exist in the visual input. Traditional evaluation metrics like CHAIR or POPE often suffer from two primary limitations: they are restricted to a fixed set of "in-domain" objects (e.g., MSCOCO classes) and they treat hallucinations as binary occurrences without investigating their semantic origins.

To address these gaps, this paper introduces CAOS (Context-Aware Object Similarities). CAOS is a novel framework designed to detect hallucinations beyond standard datasets and employ semantic embeddings to understand why a model hallucinates—whether driven by image content, preceding text, or inherent training biases.

The CAOS Framework

The CAOS framework moves beyond simple keyword matching by integrating advanced language models and ensemble verification.

Overview of the CAOS framework pipeline, illustrating the transition from LVLM output to hallucination detection and metric calculation.

The methodology consists of several key stages:

  • LLM-Augmented Detection: A Large Language Model (e.g., LLaMA-2) identifies all objects mentioned in a caption, including out-of-domain entities.
  • Oracle Ensemble: Since out-of-domain objects lack ground-truth labels, an ensemble of multiple LVLMs serves as an "Oracle." If the ensemble agrees an object is absent, it is flagged as a hallucination.
  • Semantic Similarity Metrics: The framework calculates cosine similarities between hallucinated objects and three context sources:
  • $CAOS_T$ (Target): Similarity to actual objects present in the image.
  • $CAOS_X$ (Context): Similarity to objects previously mentioned in the generated caption.
  • $CAOS_K$ (Knowledge): Similarity to the most frequent objects found in the training dataset.
  • Sequential Analysis: By tracking the order of object generation, CAOS accounts for the auto-regressive nature of LVLMs, where previous outputs influence subsequent hallucinations.

Experimental Setup

The researchers evaluated the framework using a subset of 2,000 images from the MSCOCO 2014 validation set. This dataset provides a robust "in-domain" baseline to calibrate the CAOS metrics against established ground truths. Five prominent LVLMs were benchmarked: InstructBLIP, LLaVA, mPLUG-Owl, MiniGPT-4, and Multimodal-GPT.

Benchmarking Results and Insights

The evaluation revealed that hallucinations are rarely random; they are typically semantically logical. Models often hallucinate objects related to the scene (e.g., a "fork" near a "plate") or objects that appear frequently in their training data (the "Rich Get Richer" bias).

Radar chart comparing the performance of five LVLMs across precision, recall, POPE-F1, and various CAOS semantic similarity metrics.

Key findings from the benchmarking include:

  • Precision vs. Recall Trade-off: InstructBLIP demonstrated the highest precision (0.98), indicating high reliability but lower recall (0.62). Conversely, LLaVA achieved a better balance with a recall of 0.85 and precision of 0.85, though it produced more hallucinations due to its descriptive nature.
  • Semantic Nuance: MiniGPT-4 showed a higher tendency for "contextually plausible" hallucinations, with higher $CAOS_T$ and $CAOS_X$ scores compared to other models.
  • Self-Triggered Errors: Approximately 16-20% of hallucinations are triggered by co-occurrence patterns with objects already mentioned in the generated text.
  • Metric Stability: CAOS scores remained consistent across 14 different prompt styles, highlighting the robustness of the metric.

Discussion and Future Work

While CAOS provides a more nuanced understanding of object hallucination, it currently relies on the accuracy of the LVLM "Oracle" ensemble. Future improvements could involve expanding the scope to include attribute hallucinations (e.g., color, size) and spatial relationship errors. Additionally, testing the framework on specialized domains like medical or satellite imagery would further validate its generalizability. By identifying the semantic roots of errors, CAOS paves the way for developing more grounded and reliable vision-language systems.

Summary updated

BibTeX
@inproceedings{datta2025evaluating,
  author = {Shounak Datta and Dhanasekar Sundararaman},
  title = {{Evaluating Hallucination in Large Vision-Language Models based on Context-Aware Object Similarities}},
  booktitle = {PDLM @ AAAI},
  year = {2025},
  url = {https://openreview.net/forum?id=sbmqh3IQ5j},
}
Figure