Synsema: Syntax-Guided Learning of Semantically Valid Programs
Import NeurIPS 2026 submission HR79HDRXwx: 5 notes
@openreview[bot] · 2026-11-22 17:55 UTC · fbbd12c41b64
.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,24 @@+{+ "layout": 5,+ "identifiers": [+ {+ "scheme": "openreview",+ "value": "HR79HDRXwx"+ }+ ],+ "title": "Synsema: Syntax-Guided Learning of Semantically Valid Programs",+ "authors": [+ "Levin Winter",+ "Cong Li",+ "Hao Sun",+ "Zhendong Su"+ ],+ "abstract": "Generating effective inputs for testing systems that process highly structured data, such as compilers, is difficult due to the combination of syntactic and semantic constraints. Traditional approaches rely on manually crafted rules that require deep domain expertise and are difficult to maintain, while modern machine learning methods have to learn syntax and semantics simultaneously, which is challenging. We present Synsema, a novel approach that combines insights from both worlds by reformulating the generation of semantically valid programs as a syntax-guided reinforcement learning task. With syntax guaranteed by construction, even a small, randomly initialized model can rapidly learn semantic constraints in a drastically reduced space, enabling effective compiler testing. We implement our approach in the context of Java and Rust, which both exhibit strict semantic requirements, and train an agent to generate interesting and well-formed programs using fine-grained semantic feedback. Applied to compiler testing, we systematically compare different syntax-guided generation procedures with an unconstrained baseline and show that, by restricting the sampling space, Synsema learns semantic rules efficiently. While an average of only 0.03% of programs generated by the baseline are semantically valid, Synsema produces a diverse set of programs with a 7.29% success rate that trigger 2.6x more compiler behaviors. In addition, Synsema discovered 5 previously unknown bugs in production compilers, validating the practical impact of our approach.",+ "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/hr79hdrxwx/forms.json added
+++ b/reviews/openreview/hr79hdrxwx/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/hr79hdrxwx/notes/2kftjgixlj.json added
+++ b/reviews/openreview/hr79hdrxwx/notes/2kftjgixlj.json@@ -0,0 +1,32 @@+{+ "schema": "review/1",+ "id": "2kftJgIXlj",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer dRJb",+ "content": {+ "summary": "This paper presents an approach for generating test\ncases, or inputs, for testing compilers. The challenge\nhere is generating \"good\" inputs, that is, well-formed\nprograms that exercise all code paths of the compiler.\n\nThe main idea is to force the generators to only produce\nwell-formed programs. For most programming languages,\ngetting accepted by a context-free grammar (CFG) is the\nmost basic constraint. The CFG is used to constrain the \nnext token -- thus, the action space is constrained so that\nonly syntactically well-formed programs are ever generated.\nGenerating syntactically well-formed programs is not enough,\none needs to generate programs that also pass some semantic\nchecks enforced by the compiler, and furthermore, generate\nprograms that activate new code paths in the compiler.\nThe compiler is used to generate a reward that is used in\nan RL loop to update the policy.\n\nThe paper evaluates this idea to test Rust and Java compilers.\nThey report finding 5 new bugs in these compilers.",+ "contribution_type": "general",+ "strengths_and_weaknesses": "The paper presents a potent technique for bug finding in compilers.\nThe overall approach sounds reasonable and each constituent is \nreasonably justified. The evaluation results are good; in particular,\nthe fact that the authors found 14 crashes out of which 5 are new\ncrashes is indeed impressive and shows the value of the approach.\n\nThe approach for generating syntactically correct programs reminds \nme of the ICLR 2022 paper titled Synchromesh. The authors can \nconsider discussing it - especially since it also \"enforced\"\nsyntactic (and some semantic) correctness by constraining next token\nusing CFG parsing technology.\n\nOne interesting aspect of this work is the \"bi-modal\" reward -\nwhen the compiler detects an error, the problematic tokens identified\nby the compiler are used to penalize the corresponding actions.\nOn the other hand, when the compiler does not detect and error,\nthe novelty score is assigned as a reward to the final action.\nThis is intriguing since it is not clear how this will generalize\nto testing programs that are not compilers.\n\nOne aspect that was confusing when one starts reading the paper is the\n\"circular\" reasoning of \"testing compilers\" using the compiler itself.\nSuppose the compiler has a bug and did not implement the language\nspecification correctly. Say, a program that was supposed to be\ntype incorrect is incorrectly judged as type correct by the compiler.\nThese kinds of bugs will not be revealed by Synsema, isn't it, because\nof circular reasoning -- the compiler is used as a specification while\nit is simultaneously being tested against some larger implicit\nspecification. This point is a source of confusion initially.",+ "quality": 3,+ "clarity": 3,+ "significance": 2,+ "originality": 2,+ "questions": "1. How much work was it to gather \"coverage\" score from a compiler?\nDid you have to annotate the compiler to generate coverage information?\n\n2. There is plenty of work on testing compilers (such as C compilers).\nSome of these works have been cited too. It is mentioned they rely on\n\"complex generation logic\" -- it will be good to know if they would\nhave discovered these bugs, and if not, any particular reason why not?\n\n3. The main argument against existing work is that they require\n\"huge manual effort\" -- it will be good to get some validation\nfor that claim. Maybe by lines-of-code or developer effort reported,\nand compare that with the same metric here. This also brings us back\nto Question 1.\n\n4. It is not clear what is the starting point here in terms of the\nmodel. Line 224 says \"We employ GPT-2\", and then Line 226 says\n\"randomly initialized weights\" and Line 344 says \"we did not adopt \nany pretrained model\". Isn't GPT-2 a pretrained model? Or did you\nonly use that architecture as seems to be suggested by theat\nstarting with random weight comment.\n\nOther comments:\n\nFigure 1: y * z . Shouldn't y also be inside a red box?",+ "limitations": "Yes",+ "rating": 4,+ "confidence": 4,+ "ethical_concerns": [+ "NO or VERY MINOR ethics concerns only"+ ],+ "paper_formatting_concerns": "No",+ "code_of_conduct_acknowledgement": "Yes",+ "responsible_reviewing_acknowledgement": "Yes",+ "final_justification": "I thank the authors for their response.\nOverall, there is some merit in this work - it shows that one can learn a policy using RL based on compiler feedback to generate diverse programs that can expose compiler bugs. However, I am slightly less enthusiastic about the paper than before. The main reason is that the rebuttal breaks my mental model of the work. The RL approach here is rewarding syntactic correctness and code coverage. And this was shown to expose compiler crashes. But the experiments reported during the rebuttal show that a fuzzer powered by pretrained models can do better on the code coverage metric, but yet it fails to detect crashes. Given this new evidence, I am not sure why the proposed approach works. I think there is deeper analysis needed here into the detected crashes/bugs (as was also suggested by another reviewer) to get full clarity on the proposed approach."+ },+ "createdAt": "2026-06-25T01:11:31.105Z",+ "modifiedAt": "2026-11-18T13:45:54.930Z",+ "url": "https://openreview.net/forum?id=HR79HDRXwx¬eId=2kftJgIXlj",+ "license": "CC-BY-4.0"+}
reviews/openreview/hr79hdrxwx/notes/cgsn444aqv.json added
+++ b/reviews/openreview/hr79hdrxwx/notes/cgsn444aqv.json@@ -0,0 +1,19 @@+{+ "schema": "review/1",+ "id": "cGSN444aQV",+ "replyTo": null,+ "kind": "decision",+ "invitation": "Decision",+ "signature": "Program Chairs",+ "content": {+ "title": "Paper Decision",+ "decision": "Accept (poster)",+ "comment": "",+ "metareview": "The reviewers appear to accept the basic premise of the paper, specifically that learning programming language semantics can help generate compiler test cases. However, there are some substantial concerns:\n\n The entire setup seems somewhat archaic. Would a modern LLM have made the problem irrelevant through its knowledge of Rust and Java? A success rate of 7.29% generated programs compilable seems low with modern technology.\n The experiments measure compilability, not conformance to semantics. What evidence is there for learning semantics? Or, is this just not a goal and the only goal is to find programs that crash the compiler?\n A stronger comparison with existing test generation techniques would help - does the technique discover bugs these previous techniques would not have discovered, and is there a quantitative measure somewhere that would make this argument more precise?\n Better compiler coverage results would help as suggested by the reviewers.\n\nThe response period was very productive and reviewers were unanimous that this paper can be accepted. I strongly urge the authors to pay attention to the reviews and the responses as they prepare a revision as I anticipate that we can expect to see the paper significantly improved during the revision along the lines suggested in the reviews.",+ "final_justification": "Rebuttal answered reviewers questions and surfaced new interesting results that justify acceptance."+ },+ "createdAt": "2026-09-24T11:29:05.452Z",+ "modifiedAt": "2026-11-18T15:00:10.009Z",+ "url": "https://openreview.net/forum?id=HR79HDRXwx¬eId=cGSN444aQV",+ "license": "CC-BY-4.0"+}
reviews/openreview/hr79hdrxwx/notes/vdwbsi44dp.json added
+++ b/reviews/openreview/hr79hdrxwx/notes/vdwbsi44dp.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "vdwBSi44dp",+ "replyTo": null,+ "kind": "meta_review",+ "invitation": "Meta_Review",+ "signature": "Area Chair Dfd8",+ "content": {+ "metareview": "The reviewers appear to accept the basic premise of the paper, specifically that learning programming language semantics can help generate compiler test cases. However, there are some substantial concerns:\n\n The entire setup seems somewhat archaic. Would a modern LLM have made the problem irrelevant through its knowledge of Rust and Java? A success rate of 7.29% generated programs compilable seems low with modern technology.\n The experiments measure compilability, not conformance to semantics. What evidence is there for learning semantics? Or, is this just not a goal and the only goal is to find programs that crash the compiler?\n A stronger comparison with existing test generation techniques would help - does the technique discover bugs these previous techniques would not have discovered, and is there a quantitative measure somewhere that would make this argument more precise?\n Better compiler coverage results would help as suggested by the reviewers.\n\nThe response period was very productive and reviewers were unanimous that this paper can be accepted. I strongly urge the authors to pay attention to the reviews and the responses as they prepare a revision as I anticipate that we can expect to see the paper significantly improved during the revision along the lines suggested in the reviews."+ },+ "createdAt": "2026-07-27T00:05:42.591Z",+ "modifiedAt": "2026-11-18T15:26:07.916Z",+ "url": "https://openreview.net/forum?id=HR79HDRXwx¬eId=vdwBSi44dp",+ "license": "CC-BY-4.0"+}
reviews/openreview/hr79hdrxwx/notes/ychqrnlrlw.json added
+++ b/reviews/openreview/hr79hdrxwx/notes/ychqrnlrlw.json@@ -0,0 +1,31 @@+{+ "schema": "review/1",+ "id": "ychqRnLRLw",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer 4xXL",+ "content": {+ "summary": "The authors argue that existing learning-based approaches must simultaneously learn both syntax and semantics, which is highly inefficient because syntactically valid programs occupy only a tiny fraction of the overall token space. To address this issue, the paper proposes SYNSEMA, a syntax-guided reinforcement learning framework that explicitly separates syntactic correctness from semantic learning.\nThe key idea is to leverage a context-free grammar (CFG) to constrain the action space of an RL agent such that all generated programs are syntactically valid by construction. Under this formulation, the agent only needs to learn semantic constraints through compiler feedback. This paper presents an interesting integration of grammar-based generation and reinforcement learning for program synthesis and compiler fuzzing. The paper explores three grammar-guided generation mechanisms based on top-down (LL), bottom-up (LR), and chart-based (Earley) parsing algorithms, resulting in different action representations and constrained action spaces. Semantic learning is driven by compiler-derived rewards, including penalties based on compilation diagnostics and positive rewards derived from compiler coverage novelty.\nIn experiments, the authors verify that constraining the generation process with syntax substantially reduces the search space and enables more effective learning of semantic validity compared to unconstrained token-level generation.",+ "contribution_type": "general",+ "strengths_and_weaknesses": "### Strengths\n\n1. The paper presents a clean and intuitive formulation that separates syntactic validity from semantic learning by incorporating grammar constraints into the reinforcement learning process. The overall framework is easy to understand and well motivated for compiler testing.\n\n2. The paper evaluates multiple grammar-guided generation strategies based on different parsing algorithms and demonstrates the practical utility of the approach on real-world compilers.\n\n### Weaknesses\n\n1. A central claim of the paper is that the proposed framework learns program semantics. However, the evidence provided mainly demonstrates improved compilation success rates. The reward signal is entirely derived from compiler acceptance, diagnostics, and coverage information, making it unclear whether the model learns semantic concepts or simply learns to generate patterns that satisfy compiler-specific validity checks. More broadly, compilation success is a relatively weak proxy for semantic understanding.\n\n2. It is unclear whether syntax-guided constraints need to be incorporated during training at all. Many modern constrained generation approaches enforce syntactic validity during decoding by masking invalid tokens according to a grammar while leaving the underlying model training unchanged. The paper does not provide evidence that integrating grammar constraints into the RL training process yields benefits beyond what could be achieved through inference-time constrained decoding alone. As a result, the necessity of the proposed training formulation remains insufficiently justified.\n\n3. The experimental setting focuses exclusively on unconditional program generation. Without any specification, prompt, or downstream task, it is difficult to assess whether the model has learned meaningful semantic relationships beyond compiler acceptance patterns. Furthermore, unconditional generation substantially limits the practical applicability of the framework compared to more realistic program-generation settings where generation is conditioned on user intent, requirements, or existing code context.\n\n4. The empirical evaluation is conducted using a randomly initialized GPT-2 model with only 124M parameters. Given that contemporary code generation systems are typically built upon substantially larger pretrained models, it remains unclear whether the observed findings would transfer to modern foundation models. Consequently, the practical relevance of the proposed approach in today's code-generation landscape is somewhat limited.",+ "quality": 2,+ "clarity": 3,+ "significance": 2,+ "originality": 3,+ "questions": "1. The proposed approach relies on context-free grammars and parser-specific structures (e.g., LL/LR productions and parsing tables). How were these grammars and parsing tables obtained for Rust and Java in practice? Were they directly derived from existing compiler specifications, automatically generated from publicly available grammar definitions, or manually adapted? Additionally, how much engineering effort is required when extending the framework to a new programming language?\n\n2. A central claim of the paper is that the agent learns semantic constraints. Could the authors provide additional evidence that the learned behavior goes beyond merely generating compiler-accepted patterns? For example, are there analyses showing that the model learns specific semantic concepts (e.g., typing rules, scope resolution, ownership constraints) rather than simply exploiting frequent compilable structures?\n\n3. What advantages are gained by incorporating grammar constraints during RL training rather than applying grammar-constrained decoding only at inference time? Have the authors considered or evaluated a baseline where the model is trained normally and syntax validity is enforced solely through decoding-time masking?\n\n4. The experiments are conducted using a randomly initialized GPT-2 model with 124M parameters. Do the authors expect the proposed framework to remain beneficial when applied to modern pretrained code models or large language models that already possess substantial syntactic and semantic knowledge? If so, what modifications would be necessary to integrate SYNSEMA with such models?",+ "limitations": "yes",+ "rating": 3,+ "confidence": 4,+ "ethical_concerns": [+ "NO or VERY MINOR ethics concerns only"+ ],+ "paper_formatting_concerns": "N/a",+ "code_of_conduct_acknowledgement": "Yes",+ "responsible_reviewing_acknowledgement": "Yes"+ },+ "createdAt": "2026-06-03T14:49:08.120Z",+ "modifiedAt": "2026-11-18T13:45:56.354Z",+ "url": "https://openreview.net/forum?id=HR79HDRXwx¬eId=ychqRnLRLw",+ "license": "CC-BY-4.0"+}
reviews/openreview/hr79hdrxwx/notes/zfjuujoypa.json added
+++ b/reviews/openreview/hr79hdrxwx/notes/zfjuujoypa.json@@ -0,0 +1,32 @@+{+ "schema": "review/1",+ "id": "zfJUUjoYPa",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer ECUS",+ "content": {+ "summary": "This paper presents SYNSEMA, a syntax-guided reinforcement learning framework for generating semantically valid programs, with compiler testing as the main target application. The key idea is to separate syntax from semantics: context-free grammars and parser-derived action spaces ensure syntactic validity by construction, while an RL agent learns from compiler diagnostics and coverage feedback to generate programs that are more likely to compile and exercise diverse compiler behavior. The paper instantiates this idea with three syntax-guided agents based on top-down/LL, bottom-up/LR, and chart/Earley parsing, and evaluates them on Java and Rust compilers. The results show that SYNSEMA produces substantially more compilable programs than an unconstrained token-level RL baseline, improves compiler edge coverage, and discovers several previously unknown compiler bugs.",+ "contribution_type": "general",+ "strengths_and_weaknesses": "### Strengths\n\nThe paper studies an important and practical problem: generating valid and interesting programs for testing compilers and other systems that process highly structured inputs. The separation between syntactic validity and semantic validity is well motivated. Using grammars to reduce the action space is a natural way to avoid many early syntax failures, and using compiler diagnostics and coverage as feedback provides a useful learning signal for program generation.\n\nThe paper is also relatively clear in its presentation. The three action-space designs based on top-down, bottom-up, and chart parsing are explained well, and the comparison among these choices is a useful part of the paper. The implementation appears nontrivial, and the evaluation on both Rust and Java makes the empirical study more convincing than a single-language setup. The fact that the system finds previously unknown compiler bugs is a positive sign for its practical potential.\n\n### Weaknesses\n\n**1. The novelty over existing grammar-based generation and fuzzing methods is not sufficiently established.**\n\nGrammar-constrained program generation is a well-established idea in grammar-based fuzzing, semantic-aware program generation, and neural code generation. Recent work such as [1] further shows that grammar/AST-based code representations have been explored in billion-scale LLMs, not only for syntactic validity but also for improving semantic differentiation. In this context, SYNSEMA’s novelty appears to lie less in grammar-guided generation itself, and more in combining grammar-constrained action spaces with compiler diagnostic feedback, coverage-based rewards, and an RL loop for Java/Rust compiler testing. The paper would be stronger if it more explicitly clarified which component is the main technical contribution: the LL/LR/Earley action-space comparison, the mapping from compiler diagnostics to RL actions, the semantic-learning formulation, or the compiler-testing application.\n\n**2. The main baseline is too weak to support the stronger empirical claims.**\n\nThe primary baseline is an unconstrained token-level RL agent trained from scratch. This baseline needs to learn both syntax and semantics only from compiler feedback. For languages such as Java and Rust, it is expected that such a model will generate mostly syntactically invalid programs. Therefore, the large improvement in compilable-program rate mainly shows that grammar guidance is useful compared with no grammar guidance for a from-scratch RL generator.\n\nThis is a valid and useful result, but it supports a narrower conclusion than the paper seems to suggest. It does not show that SYNSEMA is better than practical grammar-guided generators, grammar-aware coverage fuzzers, semantic-aware fuzzers, or existing compiler-testing tools. To better isolate the contribution of the RL policy, the paper should include stronger baselines such as grammar-guided random generation, grammar-guided coverage-based fuzzing without RL, and existing grammar/semantic-aware fuzzers where applicable. Without these comparisons, it is difficult to tell whether the main gains come from learning semantics, or simply from enforcing syntactic validity.\n\n**3. The paper does not compare against modern SOTA LLMs on program generation.**\n\nThe paper motivates itself partly against language-model-based program generation, but the underlying model used in SYNSEMA is a randomly initialized GPT-2 124M model rather than a pretrained code LLM. Modern code LLMs already encode substantial syntax and semantic knowledge about Java and Rust. Although LLM sampling may have lower throughput, each generated sample may be more semantically meaningful or structurally complex.\n\nTherefore, it remains unclear whether SYNSEMA would outperform SOTA LLM-based methods under a comparable practical budget. Useful baselines could include SOTA LLM sampling with compilation filtering, LLM-based compiler-error repair, LLM generation followed by coverage-guided selection, or LLM-based mutation of existing valid programs. The comparison should ideally be under matched wall-clock time or monetary budget. Without such baselines, the paper does not fully establish the practical advantage of SYNSEMA over modern LLM-based compiler testing.\n\n**4. The evidence for learning complex semantics is limited.**\n\nThe paper often frames the task as learning semantic validity, especially for languages such as Rust with strict ownership, borrowing, lifetime, trait, and generic constraints. However, the main semantic metric is whether the generated program successfully compiles. Compilability is useful, but it is a coarse measure. A program can compile while avoiding most difficult semantic features, especially if the generator tends to produce short or simple programs.\n\nThe paper does not provide a feature-level analysis showing whether the generated valid programs actually exercise nontrivial semantic constraints. For Rust, it would be important to know how often valid generated programs contain ownership/borrowing interactions, lifetime annotations, trait bounds, generic constraints, macros, const generics, unsafe code, or other difficult language features. Without such analysis, the claim that the model learns semantics should be stated more conservatively. The current evidence mainly shows that the model learns to increase compiler acceptance under a grammar-constrained and bounded generation setup.\n\n**5. The compiler coverage results are promising but hard to interpret.**\n\nThe paper reports relative improvements in edge coverage, which is useful. However, it does not report the total number of instrumented compiler edges or the corresponding coverage percentage. For large compilers such as rustc and javac, absolute edge counts are difficult to interpret without knowing the denominator. It is therefore unclear how deep the exploration is in absolute terms.\n\nThe evaluation would be more informative if it reported coverage percentage, coverage per wall-clock time, coverage per GPU-hour, and perhaps unique edges per unique valid program. These efficiency metrics are important because the baseline generates many more programs but most are invalid, while SYNSEMA generates fewer programs but with a much higher valid rate. The current results show improvement, but they do not fully clarify the practical testing efficiency of the method.\n\nOverall, the implementation and empirical study is interesting, and the results do show that syntax guidance is highly beneficial for from-scratch RL-based program generation. However, the current evaluation does not yet fully establish novelty or practical superiority over existing grammar-guided, semantic-aware, or LLM-based compiler testing methods. The strongest supported conclusion is that grammar-guided action spaces substantially improve a from-scratch RL generator; broader claims about semantic learning and compiler-testing advantage need stronger baselines and deeper analysis.\n\n[1] Liang, Q., Zhang, Z., Sun, Z., Lin, Z., Luo, Q., Yueyi, X., ... & Xiong, Y. (2025, July). Grammar-based code representation: Is it a worthy pursuit for llms?. In Findings of the Association for Computational Linguistics: ACL 2025 (pp. 15640-15653).",+ "quality": 2,+ "clarity": 3,+ "significance": 2,+ "originality": 2,+ "questions": "1. What is the precise technical novelty of SYNSEMA compared with existing grammar-based and grammar-aware fuzzing/program-generation methods?\n\n2. Could the authors compare against modern LLM-based program generation under matched wall-clock time or monetary budget? Relevant baselines include LLM sampling with compilation filtering, LLM-based compiler-error repair, and LLM generation combined with coverage-guided selection or mutation.\n\n3. Could the authors provide a feature-level analysis of generated valid programs? For Rust, it would be useful to report how often programs involve ownership/borrowing, lifetimes, trait bounds, generics, macros, const generics, unsafe code, and other nontrivial language features.",+ "limitations": "The paper includes a limitations section, which is appreciated. However, I think several limitations should be discussed more explicitly:\n\n- The current evaluation mainly establishes the benefit of syntax guidance over an unconstrained from-scratch RL baseline, not necessarily over practical compiler fuzzing methods.\n- The lack of comparison with modern LLM-based generation limits the conclusions about practical advantage.\n- The generated programs are bounded in length and vocabulary, which may limit semantic and structural complexity.\n- The paper does not sufficiently analyze whether generated programs exercise difficult semantic features such as Rust ownership, borrowing, lifetimes, traits, or generics.",+ "rating": 4,+ "confidence": 4,+ "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 response and additional experiments. I find the combination of grammar-guided generation, reinforcement learning, and compiler feedback well motivated, and the new results support that this combination provides benefits beyond syntax enforcement alone.\n\nOne remaining question is whether the increased use of features such as lifetimes, generics, and ownership translates into better exploration of compiler behaviors that are more likely to expose bugs. A more detailed analysis of the bug-triggering test cases, including the feature combinations or unusual program structures they require, would help clarify this point. The fact that DeepSeek achieves higher coverage but finds fewer reported bugs also suggests that coverage alone may not capture this distinction.\n\nI also consider the cost-matched comparison with LLMs reasonably fair, since API pricing already amortizes the cost of pretraining.\n\nOverall, the response has improved my view of the paper. I increased my score from 3 to 4."+ },+ "createdAt": "2026-06-26T08:59:52.808Z",+ "modifiedAt": "2026-11-18T13:45:53.175Z",+ "url": "https://openreview.net/forum?id=HR79HDRXwx¬eId=zfJUUjoYPa",+ "license": "CC-BY-4.0"+}
reviews/openreview/hr79hdrxwx/submission.json added
+++ b/reviews/openreview/hr79hdrxwx/submission.json@@ -0,0 +1,12 @@+{+ "schema": "submission/1",+ "id": "HR79HDRXwx",+ "venue": {+ "id": "NeurIPS.cc/2026/Conference",+ "name": "NeurIPS 2026",+ "url": "https://openreview.net/group?id=NeurIPS.cc%2F2026%2FConference"+ },+ "number": 35430,+ "url": "https://openreview.net/forum?id=HR79HDRXwx",+ "license": "CC-BY-4.0"+}
versions/v_ba6kqyeg.json added
+++ b/versions/v_ba6kqyeg.json@@ -0,0 +1,22 @@+{+ "date": "2026-05-05",+ "kind": "submitted",+ "label": "NeurIPS 2026",+ "submissions": [+ {+ "venue": "NeurIPS 2026",+ "status": "accepted",+ "decision": "Accept (poster)",+ "number": 35430,+ "url": "https://openreview.net/forum?id=HR79HDRXwx",+ "reviews": "openreview/hr79hdrxwx",+ "evidence": [+ "https://openreview.net/forum?id=HR79HDRXwx"+ ]+ }+ ],+ "url": "https://openreview.net/forum?id=HR79HDRXwx",+ "evidence": [+ "https://openreview.net/forum?id=HR79HDRXwx"+ ]+}