mlsanityData to 7 Oct 2026

Make It Count: Text-to-Image Generation with an Accurate Number of Objects

arXiv 2406.10210 ↗First posted 14 Jun 2024cs.CV cs.AI cs.GRcited by 47

On the map: Diffusion models → Image generation, text-to-image and editing

Abstract (arXiv)

Despite the unprecedented success of text-to-image diffusion models, controlling the number of depicted objects using text is surprisingly hard. This is important for various applications from technical documents, to children's books to illustrating cooking recipes. Generating object-correct counts is fundamentally challenging because the generative model needs to keep a sense of separate identity for every instance of the object, even if several objects look identical or overlap, and then carry out a global computation implicitly during generation. It is still unknown if such representations exist. To address count-correct generation, we first identify features within the diffusion model that can carry the object identity information. We then use them to separate and count instances of objects during the denoising process and detect over-generation and under-generation. We fix the latter by training a model that predicts both the shape and location of a missing object, based on the layout of existing ones, and show how it can be used to guide denoising with correct object count. Our approach, CountGen, does not depend on external source to determine object layout, but rather uses the prior from the diffusion model itself, creating prompt-dependent and seed-dependent layouts. Evaluated on two benchmark datasets, we find that CountGen strongly outperforms the count-accuracy of existing baselines.

