arXiv:2608.28206cs.CVAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.28206

NumBench: Diagnosing Counting Failures in Text-to-Image Models

Sandeep Wadhwa, Mayank Vatsa, Richa Singh, Parrva Chirag Shah, Prakhar Galriya

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Text-to-image (T2I) models often generate the wrong number of objects, yet existing benchmarks are too small or weakly controlled to explain why. We introduce NumBench, a benchmark of 640,000 prompts spanning 1,600 categories and counts from 1 to 100. Its factorial design varies object composition, spatial guidance, and appearance conditions while balancing counts and category exposure. We also develop a process model in which requested instances compete for a finite set of resolvable image regions. The model predicts a near-quadratic collision deficit at low occupancy and shows how coordinated placement reduces it. For scalable evaluation, we propose the Confidence-Weighted Numeric Precision Score (cw-NPS), which aggregates three calibrated detectors and discounts uncertain proposals. Across five commercial systems, two open models, and two specialized counting methods, performance declines sharply with requested count; all evaluated methods are weak above 50 objects. Count range has the largest measured effect, followed by layout and composition. Grid guidance is strongest among guided layouts, consistent with the coordination prediction, although the analysis does not establish collision as the sole cause. A 14,400-image human study supports automated evaluation through count 50, while results on 243 natural-language prompts show transfer beyond NumBench templates.

Introduction

Counting remains a persistent failure mode of modern T2I systems. A prompt such as “generate 51 raccoons” often yields far fewer objects; prompts requesting two categories additionally produce category mixing, merged instances, and default scene sizes (Figure 1). These failures matter wherever generated images must be numerically correct, including educational content, synthetic training data, accessibility tools, and digital commerce. Even when deployment counts are smaller, extending the range to 100 exposes where models cease to preserve distinct instance evidence and separates low-count success from scalable numeric control.

Existing evaluation does not isolate the causes. General compositional benchmarks include only small counting subsets (Saharia et al. 2022; Ghosh, Hajishirzi, and Schmidt 2023; Huang et al. 2023; Bakr et al. 2023; Hu et al. 2023); counting-specific sets remain limited in count range, category diversity, or controlled spatial variation (Kajić et al. 2024; Binyamin et al. 2025; Sun et al. 2026; Zafar et al. 2026).

Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.

Figure

Figure 1: Counting failures across five commercial T2I systems. High-count prompts produce missing or merged objects, category confusion, and repeated default patterns. System labels identify the evaluated interfaces; exact collection dates are recorded in the release metadata.

Moreover, detector-based metrics can confuse generator errors with detector misses, especially in crowded scenes.

We address this gap with three contributions. First, NumBench provides 640,000 prompts over 1,600 categories and counts 1–100. A controlled design crosses single- versus double-category composition, free-form versus guided layout, and clean versus modified appearance instructions. Second, we introduce a process model for spatial collision. It predicts how limited spatial capacity creates rapidly growing undercount and how coordinated layouts attenuate this loss. Third, we propose cw-NPS, a calibrated detector-ensemble metric, and evaluate nine systems at substantially larger scale than prior counting studies.

The evaluation highlights a consistent hierarchy. Requested count is the dominant source of difficulty, followed by layout, composition, and appearance conditions. Specialized methods improve low-count results but remain weak at high counts. Among guided layouts, grids perform best, consistent with the coordination prediction of the process model. Human agreement and detector–human correlation weaken above count 50, so we treat that region as a stress test rather than a fully validated count estimate, and we release prompts, detector outputs, and annotations to support evaluation under the same protocol.

BenchmarkPromptsMax CountCategoriesCountLayoutAppear.Comp.Joint
DrawBench†^{\dagger} (Saharia et al. 2022)~200~10< 20×××××
PaintSkills†^{\dagger} (Cho, Zala, and Bansal 2023)7,330~5~80×××××
GenEval†^{\dagger} (Ghosh, Hajishirzi, and Schmidt 2023)553480✓××××
T2I-CompBench†^{\dagger} (Huang et al. 2023)6,000~5~200×××××
HRS-Bench†^{\dagger} (Bakr et al. 2023)45,000~10700+×××××
GeckoNum (Kajić et al. 2024)1,386~10~30✓××✓×
Zafar et al. (Zafar et al. 2026)3,67425147✓××××
CoCoCount (Binyamin et al. 2025)~200~10~80✓××✓×
QUANT-Bench (Sun et al. 2026)4752519✓××××
NumBench640,0001001,600✓✓✓✓✓

Table 1: Comparison with counting benchmarks. †\dagger Counting is one component of a broader suite. Joint indicates that count, layout, appearance, and composition are controlled within one benchmark design.