mlsanityData to 14 Oct 2026

D2D: Detector-to-Differentiable Critic for Improved Numeracy in Text-to-Image Generation

arXiv 2510.19278 ↗First posted 22 Oct 2025cs.CVcited by 1

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

Abstract (arXiv)

Text-to-image (T2I) diffusion models have achieved strong performance in semantic alignment, yet they still struggle with generating the correct number of objects specified in prompts. Existing approaches typically incorporate auxiliary counting networks as external critics to enhance numeracy. However, since these critics must provide gradient guidance during generation, they are restricted to regression-based models that are inherently differentiable, thus excluding detector-based models with superior counting ability, whose count-via-enumeration nature is non-differentiable. To overcome this limitation, we propose Detector-to-Differentiable (D2D), a novel framework that transforms non-differentiable detection models into differentiable critics, thereby leveraging their superior counting ability to guide numeracy generation. Specifically, we design custom activation functions to convert detector logits into soft binary indicators, which are then used to optimize the noise prior at inference time with pre-trained T2I models. Our extensive experiments on SDXL-Turbo, SD-Turbo, and Pixart-DMD across four benchmarks of varying complexity (low-density, high-density, and multi-object scenarios) demonstrate consistent and substantial improvements in object counting accuracy (e.g., boosting up to 13.7% on D2D-Small, a 400-prompt, low-density benchmark), with minimal degradation in overall image quality and computational overhead.

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 36 of its 39 references that are in the map. First posted on arXiv 22 Oct 2025.

Builds on

36 of 39 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024Make It Count: Text-to-Image Generation with an Accurate Number of Objects14 Jun
  2. 2024Enhancing Image Layout Control with Loss-Guided Diffusion Models23 May
  3. 2023Counting Guidance for High Fidelity Text-to-Image Synthesis30 Jun
  4. 2023LLM-grounded Diffusion: Enhancing Prompt Understanding of Text-to-Image Diffusion Models with Large Language Models23 May
  5. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan

Other references · 31

  1. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  3. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  4. 2022Scalable Diffusion Models with Transformerscited by 6,054
  5. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
  6. 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,332
  7. 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,424
  8. 2023ImageReward: Learning and Evaluating Human Preferences for Text-to-Image Generationcited by 1,045
  9. 2023Training Diffusion Models with Reinforcement Learningcited by 982
  10. 2023Pick-a-Pic: An Open Dataset of User Preferences for Text-to-Image Generationcited by 977
  11. 2023Human Preference Score v2: A Solid Benchmark for Evaluating Human Preferences of Text-to-Image Synthesiscited by 890
  12. 2023PixArt-α: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesiscited by 864
19 more
  1. 2023Diffusion Model Alignment Using Direct Preference Optimizationcited by 790
  2. 2023Adversarial Diffusion Distillationcited by 759
  3. 2023DPOK: Reinforcement Learning for Fine-tuning Text-to-Image Diffusion Modelscited by 450
  4. 2023Directly Fine-Tuning Diffusion Models on Differentiable Rewardscited by 448
  5. 2024YOLOv9: Learning What You Want to Learn Using Programmable Gradient Informationcited by 425
  6. 2023Scaling Open-Vocabulary Object Detectioncited by 343
  7. 2024PixArt-Sigma: Weak-to-Strong Training of Diffusion Transformer for 4K Text-to-Image Generationcited by 329
  8. 2023Using Human Feedback to Fine-tune Diffusion Models without Any Reward Modelcited by 252
  9. 2018TallyQA: Answering Complex Counting Questionscited by 153
  10. 2021Learning To Count Everythingcited by 150
  11. 2024CFG++: Manifold-constrained Classifier Free Guidance for Diffusion Modelscited by 149
  12. 2024ReNO: Enhancing One-step Text-to-Image Models through Reward-based Noise Optimizationcited by 119
  13. 2023End-to-End Diffusion Latent Optimization Improves Classifier Guidancecited by 108
  14. 2023CLIP-Count: Towards Text-Guided Zero-Shot Object Countingcited by 83
  15. 2022CounTR: Transformer-based Generalised Visual Countingcited by 79
  16. 2024CountGD: Multi-Modal Open-World Countingcited by 59
  17. 2022Learning to Count Anything: Reference-less Class-agnostic Counting with Weak Supervisioncited by 41
  18. 2023Enhancing Diffusion Models with Text-Encoder Reinforcement Learningcited by 30
  19. 2024The Silent Assistant: NoiseQuery as Implicit Guidance for Goal-Driven Image Generationcited by 14

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. 2025Demystifying Numerosity in Diffusion Models -- Limitations and Remedies
  2. 2025Text-to-Image Diffusion Models Cannot Count, and Prompt Refinement Cannot Help
  3. 2025CountSteer: Steering Attention for Object Counting in Diffusion Models
  4. 2025Few-Step Distillation for Text-to-Image Generation: A Practical Guide
  5. 2026Reinforcing the Generation Order of Multimodal Masked Diffusion Models
  6. 2024Detection-Driven Object Count Optimization for Text-to-Image Diffusion Models
  7. 2023Separate-and-Enhance: Compositional Finetuning for Text2Image Diffusion Models
  8. 2022Human Evaluation of Text-to-Image Models on a Multi-Task Benchmark