potentialpaper

Constrained Code Generation with Diffusion Language Models

Update NeurIPS 2026 submission zoVQ8aHNUH: 16 notes

@openreview[bot] · 2026-11-24 16:03 UTC · 6dd79923c4d0 ·

Evidence

reviews/openreview/zovq8ahnuh/notes/1t8c0idng1.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/1t8c0idng1.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "1T8C0idng1",
+ "replyTo": "j5zlsIH6A3",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "[Part 2/2 (see below)]\n\n**4. Qualify the \"training-free\" and efficiency claims accordingly.**\n\nWe agree and will qualify both claims throughout. In both instantiations, the base diffusion generator remains frozen.\nGradGuide nevertheless requires a separately trained surrogate. We will therefore describe it as _inference-time guidance without base-generator fine-tuning_, rather than broadly characterizing it as _training-free_. MDFI, instead uses a non-learned analyzer and requires no auxiliary training, thus is indeed qualifies as training-free method. \n\nWe will similarly distinguish edit locality. generated-token cost, per-sample latency and memory, and success-normalized cost. Localized editing established that CDC rewrites substantially less code than whole-program regeneration, but does not by itself establish lower end-to-end computation. These claims will be clarified further in the paper."
+ },
+ "createdAt": "2026-07-28T19:39:50.332Z",
+ "modifiedAt": "2026-11-19T16:41:14.280Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=1T8C0idng1",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/5colrkos75.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/5colrkos75.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "5COlRkos75",
+ "replyTo": "CYpxhyMbzc",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you again for your constructive review. As the discussion period approaches its end, we would appreciate your feedback on whether our additional experimental results and analysis, including computational overhead, denoising steps, and analyzer design, address your main concerns. We would be happy to answer any remaining questions."
+ },
+ "createdAt": "2026-08-01T13:49:08.779Z",
+ "modifiedAt": "2026-11-19T16:41:13.872Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=5COlRkos75",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/9saejo7qg6.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/9saejo7qg6.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "9sAejo7qG6",
+ "replyTo": "xJk50QSMda",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "[Part 2/2 (see below)]\n\n### W4. Handling partial or invalid programs may remain fragile. The paper evaluates constraints on intermediate clean proposals during the denoising process. However, these intermediate programs are often syntactically incomplete or semantically non-executable.\n\nThis work evaluates MDFI across five programming languages in CWEval: C, C++, Go, JavaScript, and Python. GradGuide is additionally evaluated on two independently sourced C++ benchmarks, HumanEval-X and MBPP-C++. Together, these results provide evidence that the proposed intermediate-program mechanisms are not limited to a single benchmark, language, or parser. We agree, however, that substantially longer programs and multi-file or repository-level code introduce additional challenges, including incomplete cross-file context and longer-range dataflow dependencies. We will clarify that these settings remain outside the scope of the current evaluation.\n\n\n\n### Q2. What are the individual contributions of Mode A and Mode B?\n\nWe ablate the two correction modes on the same Dream-Coder-7B backbone, evaluation setting, and decoding configuration, holding the surrogate and gradient-based localization fixed and varying the correction operation: **Mode A** (localized KL-anchored gradient proposal correction), **Mode B** (constraint-triggered localized remasking), both, or neither.\n\n| Benchmark | Mode A | Mode B | pass@1 (%) | Δ (pp) vs. base |\n|---|:---:|:---:|:---:|---:|\n| HumanEval-X | ✗ | ✗ | 34.1 | — |\n| | ✓ | ✗ | 40.2 | +6.1 |\n| | ✗ | ✓ | 50.6 | +16.5 |\n| | ✓ | ✓ | **65.2** | **+31.1** |\n| MBPP-C++ | ✗ | ✗ | 27.7 | — |\n| | ✓ | ✗ | 35.5 | +7.8 |\n| | ✗ | ✓ | 47.9 | +20.2 |\n| | ✓ | ✓ | **59.2** | **+31.5** |\n\nEach mode produces a gain individually, and enabling both yields the largest improvement. On HumanEval-X / MBPP-C++, Mode A alone improves pass@1 by +6.1 / +7.8 pp, Mode B alone by +16.5 / +20.2 pp, and the full operator by +31.1 / +31.5 pp. Mode B is thus the larger single contributor and Mode A the smaller. The full operator (65.2% / 59.2%) also exceeds the sum of the two individual gains (56.7% / 55.7%) by +8.5 / +3.5 pp.\n\n\n\n### Q3. Is the static analyzer used in MDFI based on hand-crafted rules or a general-purpose analysis framework? \n\nThank you for raising this important question. The static-analysis pipeline used by MDFI combines existing semantic detection rules, referred to as declarative rules, from three general-purpose static analyzers: CodeQL, Semgrep, and Bandit. **We did not introduce any additional hand-crafted rules.** Its generality and scalability therefore derive from these established analyzers, and it can be further extended by incorporating rules from other general-purpose frameworks. We will clarify this in the revised paper.\n\n[1] Competition-Level Code Generation with AlphaCode.Science, vol. 378, 2022.\n[2] Dream 7B: Diffusion Large Language Models, 2025.\n[3] Dream-Coder 7B: An Open Diffusion Language Model for Code.” arXiv:2509.01142, 2025.\n[4] DiffuCoder: Understanding and Improving Masked Diffusion Models for Code Generation.” arXiv:2506.20639, 2025.\n[5] Singh, A., Fry, A., Perelman, A., et al. (2026). OpenAI GPT-5 System Card. arXiv preprint arXiv:2601.03267\n[6] CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-X.” ACM SIGKDD 2023.\n[7] Program Synthesis with Large Language Models. arXiv:2108.07732, 2021."
+ },
+ "createdAt": "2026-07-28T21:09:12.631Z",
+ "modifiedAt": "2026-11-19T16:41:14.107Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=9sAejo7qG6",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/9ss9wkvjpx.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/9ss9wkvjpx.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "9sS9WkVJpX",
+ "replyTo": "j5zlsIH6A3",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you for the careful and constructive meta-review. We are encouraged that the reviewers recognize the importance of constrained code generation, the motivation for intervening in intermediate diffusion states, the potential impact, and the strong empirical results. We agree that GradGuide and the end-to-end inference pipeline could be described more clearly. To strengthen our response, we conducted a new independent evaluation of the GradGuide surrogate and a complete end-to-end cost analysis for both CDC instantiations. We address all comments below.\n\n**1. Provide details and evaluation of the GradGuide surrogate, including training data, accuracy/calibration, and failure behavior when its scores or localization are incorrect.**\n\nThe surrogate is a Qwen2.5-Coder-1.5B with a frozen backbone, LoRA adapters on the final 12 of 28 layers, and a 4-layer MLP regression head on the last-token hidden state, trained with a soft-label BCE on **59K** execution-labeled programs with $y=\\mathbf{1}[\\text{compiles}]\\cdot(\\text{test-pass ratio})$, constructed from CodeContests problems. Candidates are generated by Dream, Dream-Coder, and DiffuCoder; GPT-5 is used only when these models fail to produce any correct solution for a problem. All labels are determined by executing them against the corresponding CodeContests tests. The one-time training cost is 1.8 GPU-hours with a single NVIDIA RTX PRO 6000 Blackwell GPU. \n\nEvaluated independently of CDC on frozen base-model candidates, GradGuide is accurate and well-calibrated: Spearman, AUPRC, and ECE scores are 0.848, 0.946, and 0.024, respectively on HumanEval-X and 0.837, 0.960, and 0.030, respectively on MBPP-C++; on held-out problem-disjoint CodeContests data they are 0.921, 0.995, and 0.030. Here, AUPRC and ECE evaluate prediction of complete execution success, while Spearman evaluate ranking by continuous test-pass ratio. \n\nWe additionally test failure behavior by replacing the trained surrogate with the *non-fine-tuned* backbone, whose Spearman correlations are only 0.056/0.117. Within the otherwise identical GradGuide pipeline, this inaccurate surrogate **decreases** pass@1 by 8.5 and 5.3 percentage points, whereas the trained surrogate **increases** it by 31.1 and 31.5 percentage points. \nThus, downstream performance tracks the independently measured surrogate quality rather than arising from the pipeline regardless of its feedback. \n\nWe also isolate localization and intervention quality. As reported in Appendix B.3.2, on HumanEval-X, random editing obtains 34.0%, essentially matching vanilla diffusion (34.1%); the ALM proposal correction alone obtains 40.2%, surrogate-localized adaptive editing alone obtains 50.6%, and their combination obtains 65.2%. Thus, an arbitrary intervention does not help in general: the gains require both informative localization and the proposed diffusion-time correction.\n\n**2. Clarify whether surrogate training is task-disjoint from HumanEval-X and MBPP and rule out data leakage or benchmark-specific verifier learning.**\n\nThe surrogate is trained exclusively on CodeContests, whereas GradGuide is evaluated on HumanEval-X and MBPP, which are not used for surrogate training or model selection. No evaluation prompt, program, unit test, or execution outcome enters surrogate training; labels are produced by executing candidates against CodeContests' own tests. \nBecause this separate dataset provenance alone does not exclude duplicate problems, we also performed overlap checks between CodeContests and both HumanEval-X and MBPP-C++. These checks confirmed that the surrogate-training problems are disjoint from both evaluation benchmarks.\nThe strong results reported above on the two unseen benchmark distributions (Spearman 0.848 and 0.837) provides additional evidence against benchmark-specific verifier learning. We will appropriately present this as evidence of cross-benchmark generalization.\n\n**3. Report or clarify the actual inference cost, including denoising steps, intervention frequency, latency, memory, and auxiliary-model/analyzer overhead.**\n\nAll measurements use the same number and type of GPUs,, numerical precision, and batch size. Both instantiations retain the same **256-step** base schedule as their vanilla baselines, so the gains do not come from extra reverse steps. GradGuide adds one surrogate forward-backward pass (48–53 ms) and it performs at least one intervention on 66–84% of samples. It incurs 1.72-2.01× mean latency and 1.41-1.47× median latency, with 53–61% additional peak memory. \n\nMDFI, which performs no gradient optimization, invokes a CPU analyzer at 7 checkpoints (46 ms total), adding only 2.3-6.1% latency and 2.6-4.2% peak memory, while improving successful-output throughput by 1.58-2.79×. The final version will report these scheduled checks, analyzer calls, latency, and memory in a separate table, so it will be easier to find and parse."
+ },
+ "createdAt": "2026-07-28T19:35:41.402Z",
+ "modifiedAt": "2026-11-19T16:41:14.349Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=9sS9WkVJpX",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/bqcqxh4zgu.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/bqcqxh4zgu.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "bQcQxh4zgU",
+ "replyTo": "xJk50QSMda",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you again for your thoughtful review. As the discussion period enters its final days, we would appreciate your feedback on whether our additional experimental results and analysis, including the surrogate evaluation and component ablations, address your main concerns. We would be happy to clarify any remaining points."
+ },
+ "createdAt": "2026-08-01T13:58:07.818Z",
+ "modifiedAt": "2026-11-19T16:41:13.811Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=bQcQxh4zgU",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/e9c7hnikkz.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/e9c7hnikkz.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "e9c7hniKKZ",
+ "replyTo": "HOjRMQh33d",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "[Part 2/3 (see below)]\n\n### W2/Q2. The surrogate training protocol raises a potential data leakage or task-specific supervision concern.\n\nWe thank the reviewer for raising this concern. The surrogate is trained exclusively on CodeContests [1], while GradGuide is evaluated on HumanEval-X [6] and MBPP-C++ [7]. No evaluation prompts, candidate programs, public or hidden tests, or execution outcomes are used during training; all labels come solely from executing candidates against CodeContests’ own tests. Because separate dataset provenance alone does not exclude duplicate tasks, we also performed duplicate-overlap checks between CodeContests and the evaluation benchmarks, confirming that the training problems are cleanly disjoint from both HumanEval-X and MBPP-C++. The surrogate further generalizes strongly to these unseen benchmarks, achieving Spearman (0.848/0.837), AUPRC (0.946/0.960), and ECE (0.024/0.030) on HumanEval-X/MBPP-C++. We will state this data-separation protocol explicitly in the revised manuscript.\n\n\n### W3. The \"training-free\" claim should be qualified.\n\nWe agree that this claim should be qualified. We will remove the broad “training-free” claim and clarify that CDC does not require training or modifying the base diffusion model. However, GradGuide requires one-time fine-tuning of an auxiliary surrogate, whereas MDFI requires no auxiliary model training.\n\n### W4/Q3 The computational cost and latency of the method are not fully characterized.\n\nWe agree this is important, and report here wall-clock latency (mean/p50/p95/max), peak GPU memory, the per-call cost and firing frequency of surrogate calls, the number and cost of analyzer calls, and cost under comparable success under matched backbone and decoding settings, with all times including the complete pipeline. The GradGuide measurements over all 164 HumanEval-X tasks are:\n\n| Backbone | Method | Total time | Mean / p50 / p95 / max (s) | ×vanilla | Peak GPU | Surrogate pass | Interv. freq |\n|---|---|---:|---:|---:|---:|---:|---:|\n| Dream-Coder-7B | Vanilla | 693 s | 4.23 / 4.26 / 4.62 / 5.38 | 1.00× | 15.1 GB | — | — |\n| | GradGuide | 1,310 s | 7.99 / 6.10 / 17.46 / 20.07 | 1.89× | 23.1 GB | 49.5 ms | 0.66 |\n| Dream-7B | Vanilla | 685 s | 4.18 / 4.21 / 4.57 / 5.34 | 1.00× | 14.7 GB | — | — |\n| | GradGuide | 1,181 s | 7.20 / 5.93 / 15.55 / 19.41 | 1.72× | 23.2 GB | 52.6 ms | 0.84 |\n| DiffuCoder-7B | Vanilla | 682 s | 4.16 / 4.19 / 4.54 / 5.32 | 1.00× | 14.7 GB | — | — |\n| | GradGuide | 1,372 s | 8.37 / 6.16 / 16.84 / 21.31 | 2.01× | 23.6 GB | 48.3 ms | 0.66 |\n\nA single surrogate pass costs ~48–53 ms, and over the full benchmark wall-clock rises from 682–693 s (vanilla) to 1,181–1,372 s (GradGuide). Per sample, mean latency is 1.72–2.01× vanilla against a median of only 1.41–1.47× (p95 up to 15.55–17.46 s). Here, intervention frequency denotes the percentage of samples that CDC intervenes in.\n\nFor cost under comparable success, the most informative comparison is with other test-time-compute methods, specifically Best-of-N and autoregressive re-prompting, which also use additional inference to improve quality. The table reports the pass@1 gain each method achieves over its own vanilla baseline:\n\n\n| Method | HumanEval-X Δpass@1(%) | MBPP-C++ Δpass@1(%) |\n|---|:---:|:---:|\n| Best-of-N(N=2) | +3.1 | +3.5 |\n| AR+Reprompt | +4.2 | +1.0 |\n| **CDC (Ours)** | **+31.1** | **+31.5** |\n\nCDC delivers roughly seven-to-nine times the improvement of the strongest baseline on each benchmark (+31.1 vs. +4.2 on HumanEval-X, +31.5 vs. +3.5 on MBPP-C++), so its 1.7–2.0× per-sample cost converts into gains that neither Best-of-N nor re-prompting approaches.\n\n**MDFI.**\n\n| Metric | CWEval (vanilla→MDFI) | LLMSecEval (vanilla→MDFI) |\n|---|---:|---:|\n| Mean latency | 12.98→13.28 s (+2.3%) | 10.12→10.73 s (+6.1%) |\n| p50 / p95 latency | 12.85→12.97 / 16.73→16.87 s | 9.62→11.00 / 11.82→12.72 s |\n| Total benchmark time | 23.4→23.9 min | 25.3→26.8 min |\n| Peak GPU | 64.2→66.9 GiB (+4.2%) | 30.4→31.2 GiB (+2.6%) |\n| Analyzer calls / CPU time | 7 / 46 ms (1 core) | 7 / 46 ms (1 core) |\n| func-sec@1(%) | 12.0→**34.3** | 14.7→**24.7** |\n| sec@1(%) | 18.5→**41.7** | 54.7→**80.7** |\n| Successful-output throughput (×vanilla) | **2.79×** | **1.58×** |\n\nMDFI adds only 2.3–6.1% latency and 2.6–4.2% peak memory, yet it reduces the expected wall-clock time per jointly functional-and-secure solution by 64.2% on CWEval and 36.9% on LLMSecEval, equivalently, 1.58–2.79× the successful-output throughput of vanilla generation. Under the throughput framing the reviewer requests, MDFI is therefore more efficient than vanilla diffusion, and markedly more cost-effective than AR re-prompting, attaining 86–95% of its joint success rate (34.3 vs. 39.8 on CWEval, 24.7 vs. 26.0 on LLMSecEval) at this small latency overhead, rather than the full second generation re-prompting requires. We will add these measurements to supplement the locality results for efficiency."
+ },
+ "createdAt": "2026-07-28T21:36:37.398Z",
+ "modifiedAt": "2026-11-19T16:41:14.103Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=e9c7hniKKZ",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/efin9qt2nq.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/efin9qt2nq.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "efin9Qt2NQ",
+ "replyTo": "HOjRMQh33d",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you again for your detailed feedback. As the discussion period enters its final days, we would appreciate your feedback on whether our additional experimental results and analysis, including surrogate validity, data separation, and inference cost, address your main concerns. We would be happy to clarify any remaining points."
+ },
+ "createdAt": "2026-08-01T13:52:10.530Z",
+ "modifiedAt": "2026-11-19T16:41:13.844Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=efin9Qt2NQ",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/eymwomkw60.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/eymwomkw60.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "EYMwOmKw60",
+ "replyTo": "CYpxhyMbzc",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "[Part 2/3 (see below)]\n\n### W3. The \"training-free\" claim is not completely true.\n\nWe agree that describing the entire framework as “training-free” is imprecise, as GradGuide does require fine-tuning an auxiliary surrogate. We will update the claim to state more accurately that CDC does not train, fine-tune, or modify the underlying diffusion model, while MDFI itself requires no learned auxiliary model.\n\n\n### W4. Unreported training and inference overhead for the Qwen surrogate.\n\nOur efficiency analysis has so far focused on inference because the surrogate is fine-tuned only once. We agree, however, that a complete accounting should include this one-time training cost. The surrogate is fine-tuned once on 59K execution-labeled programs drawn exclusively from CodeContests [2], a benchmark separate from the HumanEval-X and MBPP-C++ evaluation sets. The training data is fully disjoint from every evaluation task. This fine-tuning takes 1 h 46 min (≈1.8 GPU-hours) on a single NVIDIA RTX PRO 6000 Blackwell (96 GB, bf16), including model loading and per-epoch validation. We will add these measurements to the experimental section. The corresponding inference overhead, including latency, memory, per-surrogate-pass cost, and intervention frequency, is reported in our response to W1.\n\n\n\n### W5. Unclear notation and section organization. \n\nWe thank the reviewer for this feedback and agree that paper clarity can be improved. For eq 1, terms including $M$, $\\alpha$, and $\\mathrm{Cat}()$ are defined immediately following the equation (lines 125–127). Specifically, $\\mathrm{Cat}()$ is the categorical distribution, $M$ is the one-hot $[MASK]$ token, and $\\alpha$ is the decreasing noise schedule. \n\nIn regards to section ordering, section 5.1 first introduces the general CDC framework and the relevant components including the evaluator, localization map, correction operator, and constrained reverse update, while Section 5.2 then instantiates these components as GradGuide and MDFI. We agree that this relationship could be signposted more clearly. We will revise the transition and add an explicit indication at the beginning of Section 5 to clarify that Section 5.1 presents the unified framework and Section 5.2 provides its concrete functionality and security instantiations. \n\n\n\n### Q1. What could be the reason behind the lag in performance compared to CFG-CD on Syntactic validity?\n\nCDC achieves higher syntactic validity than CFG-CD [1] in five of the six evaluated settings; the only exception is Dream-7B on HumanEval-X C++. CFG-CD’s operates with a direct enforcement of grammar constraints, whereas CDC targets functional correctness and improves syntax only indirectly. Importantly, CDC delivers substantially larger and more consistent gains in functional correctness in all settings.\n\n\n### Q2. Why is a causal model (and not a bi-directional model) used in GradGuide for detection and localization? \n\nIn this work, we use a causal model for practicality, specifically, it lets us reuse a strong pretrained code language model rather than training a bidirectional scorer from scratch. Causal attention still gives the last-token score full context over the program, and gradients with respect to earlier positions provide a valid signal for localization. Indeed, a bidirectional variant is a reasonable alternative to be explored in future work."
+ },
+ "createdAt": "2026-07-28T21:56:59.116Z",
+ "modifiedAt": "2026-11-19T16:41:13.897Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=EYMwOmKw60",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/gn6j4yq5ow.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/gn6j4yq5ow.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "gN6j4yQ5Ow",
+ "replyTo": "CYpxhyMbzc",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "[Part 1/3]\n\nThank you for the thoughtful and constructive review. We appreciate the recognition of our significant gains over diffusion baselines and our method’s ability to improve security without sacrificing functional correctness. We address the reviewer’s questions below.\n\n### W1. Missing efficiency analysis in terms of runtime, throughput, and memory.\n\nWe thank the reviewer for raising this point, and we agree that our original edited-token statistics quantify correction *locality* rather than computational efficiency. \nTo measure efficiency directly, we now report end-to-end runtime, throughput, and memory under a matched backbone and decoding configuration for both vanilla generation and CDC. We present per-sample computational cost (latency and memory) and cost-effectiveness, defined as the successful outputs produced per unit of inference cost. We report both instantiations, GradGuide and MDFI, separately below. \n\n\n\n**GradGuide.**\n\n| Backbone | Method | Total time | Mean / p50 / p95 / max Time(s) | ×vanilla | Peak GPU | One surrogate pass | Interv. freq |\n|---|---|---:|---:|---:|---:|---:|---:|\n| Dream-Coder-7B | Vanilla | 693 s | 4.23 / 4.26 / 4.62 / 5.38 | 1.00× | 15.1 GB | — | — |\n| | GradGuide | 1,310 s | 7.99 / 6.10 / 17.46 / 20.07 | 1.89× | 23.1 GB | 49.5 ms (med 47.0) | 0.66 |\n| Dream-7B | Vanilla | 685 s | 4.18 / 4.21 / 4.57 / 5.34 | 1.00× | 14.7 GB | — | — |\n| | GradGuide | 1,181 s | 7.20 / 5.93 / 15.55 / 19.41 | 1.72× | 23.2 GB | 52.6 ms (med 48.5) | 0.84 |\n| DiffuCoder-7B | Vanilla | 682 s | 4.16 / 4.19 / 4.54 / 5.32 | 1.00× | 14.7 GB | — | — |\n| | GradGuide | 1,372 s | 8.37 / 6.16 / 16.84 / 21.31 | 2.01× | 23.6 GB | 48.3 ms (med 45.0) | 0.66 |\n\nOver the full HumanEval-X benchmark, wall-clock time rises from 682–693 s for vanilla generation to 1,181–1,372 s for GradGuide. On a per-sample basis this corresponds to a mean latency of 1.72–2.01× vanilla, but the median is only 1.41–1.47× and a single surrogate pass costs just 48–53 ms. This gap between the median and the mean, reinforced by the larger p95 values, which reach 15.55–17.46 s, shows that the added cost is not incurred uniformly by every sample, but is concentrated in the trajectories that require stronger or repeated correction. Alongside latency, peak memory rises by 53–61%.\n\nAt a comparable inference budget, the more informative question is how much improvement this compute delivers relative to the other test-time-compute methods, Best-of-N sampling and autoregressive re-prompting. The table reports the pass@1 gain each method adds over its own vanilla baseline:\n\n| Method | HumanEval-X Δpass@1(%) | MBPP-C++ Δpass@1(%) |\n|---|:---:|:---:|\n| Best-of-N | +3.1 | +3.5 |\n| AR+Reprompt | +4.2 | +1.0 |\n| **CDC (Ours)** | **+31.1** | **+31.5** |\n\nCDC delivers roughly seven-to-nine times the improvement of the strongest baseline on each benchmark (+31.1 vs. +4.2 on HumanEval-X, +31.5 vs. +3.5 on MBPP-C++), so its 1.7–2.0× per-sample cost converts into gains that neither Best-of-N nor re-prompting approaches.\n\n**MDFI.**\n\n| Metric | CWEval (vanilla→MDFI) | LLMSecEval (vanilla→MDFI) |\n|---|---:|---:|\n| Mean latency | 12.98→13.28 s (**+2.3%**) | 10.12→10.73 s (**+6.1%**) |\n| p50 / p95 latency | 12.85→12.97 / 16.73→16.87 s | 9.62→11.00 / 11.82→12.72 s |\n| Total benchmark time | 23.4→23.9 min | 25.3→26.8 min |\n| Peak GPU | 64.2→66.9 GiB (+4.2%) | 30.4→31.2 GiB (+2.6%) |\n| Analyzer calls / CPU time | 7 / 46 ms (1 core) | 7 / 46 ms (1 core) |\n| func-sec@1 | 12.0→**34.3%** | 14.7→**24.7%** |\n| sec@1 | 18.5→**41.7%** | 54.7→**80.7%** |\n| Successful-output throughput (×vanilla) | **2.79×** | **1.58×** |\n\nMDFI adds only 2.3–6.1% latency and 2.6–4.2% peak memory, yet it reduces the expected wall-clock time per jointly functional and secure solution by 64.2% on CWEval and 36.9% on LLMSecEval. Equivalently, it achieves 1.58–2.79× the successful-output throughput of vanilla generation. Under the throughput framing requested by the reviewer, MDFI is therefore strictly more efficient than vanilla diffusion and markedly more cost-effective than AR re-prompting. It attains 86–95% of the joint success rate of AR re-prompting (34.3 vs. 39.8 on CWEval and 24.7 vs. 26.0 on LLMSecEval) with only this small latency overhead, rather than requiring the full second generation needed for re-prompting.\n\n\nThese additional evaluations supplement the locality-only results with a direct account of runtime, throughput, and memory. These results show that CDC’s computational overhead is justified by substantially greater constraint-satisfaction gains and improved successful-output throughput.\n\n### W2. Missing denoising-step counts.\n\nWe thank the reviewer for highlighting this omission. CDC and all vanilla diffusion baselines use the same fixed base denoising schedule of 256 steps across all experiments. We will state this explicitly in the revised experimental setup."
+ },
+ "createdAt": "2026-07-28T21:46:09.130Z",
+ "modifiedAt": "2026-11-19T16:41:13.931Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=gN6j4yQ5Ow",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/hzak3ikw9k.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/hzak3ikw9k.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "hZak3iKW9k",
+ "replyTo": "xJk50QSMda",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "We appreciate the reviewer’s constructive feedback, particularly their recognition of the importance of the problem and the benefits of CDC’s targeted corrections during denoising. We respond to their questions below.\n\n### W1/Q1. The reliability of the surrogate model is the biggest concern.\n\nWe agree that surrogate reliability is important to GradGuide, and we now support it with an independent evaluation of the surrogate. The reviewer raises two specific concerns, which we address in turn: (1) whether the surrogate has learned a general notion of program correctness rather than dataset-specific heuristics, and (2) whether, when the surrogate is wrong, its gradient-based saliency steers generation toward incorrect regions and harms quality. To answer both, we evaluate the surrogate as a standalone predictor of execution outcome, before and after fine-tuning:\n\n*Vanilla backbone (Qwen2.5-Coder-1.5B, no fine-tuning):*\n\n| Dataset | MAE ↓ | MSE ↓ | Spearman $\\rho$ ↑ | AUPRC ↑ | ECE ↓ | Guidance Utility ↑ | Net $\\Delta$pass@1 |\n|---|---:|---:|---:|---:|---:|---:|---:|\n| HumanEval-X | 0.533 | 0.342 | 0.056 | 0.277 | 0.377 | N/A | −8.5 |\n| MBPP-C++ | 0.472 | 0.262 | 0.117 | 0.533 | 0.163 | N/A | −5.3 |\n| Held-out CodeContests | 0.254 | 0.086 | 0.581 | 0.827 | 0.092 | 0.723 | N/A |\n\n*Trained GradGuide surrogate:*\n\n| Dataset | MAE ↓ | MSE ↓ | Spearman $\\rho$ ↑ | AUPRC ↑ | ECE ↓ | Guidance Utility ↑ | Net $\\Delta$pass@1 |\n|---|---:|---:|---:|---:|---:|---:|---:|\n| HumanEval-X | **0.074** | **0.022** | **0.848** | **0.946** | **0.024** | N/A | **+31.1** |\n| MBPP-C++ | **0.111** | **0.051** | **0.837** | **0.960** | **0.030** | N/A | **+31.5** |\n| Held-out CodeContests | **0.042** | **0.010** | **0.921** | **0.995** | **0.030** | **0.933** | N/A |\n\n**(1) Cross-benchmark generalization.** The surrogate is trained only on CodeContests [1], yet it predicts execution outcomes accurately on independently generated HumanEval-X [6] and MBPP-C++ [7] programs, different task sources and distributions, with strong ranking and calibration (Spearman 0.848/0.837, AUPRC 0.946/0.960, ECE 0.024/0.030). On held-out CodeContests it reaches Spearman 0.921 / AUPRC 0.995 with Guidance Utility 0.933 where it ranks the better-executing program higher in 93.3% of same-problem, unequal-outcome pairs. This cross-benchmark transfer indicates that the surrogate captures a general notion of functional correctness rather than dataset-specific patterns. Two aspects of the training data reinforce this generality: the labels are ground-truth execution outcomes, i.e. direct supervision on the property of interest; and the candidates come from three different diffusion generators: Dream [2], Dream-Coder [3], and DiffuCoder [4] across four denoising-step settings and four temperatures, plus programs generated from GPT-5 [5], rather than a single generator.\n\n**(2) Harm from inaccurate guidance.** We directly test this risk by replacing the trained surrogate with the unfine-tuned Qwen2.5-Coder-1.5B backbone in the otherwise identical GradGuide pipeline. This weak evaluator has poor ranking and calibration and decreases pass@1 by 8.5 points on HumanEval-X and 5.3 points on MBPP-C++. In contrast, the trained surrogate increases pass@1 by 31.1 and 31.5 points. This confirms that inaccurate surrogate gradients can harm generation and that the gains are not explained merely by adding an auxiliary model or additional computation. Rather, GradGuide depends on a reliable surrogate together with its gradient-based localization and mid-diffusion correction mechanism. We will add this standalone evaluation and weak-surrogate ablation to the revised manuscript.\n\n\n### W2. The \"training-free\" claim is somewhat misleading.\n\nWe agree with this distinction and will revise the terminology accordingly. We will no longer describe GradGuide as fully training-free, instead, we will state that it performs inference-time constraint intervention without updating the base diffusion model, while relying on a separately trained surrogate. We will also explicitly distinguish this from MDFI, which requires no auxiliary model training.\n\n\n### W3. The method introduces substantial system complexity.\n\nWe appreciate the reviewer raising this concern, and want to take the opportunity to clarify that CDC is a modular framework designed to accommodate different classes of constraint signals. The listed components are not all used in every setting: GradGuide uses a learned surrogate, gradient-based localization, and proposal optimization, whereas MDFI uses static analysis, prompt feedback, remasking, and mask insertion. Thus, the apparent complexity reflects two distinct operator instantiations rather than a single pipeline requiring every component. We will revise the presentation to make this modularity clearer."
+ },
+ "createdAt": "2026-07-28T21:07:52.877Z",
+ "modifiedAt": "2026-11-19T16:41:14.148Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=hZak3iKW9k",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/iwp7c8u0ae.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/iwp7c8u0ae.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "iWp7C8U0aE",
+ "replyTo": "HOjRMQh33d",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "[Part 1/3]\n\nWe thank the reviewer for their thoughtful comments and, in particular, for recognizing the importance of enforcing program-level constraints, and the substantial empirical improvements achieved by CDC. Below, we address the reviewer’s questions.\n\n### W1/Q1. The auxiliary surrogate model used by GradGuide is not described in enough detail to fully assess the main functional-correctness results.\n\n**Auxiliary surrogate model**: The surrogate is built on Qwen2.5-Coder-1.5B. We freeze the backbone and train only LoRA adapters inserted into the final 12 of its 28 decoder layers, together with a four-layer MLP head with dropout 0.1 on the last-token hidden state. Last-token pooling is deliberate because, in a causal decoder, the final position attends to the entire sequence, whereas mean pooling is dominated by the long fixed judge prefix. The input is a fixed unit-test judge prompt followed by the problem statement and candidate program, truncated to 2,048 tokens. Labels are execution-derived scores $y=\\mathbf{1}[\\text{compiles}]\\cdot(\\text{test-pass ratio})\\in[0,1]$ from real C++ execution, and we train the surrogate using soft-label BCE, providing a smooth correctness score suitable for gradient guidance.\n\n\n**Surrogate training and dataset**: The 59K training examples are built exclusively from CodeContests [1]: for each problem, candidates are generated by Dream [2], Dream-Coder [3], and DiffuCoder [4] across denoising steps $s\\in\\{32,64,128,256\\}$ and temperatures $T\\in\\{0,0.2,0.6,1.0\\}$, then compiled and unit-tested, and for problems where the diffusion models never produce a passing solution we add GPT-5 [5] candidates verified to compile and pass, ensuring positive coverage. Training uses AdamW (lr $2\\times10^{-5}$, cosine decay, 10% warmup), weight decay 0.01, effective batch size 16 (per-device 8 × grad-accum 2), bf16, and max length 2,048, for up to 5 epochs with per-epoch validation on a held-out problem split and best-validation-Pearson checkpoint selection (epoch 3); the one-time cost is ≈1.8 GPU-hours on a single NVIDIA RTX PRO 6000 Blackwell with the best checkpoint at obtained after 63 min.\n\nWe also evaluate the surrogate independently, both before and after fine-tuning. We report prediction error (MAE and MSE), ranking quality (Spearman $\\rho$), discrimination between fully correct and failing programs (AUPRC), calibration (ECE), and the resulting change in GradGuide pass@1. We additionally report Guidance Utility, which measures whether the surrogate selects the better candidate within a problem; this metric is available only on held-out CodeContests, where multiple candidates are available per problem.\n\n\n*Vanilla backbone (Qwen2.5-Coder-1.5B, no fine-tuning):*\n\n| Dataset | MAE ↓ | MSE ↓ | Spearman $\\rho$ ↑ | AUPRC ↑ | ECE ↓ | Guidance Utility ↑ | Net $\\Delta$pass@1 |\n|---|---:|---:|---:|---:|---:|---:|---:|\n| HumanEval-X | 0.533 | 0.342 | 0.056 | 0.277 | 0.377 | N/A | −8.5 |\n| MBPP-C++ | 0.472 | 0.262 | 0.117 | 0.533 | 0.163 | N/A | −5.3 |\n| Held-out CodeContests | 0.254 | 0.086 | 0.581 | 0.827 | 0.092 | 0.723 | N/A |\n\n*Trained GradGuide surrogate:*\n\n| Dataset | MAE ↓ | MSE ↓ | Spearman $\\rho$ ↑ | AUPRC ↑ | ECE ↓ | Guidance Utility ↑ | Net $\\Delta$pass@1 |\n|---|---:|---:|---:|---:|---:|---:|---:|\n| HumanEval-X | **0.074** | **0.022** | **0.848** | **0.946** | **0.024** | N/A | **+31.1** |\n| MBPP-C++ | **0.111** | **0.051** | **0.837** | **0.960** | **0.030** | N/A | **+31.5** |\n| Held-out CodeContests | **0.042** | **0.010** | **0.921** | **0.995** | **0.030** | **0.933** | N/A |\n\nThe backbone without fine-tuning performs poorly at ranking programs by execution quality (Spearman (0.056/0.117)) and is weakly calibrated (ECE (0.377/0.163)). In contrast, the trained surrogate is substantially more accurate, better ranked, and better calibrated on both HumanEval-X and MBPP-C++, despite being trained only on CodeContests.\n\n\nThis same comparison answers how much of the gain comes from the mechanism versus a strong verifier. The improvement is *not* explained by merely adding an auxiliary model or extra computation to denoising: placing the un-fine-tuned backbone in the identical GradGuide pipeline **decreases** pass@1 by 8.5 (HumanEval-X) and 5.3 (MBPP-C++), whereas the accurate, calibrated surrogate **increases** it by +31.1/+31.5. Downstream pass@1 therefore tracks the independently measured surrogate quality, because the method follows the surrogate's score and its gradient toward correct regions of program space. We will add the details, this standalone evaluation, and the analysis above to the revised paper."
+ },
+ "createdAt": "2026-07-28T21:33:15.753Z",
+ "modifiedAt": "2026-11-19T16:41:14.102Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=iWp7C8U0aE",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/j5zlsih6a3.json modified

