Logical Closed Loop: Uncovering Object Hallucinations in Large Vision-Language Models

Junfei Wu, Qiang Liu, Ding Wang, Jinghao Zhang, Shu Wu, Liang Wang, Tieniu Tan

TL;DR

Large Vision-Language Models (LVLMs) frequently hallucinate objects that aren't actually present in an image, limiting their reliability in real-world applications. This paper introduces LogicCheckGPT, a training-free, plug-and-play framework that detects and mitigates these hallucinations by probing the model's own logical consistency. By cross-examining the model on the relationships between objects and their attributes, LogicCheckGPT uncovers fabricated objects without requiring expensive retraining or external detection models.

What Problem Does This Paper Address?

While Large Vision-Language Models (LVLMs) excel at multimodal reasoning, they suffer from a persistent Achilles' heel: object hallucination. When asked to describe an image, these models routinely invent non-existent items (e.g., claiming there is an apple on a kitchen counter when there is only a bowl of bananas).

Existing fixes generally fall into three buckets: instruction tuning (which requires massive compute to retrain models), external detection models (which depend heavily on the accuracy of a secondary vision model), or decoding-stage interventions (which require access to the model's internal token probabilities). The authors address a major gap: how to leverage the intrinsic reasoning capabilities of the LVLM itself to identify and correct its own hallucinations through simple natural language interaction.

Methods

LogicCheckGPT operates on a clever intuition: LVLMs are logically consistent when discussing real objects, but become highly inconsistent when cross-examined about hallucinated ones.

An example of logical inconsistency in hallucinated objects vs. existent objects.

The framework uses a standalone Large Language Model (like GPT-3.5) as a controller to guide the target LVLM through a 5-step "Logical Closed Loop" pipeline:

  1. Object Extraction: The LLM extracts all candidate objects mentioned in the LVLM's initial response.
  2. Object-to-Attribute Inquiring: The framework asks the LVLM to describe each extracted object in detail (e.g., "Could you please describe the car in the image?").
  3. Attribute-to-Object Inquiring: The LLM extracts specific attributes from that description (e.g., "the object is red") and turns them into a reverse question: "Could you tell me all the objects that are red in the image?"
  4. Logical Closed Loop Checking: The LLM checks if the target object reappears in the answer to the attribute question. If it does, the loop closes successfully (Score = 1.0); if not, it fails (Score = 0.0).
  5. Hallucination Detection and Mitigation: By averaging these scores, the system calculates a "Closed Loop Rate." If the rate falls below a predefined threshold ($\lambda$), the object is flagged as a hallucination, and the LLM rewrites the original response to remove the fabricated content.
The 5-step pipeline of the LogicCheckGPT framework.

Datasets

The authors evaluated LogicCheckGPT across three distinct evaluation setups:

  • POPE (Popular Object Presence Evaluation): A standard benchmark that queries models about object existence using three negative sampling strategies: random (absent objects chosen randomly), popular (frequently occurring absent objects), and adversarial (absent objects that commonly co-occur with present ones).
  • MME (Multimodal Evaluation Benchmark): Specifically, the existence subset, which uses binary Yes/No questions to evaluate object-level hallucinations.
  • COCO 2014 Validation Set: A subset of 50 images used for open-ended, detailed image description generation, evaluated via a GPT-4v assisted scoring metric for accuracy and relevancy.

Key Insights and Ideas

  • The Asymmetry of Hallucination Logic: If an LVLM hallucinates an object, it will happily invent attributes for it when prompted. However, because those attributes lack a grounding foundation in the actual pixels, the model fails to map those same attributes back to the hallucinated object when asked a broader, open-ended question.
  • Prompt Design Matters: The authors discovered that asking "What is red?" often causes the model to only list the most obvious red objects, missing subtler ones. Switching the prompt format to "Could you tell me all the objects that are red..." forced the LVLM to be comprehensive, significantly improving detection accuracy.
  • Zero-Shot & Model-Agnostic: Because the method relies entirely on text-based API interactions, it acts as a universal wrapper. It can be applied to any black-box model (like GPT-4V) or open-source model without touching weights or internal states.

Key Results

LogicCheckGPT achieved substantial performance gains across four prominent LVLMs (mPLUG-Owl, MiniGPT-4, LLaVA-1.5, and QWEN-VL-Chat):

  • POPE Benchmark: On the challenging adversarial setting, mPLUG-Owl’s accuracy skyrocketed from 50.67% (vanilla) to 82.00% when equipped with LogicCheckGPT. MiniGPT-4 saw an accuracy boost from 72.67% to 82.67%.
  • MME Existence Subset: mPLUG-Owl achieved a massive 31.67% increase in standard accuracy and a 58.33% increase in image-level accuracy (Acc+), proving that the model inherently holds the correct visual information but needs a logical framework to unearth it.
  • Baseline Comparison: LogicCheckGPT consistently outperformed state-of-the-art mitigation techniques like LURE and SelfCheckGPT, particularly on highly capable base models like LLaVA-1.5 and QWEN-VL-Chat.

Limitations and Future Work

Despite its strong performance, the authors note two primary limitations:

  1. API Cost and Latency: Operating the framework requires multiple rounds of querying both the base LVLM and the orchestrating LLM (GPT-3.5). This multi-turn interaction increases inference time and API transaction costs.
  2. Narrow Hallucination Scope: LogicCheckGPT is strictly designed to combat object hallucinations. It does not currently address attribute hallucinations (e.g., misidentifying the color of an existing car) or knowledge hallucinations (e.g., misidentifying the model of a car).

Future work will focus on extending the logical closed-loop paradigm to cover these broader, non-object hallucination categories.

Summary updated

BibTeX
@inproceedings{wu2024logical,
  author = {Junfei Wu and Qiang Liu and Ding Wang and Jinghao Zhang and Shu Wu and Liang Wang and Tieniu Tan},
  title = {{Logical Closed Loop: Uncovering Object Hallucinations in Large Vision-Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.414},
}
Figure