Abstract
Despite advancements in text-to-image models, generating images that precisely align with textual descriptions remains challenging due to misalignment in training data. In this paper, we analyze the critical role of caption precision and recall in text-to-image model training. Our analysis of human-annotated captions shows that both precision and recall are important for text-image alignment, but precision has a more significant impact. Leveraging these insights, we utilize Large Vision Language Models to generate synthetic captions for training. Models trained with these synthetic captions show similar behavior to those trained on human-annotated captions, underscores the potential for synthetic data in text-to-image training.
Introduction
Modern text-to-image (T2I) models, such as Stable Diffusion and DALL-E 3, have demonstrated remarkable capabilities in generating high-quality imagery. However, they frequently suffer from "misalignment," where the generated image fails to reflect specific attributes or spatial relationships described in the prompt. This issue is often rooted in the training data; web-scraped image-text pairs are frequently noisy or incomplete. To address this, researchers have turned to Large Vision Language Models (LVLMs) to generate more detailed synthetic captions. This shift introduces a critical trade-off: should synthetic captions prioritize precision (truthfulness to the image) or recall (comprehensiveness of detail)? This paper provides a systematic analysis of these two factors.
Methodology
The authors conducted a two-pronged study to isolate the effects of precision and recall on model performance.
Controlled Human-Annotated Study
Using the Dense Caption Dataset (DAC)—which contains ~8,000 images and ~100,000 human-annotated sub-region descriptions—the researchers constructed training sets with controlled variations:
- Precision: LLAMA2-70B was used to generate "negative captions" (hallucinated or incorrect descriptions). These were mixed with positive captions at ratios of 0%, 25%, 50%, 75%, and 100%.
- Recall: The amount of detail was varied by including different numbers of regional "submasks" (0 to 3) in the final caption.
Synthetic Caption Analysis
To validate these findings in a practical setting, T2I models were trained on 118k MSCOCO images using synthetic captions from three LVLMs: LLaVA, BLIP2, and uform. These models naturally represent different points on the precision-recall spectrum. All models were evaluated using T2I-Compbench, focusing on compositional skills such as attribute binding (color, shape, texture) and spatial relationships.
Experimental Results
The results consistently highlight that precision is the primary driver of T2I model performance.
As illustrated in the surface plot above, increasing the percentage of positive (precise) sentences leads to a much steeper improvement in the average result compared to increasing the number of submasks (recall). For instance, a model trained with 100% precision and 0 submasks (brief but accurate) achieved an average result of 0.3196, significantly outperforming a model with 0% precision and 3 submasks (detailed but inaccurate) which scored 0.3000.
Table 1 provides a granular breakdown of these results. Notably, the benefit of adding more detail (increasing recall) diminishes as precision increases. At 100% precision, moving from 0 to 3 submasks only yields a marginal 2.8% improvement in the average result.
Discussion
The Primacy of Precision
The core finding is that precision is king. A short, accurate caption provides a clear signal for the model to learn the association between words and visual concepts. In contrast, "hallucinations"—details in the caption not present in the image—actively penalize the model by introducing noise that confuses the learning process. This hallucination penalty is particularly evident in "Attribute Binding" tasks, where the model must correctly associate colors and textures with the right objects.
LVLM Performance Trade-offs
In the synthetic data experiments, the choice of LVLM significantly impacted the resulting T2I model. BLIP2 exhibited high precision but low recall, while uform offered high recall at the cost of precision. LLaVA struck the most effective balance, resulting in the highest T2I-Compbench scores (0.3838 on SD2.1).
Conclusion
This study demonstrates that while both precision and recall contribute to the quality of T2I models, precision is the more critical factor. For researchers and practitioners using synthetic re-captioning, the focus should remain on ensuring the accuracy of descriptions over merely increasing their length. Future work will involve scaling these insights to larger datasets and exploring more advanced evaluation models to further refine the precision-recall balance in generative AI training.
Summary updated