Constrained Code Generation with Diffusion Language Models
Import NeurIPS 2026 submission zoVQ8aHNUH: 5 notes
@openreview[bot] · 2026-11-22 18:00 UTC · e812f7a4d6f0
.gitattributes added
+++ b/.gitattributes@@ -0,0 +1,10 @@+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text+/thumbnail.png filter=lfs diff=lfs merge=lfs -text+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text
.potentialpaper/metadata.json added
+++ b/.potentialpaper/metadata.json@@ -0,0 +1,25 @@+{+ "layout": 5,+ "identifiers": [+ {+ "scheme": "openreview",+ "value": "zoVQ8aHNUH"+ }+ ],+ "title": "Constrained Code Generation with Diffusion Language Models",+ "authors": [+ "Lize Shao",+ "Michael Cardei",+ "Zichen Xie",+ "Ferdinando Fioretto",+ "Wenxi Wang"+ ],+ "abstract": "Diffusion language models (DLMs) are a powerful, emerging paradigm for code generation. They construct programs through iterative refinement of partially corrupted token sequences and enable parallel token refinement. Importantly, this paradigm exposes a global program state at each denoising step, which provides a natural intervention point for enforcing program-level functionality and security constraints, guiding the generation before the final code is committed. Building on this observation, the paper introduces Constrained Diffusion for Code(CDC), an inference-time neurosymbolic framework that integrates constraint satisfaction directly into the reverse denoising process without retraining the base diffusion model. CDC augments the base diffusion sampler with constraint-aware denoising operators that combine mathematical optimization with program analysis to identify constraint-relevant regions of the intermediate program state and locally adjust the denoising trajectory, steering generation toward feasible programs while remaining close to the base model. Across code generation benchmarks, CDC consistently improves constraint satisfaction in functional correctness, security, and even syntax, outperforming diffusion and autoregressive baselines with less corrective computation and more localized edits.",+ "year": 2026,+ "venue": "NeurIPS 2026",+ "source": "openreview",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}
community/10-tl-dr.md added
+++ b/community/10-tl-dr.md
community/20-summary.md added
+++ b/community/20-summary.md
community/30-why-it-matters.md added
+++ b/community/30-why-it-matters.md
community/40-critique.md added
+++ b/community/40-critique.md
community/50-errata.md added
+++ b/community/50-errata.md
community/60-reproductions.md added
+++ b/community/60-reproductions.md
community/70-follow-ups.md added
+++ b/community/70-follow-ups.md
owners/10-tl-dr.md added
+++ b/owners/10-tl-dr.md
owners/20-overview.md added
+++ b/owners/20-overview.md
owners/30-results.md added
+++ b/owners/30-results.md
owners/40-demos.md added
+++ b/owners/40-demos.md
owners/50-code-and-data.md added
+++ b/owners/50-code-and-data.md
owners/60-talks.md added
+++ b/owners/60-talks.md
prek.toml added
+++ b/prek.toml@@ -0,0 +1,36 @@+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.+# The site checks every push again; these catch mistakes before you commit. The same on every page.++[[repos]]+repo = "builtin"+hooks = [+ { id = "check-json" },+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },+ { id = "end-of-file-fixer", exclude = '^demos/' },+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },+ { id = "check-case-conflict" },+ { id = "check-illegal-windows-names" },+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },+]++# Each JSON file against its schema (https://papers.potentialhedge.com/schemas/).+[[repos]]+repo = "https://github.com/python-jsonschema/check-jsonschema"+rev = "0.39.0"+hooks = [+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/authorPlugins.json"] },+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/venue.json"] },+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/topic.json"] },+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/org.json"] },+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/link.json"] },+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/version.json"] },+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/thumbnail.json"] },+]++# Sections formatted the way the web editor formats them.+[[repos]]+repo = "https://github.com/rbubley/mirrors-prettier"+rev = "v3.9.9"+hooks = [+ { id = "prettier", files = '^(owners|community)/.*\.md$' },+]
reviews/openreview/zovq8ahnuh/forms.json added
+++ b/reviews/openreview/zovq8ahnuh/forms.json@@ -0,0 +1,227 @@+{+ "schema": "forms/1",+ "forms": {+ "Meta_Review": {+ "label": "Meta-review",+ "fields": [+ {+ "key": "metareview",+ "label": "Meta-review",+ "type": "text"+ }+ ]+ },+ "Decision": {+ "label": "Decision",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "hidden": true+ },+ {+ "key": "decision",+ "label": "Decision",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ },+ {+ "key": "metareview",+ "label": "Meta-review",+ "type": "text"+ },+ {+ "key": "final_justification",+ "label": "Final justification",+ "type": "text"+ }+ ]+ },+ "Official_Comment": {+ "label": "Comment",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Public_Comment": {+ "label": "Public comment",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Withdrawal": {+ "label": "Withdrawal",+ "fields": [+ {+ "key": "withdrawal_confirmation",+ "label": "Confirmation",+ "hidden": true+ }+ ]+ },+ "Desk_Rejection": {+ "label": "Desk rejection",+ "fields": [+ {+ "key": "desk_reject_comments",+ "label": "Reason",+ "type": "text"+ }+ ]+ },+ "Official_Review": {+ "label": "Official review",+ "summary": [+ "rating",+ "confidence",+ "quality",+ "clarity",+ "significance",+ "originality"+ ],+ "fields": [+ {+ "key": "rating",+ "label": "Rating",+ "type": "score",+ "min": 1,+ "max": 6+ },+ {+ "key": "confidence",+ "label": "Confidence",+ "type": "score",+ "min": 1,+ "max": 5+ },+ {+ "key": "quality",+ "label": "Quality",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "clarity",+ "label": "Clarity",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "significance",+ "label": "Significance",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "originality",+ "label": "Originality",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "contribution_type",+ "label": "Contribution type",+ "type": "choice"+ },+ {+ "key": "summary",+ "label": "Summary",+ "type": "text"+ },+ {+ "key": "strengths_and_weaknesses",+ "label": "Strengths and weaknesses",+ "type": "text"+ },+ {+ "key": "questions",+ "label": "Questions",+ "type": "text"+ },+ {+ "key": "limitations",+ "label": "Limitations",+ "type": "text"+ },+ {+ "key": "final_justification",+ "label": "Final justification",+ "type": "text"+ },+ {+ "key": "paper_formatting_concerns",+ "label": "Formatting concerns",+ "type": "text"+ },+ {+ "key": "ethical_concerns",+ "label": "Ethical concerns",+ "type": "choice"+ },+ {+ "key": "code_of_conduct_acknowledgement",+ "label": "Code of conduct",+ "hidden": true+ },+ {+ "key": "responsible_reviewing_acknowledgement",+ "label": "Responsible reviewing",+ "hidden": true+ }+ ]+ },+ "Rebuttal": {+ "label": "Rebuttal",+ "fields": [+ {+ "key": "rebuttal",+ "label": "Rebuttal",+ "type": "text"+ }+ ]+ },+ "Ethics_Review": {+ "label": "Ethics review",+ "fields": [+ {+ "key": "scope_of_ethics_concerns",+ "label": "Scope",+ "type": "choice"+ },+ {+ "key": "ethics_review",+ "label": "Ethics review",+ "type": "text"+ }+ ]+ }+ },+ "url": "https://openreview.net/group?id=NeurIPS.cc%2F2026%2FConference",+ "license": "CC-BY-4.0"+}
reviews/openreview/zovq8ahnuh/notes/cypxhymbzc.json added
+++ b/reviews/openreview/zovq8ahnuh/notes/cypxhymbzc.json@@ -0,0 +1,32 @@+{+ "schema": "review/1",+ "id": "CYpxhyMbzc",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer onM7",+ "content": {+ "summary": "The paper proposes constraint-based denoising during inference through a novel framework, Constrained Diffusion for Code (CDC). CDC decodes and evaluates code against program-level constraints, then localises feedback to relevant regions of code, ensuring that only necessary parts of the program are modified. This approach reduces the number of tokens that need to be changed. CDC accommodates both soft feedback (GradGuide for functional correctness) and hard feedback (MDFI for security). After identifying states requiring modification, CDC applies constraint-aware correction by remasking, to reduce violations while maintaining proximity to the base denoiser, before proceeding to the next denoising step. The framework outperforms other diffusion methods and requires fewer token edits compared to reprompting in autoregressive models.",+ "contribution_type": "general",+ "strengths_and_weaknesses": "**Strengths**: \n1. Well motivated : The paper explains in detail why constraints are important and why post-hoc methods are insufficient.\n2. Well-described experimental setup : The experimental setup is clearly described.\n3. Significant gain in performance : The framework shows significant improvement in performance compared to other diffusion baselines and is competitive with AR baselines\n4. Security and Correctness : It shows improvements in security without compromising the functional correctness; providing solution to a very difficult problem.\n\n**Weaknesses**:\n1. Efficiency claims are questionable: Measuring efficiency by the number of edited tokens is questionable because it does not indicate the overhead caused by CDC in GradGuide and MDFI in terms of memory or time. Efficiency in this case should be measured through throughput and the overhead to the diffusion process.\n2. Number of denoising steps : The authors did not report the number of denoising steps required to achieve the gains in performance, and compared with the steps required in other diffusion models. They should report denoising steps clearly.\n3. The claim of \"training-free\" is not completely true: Although the authors claim this is a training-free method, they have trained a Qwen 1.5B model for GradGuide.\n4. Training and inference overhead : The overhead of training the Qwen model is also not considered. Similarly, the overhead from using a trained model for functional correctness detection and using static analysis tools have not been described. \n5. Lack of clarity : Some equations, like equation 1, need more description of terms like alpha, M, cat function, etc. The order in which some sections are described reduces clarity (eg, 5.2 after 5.1)",+ "quality": 3,+ "clarity": 2,+ "significance": 3,+ "originality": 3,+ "questions": "1. What could be the reason behind the lag in performance compared to CFG-CD on Syntactic validity?\n2. Why is a causal model (and not a bi-directional model) used in GradGuide for detection and localization? \n3. Why is a trained model not used for security vulnerability detection, given the false positives in security analyzers? Which security analysis tool has been used in the paper and why was it chosen?\n4. Line 22 - \"íterative refinement of partially corrupted token sequences.\" What are partially corrupted sequences? All the tokens are masked during inference time; only the prompt is unmasked.\n5. Line 46 - \"Reverse denoising process.\" What do authors mean by \"reverse denoising\"? Usually, constraints are integrated into the denoising process. Is it related to remasking?\n6. Line 50 - How is localized sampling done? This part needs more explanation in both correctness and security. How is constraint violation reduced?\n7. Equation 17 - What is the anchor function and what value of K is used for insertion?",+ "limitations": "The limitations are not discussed by the authors. The overhead incurred by the training and inference of the Qwen model and the impact of false positives in security analyzers should be discussed in Limitations. The impact of using different static analysis tools and overhead from them should also be included.",+ "rating": 5,+ "confidence": 3,+ "ethical_concerns": [+ "NO or VERY MINOR ethics concerns only"+ ],+ "paper_formatting_concerns": "None.",+ "code_of_conduct_acknowledgement": "Yes",+ "responsible_reviewing_acknowledgement": "Yes",+ "final_justification": "I thank the authors for detailed clarifications and additional results. The authors address some of the major concerns during the rebuttal. They provide memory and throughput comparison, although their method adds memory overhead and latency but the performance gains are significant. Also, they provide comparison with autoregressive models at a comparable inference budget and the gains are significant. I would appreciate if a similar comparison is provided with the diffusion baseline at a comparable inference budget. \n\nI also appreciate the details about the program-analyser. \nI increase my score from 4 to 5."+ },+ "createdAt": "2026-06-26T11:45:00.846Z",+ "modifiedAt": "2026-11-18T13:39:35.900Z",+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH¬eId=CYpxhyMbzc",+ "license": "CC-BY-4.0"+}
reviews/openreview/zovq8ahnuh/notes/hojrmqh33d.json added
+++ b/reviews/openreview/zovq8ahnuh/notes/hojrmqh33d.json@@ -0,0 +1,32 @@+{+ "schema": "review/1",+ "id": "HOjRMQh33d",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer Bw1D",+ "content": {+ "summary": "This paper proposes Constrained Diffusion for Code (CDC), an inference-time framework for steering discrete diffusion code models toward outputs that satisfy program-level constraints. The key observation is that discrete diffusion models expose intermediate full-program denoising states, which can be inspected and modified before the final code is produced. CDC uses this property to decode intermediate clean-state proposals, evaluate them against constraints, localize likely violation-relevant regions, and apply targeted corrections during the reverse denoising process. Then, the paper instantiates CDC with two operators. GradGuide targets functional correctness by using an auxiliary surrogate model trained from execution-driven labels to provide soft correctness signals and gradient-based localization. MDFI targets security constraints by using static-analysis feedback to identify vulnerable code regions and then applying localized remasking, mask insertion, and feedback injection. The paper evaluates these methods on HumanEval-X C++, MBPP-C++, CWEval, and LLMSecEval, reporting improvements over vanilla diffusion decoding, grammar-constrained diffusion decoding, security prompting, and some autoregressive baselines. The paper also reports edit-locality statistics to support the claim that CDC performs more focused corrections than whole-program re-generation.",+ "contribution_type": "general",+ "strengths_and_weaknesses": "The paper studies an important problem: generated code should satisfy global functional and security constraints, not merely local token-level plausibility. The motivation for using discrete diffusion models is reasonable, since their intermediate states provide a natural opportunity for constraint-guided intervention before generation is complete. I also appreciate that the paper considers both functional correctness and security, rather than only syntax or grammar constraints. The reported improvements are substantial in several settings, especially on HumanEval-X C++ and MBPP-C++ for functional correctness, and on CWEval/LLMSecEval for security-aware generation. The comparison with grammar-constrained diffusion is useful, as it shows that syntax-level constraints alone are insufficient for improving functional correctness.\n\nHowever, I have several important concerns about the current version.\n\n**1. The auxiliary surrogate model used by GradGuide is not described in enough detail to fully assess the main functional-correctness results.** \nA central concern is that GradGuide relies on an auxiliary surrogate trained ahead of time with execution-driven labels, such as test-pass outcomes. The appendix gives some high-level information about this surrogate, but several details remain unclear, including how the training examples are constructed, what labels are used, what objective and hyperparameters are used for training, how large the training set is, and how well the surrogate itself performs. Since GradGuide appears to be responsible for the strongest functional-correctness gains, these details are important for assessing reproducibility and validity. Without a clearer description and evaluation of the surrogate, it is difficult to know how much of the improvement comes from the proposed mid-diffusion intervention mechanism versus from a strong learned verifier.\n\n**2. The surrogate training protocol raises a potential data leakage or task-specific supervision concern.** \nBecause the surrogate is trained from execution outcomes, the paper should clearly explain whether its training data is disjoint from the evaluation tasks. If the surrogate is trained on candidate programs, prompts, or test outcomes from the same HumanEval-X/MBPP tasks used for evaluation, then the reported gains may partly reflect benchmark-specific verifier learning rather than a general mid-diffusion constraint mechanism. The paper should clarify whether public or hidden evaluation tests are used to generate labels, whether the split is performed at the task level rather than the sample level, and whether the surrogate generalizes to unseen tasks or benchmarks. A task-disjoint or cross-benchmark evaluation would be important to rule out this concern.\n\n**3. The \"training-free\" claim should be qualified.** \nThe method appears to be training-free with respect to the base diffusion generator, since the diffusion model parameters are kept fixed. However, the GradGuide instantiation still relies on an auxiliary surrogate trained from execution feedback. This distinction matters because the surrogate introduces additional training data, training cost, and generalization concerns. The paper should state more explicitly that CDC is training-free only with respect to the base generator, not necessarily with respect to the full system.\n\n**4. The computational cost and latency of the method are not fully characterized.** \nThe paper reports edited/generated token counts and emphasizes that CDC performs more localized corrections than autoregressive re-prompting. However, GradGuide requires surrogate forward/backward passes and possibly optimization during denoising, while MDFI invokes static analysis at denoising checkpoints. These costs may be substantial and are not captured by token-count metrics alone. The paper should report wall-clock latency, GPU/CPU overhead, number of surrogate calls, number of analyzer calls, and end-to-end compute under comparable success targets. Fewer edited or generated tokens do not necessarily imply lower inference cost when gradient-based guidance and static-analysis interventions are added.\n\n**5. The functionality evaluation is somewhat narrow and mainly limited to C++ function-level benchmarks.** \nThe main functional-correctness experiments are conducted on HumanEval-X C++ and MBPP-C++, both of which are relatively small function-level synthesis benchmarks. Since CDC is presented as a general constrained code generation framework, it would be useful to evaluate GradGuide on additional languages such as Python, Java, JavaScript, or Rust, and ideally on longer or more realistic code-generation tasks. This is especially important because the surrogate-guided mechanism may be language- and benchmark-specific. The current results support the usefulness of CDC for benchmark-style C++ function generation, but they do not yet fully establish the generality of the framework.\n\n**6. The relation between the abstract CDC framework and the concrete operator implementations could be clearer.** \nSection 5.1 presents a representative fixed-length reverse diffusion transition in which non-mask tokens are preserved and the correction is expressed through a corrected clean-token proposal. In the concrete operators, however, GradGuide may reopen already committed tokens by remasking them, and MDFI can also insert fresh mask tokens. The appendix provides additional details about these modes, but the main framework would be easier to follow if it explained more explicitly how such state-editing operations fit into the formal CDC formulation, especially with respect to fixed sequence length, position handling, and the reverse diffusion schedule.\n\nOverall, the idea of this paper is interesting and potentially valuable. However, the current paper leaves key questions unanswered about the surrogate model, the training/evaluation protocol, and the computational cost. Since GradGuide appears central to the strongest functional-correctness results, these issues directly affect the validity and reproducibility of the main empirical claims.",+ "quality": 2,+ "clarity": 2,+ "significance": 3,+ "originality": 3,+ "questions": "1. **Could the authors provide more details about the GradGuide surrogate?** \nThe surrogate model is an important component of the functional-correctness results, so it would be helpful to know more about its input representation, training objective, execution labels, training data size, and training procedure. These details would make the method easier to reproduce and would also help readers understand how much of the improvement comes from the mid-diffusion guidance mechanism versus the learned surrogate itself.\n\n2. **Could the authors clarify the data split used for surrogate training?** \nSince the surrogate is trained using execution-derived labels, it would be useful to know whether its training data is task-disjoint from the HumanEval-X/MBPP evaluation tasks. In particular, are candidate programs or execution outcomes from the same benchmark tasks used during surrogate training? Are public tests, hidden tests, or generated tests used to produce labels? Clarifying whether the split is task-level rather than only sample-level would help rule out benchmark-specific verifier learning.\n\n3. **Could the authors include a more complete inference-cost analysis?** \nThe edited-token statistics are useful for supporting the locality claim, but they do not fully capture the cost of surrogate forward/backward passes, static-analysis calls, and denoising-time interventions. It would be helpful to report wall-clock latency, GPU/CPU overhead, the number of surrogate/analyzer calls, and cost under comparable success rates, so that readers can better assess the efficiency tradeoff relative to reprompting or repair-based baselines.\n\n4. **Could the authors discuss or evaluate how well GradGuide generalizes beyond C++ function-level benchmarks?** \nThe current functional-correctness experiments are mainly on HumanEval-X C++ and MBPP-C++. Since the surrogate-guided mechanism may be language- or benchmark-dependent, additional results on another language, a cross-benchmark setting, or longer code-generation tasks would strengthen the generality claim. If such experiments are not feasible, a discussion of the expected language dependence of the surrogate would still be valuable.",+ "limitations": "The authors include a limitations section, but several important caveats deserve more explicit discussion. First, GradGuide depends on an auxiliary surrogate trained from execution-derived labels, so its data requirements, task split, possible benchmark-specific supervision, and cross-task/language generalization are central limitations of the current method. Second, the reported edit-locality metrics do not fully characterize inference overhead, since GradGuide requires surrogate forward/backward passes and MDFI invokes static analysis during denoising. Finally, the evaluation is mostly on short function-level benchmarks and analyzer-supported security constraints, so the paper should more explicitly acknowledge that the conclusions may not directly extend to longer programs, repository-level settings, or constraints without reliable localized feedback.",+ "rating": 5,+ "confidence": 3,+ "ethical_concerns": [+ "NO or VERY MINOR ethics concerns only"+ ],+ "paper_formatting_concerns": "No",+ "code_of_conduct_acknowledgement": "Yes",+ "responsible_reviewing_acknowledgement": "Yes",+ "final_justification": "Thank you for the detailed clarifications and additional experiments. I am satisfied that my main concerns have been adequately addressed, and I increased my score from 4 to 5."+ },+ "createdAt": "2026-06-26T11:05:48.058Z",+ "modifiedAt": "2026-11-18T13:39:37.385Z",+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH¬eId=HOjRMQh33d",+ "license": "CC-BY-4.0"+}
reviews/openreview/zovq8ahnuh/notes/j5zlsih6a3.json added
+++ b/reviews/openreview/zovq8ahnuh/notes/j5zlsih6a3.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "j5zlsIH6A3",+ "replyTo": null,+ "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."+ },+ "createdAt": "2026-07-16T18:46:15.492Z",+ "modifiedAt": "2026-11-18T15:21:31.649Z",+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH¬eId=j5zlsIH6A3",+ "license": "CC-BY-4.0"+}
reviews/openreview/zovq8ahnuh/notes/nx5z96obz1.json added
+++ b/reviews/openreview/zovq8ahnuh/notes/nx5z96obz1.json@@ -0,0 +1,19 @@+{+ "schema": "review/1",+ "id": "nX5z96oBZ1",+ "replyTo": null,+ "kind": "decision",+ "invitation": "Decision",+ "signature": "Program Chairs",+ "content": {+ "title": "Paper Decision",+ "decision": "Accept (poster)",+ "comment": "",+ "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-09-24T11:20:55.215Z",+ "modifiedAt": "2026-11-18T14:55:12.094Z",+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH¬eId=nX5z96oBZ1",+ "license": "CC-BY-4.0"+}
reviews/openreview/zovq8ahnuh/notes/xjk50qsmda.json added
+++ b/reviews/openreview/zovq8ahnuh/notes/xjk50qsmda.json@@ -0,0 +1,32 @@+{+ "schema": "review/1",+ "id": "xJk50QSMda",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer mDEw",+ "content": {+ "summary": "This paper proposes **CDC: Constrained Diffusion for Code**, aiming to incorporate constraint feedback into the reverse denoising process of discrete diffusion-based code generation models, thereby improving the generated code's **functional correctness, syntactic validity, and security compliance**.\n\nThe core mechanism works as follows: at each denoising step, the base diffusion denoiser first predicts a clean-state proposal, denoted as $x_0^{(t)}$. CDC then decodes this proposal into an intermediate program, evaluates it using constraint checkers to identify violations, and localizes the corresponding problematic token regions $S_t$. Next, a **constraint-aware correction operator** produces a corrected proposal $y_t$. Finally, a **constrained reverse kernel** is applied to update the noisy state from $x_t$ to $x_{t-1}$.\n\nThe paper instantiates two main correction operators:\n\n1. **GradGuide**: Designed for functional correctness and syntactic validity. It trains a surrogate model $g_\\phi$ using execution-derived labels to predict a program correctness score. The surrogate gradient is then used to identify high-saliency tokens, followed by **KL-anchored proposal correction** and **constraint-triggered remasking**.\n2. **MDFI**: Designed for security constraints. It employs static program analysis to construct a partial program graph, detects data-flow and structural vulnerability witnesses, and performs **localized remasking**, **mask insertion**, and **feedback buffer injection** on suspicious regions.",+ "contribution_type": "general",+ "strengths_and_weaknesses": "### Strengths:\n\n**1. The problem setting is valuable.**\n\nFunctional correctness and security constraints are critical in code generation. Compared to post-generation repair approaches, the paper proposes intervening directly within the diffusion denoising trajectory, which is a well-motivated perspective. Intermediate states in discrete diffusion naturally provide a global program draft that is more suitable for program-level constraint checking than autoregressive generation.\n\n**2. The overall framework is well-structured.**\n\nCDC decomposes the process into several stages: clean proposal generation, constraint evaluation, violation localization, proposal correction, and constrained reverse updating. This abstraction is clean and provides a unified framework for incorporating different types of feedback sources, including both GradGuide and MDFI.\n\n**3. The idea of localized correction is well justified.**\n\nRather than performing whole-program rewrites, the method first identifies problematic regions $S_t$ and then applies localized corrections. The use of KL anchoring helps preserve proximity to the original denoiser's prediction, reducing unnecessary modifications and maintaining generation stability.\n\n### Weaknesses:\n\n**1. The reliability of the surrogate model is the biggest concern.**\n\nGradGuide relies on an auxiliary model ($g_\\phi$) to predict a program correctness score. This surrogate is trained on CodeContest-derived C++ execution labels and is then used to guide generation on benchmarks such as HumanEval-X and MBPP. The paper should provide stronger evidence that:\n\n- The surrogate has learned a notion of **general program correctness**, rather than merely capturing dataset-specific heuristics.\n- When the surrogate is wrong, its gradient-based saliency signals may steer the model toward incorrect regions, potentially harming generation quality.\n\n**2. The \"training-free\" claim is somewhat misleading.**\n\nIt is true that CDC does not update the diffusion model parameters ($\\theta$). However, GradGuide requires pretraining the surrogate model ($g_\\phi$). Therefore, strictly speaking, the functional-correctness operator is not completely training-free. A more precise characterization would be that CDC is **training-free with respect to the base diffusion model** or that it performs **inference-time intervention without updating ($\\theta$)**. The paper should more carefully distinguish between the genuinely training-free nature of MDFI and the surrogate-trained nature of GradGuide.\n\n**3. The method introduces substantial system complexity.**\n\nAlthough the CDC framework is conceptually clear, the actual system includes numerous components, such as surrogate training, gradient-based localization, inner-loop ALM optimization, remasking budgets, checkpoint schedules, static analysis, prompt buffers, and mask insertion mechanisms. Stronger ablation studies are needed to justify the necessity of each component. Otherwise, reviewers may question whether the reported gains primarily stem from extensive task-specific engineering rather than the core methodological contribution.\n\n**4. Handling partial or invalid programs may remain fragile.**\n\nThe paper evaluates constraints on intermediate clean proposals during the denoising process. However, these intermediate programs are often syntactically incomplete or semantically non-executable. GradGuide mitigates this issue through surrogate evaluation, while MDFI constructs partial program graphs using placeholder-based parsing. Nevertheless, it remains unclear whether these mechanisms are robust when applied to more complex programming languages, longer programs, or multi-file codebases.",+ "quality": 3,+ "clarity": 3,+ "significance": 3,+ "originality": 3,+ "questions": "1. If the surrogate score is inconsistent with the true execution outcome, could CDC's correction mechanism significantly degrade performance? Does the paper provide any surrogate calibration or error analysis to evaluate this issue?\n2. How much of CDC's performance improvement comes from the localized gradient-based proposal update, and how much comes from the constraint-triggered remasking mechanism? An ablation study isolating Mode A and Mode B is crucial for understanding their individual contributions.\n3. Is the static analyzer used in MDFI based on hand-crafted rules or a general-purpose analysis framework? Do different CWE categories require different sets of rules? If the analyzer relies heavily on hand-crafted rules, the generality and scalability of the proposed method may be significantly reduced.",+ "limitations": "yes",+ "rating": 4,+ "confidence": 4,+ "ethical_concerns": [+ "NO or VERY MINOR ethics concerns only"+ ],+ "paper_formatting_concerns": "none",+ "code_of_conduct_acknowledgement": "Yes",+ "responsible_reviewing_acknowledgement": "Yes",+ "final_justification": "The authors' rebuttal addressed my concern very well, so I’ve decided to raise my rating from 3 to 4."+ },+ "createdAt": "2026-06-24T18:38:30.108Z",+ "modifiedAt": "2026-11-18T13:39:39.156Z",+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH¬eId=xJk50QSMda",+ "license": "CC-BY-4.0"+}
reviews/openreview/zovq8ahnuh/submission.json added
+++ b/reviews/openreview/zovq8ahnuh/submission.json@@ -0,0 +1,12 @@+{+ "schema": "submission/1",+ "id": "zoVQ8aHNUH",+ "venue": {+ "id": "NeurIPS.cc/2026/Conference",+ "name": "NeurIPS 2026",+ "url": "https://openreview.net/group?id=NeurIPS.cc%2F2026%2FConference"+ },+ "number": 15090,+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH",+ "license": "CC-BY-4.0"+}
versions/v_xzbeui7d.json added
+++ b/versions/v_xzbeui7d.json@@ -0,0 +1,22 @@+{+ "date": "2026-05-03",+ "kind": "submitted",+ "label": "NeurIPS 2026",+ "submissions": [+ {+ "venue": "NeurIPS 2026",+ "status": "accepted",+ "decision": "Accept (poster)",+ "number": 15090,+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH",+ "reviews": "openreview/zovq8ahnuh",+ "evidence": [+ "https://openreview.net/forum?id=zoVQ8aHNUH"+ ]+ }+ ],+ "url": "https://openreview.net/forum?id=zoVQ8aHNUH",+ "evidence": [+ "https://openreview.net/forum?id=zoVQ8aHNUH"+ ]+}