Key facts. Cited by 47 papers in the map (data through 7 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 29 of its 42 references that are in the map. First posted on arXiv 14 Jun 2024.

Builds on

29 of 42 references.

Closest ancestors · 11

Same direction, newest first

  1. 2024Obtaining Favorable Layouts for Multiple Object Generation1 May
  2. 2024Be Yourself: Bounded Attention for Multi-Subject Text-to-Image Generation25 Mar
  3. 2024InstanceDiffusion: Instance-level Control for Image Generation5 Feb
  4. 2024Mastering Text-to-Image Diffusion: Recaptioning, Planning, and Generating with Multimodal LLMs22 Jan
  5. 2023Reason out Your Layout: Evoking the Layout Master from Large Language Models for Text-to-Image Synthesis28 Nov
  6. 2023LLM Blueprint: Enabling Text-to-Image Generation with Complex and Detailed Prompts16 Oct
  7. 2023Improving Compositional Text-to-image Generation with Large Vision-Language Models10 Oct
  8. 2023Counting Guidance for High Fidelity Text-to-Image Synthesis30 Jun
  9. 2023Linguistic Binding in Diffusion Models: Enhancing Attribute Correspondence through Attention Map Alignment15 Jun
  10. 2023Grounded Text-to-Image Synthesis with Attention Refocusing8 Jun
  11. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan

Other references · 18

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  3. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  4. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
  5. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
  6. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
  7. 2017Generalised Dice overlap as a deep learning loss function for highly unbalanced segmentationscited by 614
  8. 2024YOLOv9: Learning What You Want to Learn Using Programmable Gradient Informationcited by 422
  9. 2023Aligning Text-to-Image Models using Human Feedbackcited by 418
  10. 2023LayoutGPT: Compositional Visual Planning and Generation with Large Language Modelscited by 337
  11. 2023Teaching CLIP to Count to Tencited by 194
  12. 2023Key-Locked Rank One Editing for Text-to-Image Personalizationcited by 194
6 more
  1. 2022ReCo: Region-Controlled Text-to-Image Generationcited by 177
  2. 2024Training-Free Consistent Text-to-Image Generationcited by 123
  3. 2019Association of genomic subtypes of lower-grade gliomas with shape features automatically extracted by a deep learning algorithmcited by 76
  4. 2023DreamSync: Aligning Text-to-Image Generation with Image Understanding Feedbackcited by 57
  5. 2022DALLE-2 is Seeing Double: Flaws in Word-to-Concept Mapping in Text2Image Modelscited by 50
  6. 2015DeepBox: Learning Objectness with Convolutional Networkscited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 24; 2026: 19.

47 papers.

Sort:

By area:

  1. 2025IMAGHarmony: Controllable Image Editing with Consistent Object Quantity and Layoutcited by 28
  2. 2025FlowMo: Variance-Based Flow Guidance for Coherent Motion in Video Generationcited by 21
  3. 2025Your Vision-Language Model Can't Even Count to 20: Exposing the Failures of VLMs in Compositional Countingcited by 17
  4. 2025Psi-Sampler: Initial Particle Sampling for SMC-Based Inference-Time Reward Alignment in Score Modelscited by 15
  5. 2024Enhancing MMDiT-Based Text-to-Image Models for Similar Subject Generationcited by 11
  6. 2025YOLO-Count: Differentiable Object Counting for Text-to-Image Generationcited by 10
  7. 2025OverLayBench: A Benchmark for Layout-to-Image Generation with Dense Overlapscited by 9
  8. 2024Attention Overlap Is Responsible for The Entity Missing Problem in Text-to-image Diffusion Models!cited by 8
  9. 2025Towards Self-Improvement of Diffusion Models via Group Preference Optimizationcited by 7
  10. 2025Lay-Your-Scene: Natural Scene Layout Generation with Diffusion Transformerscited by 6
  11. 2024Detection-Driven Object Count Optimization for Text-to-Image Diffusion Modelscited by 4
  12. 2025Generating Pedagogically Meaningful Visuals for Math Word Problems: A New Benchmark and Analysis of Text-to-Image Modelscited by 4
35 more
  1. 2025Cost-Aware Routing for Efficient Text-To-Image Generationcited by 4
  2. 2025Too Easily Fooled? Prompt Injection Breaks LLMs on Frustratingly Simple Multiple-Choice Questionscited by 4
  3. 2025CountLoop: Training-Free High-Instance Image Generation via Iterative Agent Guidancecited by 4
  4. 2026TP-Blend: Textual-Prompt Attention Pairing for Precise Object-Style Blending in Diffusion Modelscited by 4
  5. 2026SpatialReward: Verifiable Spatial Reward Modeling for Fine-Grained Spatial Consistency in Text-to-Image Generationcited by 4
  6. 2024QUOTA: Quantifying Objects with Text-to-Image Models for Any Domaincited by 3
  7. 2025CountDiffusion: Text-to-Image Synthesis with Training-Free Counting-Guidance Diffusioncited by 3
  8. 2025Data-Driven Loss Functions for Inference-Time Optimization in Text-to-Imagecited by 3
  9. 2025Why Settle for Mid: A Probabilistic Viewpoint to Spatial Relationship Alignment in Text-to-image Modelscited by 2
  10. 2025CARINOX: Inference-time Scaling with Category-Aware Reward-based Initial Noise Optimization and Explorationcited by 2
  11. 2025Demystifying Numerosity in Diffusion Models -- Limitations and Remediescited by 2
  12. 2025DeLeaker: Dynamic Inference-Time Reweighting For Semantic Leakage Mitigation in Text-to-Image Modelscited by 2
  13. 2025JEDI: The Force of Jensen-Shannon Divergence in Disentangling Diffusion Modelscited by 1
  14. 2025OSPO: Object-Centric Self-Improving Preference Optimization for Text-to-Image Generationcited by 1
  15. 2025CountCluster: Training-Free Object Quantity Guidance with Cross-Attention Map Clustering for Text-to-Image Generationcited by 1
  16. 2025D2D: Detector-to-Differentiable Critic for Improved Numeracy in Text-to-Image Generationcited by 1
  17. 2026When Do Diffusion Models learn to Generate Multiple Objects?cited by 1
  18. 2026Transferability Between Understanding and Generation in Unified Multimodal Modelscited by 1
  19. 2025ISAC: Training-Free Instance-to-Semantic Attention Control for Multi-Instance Generationcited by 0
  20. 2025Prompt-Free Conditional Diffusion for Multi-object Image Augmentationcited by 0
  21. 2026MoGen: A Unified Collaborative Framework for Controllable Multi-Object Image Generationcited by 0
  22. 2026Rethinking Global Text Conditioning in Diffusion Transformerscited by 0
  23. 2026Exploring the AI Obedience: Why is Generating a Pure Color Image Harder than CyberPunk?cited by 0
  24. 2026Delta-K: Boosting Multi-Instance Generation via Cross-Attention Augmentationcited by 0
  25. 2026ATHENA: Adaptive Test-Time Steering for Improving Count Fidelity in Diffusion Modelscited by 0
  26. 2026When Numbers Speak: Aligning Textual Numerals and Visual Instances in Text-to-Video Diffusion Modelscited by 0
  27. 2026SynMulti: Synthetic-to-Real Learning for Multimodal Video Understandingcited by 0
  28. 2026Curriculum Group Policy Optimization: Adaptive Sampling for Unleashing the Potential of Text-to-Image Generationcited by 0
  29. 2026AI-T2I: Aggregating-and-Isolating Cross-Attention to Diffusion Models for Text-to-Image Synthesiscited by 0
  30. 2026ABACUS: Adapting Unified Foundation Model for Bridging Image Count Understanding and Generationcited by 0
  31. 2026Learning to Generate Multiple Objects from Dense and Occluded Layoutscited by 0
  32. 2026Blind-Spots-Bench: Evaluating Blind Spots in Multimodal Modelscited by 0
  33. 2026Attention from Above: A Multimodal Model for Drone-Based Object Localizationcited by 0
  34. 2026NumBench: Diagnosing Counting Failures in Text-to-Image Modelscited by 0
  35. 2026Evaluating the Evaluators: Diagnosing Large Multimodal Models for AI-Generated Image Assessmentcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025CountSteer: Steering Attention for Object Counting in Diffusion Models
  2. 2025Text-to-Image Diffusion Models Cannot Count, and Prompt Refinement Cannot Help
  3. 2024Controllable Generation with Text-to-Image Diffusion Models: A Survey
  4. 2023Semantic Generative Augmentations for Few-Shot Counting
  5. 2023ObjectComposer: Consistent Generation of Multiple Objects Without Fine-tuning
  6. 2022eDiff-I: Text-to-Image Diffusion Models with an Ensemble of Expert Denoisers
  7. 2025Reusing Computation in Text-to-Image Diffusion for Efficient Generation of Image Sets
  8. 2024AFreeCA: Annotation-Free Counting for All