+++ b/reviews/openreview/zovq8ahnuh/notes/j5zlsih6a3.json
@@ -5,11 +5,12 @@
"kind": "meta_review",
"invitation": "Meta_Review",
"signature": "Area Chair BLnY",
"content": {
- "metareview": "This paper proposes Constrained Diffusion for Code (CDC), an inference-time framework that uses intermediate program states in discrete diffusion to enforce functional and security constraints. CDC combines localized correction with either a learned surrogate (GradGuide) or static analysis (MDFI). Reviewers agree that the problem is important, the diffusion-based intervention point is well motivated, and the reported gains are promising.\n\nThe main concern is that the strongest functional-correctness results depend on the GradGuide surrogate, which is insufficiently characterized. It is unclear how accurately it predicts correctness, how robust CDC is when the surrogate is wrong, and how much of the gain comes from the surrogate rather than the proposed diffusion intervention. Relatedly, the paper should rule out benchmark-specific supervision or train/evaluation overlap in the surrogate data.\n\nThe paper also overstates two claims. First, “training-free” is only accurate with respect to the frozen base generator, since GradGuide requires auxiliary model training. Second, edit locality alone does not establish computational efficiency: the method incurs surrogate forward/backward passes, optimization, static-analysis calls, and additional denoising interventions.\n\nFor the rebuttal, consider prioritizing:\n\n1. Provide details and evaluation of the GradGuide surrogate, including training data, accuracy/calibration, and failure behavior when its scores or localization are incorrect.\n2. Clarify whether surrogate training is task-disjoint from HumanEval-X and MBPP and rule out data leakage or benchmark-specific verifier learning.\n3. Report or clarify the actual inference cost, including denoising steps, intervention frequency, latency, memory, and auxiliary-model/analyzer overhead.\n4. Qualify the “training-free” and efficiency claims accordingly.\n\nA convincing response on surrogate validity, data separation, and actual computational cost would significantly improve the case for acceptance."
+ "metareview": "This paper proposes Constrained Diffusion for Code (CDC), an inference-time framework that uses intermediate program states in discrete diffusion to enforce functional and security constraints. CDC combines localized correction with either a learned surrogate (GradGuide) or static analysis (MDFI). Reviewers agree that the problem is important, the diffusion-based intervention point is well motivated, and the reported gains are promising.\n\nThe main concern is that the strongest functional-correctness results depend on the GradGuide surrogate, which is insufficiently characterized. It is unclear how accurately it predicts correctness, how robust CDC is when the surrogate is wrong, and how much of the gain comes from the surrogate rather than the proposed diffusion intervention. Relatedly, the paper should rule out benchmark-specific supervision or train/evaluation overlap in the surrogate data.\n\nThe paper also overstates two claims. First, “training-free” is only accurate with respect to the frozen base generator, since GradGuide requires auxiliary model training. Second, edit locality alone does not establish computational efficiency: the method incurs surrogate forward/backward passes, optimization, static-analysis calls, and additional denoising interventions.\n\nFor the rebuttal, consider prioritizing:\n\n1. Provide details and evaluation of the GradGuide surrogate, including training data, accuracy/calibration, and failure behavior when its scores or localization are incorrect.\n2. Clarify whether surrogate training is task-disjoint from HumanEval-X and MBPP and rule out data leakage or benchmark-specific verifier learning.\n3. Report or clarify the actual inference cost, including denoising steps, intervention frequency, latency, memory, and auxiliary-model/analyzer overhead.\n4. Qualify the “training-free” and efficiency claims accordingly.\n\nA convincing response on surrogate validity, data separation, and actual computational cost would significantly improve the case for acceptance.",
+ "final_justification": "After the rebuttal, all reviewers are positive about the paper. The AC therefore recommends acceptance and encourages the authors to incorporate the additional clarifications and content provided during the rebuttal into the revised version."
},
"createdAt": "2026-07-16T18:46:15.492Z",
- "modifiedAt": "2026-11-18T15:21:31.649Z",
+ "modifiedAt": "2026-11-19T05:00:55.847Z",
"url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=j5zlsIH6A3",
"license": "CC-BY-4.0"
}

