D2D: Detector-to-Differentiable Critic for Improved Numeracy in Text-to-Image Generation
Nobline Yoo, Olga Russakovsky, Ye Zhu
NeurIPS 2026
TL;DR. We address the problem of accurately generating the correct count of objects by unlocking a new class of differentiable count critics, yielding the highest numeracy across low-density, single/multi-object, high-density settings.
Abstract. 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, we propose Detector-to-Differentiable (D2D), a novel framework that transforms non-differentiable detection models into differentiable critics, 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. Project page: https://nobliney.github.io/d2d/.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper proposes an inference-time method for improving exact object counts in text-to-image generation. Its core idea is to transform the confidence logits of a pretrained object detector into a differentiable count critic, then backpropagate this signal through a frozen generator to optimize its initial noise. The problem of counting errors is real and the solution is elegant as it can exploit a pretrained detector localization and confidence information without training a new counting network. Also it can rely on stronger non-differentiable detectors. The paper would improve with a better explanation of the differentiable detector path, provide more detail on the early-stopping criterion, and Independent validation of generated counts, ideally through blinded human annotation. This is evaluation aspect is the main weakness of the paper since the current evaluation depends on object detectors. Convincing clarification and independent count validation could move the paper toward a clearer accept. Conversely, evidence that the improvements substantially exploit detector-specific artifacts would move the recommendation toward rejection. Other aspect that would improve the paper are tests on non-COCO classes or natural free-form prompts, considering direct latent optimization versus LMN and a clear comparison against the complete YOLO-Count method. More accurate qualification of latency, high-density performance, and statistical significance are desirable.
Final justification
The final reviewer consensus is stronger than before: 4/5/5 after rebuttal, with all three reviewers having responded. The decision should remain Accept (poster). Overall, the rebuttal resolves the main evaluation concern and materially strengthens the evidence for the proposed method.
Read meta-review
Meta-review
The paper proposes an inference-time method for improving exact object counts in text-to-image generation. Its core idea is to transform the confidence logits of a pretrained object detector into a differentiable count critic, then backpropagate this signal through a frozen generator to optimize its initial noise. The problem of counting errors is real and the solution is elegant as it can exploit a pretrained detector localization and confidence information without training a new counting network. Also it can rely on stronger non-differentiable detectors. The paper would improve with a better explanation of the differentiable detector path, provide more detail on the early-stopping criterion, and Independent validation of generated counts, ideally through blinded human annotation. This is evaluation aspect is the main weakness of the paper since the current evaluation depends on object detectors. Convincing clarification and independent count validation could move the paper toward a clearer accept. Conversely, evidence that the improvements substantially exploit detector-specific artifacts would move the recommendation toward rejection. Other aspect that would improve the paper are tests on non-COCO classes or natural free-form prompts, considering direct latent optimization versus LMN and a clear comparison against the complete YOLO-Count method. More accurate qualification of latency, high-density performance, and statistical significance are desirable.
Final justification
The final reviewer consensus is stronger than before: 4/5/5 after rebuttal, with all three reviewers having responded. The decision should remain Accept (poster). Overall, the rebuttal resolves the main evaluation concern and materially strengthens the evidence for the proposed method.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Work addresses the central challenge of generating exact counts of objects in text-to-image diffusion-based models. Paper proposes - Detector-to-Differentiable (D2D) framework that maps the discrete, non-differentiable bounding box counts of pre-trained object detectors into differentiable signals using a custom logit-scaled activation function. This differentiable critic is then used to optimize the initial noise latent vector at inference time via a lightweight Latent Modifier Network (LMN) to adjust the generated object count.
Main contribution here is that this is replacing regression based counting for gradient guidance during inference with a differentiable critic. They show that regression based methods didn't do well on low-density exact counts (predicting 2.8 cats instead of 3 for e.g.), also they can only give a spatial heatmap, not exact bboxes.
Strengths and weaknesses
Strengths
- Generalizability: Differentiable critic operates independently of the generator's underlying architecture. Authors validated the critic on a number of backbones
- Logit scaled gradients: I feel the loss function handles this part well. Gradient saturation is mitigated by multiplying sigmoid results with a linear offset.
- Supporting open vocabulary: Because D2D works directly on the raw logits output by open-vocabulary detectors, rare prompts would also work, something that regression methods couldn’t do.
Weaknesses
- Computational overhead for D2D in a single step model seems impractical for real-world use: One-step distilled diffusion models (like SDXL-Turbo) are popular because they are designed for immediate, sub-second interactive generation. Because backpropagation is mathematically so expensive, hundreds of backward passes defeats the speed advantage.
- Loss function vagueness around step changes: the D2D loss function seems to switch abruptly between two separate piecewise definitions depending on whether the soft count is strictly greater than or less than N. Near the decision boundary where the soft count is close to N, the optimization trajectory will experience sudden step-changes in gradient directions, causing oscillations. Moreover, if the soft count is exactly equal to N, then loss is undefined?
- Would only work well for low density cases: Overlapping boxes will throw the solution off.
Questions
- Address the computation overhead and how can it be mitigated
- Add a section on how multiple object classes in the same image and overlapping boxes can be handled.
Limitations
The claims of the paper repeatedly emphasize "minimal computational overhead" and "minimal additions to temporal overhead". This needs to be clearly explained
Final justification
Thanks for the detailed rebuttal. The clarifications on the loss function stability and the new analysis showing reduced bounding box overlap adequately address my concerns on those fronts
However, the rebuttal did not provide a concrete mitigation for the ~21-second latency overhead in real-time settings, nor did it explain how multiple distinct object classes are handled in the same image
Despite these remaining limitations, the method shows solid improvements over existing test-time baselines. I am raising my score to a 5 (Accept), but please ensure the loss function implementation details, latency limitations, and multi-class behavior are explicitly discussed in the final version.
Formatting concerns
None seen
2 comments
Rebuttal
Thank you for your thoughtful comments and for recognizing our method design. We appreciate the opportunity to present additional evidence in support of our method’s improvements.
W1: Computational overhead for D2D in a single step model seems impractical for real-world use: One-step distilled diffusion models (like SDXL-Turbo) are popular because they are designed for immediate, sub-second interactive generation. Because backpropagation is mathematically so expensive, hundreds of backward passes defeats the speed advantage. Address the computation overhead and how can it be mitigated
A1: Thank you for raising this important point. Improving generation capabilities beyond the base model introduces tradeoffs, as seen in other T2I settings, such as quality–speed and quality/alignment–diversity [a]. Our goal with D2D is to achieve this improvement with minimal overhead compared to existing count-correction methods, as shown in the Table below.
D2D introduces substantially less overhead than existing count-correction methods. On D2D-Small, averaged over four seeds,
| Method | Base model inference time (s) | Additional temporal overhead (s) |
|---|---|---|
| D2D | 0.16 (SDXL-Turbo) | 21.55 |
| TokenOpt | 0.16 (SDXL-Turbo) | 102.94 |
| Counting Guidance | 1.52 (SD1.4) | 26.87 |
| Make It Count | 7.68 (SDXL) | 34.60 |
Moreover, for applications where count correctness matters, this additional cost can be a worthwhile tradeoff: unlike subjective image quality metrics, numeracy is often a correctness criterion. Finally, D2D is backbone-flexible and does not require retraining, allowing it to directly benefit from future improvements in diffusion inference efficiency and faster generation pipelines.
[a] The Intricate Dance of Prompt Complexity, Quality, Diversity, and Consistency in T2I Models, ICLR'26
Rebuttal (continued)
W2: Loss function vagueness around step changes: the D2D loss function seems to switch abruptly between two separate piecewise definitions depending on whether the soft count is strictly greater than or less than N. Near the decision boundary where the soft count is close to N, the optimization trajectory will experience sudden step-changes in gradient directions, causing oscillations. Moreover, if the soft count is exactly equal to N, then loss is undefined?
A2: Thank you for the insightful question. Although our loss is piecewise, optimization is generally stable due to several implementation choices. We use momentum, gradient clipping, and reduce the learning rate as needed when the soft count approaches the target (N), which helps prevent oscillation near the decision boundary.
If the count reaches N, we early-stop without further backpropagation. We can incorporate these details into our final manuscript.
W3: Would only work well for low density cases: Overlapping boxes will throw the solution off. Add a section on how multiple object classes in the same image and overlapping boxes can be handled.
A3: Thank you for the valuable feedback. To see how D2D handles overlapping detections, we compare bounding box overlap before and after D2D correction in the high-density setting, where overlap is more likely. We define an image’s overall “overlap score” as the global IoU: the total area covered by overlapping bbox regions / the union area of the boxes. Furthermore, the mean absolute error of an image is: abs(requested - generated count).
Using base model SDXL-Turbo and prompt set D2D-Large, we bin the initial generations into quartiles based on their overlap scores. For each quartile, we report the mean initial error, and after applying D2D, the new mean overlap score and error. The results are:
| Initial overlap bin | Initial mean absolute error | Post-D2D mean overlap | Post-D2D mean absolute error |
|---|---|---|---|
| [0.00, 0.10] | 12.19 | 0.07 | 7.47 |
| (0.10, 0.22] | 18.17 | 0.16 | 12.88 |
| (0.22, 0.83] | 56.46 | 0.20 | 28.40 |
| (0.83, 1.33] | 34.88 | 0.32 | 13.98 |
Across four seeds.
D2D reduces error across all initial overlap ranges. In cases of high initial overlap (e.g., the third and fourth quartiles), the post-D2D overlap drops below the initial overlap range, suggesting that D2D actively reduces overlap.
Because over-generation is particularly prevalent in high-count settings (e.g., 78% of the initial images from above were over-generations), the D2D loss works to delete objects, which reduces overlap.
Furthermore, our human evaluation results (table below, pilot study details are in our response to Reviewer nwTk) confirms that D2D improves numeracy, suggesting that the gains are not achieved by generating heavily overlapping or visually ambiguous objects that are difficult to distinguish. More generally, we find that recent base models exhibit stronger semantic understanding and produce more natural layouts, further mitigating the issue.
| Method | Human | CountGD |
|---|---|---|
| SDXL-Turbo | 0.24 | 0.22 |
| D2D w/ OWLv2 critic (SDXL-Turbo) | 0.40 | 0.42 |
W4: The claims of the paper repeatedly emphasize "minimal computational overhead" and "minimal additions to temporal overhead". This needs to be clearly explained.
A4: Thank you for pointing this out. By "minimal computational (or temporal) overhead," we refer to the additional inference time introduced beyond the base model's generation time. As shown in our runtime comparison (A1 response above), D2D incurs the least additional inference time than prior count-correction methods. We will add this clarification in the revised paper.
- Rating
- 5/6
- Confidence
- 5/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper addresses the central challenge of poor numeracy and object counting fidelity in text-to-image (T2I) diffusion models. While previous methods rely on differentiable regression-based counting networks to provide gradient guidance, they suffer from poor accuracy in low-density scenarios. To bridge this gap, this work introduces Detector-to-Differentiable (D2D), a novel framework that transforms inherently non-differentiable detector-based models (e.g., YOLO) into differentiable critics. By designing custom, high-curvature activation functions and a logit-scaled loss formulation, D2D enables discrete bounding box indicators and counting operations to become smooth and differentiable. To safely inject these gradients without degrading image quality, the authors propose a lightweight Latent Modifier Network (LMN) that optimizes a residual on top of the initial noise prior at inference time. The framework is highly efficient and compatible with both one-step distilled models and multi-step diffusion models via direct noise optimization.
Strengths and weaknesses
Strengths:
- Novelty: The paper targets a critical and long-standing flaw in regression-based counting critics—gradient saturation and poor performance in low-density scenarios. Converting non-differentiable detector-based models (like YOLO) into differentiable critics is a clever and highly targeted solution.
- Well-designed Mathematical Formulations: Instead of simply applying a naive Sigmoid function, the authors introduced custom high-curvature activation functions coupled with a logit-scaled loss formulation (). This carefully addresses the gradient plateauing problem, ensuring strong guidance signals when the generation deviates significantly from the target count.
- Sound Architecture with LMN: The introduction of the Latent Modifier Network (LMN) to optimize a residual on the initial noise () at inference time is elegant. It successfully decouples the numeracy alignment from the generative capabilities of the backbone, preserving image fidelity and alignment scores (e.g., PickScore, ImageReward).
Weakness:
-
Computational Overhead at Inference: Although the framework is much faster than traditional multi-step BPTT methods, it still requires several iterations of test-time optimization (taking 11-21 seconds). This remains a noticeable latency penalty compared to vanilla one-step generation (like standard SDXL-Turbo), which might limit its applicability in real-time production.
-
A relevant baseline [1] is missing from the comparison. The primary goal of this baseline is to address the issue of generating similar subjects in MMDiT-based models. However, the paper also demonstrates broad improvements across various generation issues on GenEval, with particularly notable gains on the counting task. Given the close relevance of the following work, the authors should include a direct comparison and discuss the differences between the two approaches.
[1] Wei T, Chen D, Zhou Y, et al. Enhancing mmdit-based text-to-image models for similar subject generation[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026.
-
Lack of Layout/Spatial Control: Since the framework only supervises the total count of bounding boxes through a global summation, it does not explicitly manage the spatial distribution of the generated objects. It remains a question whether it can reliably prevent objects from overlapping or clustering in unnatural ways.
Questions
Please refer to the weaknesses section for my detailed concerns. If the authors can provide convincing responses and adequately address all of these concerns, I would be willing to reconsider my assessment and potentially raise my score.
Limitations
See the weakness
Final justification
The authors have provided a detailed rebuttal and additional clarification during the rebuttal period, which have addressed my main concerns. Therefore, I am increasing my overall score from 4 to 5. I encourage the authors to incorporate the additional experimental results presented during the rebuttal period into the final version of the paper.
Formatting concerns
None
6 comments
Rebuttal
Thank you for your thoughtful comments and for recognizing our method design. We appreciate the opportunity to present additional evidence to further contextualize our method improvements.
W1: Computational Overhead at Inference: Although the framework is much faster than traditional multi-step BPTT methods, it still requires several iterations of test-time optimization (taking 11-21 seconds). This remains a noticeable latency penalty compared to vanilla one-step generation (like standard SDXL-Turbo), which might limit its applicability in real-time production.
A1: Thank you for raising this important point. Improving generation capabilities beyond the base model introduces tradeoffs, as seen in other T2I settings, such as quality–speed and quality/alignment–diversity [a]. Our goal with D2D is to achieve this improvement with minimal overhead compared to existing count-correction methods, as shown in the Table below.
D2D introduces substantially less overhead than existing count-correction methods. On D2D-Small, averaged over four seeds,
| Method | Base model inference time (s) | Additional temporal overhead (s) |
|---|---|---|
| D2D | 0.16 (SDXL-Turbo) | 21.55 |
| TokenOpt | 0.16 (SDXL-Turbo) | 102.94 |
| Counting Guidance | 1.52 (SD1.4) | 26.87 |
| Make It Count | 7.68 (SDXL) | 34.60 |
Moreover, for applications where count correctness matters, this additional cost can be a worthwhile tradeoff: unlike subjective image quality metrics, numeracy is often a correctness criterion. Finally, D2D is backbone-flexible and does not require retraining, allowing it to directly benefit from future improvements in diffusion inference efficiency and faster generation pipelines.
[a] The Intricate Dance of Prompt Complexity, Quality, Diversity, and Consistency in T2I Models, ICLR'26
Rebuttal (continued)
W2: A relevant baseline [1] is missing from the comparison. The primary goal of this baseline is to address the issue of generating similar subjects in MMDiT-based models. However, the paper also demonstrates broad improvements across various generation issues on GenEval, with particularly notable gains on the counting task. Given the close relevance of the following work, the authors should include a direct comparison and discuss the differences between the two approaches.
[1] Wei T, Chen D, Zhou Y, et al. Enhancing mmdit-based text-to-image models for similar subject generation[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026.
A2: Thank you for the suggestion. We have added comparisons with EnMMDiT [1], which we can incorporate into the final submission. The two methods address different aspects of generation: D2D directly optimizes object counts using a detector-based differentiable critic, whereas EnMMDiT address subject mixing and neglect by leveraging a suite of losses that correct attention activation in earlier layers, text encoder inconsistency, and overlapping attentions of subjects.
We report numeracy for EnMMDiT (base model SD3) and D2D (base model SDXL-Turbo) using CoCoCount and a subset of 100 prompts from D2D-Multi. Standard deviations reported across four seeds.
On CoCoCount:
| Method | Numeracy |
|---|---|
| SD3 | 54.38 ± 5.07 |
| SD3 + EnMMDiT | 58.62 ± 1.31 |
| SDXL-Turbo | 27.38 ± 2.69 |
| SDXL-Turbo + D2D | 55.62 ± 2.72 |
On D2D-Multi:
| Method | Numeracy |
|---|---|
| SD3 | 17.00 ± 3.83 |
| SD3 + EnMMDiT | 20.75 ± 4.99 |
| SDXL-Turbo | 3.50 ± 1.73 |
| SDXL-Turbo + D2D | 15.25 ± 2.63 |
Although EnMMDiT builds on SD3 (a substantially stronger base model with nearly 2x numeracy over SDXL-Turbo), D2D achieves comparable performance with EnMMDiT (overlapping performance range).
W3: Lack of Layout/Spatial Control: Since the framework only supervises the total count of bounding boxes through a global summation, it does not explicitly manage the spatial distribution of the generated objects. It remains a question whether it can reliably prevent objects from overlapping or clustering in unnatural ways.
A3: Thank you for your thoughtful insight. To analyze how D2D manages overlapping detections without explicit spatial supervision, we measure bounding-box overlap before and after D2D optimization. We define an image’s overall “overlap score” as the global IoU: the total area covered by overlapping bbox regions / the union area of the boxes. Furthermore, the mean absolute error of an image is: abs(requested - generated count).
Using base model SDXL-Turbo and prompt set D2D-Large, we bin the initial generations into quartiles based on their overlap scores. For each quartile (“initial overlap bin”), we report the mean initial error, and after applying D2D, the new mean overlap score and error. The results are:
| Initial overlap bin | Initial mean absolute error | Post-D2D mean overlap | Post-D2D mean absolute error |
|---|---|---|---|
| [0.00, 0.10] | 12.19 | 0.07 | 7.47 |
| (0.10, 0.22] | 18.17 | 0.16 | 12.88 |
| (0.22, 0.83] | 56.46 | 0.20 | 28.40 |
| (0.83, 1.33] | 34.88 | 0.32 | 13.98 |
Across four seeds.
D2D reduces error across all initial overlap ranges. In cases of high initial overlap (e.g., the third and fourth quartiles), the post-D2D overlap drops below the initial overlap range, suggesting that D2D actively reduces overlap.
Because over-generation is particularly prevalent in high-count settings (e.g., 78% of the initial images from above were over-generations), the D2D loss works to delete objects, which reduces overlap.
Furthermore, our human evaluation results (table below, pilot study details are in our response to Reviewer nwTk) confirms that D2D improves numeracy, suggesting that the gains are not achieved by generating heavily overlapping or visually ambiguous objects that are difficult to distinguish. More generally, we find that recent base models exhibit stronger semantic understanding and produce more natural layouts, further mitigating the issue.
| Method | Human | CountGD |
|---|---|---|
| SDXL-Turbo | 0.24 | 0.22 |
| D2D w/ OWLv2 critic (SDXL-Turbo) | 0.40 | 0.42 |
Response to Author Rebuttal
Thank you for your detailed response. It has addressed most of my concerns. That said, it would be even more convincing if you could demonstrate the generalizability of the proposed method on more advanced models, such as SD3 and FLUX. I understand that this may be challenging to accomplish within the limited rebuttal period, but I would be pleased to see such experimental results included in the final version.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper targets the problem of inaccurate number of object generation. They present Detector-to-Differentiable framework where instead of relying on regression-based counters, they design a high-curvature activation function that relaxes detector-produced discrete objects counts into a smooth surrogate. The shape of this curve is carefully designed to extract convergence-friendly gradients, as naive soft relaxations provide insufficent optimization signals. Also, they optimize the initial noise using a lightweight test-time tunable module, the Latent Modifier Network, which learns a perturbation of the Gaussian latent while mixing it with the original noise to maintain proximity to the diffusion prior, thereby providing an implicit regularization effect. This backbone-agnostic design enables broader generalization of the method across diverse diffusion-based T2I architectures.
Strengths and weaknesses
Strengths
- Addresses a persistent weakness of T2I models - generating the exact number of objects given in the prompt
- Instead of working with weaker regression-style counters, it converts stronger detector logits into a differentiable count critic and uses that signal for inference-time correction
- The authors evaluate on multiple prompt sets + compare to relevant baselines such as Make It Count, Counting Guidance, TokenOpt and ReNO + include both numeracy and image quality/alignment metrics
- The paper reports averages over multiple seeds for the main results
Weaknesses
- I feel that since the method itself uses detectors as critics and the evaluation uses CountGD, which is again a detector-based counting model, the paper should also show and work towards genuinely improving human-perceived numeracy
- A human evaluation or multi-evaluator agreement study would make the claims much stronger
- The paper has not applied D2D on the bigger models like FLUX-schnell and SD3.5 Large Turbo which might limit the strength of the claim that the method scales to current high-quality T2I systems
- The problem is shown to persist on strong models, but D2D is still demonstrated only on distilled, older backbones
- The absolute performance in the hardest settings remains low. The method improves D2D-Multi and D2D-Large, but the reported accuracies are still around the single digits to low teens in many cases, which indicates that the method is far from solving multi-object or high-density numeracy
Questions
- The method improves these settings but absolute accuracy remains low. Can the authors better analyze failure modes in multi-object and high-density settings? A breakdown by object size, total count, object category, and detector confidence would clarify whether the bottleneck is the generator, the critic, the evaluator, or the optimization procedure.
- Count vs. object fidelity - Please add an evaluation that separates count-correctness from per-object fidelity on the corrected images - eg., the human eval used in Make It Count, or a VQA/quality check on detected instances.
- The Vendi deltas are tiny and reported to seven decimals. A conceptual argument for why constraining the noise would raise diversity would help the paper and also state exactly what set diversity is measured over.
- How are overlapping/duplicate detections handled inside L_D2D, and can double-counted boxes destabilize the gradient?
Limitations
Yes but might need an addition of human-perceived count validation
Final justification
Thanks for the thorough response, it satisfies the main points I raised. The blinded human study, with D2D first on human counts, resolves my critic-evaluator concern, and the breakdowns answer my failure-mode request. For the revision: report an inter-rater agreement number and update checklist item 14; correct Appendix T and Table 14, which still claim D2D improves diversity against your own finding that the Vendi deltas aren't significant; write the overlap analysis and its IoU definition into the paper, since neither appears in the submission, and state whether NMS precedes the sum in Eq. 1. I'd also like a compute-matched best-of-N baseline using the same detector, which I'm flagging for the revision rather than holding against my score. Raising from 3 to 4.
Formatting concerns
None
3 comments
Rebuttal
Thank you for your thoughtful comments and for recognizing our work on tackling the persistent challenge of numeracy. We appreciate the opportunity to present additional evidence in support of our method’s improvements.
W1: The paper should also show and work towards genuinely improving human-perceived numeracy. Human evaluation or multi-evaluator agreement study would make the claims much stronger.
A1: Thank you for the insightful comment. As suggested, we conducted additional human evaluation and multi-evaluator agreement studies, which confirm D2D’s performance boosts. During model development, we employed different detectors for D2D’s critic (OWLv2) and evaluator (CountGD) to avoid potential critic-evaluator leak (lines 211, 228).
Human evaluation and automated YOLOv9/CountGD-based metrics agree that D2D outperforms counting baselines.
| Method | Human | YOLOv9 | CountGD |
|---|---|---|---|
| SDXL | 0.10 | 0.10 | 0.10 |
| SDXL-Turbo | 0.24 | 0.20 | 0.22 |
| TokenOpt (SDXL-Turbo) | 0.26 | 0.24 | 0.22 |
| Counting Guidance (SD1.4) | 0.12 | 0.16 | 0.24 |
| Make It Count (SDXL) | 0.32 | 0.38 | 0.34 |
| D2D w/ OWLv2 critic (SDXL-Turbo) | 0.40 | 0.40 | 0.42 |
We conducted the pilot study with 22 participants using 50 randomly selected prompts from D2D-Small across the six models in the table above (300 total images), with each image evaluated by at least two different participants and the rounded average of their responses used as the final score. Each participant was given a survey of 30 randomly shuffled questions, each with an image and a short, free-response "How many [object class] are there in the image?" Importantly, we did not disclose which baseline generated each image. Below is the prompt we used:
Below are 30 questions. Each question presents an image and a short prompt: "How many <object> are there in the image?" Based on the image, answer the question. Below is an example, to illustrate.
All answers must be integers, in numerical format. So 15 is a valid answer, but fifteen is not. 0 is also a possible answer. Emphasis: a single integer response for each question - no additional text. When the answer seems unclear, please make your best effort. Thank you!
Our method yields the lowest error between generated and requested counts, as computed from human scores.
| Method | (Human) Mean absolute error abs(generated - requested count) |
|---|---|
| SDXL | 6.0 |
| SDXL-Turbo | 3.42 |
| TokenOpt (SDXL-Turbo) | 3.22 |
| Counting Guidance (SD1.4) | 3.34 |
| Make It Count (SDXL) | 3.88 |
| D2D w/ OWLv2 critic (SDXL-Turbo | 1.76 |
W2: The paper has not applied D2D on the bigger models like FLUX-schnell and SD3.5 Large Turbo which might limit the strength of the claim that the method scales to current high-quality T2I systems. The problem is shown to persist on strong models, but D2D is still demonstrated only on distilled, older backbones.
A2: Thank you for the valuable feedback. As suggested, we have run additional experiments, applying D2D to FLUX-schnell, the larger of the two models. Although FLUX-schnell is a strong baseline, D2D further boosts numeracy by +9.5 points.
| Method | Numeracy |
|---|---|
| FLUX-schnell | 47.5 |
| FLUX-schnell + D2D | 57.0 |
| On CoCoCount, seed=0. |
Rebuttal (continued)
W3: The method improves D2D-Multi and D2D-Large, but the method is still far from solving multi-object or high-density numeracy. Can the authors better analyze failure modes in these settings?
A3: Thank you for suggesting additional analysis. Below, we report the numeracy, binned by object size, detector confidence, total count, and object class on D2D-Large/Multi across four seeds on base SDXL-Turbo. We use the mean absolute error abs(generated - requested count) as the evaluation metric. The bin ranges are followed by the error in parentheses, as follows [bin start, bin end] (error ).
As expected, error decreases with larger objects, higher confidence, and lower total count. For higher counts, small object size remains a bottleneck, in particular for object classes that naturally appear in “herds” such as cows and sheep. Potential mitigation strategies could include adopting a bbox loss to explicitly increase object sizes at test-time and improving training sample diversity for the generative model (e.g. individual sheep, flocks).
Error vs. object size (instance size / image size * 100):
We bin the performance by object size (by quartiles). Error decreases as object size increases. D2D tends to increase object size.
On D2D-Large:
| Method | Quartile 1 | Quartile 2 | Quartile 3 | Quartile 4 |
|---|---|---|---|---|
| Base | [0.3-2.6] (52.2) | (2.6-4.5] (35.2) | (4.5-6.9] (21.2) | (6.9-92.4] (13.3) |
| + D2D | [0.1-3.5] (21.1) | (3.5-5.2] (17.9) | (5.2-7.7] (11.7) | (7.7-93.6] (12.0) |
On D2D-Multi:
| Method | Quartile 1 | Quartile 2 | Quartile 3 | Quartile 4 |
|---|---|---|---|---|
| Base | [0.4-3.9] (19.8) | (3.9-6.6] (8.2) | (6.6-10.3] (5.1) | (10.3-54.3] (3.5) |
| + D2D | [0.9-5.3] (9.2) | (5.3-8.3] (7.4) | (8.3-12.5] (4.5) | (12.5-70.2] (3.1) |
Error vs. detector confidence:
The error decreases with higher detector confidence. D2D tends to increase overall detector confidence.
On D2D-Large:
| Method | Quartile 1 | Quartile 2 | Quartile 3 | Quartile 4 |
|---|---|---|---|---|
| Base | [0.20-0.38] (70.3) | (0.38-0.45] (26.8) | (0.45-0.51] (14.2) | (0.51-0.80] (10.4) |
| + D2D | [0.22-0.40] (35.3) | (0.40-0.48] (18.8) | (0.48-0.55] (5.6) | (0.55-0.78] (3.1) |
On D2D-Multi:
| Method | Quartile 1 | Quartile 2 | Quartile 3 | Quartile 4 |
|---|---|---|---|---|
| Base | [0.25-0.42] (18.7) | (0.42-0.50] (8.1) | (0.50-0.57] (5.8) | (0.57-0.88] (4.0) |
| + D2D | [0.24-0.44] (14.6) | (0.44-0.52] (4.3) | (0.52-0.59] (3.2) | (0.59-0.85] (2.1) |
Error vs. total requested count:
The error increases with higher total requested counts, likely due to smaller object instances, which aligns with the observations above.
On D2D-Large:
| Requested count | Base | Base + D2D |
|---|---|---|
| [11–13.0] | 16.8 | 8.2 |
| (13.0–15] | 32.4 | 16.4 |
| (15–18] | 34.7 | 18.2 |
| (18–20] | 42.5 | 22.4 |
On D2D-Multi:
| Requested count | Base | Base + D2D |
|---|---|---|
| [2–4] | 4.2 | 2.2 |
| (4–5] | 6.0 | 3.3 |
| (5–10] | 9.1 | 5.7 |
| (10–19] | 17.6 | 13.0 |
Object categories with highest error:
Sheep, book and cow are among the top four most difficult categories for D2D on both D2D-Large and D2D-Multi, which may be explained by their tendency to occur in large groups (i.e., flock of sheep, shelf of books, etc).
Q1: Count vs. object fidelity - Please add an evaluation that separates count-correctness from per-object fidelity on the corrected images - e.g., the human eval used in Make It Count, or a VQA/quality check on detected instances.
A4: Thank you for the suggestion. We have additionally computed the PickScore (quality check) and CLIPScore (alignment score) per detected instance. On D2D-Small across four seeds. D2D object fidelity is comparable with baselines.
| Method | PickScore | CLIPScore |
|---|---|---|
| SDXL-Turbo | 19.62 | 28.41 |
| + D2D | 19.72 | 28.61 |
| + TokenOpt | 19.65 | 28.45 |
| SD1.4 | 19.29 | 28.26 |
| + Counting Guidance | 19.04 | 27.51 |
| SDXL | 19.51 | 28.80 |
| + Make It Count | 19.80 | 28.55 |
Q2: The Vendi deltas are tiny and reported to seven decimals. A conceptual argument for why constraining the noise would raise diversity would help the paper and also state exactly what set diversity is measured over.
A5: Thank you for the feedback. We agree and will revise the appendix tables accordingly. We have additionally updated Table 18 (shown below) to include the standard deviations, which show that D2D does not significantly impact diversity, which aligns with prior work [a] which also found that selecting higher-quality initial noises does not significantly impact diversity.
| Method | Vendi |
|---|---|
| SDXL-Turbo | 1.76 ± 0.23 |
| SDXL-Turbo + D2D | 1.82 ± 0.31 |
| SD-Turbo | 1.87 ± 0.25 |
| SD-Turbo + D2D | 1.98 ± 0.33 |
| Pixart-DMD | 1.76 ± 0.26 |
| Pixart-DMD + D2D | 1.82 ± 0.32 |
We compute Vendi scores across images generated from different random seeds for the same prompt, and average the scores across prompts, using Inception-based embeddings.
[a] The Silent Assistant: NoiseQuery as Implicit Guidance for Goal-Driven Image Generation, ICCV’25
Q3: How are overlapping/duplicate detections handled inside L_D2D, and can double-counted boxes destabilize the gradient?
A6: Thank you for the question. To see how D2D handles overlapping detections, we compare bbox overlap before and after D2D correction in the high-density setting, where overlap is more likely. We define an image’s overall “overlap score” as the global IoU: the total area covered by overlapping bbox regions / the union area of the boxes. Furthermore, the mean absolute error of an image is: abs(requested - generated count).
Using base model SDXL-Turbo and prompt set D2D-Large, we bin the initial generations into quartiles based on their overlap scores. For each quartile, we report the mean initial error, and after applying D2D, the new mean overlap score and error. The results are:
| Initial overlap bin | Initial mean absolute error | Post-D2D mean overlap | Post-D2D mean absolute error |
|---|---|---|---|
| [0.00, 0.10] | 12.19 | 0.07 | 7.47 |
| (0.10, 0.22] | 18.17 | 0.16 | 12.88 |
| (0.22, 0.83] | 56.46 | 0.20 | 28.40 |
| (0.83, 1.33] | 34.88 | 0.32 | 13.98 |
Across four seeds.
D2D reduces error across all initial overlap ranges. In cases of high initial overlap (e.g., the third and fourth quartiles), the post-D2D overlap drops below the initial overlap range, suggesting that D2D actively reduces overlap.
Because over-generation is particularly prevalent in high-count settings (e.g., 78% of the initial images from above were over-generations), the D2D loss works to delete objects, which reduces overlap.
Thanks for the thorough response, it satisfies the main points I raised. The blinded human study, with D2D first on human counts, resolves my critic-evaluator concern, and the breakdowns answer my failure-mode request. For the revision: report an inter-rater agreement number and update checklist item 14; correct Appendix T and Table 14, which still claim D2D improves diversity against your own finding that the Vendi deltas aren't significant; write the overlap analysis and its IoU definition into the paper, since neither appears in the submission, and state whether NMS precedes the sum in Eq. 1. I'd also like a compute-matched best-of-N baseline using the same detector, which I'm flagging for the revision rather than holding against my score. Raising from 3 to 4.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the Area Chair and all reviewers for taking the time to read our manuscript and provide valuable comments. Thank you for recognizing the importance of our “novel” and “highly efficient” framework (Reviewer F5yy) which addresses a “persistent weakness of T2I models” (Reviewer nwTk), the “novelty” of our “clever and highly targeted solution” for a “critical and long-standing flaw in regression-based counting critics” (Reviewer F5yy), D2D’s “well-designed mathematical formulation” (Reviewer F5yy), the “elegant” and “sound architecture” of the LMN (Reviewer F5yy), the “generalizability… on a number of backbones” (Reviewer 7UV7), “evaluat[ion] on multiple prompt sets” “over multiple seeds” using “both numeracy and image quality/alignment metrics” (Reviewer nwTk).
We provide a summary of our clarifications and additional experiments below, which we hope to incorporate into the final version.
Validation by human evaluation (Reviewer nwTk): We conducted additional human evaluation and multi-evaluator agreement studies, which confirm D2D’s performance boosts.
Additional implementation details (Reviewer 7UV7): Clarifications on differentiable detector path and loss behavior near early-stopping criterion provided.
High-density analysis (Reviewer nwTk): We include additional analysis showing that small object size and object categories that naturally appear in groups (e.g., cows, sheep) remain key challenges, and discuss possible mitigation strategies.
Latency clarification (Reviewers F5yy, 7UV7): We clarify that “computational overhead” refers to the additional inference time introduced beyond the base model's generation time. We discuss tradeoffs in post-enhancement methods and show D2D introduces substantially less overhead than existing count-correction methods.
Statistical significance (Reviewer nwTk): We update Table 18 to include standard deviations for the Vendi scores.
Additional baseline comparisons (Reviewer F5yy): Additional baseline (EnMMDiT) evaluations on CoCoCount and D2D-Multi subset.
D2D on larger base model (Reviewer nwTk, F5yy): Although FLUX-schnell is a strong baseline, D2D further boosts numeracy by +9.5 points.
Overlapping detections (Reviewers nwTk, F5yy, 7UV7): We add analysis showing that in high-density settings with more overlap, D2D reduces overlapping detections during optimization.
In addition, the manuscript includes:
We thank the Area Chair and reviewers for their thoughtful engagement with our work and grateful for the opportunity to address the concerns to further strengthen the paper.