CountSteer: Steering Attention for Object Counting in Diffusion Models
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
Text-to-image diffusion models generate realistic and coherent images but often fail to follow numerical instructions in text, revealing a gap between language and visual representation. Interestingly, we found that these models are not entirely blind to numbers-they are implicitly aware of their own counting accuracy, as their internal signals shift in consistent ways depending on whether the output meets the specified count. This observation suggests that the model already encodes a latent notion of numerical correctness, which can be harnessed to guide generation more precisely. Building on this intuition, we introduce CountSteer, a training-free method that improves generation of specified object counts by steering the model's cross-attention hidden states during inference. In our experiments, CountSteer improved object-count accuracy by about 4% without compromising visual quality, demonstrating a simple yet effective step toward more controllable and semantically reliable text-to-image generation.
Key facts. Cited by 2 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 6 of its 10 references that are in the map. First posted on arXiv 14 Nov 2025.
Builds on
6 of 10 references.
Closest ancestors · 1
Same direction, newest first
Other references · 5
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2024LLaVA-OneVision: Easy Visual Task Transfercited by 2,669
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
- 2023Composer: Creative and Controllable Image Synthesis with Composable Conditionscited by 303
- 2023Understanding the Latent Space of Diffusion Models through the Lens of Riemannian Geometrycited by 121
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Make It Count: Text-to-Image Generation with an Accurate Number of Objects
- 2025Demystifying Numerosity in Diffusion Models -- Limitations and Remedies
- 2024Detection-Driven Object Count Optimization for Text-to-Image Diffusion Models
- 2025CountDiffusion: Text-to-Image Synthesis with Training-Free Counting-Guidance Diffusion
- 2026ATHENA: Adaptive Test-Time Steering for Improving Count Fidelity in Diffusion Models
- 2025CountCluster: Training-Free Object Quantity Guidance with Cross-Attention Map Clustering for Text-to-Image Generation
- 2025Text-to-Image Diffusion Models Cannot Count, and Prompt Refinement Cannot Help
- 2024AFreeCA: Annotation-Free Counting for All