reviews/openreview/zovq8ahnuh/notes/os0nnuuime.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/os0nnuuime.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "OS0NNUUiME",
+ "replyTo": "j5zlsIH6A3",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "Thank you again for the thoughtful meta-review. We worked diligently during the rebuttal period to address every point raised and conducted several new experiments. We believe our responses and additional evidence directly address the key questions highlighted in the meta-review, including surrogate validity and failure behavior, data leakage, component ablations, actual system cost, and appropriate qualification of the training-free and efficiency claims. If any decision-relevant point remains unclear, we would be grateful for the opportunity to clarify it. As we have not yet received further feedback on these results, we hope this new evidence can be fully considered in the final assessment."
+ },
+ "createdAt": "2026-08-02T15:45:59.286Z",
+ "modifiedAt": "2026-11-19T16:41:13.815Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=OS0NNUUiME",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/pwi8dxsfys.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/pwi8dxsfys.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "Pwi8dxsfYs",
+ "replyTo": "HOjRMQh33d",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "[Part 3/3 (see below)]\n\n### W5/Q4. The functionality evaluation is somewhat narrow and mainly limited to C++ function-level benchmarks. \n\nWe selected HumanEval-X C++ and MBPP-C++ because they are standard benchmarks and because C++ presents a demanding setting in which generated programs must satisfy both complex language constraints and functional tests. GradGuide substantially improves both compilation and test-pass rates, indicating that its gains extend beyond superficial syntax correction to program semantics. Our multilingual CWEval results provide broader evidence for the CDC framework through MDFI, but evaluating GradGuide on additional languages and repository-level tasks remains important future work.\n\n\n\n### W6. The relation between the abstract CDC framework and the concrete operator implementations could be clearer.\n\nThank you for highlighting this point. Equation 9 presents the representative fixed-length proposal-correction case, while GradGuide and MDFI may also edit the current state through remasking or mask insertion before continuing under the remaining reverse schedule. These operations are described further in Appendices C and D, but we agree that their relation to the abstract framework—particularly sequence-length and position handling—should be made explicit in Section 5.1, and we will revise it accordingly."
+ },
+ "createdAt": "2026-07-28T21:37:49.845Z",
+ "modifiedAt": "2026-11-19T16:41:13.984Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=Pwi8dxsfYs",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/rbezlr8n53.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/rbezlr8n53.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "rBEZLr8N53",
+ "replyTo": "CYpxhyMbzc",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "[Part 3/3 (see below)]\n\n### Q3. Why use static analysis despite false positives, and which analyzer is used and why?\n\nWe use static analysis rather than a trained vulnerability detector because the available labeled benchmarks are too small to train a reliable multilingual detector without compromising evaluation independence. CWEval contains 108 prompts and LLMSecEval contains 150, resulting in only 258 examples distributed across multiple languages and CWE categories. Training on these benchmarks would therefore provide very few examples per category and introduce evaluation leakage.\n\n\nWe agree that static analyzers may produce false positives and therefore localize vulnerabilities conservatively. However, a trained model would face the same risk while also potentially missing true vulnerabilities. In MDFI, a false positive may trigger an unnecessary correction, primarily increasing generation overhead. In the revised paper, we will add a thorough empirical analysis of how analyzer false positives affect MDFI.\n\nOur analyzer combines complementary detection rules and intermediate representations derived from CodeQL, Semgrep, and Bandit. These tools provide broad, complementary vulnerability coverage. However, their standard pipelines are not designed for the masked and incomplete programs encountered during diffusion. We therefore develop a partial-program analysis layer that tolerates incomplete states, consolidates vulnerability findings, and maps detected witnesses to editable token regions—an important component of MDFI.\n\nOur partial-program analyzer provides stronger security guidance at much lower overhead than the off-the-shelf tools. We will clarify the analyzer design, tool selection, and these results in the revised manuscript.\n\n\n| Analyzer | sec@1 | fs@1 | Δfs vs. vanilla | Latency vs. vanilla |\n|---|---:|---:|---:|---:|\n| — (vanilla, no MDFI) | 54.7 | 14.7 | — | — |\n| Bandit | 62.7 | 17.3 | +2.6 | +36% |\n| Semgrep | 62.7 | 17.3 | +2.6 | +288% |\n| CodeQL | 54.7 | 14.7 | 0.0 | Timed out |\n| **Our partial-program analyzer** | **80.7** | **24.7** | **+10.0** | **+6.1%** |\n\n\n\n### Q4. What are “partially corrupted sequences” if inference begins with all output tokens masked?\n\nIn the context of this work, \"Partially corrupted\" refers to the intermediate denoising states $x_t$ for 0 < $t$ < $T$ along the trajectory, not the initial state $x_T$. At $t$ = $T$ the sequence is fully masked aside from the unmasked prefix which consists of the prompt. As the sample is denoised, tokens are progressively unmasked. Therefore intermediate states $x_t$ are a partial mix of masked and unmasked tokens. This is the \"partially corrupted\" sequence the denoiser operates on at each step (Eq. 2). We will add additional clarification in the updated manuscript version.\n\n\n\n### Q5. What does “reverse denoising” mean, how are constraints integrated, and is it related to remasking?\n\n“Reverse denoising process”is standard diffusion terminology referring to the reverse Markov chain (Eq. 2), which runs from (t=T) to (t=0) and reverses the forward corruption process in Eq. 1. It does not specifically refer to remasking; remasking is an optional constraint-aware intervention applied within this reverse process to mask selected tokens for further denoising.\n\n\n\n\n### Q6. How is localized sampling performed for correctness and security, and how does it reduce constraint violations?\n\nIn CDC, localization first identifies the token regions most responsible for a constraint violation, and corrections are then restricted primarily to those regions while the remaining tokens stay close to the base denoiser’s prediction.\nFor functional correctness, GradGuide uses gradients from the surrogate correctness score to identify high-saliency spans, then reduces the predicted violation through a KL-anchored update of the token distributions and selectively remasks those spans for regeneration. For security, MDFI uses static-analysis witnesses to identify vulnerable AST or dataflow regions, then remasks or inserts mask tokens at those locations and injects remediation feedback so that subsequent denoising revises the affected code. These mechanisms are described in detail in Section 5.2; we will expand Line 50 and add an explicit pointer to that section.\n\n### Q7. Equation 17 - What is the anchor function and what value of K is used for insertion?\n\nThe anchor function selects a syntactically valid insertion point near the vulnerability identified by the partial code-property-graph analysis. This provides an appropriate location for the model to generate the missing corrective code. We use (K=12) inserted mask tokens in all experiments (Line 845) and ablate this choice in Appendix B.3.2, Figure 8(a).\n\n\n[1] Niels Mundler, Jasper Dekoninck, and Martin Vechev. Constrained decoding of diffusion llms with context-free grammars, 2025\n[2] Competition-Level Code Generation with AlphaCode.Science, vol. 378, 2022."
+ },
+ "createdAt": "2026-07-28T21:59:23.737Z",
+ "modifiedAt": "2026-11-19T16:41:13.895Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=rBEZLr8N53",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/zovq8ahnuh/notes/srkqed0uie.json added

+++ b/reviews/openreview/zovq8ahnuh/notes/srkqed0uie.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "SrKqED0uiE",
+ "replyTo": "hZak3iKW9k",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer mDEw",
+ "content": {
+ "comment": "I really appreciate your response. Your answer addressed my concern very well, so I’ve decided to raise my rating from 3 to 4."
+ },
+ "createdAt": "2026-08-03T16:46:25.268Z",
+ "modifiedAt": "2026-11-19T16:41:13.770Z",
+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH&noteId=SrKqED0uiE",
+ "license": "CC-BY-4.0"
+}