Text-to-Image Diffusion Models Cannot Count, and Prompt Refinement Cannot Help
Xuyang Guo, Jiayan Huo, Yingyu Liang, Zhenmei Shi, Zhao Song, Jiahao Zhang, Zhen Zhuang
TL;DR
This work introduces T2ICountBench, a rigorous benchmark to evaluate the counting ability of text-to-image diffusion models by isolating numerical accuracy across a wide range of object counts ($1$ to $15$), object categories, scenes, and styles, with full human evaluation. Across 15 state-of-the-art models (open-source and private), counting accuracy remains poor and degrades as complexity increases, with best averages around $43\%$ and many models near or below $30\%$. An extensive ablation shows difficulty grows with object count and scene complexity, while style has a comparatively smaller effect. A prompt-refinement study shows that simple task-decomposition strategies largely fail to improve counting, suggesting intrinsic limitations in numerical understanding and alignment in current diffusion models and pointing to future directions in CLIP counting improvements, automatic prompt refinement, and human-preference alignment.
Abstract
Generative modeling is widely regarded as one of the most essential problems in today's AI community, with text-to-image generation having gained unprecedented real-world impacts. Among various approaches, diffusion models have achieved remarkable success and have become the de facto solution for text-to-image generation. However, despite their impressive performance, these models exhibit fundamental limitations in adhering to numerical constraints in user instructions, frequently generating images with an incorrect number of objects. While several prior works have mentioned this issue, a comprehensive and rigorous evaluation of this limitation remains lacking. To address this gap, we introduce T2ICountBench, a novel benchmark designed to rigorously evaluate the counting ability of state-of-the-art text-to-image diffusion models. Our benchmark encompasses a diverse set of generative models, including both open-source and private systems. It explicitly isolates counting performance from other capabilities, provides structured difficulty levels, and incorporates human evaluations to ensure high reliability. Extensive evaluations with T2ICountBench reveal that all state-of-the-art diffusion models fail to generate the correct number of objects, with accuracy dropping significantly as the number of objects increases. Additionally, an exploratory study on prompt refinement demonstrates that such simple interventions generally do not improve counting accuracy. Our findings highlight the inherent challenges in numerical understanding within diffusion models and point to promising directions for future improvements.
