Exposing Text-Image Inconsistency Using Diffusion Models

Mingzhen Huang, Shan Jia, Zhou Zhou, Yan Ju, Jialing Cai, Siwei Lyu

TL;DR: Researchers have developed D-TIIL (Diffusion-based Text-Image Inconsistency Localization), a framework that uses text-to-image diffusion models to not only detect if a news headline and image are mismatched but to pinpoint exactly which words and image regions are inconsistent. By treating diffusion models as "omniscient agents" with deep world knowledge, the system provides explainable evidence for identifying online misinformation.

The Challenge of Text-Image Inconsistency

Misinformation often isn't a sophisticated "deepfake" image; frequently, it is a real, unedited image paired with a misleading caption—a tactic known as text-image inconsistency. For example, a photo of a standard traffic accident might be paired with a caption about a "terrorist attack" to incite panic.

Current AI solutions usually treat this as a binary classification problem: "Is this pair consistent? Yes or No." These "black-box" models offer no justification for their decisions. While humans are great at spotting these lies by using background knowledge (e.g., recognizing a vehicle as a school bus rather than a military transport), human fact-checking is too slow to keep up with the scale of the internet. The authors aim to bridge this gap by creating an automated system that provides visual and textual evidence of inconsistency.

Comparison of previous binary classification methods versus the proposed D-TIIL framework, which localizes inconsistencies in both text and image.

The D-TIIL Framework

The authors introduce D-TIIL. Instead of merely comparing pixels to words, they leverage the latent knowledge embedded inside pre-trained diffusion models (like Stable Diffusion).

The process follows four main steps:

  1. Image-regulated Text Alignment: The system takes the original text and adjusts its mathematical representation (embedding) until it better matches the actual content of the input image. This helps filter out irrelevant details that might be in the text but aren't visible in the photo.
  2. Text-guided Image Editing: The model generates a "reference" version of the image based strictly on the original text.
  3. Image-regulated Text Denoising: It then refines the text embedding again, this time aligning it with the edited image to capture implicit background knowledge.
  4. Localization and Detection: By comparing these aligned embeddings and image versions, the model generates a pixel-level mask (showing the inconsistent image area) and highlights the specific words in the text that don't belong. It also produces a final consistency score.

The TIIL Dataset

The researchers found that existing datasets (like NewsCLIPpings) were too simple, often created by just swapping random captions. To provide a more robust benchmark, they created the TIIL Dataset:

  • Size: 14,000 text-image pairs (7,000 consistent, 7,000 inconsistent).
  • Quality: Unlike previous datasets, TIIL includes precise pixel-level and word-level annotations.
  • Creation: They used DALL-E 2 to create subtle, realistic inconsistencies (e.g., changing a "tour bus" to a "school bus" in an image) and had a team of professional annotators manually curate every pair to ensure they reflect real-world logic.

Core Innovations

  • Diffusion Models as Knowledge Bases: The most clever insight is viewing diffusion models not just as "art generators," but as repositories of world knowledge. Because they were trained on billions of images, they "know" what specific objects or famous figures should look like, allowing them to act as an impartial judge.
  • Filtering the "Noise" of Modalities: Images often contain details (like the color of a background car) that aren't in the text, and text contains fluff (like the day of the week) not in the image. D-TIIL’s iterative alignment process successfully ignores this unrelated information to focus only on semantic mismatches.
  • Explainability is Key: By highlighting specific inconsistent words and masking the corresponding object in the photo, the model moves from "trust me, it's fake" to "here is the evidence."

Performance and Results

D-TIIL significantly outperformed existing state-of-the-art methods in both finding where the error is and if an error exists:

  • Localization (mIoU): D-TIIL achieved 47.12%, nearly doubling the performance of the next best baseline, GAE (27.35%).
  • Detection Accuracy: On the TIIL dataset, D-TIIL reached 79.46% accuracy, outperforming specialized detectors like CCN (74.10%) and CLIP-based models.
  • Robustness: The model proved particularly effective at identifying "manipulated" pairs—cases where the image or text was subtly altered—which often fool standard classification models.

Limitations and Future Directions

The authors highlight a few failure cases where the model struggles:

  • Literal Interpretations: Diffusion models can be too literal. In one example, the model flagged a portrait in an "office" as inconsistent because the background didn't look like a stereotypical office with desks and computers.
  • Complex Scenarios: The model sometimes fails when the inconsistency is in the "scenario" rather than a specific object (e.g., a "stuffed animal" that looks too much like a real animal).

Future work suggests that using domain-specific diffusion models (e.g., models trained specifically on fashion or politics) could improve accuracy for niche types of misinformation. The authors also plan to expand the dataset to include more recent, complex news events.

Summary updated

BibTeX
@inproceedings{huang2024exposing,
  author = {Mingzhen Huang and Shan Jia and Zhou Zhou and Yan Ju and Jialing Cai and Siwei Lyu},
  title = {{Exposing Text-Image Inconsistency Using Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=Ny150AblPu},
}
Figure