Skip to main content
QUICK REVIEW

[Paper Review] Addressing Image Hallucination in Text-to-Image Generation through Factual Image Retrieval

Youngsun Lim, Hyunjung Shim|arXiv (Cornell University)|Jul 15, 2024
Digital Media Forensic DetectionComputer Science3 citations
TL;DR

This paper proposes a tuning-free method to reduce image hallucination in text-to-image generation by retrieving factual images from external sources and using them to correct inaccuracies via InstructPix2Pix or IP-Adapter. The approach corrects factual inconsistencies—such as incorrect colors, outdated appearances, or false snowfall—by generating instructions or prompts from LLMs and applying them to edit initial generations, significantly improving factual accuracy without retraining.

ABSTRACT

Text-to-image generation has shown remarkable progress with the emergence of diffusion models. However, these models often generate factually inconsistent images, failing to accurately reflect the factual information and common sense conveyed by the input text prompts. We refer to this issue as Image hallucination. Drawing from studies on hallucinations in language models, we classify this problem into three types and propose a methodology that uses factual images retrieved from external sources to generate realistic images. Depending on the nature of the hallucination, we employ off-the-shelf image editing tools, either InstructPix2Pix or IP-Adapter, to leverage factual information from the retrieved image. This approach enables the generation of images that accurately reflect the facts and common sense.

Motivation & Objective

  • Address the critical problem of factual inconsistency in text-to-image diffusion models, where generated images misrepresent real-world facts despite accurate prompts.
  • Define and categorize image hallucination into three types: factual inconsistency due to co-occurrence bias, outdated knowledge, and factual fabrication.
  • Develop a retrieval-augmented, zero-shot editing framework that enhances factual accuracy without fine-tuning the base diffusion model.
  • Enable interactive, user-guided correction of hallucinated images using retrieved factual images as reference.
  • Improve trustworthiness and reliability of text-to-image generation for high-stakes applications such as education and journalism.

Proposed method

  • Use a pre-trained text-to-image model (DALL-E 3) to generate an initial image from the input text prompt.
  • Retrieve N relevant factual images from external sources using the input prompt as a search query.
  • For localized hallucinations (e.g., color or object property errors), use GPT-4 to generate editing instructions by comparing the initial image and retrieved image.
  • Apply the generated instructions to the initial image via InstructPix2Pix, a text-to-image editing model fine-tuned on instruction-image pairs.
  • For complex, wide-area hallucinations (e.g., incorrect facial features or full-body appearances), use GPT-4 to generate a descriptive text prompt describing the retrieved image.
  • Combine the generated prompt and the retrieved image as dual-condition inputs to IP-Adapter, which performs image-to-image editing on the initial generation to correct factual errors.

Experimental results

Research questions

  • RQ1Can factual image retrieval combined with LLM-generated instructions effectively correct localized image hallucinations such as incorrect colors or object properties?
  • RQ2Can image-guided prompting via IP-Adapter outperform text-only prompting in correcting complex, multi-component hallucinations like incorrect human appearances?
  • RQ3To what extent can a tuning-free, retrieval-augmented method reduce factual hallucinations in text-to-image generation without retraining the base model?
  • RQ4How does user interaction in selecting the most relevant factual image from retrieval results affect the accuracy and trustworthiness of the final output?
  • RQ5Can this framework generalize across diverse hallucination types, including co-occurrence bias, outdated knowledge, and counterfactual fabrications?

Key findings

  • The method successfully corrected the color of the Statue of Liberty in 1890 from turquoise to copper brown, reflecting its actual oxidized state at the time.
  • The model accurately depicted Mount Fuji in summer with minimal snow, correcting the hallucination of persistent snow cover.
  • For human subjects like Angela Merkel (2015) and Marcelo Rebelo de Sousa (2019), the method produced factually accurate representations by using retrieved images as reference.
  • The approach eliminated false snowfall in San Francisco winter scenes by generating instructions to remove snow, correcting a factual fabrication.
  • The use of IP-Adapter with image and text prompts enabled more precise editing of complex, multi-faceted hallucinations than text-only instruction methods.
  • The framework achieved factual accuracy improvements without any fine-tuning of the base diffusion model, demonstrating strong zero-shot generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.