Abstract
While modern text-to-image (T2I) models generate stunning visuals, they possess only rudimentary numerical skills. This paper introduces GECKONUM, a massive benchmark revealing that even top-tier models like DALL-E 3 and Midjourney v6 struggle to count beyond four, fail to grasp the concept of "zero," and are largely baffled by fractions and relative quantities.
The Compositionality Gap
If you ask a state-of-the-art AI to generate "7 pistachios," you might get five, or perhaps a dozen. Despite their ability to render complex artistic styles, T2I models frequently fail at basic "compositionality"—the ability to combine a number with an object correctly. Existing benchmarks often focus on general aesthetics or simple object presence, failing to distinguish between different types of numerical reasoning (e.g., "three cats" vs. "more cats than dogs"). GECKONUM addresses this by providing a comprehensive, controlled, and human-verified framework for testing how AI handles numbers.
Methodology: Human-Verified Evaluation
The researchers developed GECKONUM, a benchmark consisting of 1,386 text prompts designed to probe three distinct levels of numerical reasoning. To evaluate these, the team tested 12 models across five families: DALL-E 3, Midjourney, Imagen, Muse, and Stable Diffusion.
Crucially, the study did not rely on automated metrics alone. The team collected over 479,000 human annotations to verify if the generated images actually matched the numerical requirements of the prompts. This human-in-the-loop approach provides a "gold standard" that automated metrics like CLIP often fail to reach.
The Three Pillars of Numerical Reasoning
The GECKONUM benchmark is structured around three core tasks:
- Task 1: Exact Number Generation: Testing if a model can generate exactly $N$ objects (from 1 to 10).
- Task 2: Approximate Number Generation and Zero: Handling linguistic quantifiers like "a few," "many," or the absence of an object ("no").
- Task 3: Conceptual Quantitative Reasoning: Depicting partial quantities, such as "an apple cut into five pieces" or "half an apple."
Key Insights and the "Number Cliff"
The study revealed several critical weaknesses in current T2I architectures:
- The "Number Cliff": Model accuracy falls off sharply as the requested count increases. For DALL-E 3, accuracy drops by 18 percentage points when moving from 1 to 2 objects, and another 23 points when moving from 3 to 4.
- Contextual Interference: Adding a simple attribute makes counting harder. A model might correctly generate "three cats," but fail when asked for "three red cats," suggesting models rely on pattern matching rather than abstract counting.
- Digits vs. Words: Most models are significantly more accurate when numbers are written as words ("three") rather than Arabic numerals ("3").
- The "Zero" Problem: Models struggle to depict the absence of something. When prompted for "a watermelon with no seeds," models consistently generated watermelons with seeds.
- Fractions as the Final Boss: Task 3 was the most difficult. Most models performed near or below random chance when asked to depict specific fractions or "part-whole" relationships.
Comparative Performance
DALL-E 3 emerged as the strongest performer but still only achieved 45.2% accuracy on exact number generation. Midjourney v6 followed closely at 42.5%, while Stable Diffusion (SDXL) lagged significantly behind at 22.8%. Interestingly, when models fail, they exhibit an "overestimation bias," tending to hallucinate more objects than requested rather than fewer.
Conclusion and Future Work
GECKONUM highlights a massive opportunity for generative AI research. Current models lack an abstract "number sense," and bridging the gap between visual rendering and mathematical logic remains a major open challenge. Future work may involve using synthetic data—where the count is known—to fine-tune models specifically for numerical accuracy, moving beyond simple pattern matching toward true quantitative reasoning.
Summary updated