Is Your Text-to-Image Model Robust to Caption Noise?

Weichen Yu, Ziyan Yang, Shanchuan Lin, Qi Zhao, Jianyi Wang, Liangke Gui, Matt Fredrikson, Lu Jiang

TL;DR

While using Vision-Language Models (VLMs) to re-caption training images has drastically improved text-to-image (T2I) generation, it introduces a hidden flaw: VLM hallucinations create noisy training data. This paper quantifies how this caption noise degrades T2I performance and introduces a simple, effective token-reweighting strategy based on VLM confidence scores to mitigate the issue.

What Problem Does This Paper Address?

Modern text-to-image (T2I) models like DALL-E 3 and Stable Diffusion 3 owe much of their prompt-following success to highly detailed, descriptive captions. Because writing these by hand at scale is impossible, the standard industry practice is to use Vision-Language Models (VLMs) to automatically re-caption massive image datasets.

However, VLMs are notorious for "hallucinating"—describing objects, colors, or spatial relationships that don't actually exist in the image.

Figure 1. Hallucinated contents exist in image captions. We pro- pose to use pre-trained vision-language models to provide signals in guiding text-to-image models to focus on more reliable terms.

While the community has heavily studied label noise in classification tasks, the impact of these subtle text hallucinations on generative T2I models has remained largely unexamined. This paper fills that gap by investigating how caption noise affects model outputs and representation quality, and how to train T2I models to ignore these machine-generated errors.

Methods

The authors propose a straightforward training intervention that leverages the VLM's own internal statistics to clean up its mess. The pipeline consists of three core steps:

  1. Measuring Token Confidence: For a given image-caption pair, they use the VLM to compute the confidence score of each token under different conditions. Crucially, they look at the difference in confidence when the VLM predicts a token with the image present versus without it (text-only context).
  2. Tokenizer Mapping: Because the VLM (e.g., LLaVA) and the T2I text encoder (e.g., CLIP) use different tokenization schemes, the authors implement a tokenizer mapping strategy based on decoding string overlaps to align the confidence scores with the T2I model's tokens.
  3. Attention Map Reweighting: During T2I diffusion training, instead of treating all caption tokens equally, they dynamically downweight tokens that have a high probability of being hallucinations within the model's CrossAttention layers. Tokens flagged as noisy (based on a threshold $\epsilon$) are penalized using an inversely proportional weighting coefficient.
Figure 3. An overview of our proposed method to alleviate caption noise using a pre-trained VLM. We use a pre-trained VLM to compute the confidence score of each token in the caption. And then we use confidence score to reweight each token in T2I training, alleviating the effect of possibly hallucinated contents in captions.

Datasets

The authors conducted experiments using two primary data setups:

  • CCSBU Dataset: A training dataset of 400K images combined from Conceptual Captions (CC) and SBU Captions, re-captioned using state-of-the-art open-source models: LLaVA-7B-v1.6 and Share-Captioner.
  • InstructBench: A new evaluation benchmark introduced by the authors to specifically test a T2I model's fine-grained instruction-following capabilities. It contains 200 paired generation-evaluation prompts across four challenging attribute categories: spatial relationships, color accuracy, quantity, and feature fidelity.

Key Insights and Ideas

  • VLMs Tell on Themselves: The authors discovered a distinct distribution shift in the VLM's token confidence scores when generating hallucinated content versus accurate content. The difference between image-conditioned and text-only confidence scores serves as a reliable statistical indicator of a hallucination.
  • Errors Amplify Over Time: A common assumption might be that fine-tuning on massive datasets smooths out minor caption discrepancies. The authors proved the opposite: the predictive discrepancies caused by differing caption qualities actually magnify during the initial stages of fine-tuning and then plateau, underscoring the necessity of addressing noise early.
  • Fidelity Affects Representation: Even minor caption hallucinations don't just hurt the final image output; they fundamentally degrade the quality of the T2I model's internal feature representations, as verified by linear probing tasks.

Key Results

The authors evaluated their method against standard baselines using standard metrics (CLIP-Score, FID) and their new InstructBench.

Quantitative evaluation of caption models
  • Dataset Analysis: Evaluation via GPT-4o revealed that even advanced captioners like LLaVA-7B-v1.6 and Share-Captioner suffer from high hallucination rates (~16.96% and ~19.67%, respectively), independent of caption length.
  • T2I Performance Boost: Applying the proposed attention-reweighting method consistently improved text-image alignment. For models trained on Share-Captioner data, the method raised the average InstructBench accuracy from 41.5% to 43.0% and boosted linear probing accuracy on CIFAR10 ($Acc_l$) from 89.5% to 94.7%.
  • Qualitative Improvements: Visual inspections on InstructBench confirmed that models trained with token reweighting adhered much better to complex prompts involving specific colors, counts, and spatial layouts.
Figure 5. We visualize the generated images and their text prompts across three models on the InstructBench. The top row represents outputs from the original Stable Diffusion 2.1-base model. The middle row is our base model, finetuned on the caption dataset without specific mitigation strategies for caption hallucination. The last row showcases our model trained with the proposed robust training framework. We split the generated images into four dimension: color, spatial, quantity, and feature. We observe that our method better follows the text prompts.

Limitations and Future Work

The authors acknowledge that while their token-reweighting approach is simple and effective, it may not be the absolute most optimal or sophisticated method possible. Furthermore, robust learning within generative diffusion frameworks is still in its infancy compared to discriminative tasks. Future work could explore more advanced robust training algorithms or alternative ways to leverage VLM internal states to completely filter or correct noisy training data.

Summary updated

BibTeX
@inproceedings{yu2026is,
  author = {Weichen Yu and Ziyan Yang and Shanchuan Lin and Qi Zhao and Jianyi Wang and Liangke Gui and Matt Fredrikson and Lu Jiang},
  title = {{Is Your Text-to-Image Model Robust to Caption Noise?}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=E2iNdAaLfj},
}
Figure