mlsanityData to 14 Oct 2026

CountCluster: Training-Free Object Quantity Guidance with Cross-Attention Map Clustering for Text-to-Image Generation

arXiv 2508.10710 ↗First posted 14 Aug 2025cs.CVcited by 1

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

Abstract (arXiv)

Diffusion-based text-to-image generation models have demonstrated strong performance in terms of image quality and diversity. However, they still struggle to generate images that accurately reflect the number of objects specified in the input prompt. Several approaches have been proposed that rely on either external counting modules for iterative refinement or quantity representations derived from learned tokens or latent features. However, they still have limitations in accurately reflecting the specified number of objects and overlook an important structural characteristic--The number of object instances in the generated image is largely determined in the early timesteps of the denoising process. To correctly reflect the object quantity for image generation, the highly activated regions in the object cross-attention map at the early timesteps should match the input object quantity, while each region should be clearly separated. To address this issue, we propose textitCountCluster, a method that guides the object cross-attention map to be clustered according to the specified object count in the input, without relying on any external tools or additional training. The proposed method partitions the object cross-attention map into k clusters at inference time based on attention scores, defines an ideal distribution in which each cluster is spatially well-separated, and optimizes the latent to align with this target distribution. Our method achieves an average improvement of 18.5%p in object count accuracy compared to existing methods, and demonstrates superior quantity control performance across a variety of prompts. Code will be released at: https://github.com/JoohyeonL22/CountCluster

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 35 of its 42 references that are in the map. First posted on arXiv 14 Aug 2025.

Builds on

35 of 42 references.

Closest ancestors · 13

Same direction, newest first

  1. 2024Self-Cross Diffusion Guidance for Text-to-Image Synthesis of Similar Subjects28 Nov
  2. 2024Make It Count: Text-to-Image Generation with an Accurate Number of Objects14 Jun
  3. 2024InitNO: Boosting Text-to-Image Diffusion Models via Initial Noise Optimization6 Apr
  4. 2023CONFORM: Contrast is All You Need For High-Fidelity Text-to-Image Diffusion Models11 Dec
  5. 2023Improving Compositional Text-to-image Generation with Large Vision-Language Models10 Oct
  6. 2023Counting Guidance for High Fidelity Text-to-Image Synthesis30 Jun
  7. 2023A-STAR: Test-time Attention Segregation and Retention for Text-to-image Synthesis26 Jun
  8. 2023Linguistic Binding in Diffusion Models: Enhancing Attribute Correspondence through Attention Map Alignment15 Jun
  9. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
  10. 2022DiffEdit: Diffusion-based semantic image editing with mask guidance20 Oct
  11. 2022Imagic: Text-Based Real Image Editing with Diffusion Models17 Oct
  12. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
1 more
  1. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models20 Dec

Other references · 22

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  4. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
  5. 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 6,013
  6. 2022Classifier-Free Diffusion Guidancecited by 5,847
  7. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
  8. 2021Zero-Shot Text-to-Image Generationcited by 4,288
  9. 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,332
  10. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
  11. 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,424
  12. 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,054
10 more
  1. 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,937
  2. 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,430
  3. 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 906
  4. 2021Vector Quantized Diffusion Model for Text-to-Image Synthesiscited by 774
  5. 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 727
  6. 2023TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answeringcited by 428
  7. 2023Teaching CLIP to Count to Tencited by 198
  8. 2023CLIP-Count: Towards Text-Guided Zero-Shot Object Countingcited by 83
  9. 2024CountGD: Multi-Modal Open-World Countingcited by 59
  10. 2025Temporal Score Analysis for Understanding and Correcting Diffusion Artifactscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025CountDiffusion: Text-to-Image Synthesis with Training-Free Counting-Guidance Diffusion
  2. 2025CountSteer: Steering Attention for Object Counting in Diffusion Models
  3. 2024Detection-Driven Object Count Optimization for Text-to-Image Diffusion Models
  4. 2024AFreeCA: Annotation-Free Counting for All
  5. 2025T2ICount: Enhancing Cross-modal Understanding for Zero-Shot Counting
  6. 2026Making Training-Free Diffusion Segmentors Scale with the Generative Power
  7. 2025Text-to-Image Diffusion Models Cannot Count, and Prompt Refinement Cannot Help
  8. 2024Training-Free Layout-to-Image Generation with Marginal Attention Constraints