potentialpaper

Constrained Goal-directed Planar Graph Generation with Grammar-based Reinforcement Learning

Nicolas Hochuli, Lorenzo Miele, Kristina Shea, Tino Stankovic

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We introduce a dataset-free method for goal-directed planar graph generation that combines graph grammars with safe reinforcement learning to construct feasible planar embeddings under hard constraints.

Abstract. Planar graphs are central to applications across science and engineering, yet existing generators provide limited support for goal-directed generation under hard structural and geometric feasibility constraints. We propose a dataset-free method for generating planar graph embeddings by combining parametric graph grammars with safe reinforcement learning to optimize generic task-specific objectives while satisfying constraints during construction. We formulate the generation process as a constrained Markov decision process, where the graph grammar defines the state and action spaces. We further introduce an action projection that maps sampled actions toward state-dependent safe sets, improving constraint satisfaction during training. In contrast to classical graph generators and deep generative models, which typically offer limited goal-directed control or rely on weak constraint satisfaction, our method constructs feasible planar graph embeddings directly during generation. We also introduce a benchmark suite for constrained and goal-directed planar graph generation, together with classical and deep generative baselines. Across all benchmark tasks, our method consistently outperforms baselines while satisfying the formulated constraints.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper presents a safe RL method for goal-directed generation of planar graph embeddings under hard constraints (geometric and structural). The method proposed is well motivated and supported by ablations and comparisons across several tasks.

The main issue that surfaced during reviews is scope and eval framing. The method is specialized to planar embedded graphs expressible by a hand-designed grammar with 7 rules, and the benchmarks appear closely aligned with this structural prior. It will be good for the authors to clarify the relationship between benchmark design and grammar design, and scope any broader graph-generation claims accordingly.

It will also be helpful for the reader if the baseline protocol is made more explicit in the main text. In particular, deep generative baselines are evaluated using best-of-many samples, while constraint satisfaction is not used for selection. This is reasonable, but it affects how the comparison should be interpreted. Finally, as cuNk notes,it will be nice to be clearer about how the unattainable spectral-gap targets affect the aggregate reward, and about what varies across reported seeds. It would also help to better position the method relative to recent inference-time guidance work for constrained graph generation.

These clarifications could strengthen an already promising paper.

Final justification

The responses addressed various concerns raised in the initial review phase. The authors also appropriately scoped their graph-generation claims and clarified the method’s applicability and scalability limitations. Through the discussion phase, the reviewers continued to remain positive about the paper and its interest to the community.

Area Chair D9Sn · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper presents a safe RL method for goal-directed generation of planar graph embeddings under hard constraints (geometric and structural). The method proposed is well motivated and supported by ablations and comparisons across several tasks.

The main issue that surfaced during reviews is scope and eval framing. The method is specialized to planar embedded graphs expressible by a hand-designed grammar with 7 rules, and the benchmarks appear closely aligned with this structural prior. It will be good for the authors to clarify the relationship between benchmark design and grammar design, and scope any broader graph-generation claims accordingly.

It will also be helpful for the reader if the baseline protocol is made more explicit in the main text. In particular, deep generative baselines are evaluated using best-of-many samples, while constraint satisfaction is not used for selection. This is reasonable, but it affects how the comparison should be interpreted. Finally, as cuNk notes,it will be nice to be clearer about how the unattainable spectral-gap targets affect the aggregate reward, and about what varies across reported seeds. It would also help to better position the method relative to recent inference-time guidance work for constrained graph generation.

These clarifications could strengthen an already promising paper.

Final justification

The responses addressed various concerns raised in the initial review phase. The authors also appropriately scoped their graph-generation claims and clarified the method’s applicability and scalability limitations. Through the discussion phase, the reviewers continued to remain positive about the paper and its interest to the community.

1 comment
Authors · CommentOpenReview ↗

Rebuttal Summary

Dear Area Chair,

We believe we have addressed all concerns raised by the reviewers and that the resulting revisions have improved the paper overall. In particular, we carefully addressed the key points highlighted in the initial metareview by clarifying the relationship between the benchmark and grammar design, narrowing the broader graph-generation claims, and making the baseline evaluation protocol explicit in the main text. We also clarified the effect of the unattainable spectral-gap targets to the reward, the variability across training seeds, and the relationship to the recent inference-time guidance method cited.

We thank the reviewers and Area Chair for their constructive feedback, which has helped clarify the paper's scope, limitations, and presentation.

Reviewer cuNkOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a dataset-free method for goal-directed generation of embedded planar graphs that satisfy hard structural and geometric constraints. The approach combines a parametric graph grammar (seven rewriting rules with continuous geometric parameters) with safe reinforcement learning, formulating the generation process as a Constrained Markov Decision Process (CMDP). A PPO-trained hybrid actor-critic policy sequentially selects a boundary node, a rewriting rule, and continuous geometric parameters. To handle the high rate of geometric constraint violations (edge intersections, length bounds), the authors introduce a learned, differentiable action projection — a single-step normalizing-flow-style squashing map — trained via CMA-ES-generated supervision to push nominal actions toward a state-dependent feasible set. The paper further contributes a new benchmark suite of four multi-objective, constrained planar graph generation tasks (power grid, urban road network, strongly connected mesh, triangle-count-targeted mesh) and compares against ten baselines spanning classical random graph models, dedicated planar graph samplers, and diffusion-based deep generative models (DiGress, GDSS+Prodigy, MuDiff). The proposed method achieves the best multi-objective reward while satisfying all constraints across all four benchmarks, and an ablation/scalability study (up to 150 nodes) demonstrates the contribution of the CMA-ES-supervised action projection.

Strengths and weaknesses

The paper addresses a genuine and underserved gap: existing graph generators either provide weak/soft constraint satisfaction (deep generative models relying on conditioning, rejection sampling, or post-hoc repair) or lack goal-directed multi-objective control (classical random graph models). Embedding hard feasibility directly into the construction process, rather than enforcing it as a post-hoc filter, is a sound and useful design choice for the application domains motivated in the introduction (structural/urban design, engineering layout).

The technical execution is careful. The CMDP formulation cleanly maps grammar states/actions onto standard RL abstractions, and the decomposition of constraints into irreversible topological violations (handled via cheap rejection sampling) versus resolvable geometric violations (handled via the learned projection) is a sensible engineering choice supported by the empirical violation-rate analysis in Appendix C.3. The action projection itself — a tanh-affine map trained with CMA-ES-generated targets in an off-policy supervised loop alongside PPO — is a reasonable instantiation of the safety-layer paradigm from the safe RL literature, applied here to a genuinely different setting (continuous geometric feasibility in graph construction) where it has not previously been used to my knowledge.

The experimental section is reasonably thorough for a paper of this scope. Ten baselines are compared, including recent diffusion-based generators with property-conditioning or guidance, and the ablation (Figure 3) and scalability study (Figure 4) directly support the central claims about the value of the action projection and the method's behavior under increasing graph size. The appendix provides substantial detail on architecture, hyperparameters, and the baseline adaptation protocol, which is helpful for reproducibility. The Limitations section is candid about two real constraints of the approach: the scalability ceiling (~150 nodes in the reported experiments) and the structural prior imposed by the fixed rule set, which the authors correctly note bounds the space of expressible graphs.

The most significant concern is the scope of applicability relative to the framing in the introduction. The paper opens by situating the work within "complex networks, bioinformatics, and urban planning," but the actual method and benchmarks are specific to a narrower class of problems: planar graphs with continuous geometric embeddings constructed under a hand-designed grammar with only seven rules. This is a legitimate and useful niche (the engineering-design framing in the Limitations section is more accurate), but the introduction's broader framing risks overstating generality to readers from the wider graph-generation community, including those working on general (non-planar) complex networks where this method does not apply.

A related concern is that the four benchmark tasks were designed by the same authors who designed the grammar, and the benchmark targets (compact mesh-like, grid-like, and triangulated structures) align closely with what the seven grammar rules naturally produce. The paper would benefit from clarifying whether the benchmark design process was independent of the grammar design, or whether the two co-evolved — this matters for assessing how much of the reported advantage reflects a generally capable method versus a benchmark suite well-matched to the method's inductive bias.

On the baseline comparison protocol: Appendix F states that for deep generative model baselines, constraint satisfaction is deliberately not used as a ranking criterion when selecting the best candidate out of ~1000 samples, because doing so was "found to strongly disadvantage these models." This is a defensible choice for giving baselines their best shot on the reward metric, but it does mean the reported baseline rows represent a best-of-1000 selection rather than typical single-sample behavior, and this distinction is not made sufficiently prominent in the main text where the central claim ("our method consistently outperforms baselines while satisfying constraints") is made. I would encourage the authors to state this more explicitly in Section 5, since it affects how a reader should interpret the constraint-satisfaction columns in Table 1.

The reward formulation (Eq. 14) aggregates several metrics into a single symmetric relative deviation score. For two of the four benchmarks, one of the target values (the spectral gap λ2) is explicitly acknowledged by the authors as "idealistic" and not attainable by any planar, bounded-degree graph. This is reasonable as a connectivity-maximization pressure, but it would strengthen the paper's interpretability if the authors reported per-metric contributions to the aggregate reward (or at least discussed how much the λ2 term affects the absolute reward scale), since an unreachable target embedded in a symmetric deviation formula can compress the dynamic range of the reported scores in ways that are not obvious from Table 1 alone.

Finally, the most directly comparable recent line of work — inference-time guidance/search methods for enforcing hard constraints in diffusion-based graph generation (cited as reference [15]) — is discussed only in passing in Related Work and is not included as an experimental baseline. Given that this is conceptually the closest competing paradigm for "satisfying hard constraints during generation" within the deep generative modeling literature, its absence from the comparison is a missed opportunity, even if understandable given the reference's recency.

Questions
  1. Were the four benchmark tasks designed independently of the seven-rule grammar, or did benchmark and grammar design proceed jointly/iteratively? Clarifying this would help assess how much of the reported performance gap reflects general capability versus benchmark-grammar alignment.
  2. Could you state explicitly in the main text (not only Appendix F) that deep generative model baselines are evaluated as the best-of-~1000 candidates selected without prioritizing constraint satisfaction, and discuss how this affects the interpretation of the constraint-satisfaction columns in Table 1?
  3. For benchmarks 1 and 3, where the λ2 target is acknowledged as unattainable, could you report the per-metric contribution to the aggregate reward, or discuss how the unattainable target affects the absolute scale of the reported reward values?
  4. Could you clarify what is varied across the 5 reported seeds — full independent retraining (including PPO rollouts and CMA-ES supervision generation) or repeated inference with a fixed trained policy? This affects how the reported standard deviations should be interpreted.
  5. Given the close relationship between this work and inference-time-guidance approaches for hard-constraint satisfaction in diffusion models (ref. [15]), could you discuss in more depth why this was not included as an experimental baseline, even briefly, to help position the contribution relative to this adjacent paradigm?
Limitations

The authors' Limitations section is honest and appropriately scoped: it acknowledges the scalability ceiling (~150 nodes) and explicitly states that the method cannot generate graphs outside the structural prior encoded by the chosen rule set, without claiming completeness over all planar embedded graphs. This is a good-faith disclosure. One additional limitation that could be made more explicit is the dependency of the reported "consistent outperformance" claim on the baseline selection protocol described in Appendix F (see Weaknesses above), which is currently not surfaced as a limitation in the main Limitations section.

Formatting concerns

Minor typographic inconsistency "accross" (sic) appears in Figure 7's caption ("All error-bars refer to 1-sigma standard deviations accross 5 seeds") — a typographic error with no substantive impact, noted for completeness.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Dear Reviewer, thank you for your thorough review and comments. We greatly appreciate your assessment that the method addresses a genuine and underserved gap. Below, we address your questions and the identified weaknesses and limitations.


Questions:

[cuNk Q1] Were the four benchmark tasks designed independently or concurrently with the method?

  • To be fully transparent about our workflow, the method and the benchmarks were developed largely independently. Specifically, the method was developed and tested using single objectives, alternating between the geometric rewards risor_\mathrm{iso} and rsquarer_\mathrm{square}. Once the method was finalized, the rule set, agent design, and action-projection mechanism remained fixed. Meanwhile, to evaluate the method on a broader range of tasks than the geometric objectives used during development, we conducted a literature survey [33,54,55,56,57] of metrics used to characterize graphs and planar embedded graphs. The survey identified a broad range of topological, spectral, and geometric metrics, all reported in Appendix D. We then designed the benchmark suite covering meaningful combinations of the metrics across four multi-objective tasks, with every metric used at least once. Only after the benchmarks had been finalized to reflect representative application scenarios (Benchmark 1: Resilient Power Grid and Benchmark 2: Urban Road Grid) and controlled evaluation settings (Benchmark 3: Strongly Connected Mesh, Benchmark 4: Graph with 40 Triangles) we evaluated the method on them and compared it with the baselines. For this reason, we also present the benchmark suite as a core contribution of the work and interpret the results as evidence that the method can optimize diverse objectives rather than being tuned to the individual benchmark tasks.

--

[cuNk Q2] Could you provide an explanation of the baseline evaluation in the main text?

  • Yes, in Section 5.1, we will add the following explanation:

“[… For all classical baselines, we apply ranking-based selection to retrieve graphs satisfying the most constraints and, among them, maximize the reward.] For all deep generative baselines, we evaluate from 1,000 generated candidates. After retaining the largest connected component and filtering out non-planar graphs, candidates are ranked first by proximity to the target graph size and then by benchmark reward. The remaining geometric and structural constraint statistics are evaluated and reported, but they are not used for candidate selection. This alternative protocol for deep generative models is motivated by the fact that we empirically found diffusion models to rarely satisfy the constraint set, and prioritizing constraint satisfaction would substantially reduce the reward performance of these models. We consequently exclude the constraint satisfaction criterion from the ranking procedure for diffusion baselines to enable a fairer comparison of reward metrics. More details on the evaluation protocol are available in Appendix F.”

  • Consequently, Table 1 does not present a constraint-first selection for the deep generative models (GDSS, DiGress and MuDiff). This protocol separates objective performance from constraint satisfaction and avoids disproportionately penalizing models that were not designed to enforce these constraints during generation.

--

[cuNk Q3] Could you report the per-metric contribution to the aggregate reward?

  • We thank the reviewer for this suggestion. To improve interpretability, we will add an Appendix Table reporting the contribution of each metric through its relative deviation dmd_m (see Equation 14 in manuscript) for all results and clearly reference to it in the main text. As defined in Equation 14, dmd_m is normalized in [0,1] with lower values indicating better agreement with the target. A summarized version of the deviation terms across all benchmarks for our method is given in the Table below. This will make both the scale of the aggregate reward and the optimization of each individual component easier to interpret. We also emphasize that the intentionally idealized λ2\lambda_2 target primarily affects the scale and interpretation of the aggregate reward and does not imply poor optimization of the other components. As shown by the deviation scores in the table below (lower is better), the spectral-gap deviation is often high due to the unattainable high target, whereas the deviations for the other metrics remain low. This implies that our method still manages to optimize the other metrics despite not relying on careful weighting of the individual rewards or engineering a lower-pressure λ2\lambda_2 target.

  • Tables of relative deviation scores for our method in all benchmarks:

Benchmark 1: Resilient Power Grid

Method Reward disod_{\mathrm{iso}} dginid_{\mathrm{gini}} dclustd_{\mathrm{clust}} dλ2d_{\lambda_2}
Ours 0.756±0.004 0.020±0.010 0.053±0.011 0.000±0.010 0.905±0.005

Benchmark 2: Urban Road Grid

Method Reward disod_{\mathrm{iso}} dSld_{S_l} dARd_{\mathrm{AR}} dginid_{\mathrm{gini}}
Ours 0.942±0.011 0.025±0.014 0.079±0.012 0.029±0.013 0.102±0.030

Benchmark 3: Strongly Connected Mesh

Method Reward dsquared_{\mathrm{square}} dλ2d_{\lambda_2}
Ours 0.647±0.010 0.060±0.034 0.648±0.027

Benchmark 4: Graph with 40 Triangles

Method Reward disod_{\mathrm{iso}} dTd_T
Ours 0.979±0.022 0.042±0.043 0.0011±0.0011

--

[cuNk Q4] Could you clarify what is varied across the 5 reported seeds?

  • For every benchmark scenario, we report the mean and standard deviation across five independent training seeds. Each seed corresponds to a complete restart of the training run, including CMA-ES, using a different random seed. The reported variation therefore captures variability across independent runs and not only during inference. We believe this to be the most honest approach to show the robustness of the method.

--

[cuNk Q5] Could you discuss why inference-time guidance baselines were not included in the benchmarks?

  • The main reason for omitting TreeDiff was that, to the best of our knowledge, no official implementation of it is publicly available. Unlike the other baselines, which are adapted from released implementations, TreeDiff would have required an independent reimplementation of its pretrained diffusion backbone, intermediate-state verifier, and tree-search procedure. TreeDiff is closely related to the deep generative baselines but additionally introduces verifier-guided tree search at inference time. Adapting it from molecular generation to embedded planar graphs would require non-canonical architectural and implementation choices. We will clarify this omission and discuss inference-time tree-search guidance in the Related Works Section more clearly as:

“[… However, enforcing exact graph size, planarity, and hard structural constraints through conditioning remains difficult, with validity often relying on rejection sampling, post-processing, or external guidance.] TreeDiff [15] extends pretrained graph diffusion models with verifier-guided tree search at inference time but adapting it to embedded planar graphs requires task-specific modifications to the diffusion backbone, intermediate-state verifier, and search procedure.”


Weaknesses:

[cuNk W1] Scope of applicability relative to the framing in the Introduction.

  • Thank you for this comment, which we agree with. We will narrow the claims in the Introduction and describe the scope of the proposed method more precisely, i.e. domains in which planarity and graph embeddings are important to the representation, including urban planning, road-network design, structural engineering (e.g., truss design), origami design and constrained mesh generation. Note, that we newly include computational mesh generation as an application with inspiration from the comment in [eez1 W2]. While the method could in principle also be extended to non-planar networks, such an extension is beyond the scope of the present work and would require substantial redefinition of the grammar, for which reason we will exclude the claim about complex networks and bioinformatics from the introduction.
  • See our proposed change to the initial paragraph of the introduction here:

“Goal-directed planar graph generation is a central research topic in computer science, with applications spanning urban planning and road-network design [1,3,48], engineering design, including architecture, structural optimization, origami design [4, 5, 6, 62] as well as computational mesh-generation [64]. In many of these applications […]”

  • Newly added references:
    [62] Bleker et al., "A Graph-Based Grammar for Structural Design using Deep Reinforcement Learning," IASS 2024.
    [64] Thacher et al., “Optimization of a Triangular Delaunay Mesh Generator Using Reinforcement Learning,”, 2025.

--

[cuNk W2-W5] We address these weaknesses W2, W3, W4, W5 in our responses to questions Q1, Q2, Q3, and Q5, respectively.

--


Limitations:

[cuNk L1] Claim of consistent outperformance depends on baseline selection protocol, which should be included in the limitations section.

  • We agree that the reported comparison should be interpreted in the context of the baseline-selection protocol. However, we do not consider this protocol itself a limitation. As described in [cuNk Q2], we have clarified the evaluation procedures for both the classical and deep generative baselines and explicitly state that each method is evaluated using the protocol that is most favorable to it. We hope that making this dependence transparent addresses the reviewer’s concern, without requiring an additional statement in the Limitations section.

We believe to have addressed the reviewer’s concerns to substantially improve the completeness of our work.

Reviewer cuNk · CommentOpenReview ↗

Thank you for the detailed rebuttal. All my concerns have been adequately addressed, I maintain my original recommendation.

Reviewer HKgNOpenReview ↗
Rating
5/6
Confidence
2/5
Quality
4/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes a method for the generation of planar graph embeddings with constraints on edge lengths, sector angles and node degrees. The method is based on actor-critic approach, where the actor gradually grows a graph from trivial (one edge) to the required size. There are 7 types of actions available to the actor, each of which adds 1-3 nodes to the graph. The evaluation was made on 4 graph generation tasks

Strengths and weaknesses

Strengths. The method is novel and well-presented. The technical side is written in a detailed and structured way.

Weaknesses. The experiments are only on 4 synthetic tasks.

Questions
  1. The experiments are only on 4 tasks, and these tasks are proposed in the paper itself. Are there more standard benchmarks (used in prior work) for this class of algorithms?

Questions 2 and 3 are more out of curiosity.

  1. I did not fully understand why these particular 7 possible actions were chosen (Figure 5). Is there any specific reason for this, or does it just work?

  2. Although I understood each separate part of the algorithm, I can not say that I get the crux of why the algorithm performs well. Do you have a simple, high-level explanation?

Limitations
Final justification

Based on the discussion, I keep my score unchanged (5: Accept)

Formatting concerns
2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Dear Reviewer, thank you for your comments. We greatly appreciate your assessment that the method is novel and well presented. We address your questions below.


Questions:

[HKgN Q1] The experiments are only on 4 tasks, and these tasks are proposed in the paper itself. Are there more standard benchmarks (used in prior work) for this class of algorithms?

  • To the best of our knowledge, there are currently no standardized benchmarks specifically for constrained, goal-directed generation of planar embedded graphs. Since no established benchmark exists for this problem setting, we designed four deliberately heterogeneous tasks covering widely used geometric, topological, and spectral graph metrics, different graph sizes, and varying constraint regimes. We believe that they provide a sufficiently varied evaluation of the method, while recognizing that they are not intended to exhaust all possible planar-graph generation scenarios.
  • The benchmarks' objectives were selected through a literature survey of widely used topological, spectral, and geometric metrics for planar and planar embedded graphs [33,54,55,56,57]. The four tasks combine these metrics in different realistic optimization settings and use every metric reported in Appendix D at least once. We therefore view the benchmark suite as an additional contribution and hope that it can support more standardized comparisons in future work on constrained planar embedded graph generation. We will clarify this motivation and scope in the revision by modifying the beginning of Section 5.1 as follows:

“To the best of our knowledge, no standardized benchmarks have been established for constrained, goal-directed generation of planar embedded graphs. Accordingly, the proposed benchmark suite comprises four heterogeneous tasks combining geometric, topological, and spectral metrics for constrained multi-objective optimization and varying graph sizes |G|. [Table 1 reports …]”

--

[HKgN Q2] I did not fully understand why these particular 7 possible actions were chosen (Figure 5). Is there any specific reason for this, or does it just work?

  • The choice was heuristic but deliberate, for two reasons.
  • First, for the experiments in this paper, the selected rule set is sufficiently expressive to generate a broad range of candidate graphs. In simple terms, the seven rules work well empirically, although we have not tuned the rules against the benchmarks. Thus, we cannot, nor intend to claim that they form a complete grammar for all planar graph embeddings. Deriving grammars with improved formal coverage of planar graph embeddings is an important direction for future work, which we will add more clearly to the Limitations and Future Work section as follows:

“[… At the same time, the rule set is also a strength in domain-specific settings, where hand-crafted rules encode system validity by design [48].] However, deriving grammars with improved formal coverage of planar graph embeddings is an important direction for future work.”

  • Second, the method should be interpreted as generic, whereas the chosen rule set by any user defines the family of graphs that can be generated for a particular application. This strengthens our method as it allows for domain specific knowledge to be embedded in the underlying rule set.

--

[HKgN Q3] Although I understood each separate part of the algorithm, I can not say that I get the crux of why the algorithm performs well. Do you have a simple, high-level explanation?

  • We cannot attribute the performance to a single factor, but we see two complementary explanations. First, graph grammars and Markov decision processes (MDPs) are a natural fit: the grammar constructs a graph through a sequence of local rule applications, while RL evaluates the full sequence against a global return. In this sense, the grammar provides structured construction steps that remove a large class of invalid graph transformations, and the policy learns how to compose them toward valid graphs with high task reward. This intrinsic planar graph consistency of the grammar cannot generally be guaranteed in standard global generative methods such as diffusion models without specialized constraint handling mechanisms. This may explain why the diffusion model baselines often struggle to satisfy planarity constraints while optimizing the task reward in the presented benchmarks.
  • Second, our method is dataset-free. Data-driven models primarily learn within the distribution represented by their training data and may therefore exhibit increased uncertainty when extrapolating beyond that distribution. Our method instead explores the graph family induced by the grammar and directly optimizes the task reward.
  • Together, these factors provide plausible explanations for the observed performance: the natural fit between graph grammars and MDPs and the grammar-induced structural prior reduces the effective search space for PPO, while dataset-free optimization avoids dependence on the coverage of a fixed training dataset.

We hope we were able to answer the reviewers questions adequately.

Reviewer HKgN · CommentOpenReview ↗

Thank you for the detailed response; it improves my understanding of why the algorithm is designed the way it is.

I keep my score unchanged (5: Accept)

Reviewer eez1OpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The authors propose a dataset-free method for goal-directed generation of planar graph embeddings under strict structural and geometric constraints. It formulates generation as a constrained Markov decision process where a parametric graph grammar defines states and actions, and it introduces action projection to steer sampled actions into state-dependent safe sets, improving constraint satisfaction. The authors report that their approach directly constructs feasible planar graphs during generation and that it outperforms classical and deep generative baselines across newly introduced benchmark tasks while satisfying the required constraints.

Strengths and weaknesses

Strengths

  1. The paper presents a technically sound approach with a clear, logically organized narrative that makes its motivation and contributions straightforward to understand.
  2. An important problem of constrained goal-directed planar graph generation using grammar-based RL is discussed in this paper.
  3. The experimental evaluation includes ablation studies that isolate and measure the impact of each major component or key modification.

Weaknesses

  1. The Related Work section can be expanded to include grammar- or rule-based RL approaches applied to various tasks.
  2. In the Limitations section, it would be interesting to discuss whether this approach can be used to generate meshes if the boundary geometry is given.
    
Questions
  1. What modifications or additional steps would be required to extend the method to graphs with more than 150 nodes?
  2. How is nominal rule parametrization converted into a corresponding safe set during generation?
  3. In what proportion of runs does the method require rejection sampling, and what factors influence this rate?
Limitations

Limitations and implications of the work can be extended.

Final justification

All of my concerns have been addressed, and the planned revisions will improve the paper's clarity and completeness. Based on the authors' feedback, I have updated my evaluation and increased my final score to Accept.

Formatting concerns

n/a

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Dear Reviewer, thank you for your comments. We appreciate your assessment that the paper is technically sound and addresses an important problem in constrained, goal-directed planar graph generation. Below, we address your questions and the identified weaknesses.


## Questions:

[eez1 Q1] What modifications or additional steps would be required to extend the method to graphs with more than 150 nodes?

  • Thank you for this question. Although the grammar operations and feasibility checks are local, larger graphs require longer sequential decision horizons, which become increasingly difficult to optimize with reinforcement learning under sparse rewards. We would therefore not recommend applying the current method unchanged or simply with larger neural networks to substantially larger graphs. Instead, scaling further would likely require reducing the effective decision horizon. A principled route in this setting is hierarchical reinforcement learning [65]. We see two possible avenues. (1) A high-level policy could select meta-actions that define larger structural changes, such as "expand this region" or "increase connectivity." A low-level policy would then apply the existing grammar rules to maximize the intrinsic reward specified by the high-level policy. (2) A more direct approach would extend the grammar with larger, recurrently defined motifs: a high-level policy would select a motif, while a low-level policy would learn its recurrent parametrization. Both approaches are natural directions for future work and could substantially improve scalability.

  • We will make this scaling strategy more explicit in the revised Limitations and Future Work section by adding the following paragraph:

“[… Tackling this scalability ceiling is left for future work], where a principled approach could be the adoption of hierarchical reinforcement learning [65] to reduce the effective decision horizon. A higher-level policy would select actions that define larger structural changes, while a lower-level policy would apply the existing grammar to maximize the intrinsic reward obtained by the high-level policy. Such an extension could also facilitate applications to constrained, goal-directed mesh generation, where substantially larger graphs are typically required.”

  • Newly added reference:
    [65] Sutton, R. S., Precup, D., and Singh, S., “Between MDPs and Semi-MDPs: A Framework for Temporal Abstraction in Reinforcement Learning,” Artificial Intelligence, vol. 112, nos. 1–2, pp. 181–211, 1999.

--

[eez1 Q2] How is the nominal rule parametrization converted into a corresponding safe set during generation?

  • During generation, we use the same safe set projection as during training. A nominal rule parametrization sampled from the Gaussian head ξˉt∼qϕ\bar \xi_t \sim q_{\phi} is transformed by the learned bijection ηψ\eta_\psi, which we term the action projection, into approximately safe continuous action parameters θˉt\bar \theta_t. The environment then checks the transformed action for constraint violations. In most cases, the action is feasible, as shown in Appendix Figures 7e and 7f: geometric violations tend toward zero by the end of training. If a constraint is still violated, the CMA-ES fallback (Eq. 13) further optimizes θˉt\bar \theta_t toward feasibility. If CMA-ES does not find a feasible solution, we use rejection sampling.

--

[eez1 Q3] In what proportion of runs does the method require rejection sampling, and what factors influence this rate?

  • Thank you for this question. We will extend Appendix C.3 to report the rejection-sampling rate relative to the full episode length when action projection and CMA-ES are enabled. Based on the scalability-study results (see Figure 4 in the manuscript) across graph sizes, with loose and tight constraints (C1\mathcal{C}_1 and C2\mathcal{C}_2, respectively in the following table), the table below reports the rejection sampling rates at 0%, 25%, 50%, 75% and 100% of training. All values are computed across the five training seeds with indicated mean and standard deviation:

Table: Rejection sampling rate (mean ± std across seeds), where C1\mathcal{C}_1 and C2\mathcal{C}_2 denote loose and tight constraint settings, as defined in the manuscript.

Progress Constraint G=60 G=90 G=120 G=150
Beginning C1\mathcal{C}_1 11.5±1.4% 12.6±0.3% 14.7±0.5% 15.9±1.0%
C2\mathcal{C}_2 15.4±0.8% 17.6±0.6% 20.5±0.8% 21.6±1.2%
25% C1\mathcal{C}_1 1.0±0.8% 2.8±0.1% 2.5±0.5% 10.8±10.7%
C2\mathcal{C}_2 2.2±2.3% 3.4±1.2% 11.3±3.0% 13.8±5.1%
50% C1\mathcal{C}_1 0.3±0.1% 0.9±0.3% 1.6±0.7% 5.0±3.8%
C2\mathcal{C}_2 1.8±2.4% 2.4±0.8% 7.3±2.9% 9.8±5.2%
75% C1\mathcal{C}_1 0.2±0.2% 0.4±0.1% 0.9±0.4% 3.9±2.9%
C2\mathcal{C}_2 0.5±0.5% 1.4±0.6% 6.3±2.3% 8.5±4.4%
100% C1\mathcal{C}_1 0.1±0.1% 0.3±0.1% 0.9±0.4% 3.6±2.5%
C2\mathcal{C}_2 0.3±0.4% 1.1±0.2% 5.5±2.0% 7.7±4.3%
  • We will include this information in terms of a Figure in Appendix C.3 in the revised manuscript. The results show that the rejection rate decreases quickly during training for all graph sizes and both constraint regimes while rejection is more frequent for larger graphs and tighter constraints.

Weaknesses:

[eez1 W1] The Related Works Section should be expanded to include grammar or rule-based RL approaches.

  • Thank you for this suggestion. We can further expand the Related Works Section with the following discussion of grammar- and rule-based RL:

"[Reinforcement learning provides a natural framework for goal-directed graph construction through sequential decisions [41, 42]. It has been widely used in molecular graph generation, where policies add atoms and bonds under chemistry-specific validity [2, 16, 17, 18].] Grammar- and rule-based RL has been applied to molecular optimization, where policies select productions from molecular grammars to preserve chemical validity [43, 20], to structural design, where grammar actions preserve domain-specific structural constraints [5, 62]. It has also been applied to computation-graph optimization, where RL selects rules for neural-network subgraph rewriting [63]. These works demonstrate the value of structured action spaces. However, they mainly address discrete and structural domain-specific construction. Our distinguishing setting is the goal-directed generation of planar embedded graphs using hybrid discrete-continuous action spaces: the policy jointly selects a graph match, a rewriting rule, and safe continuous geometric parameters, thereby coupling discrete topological graph rewriting with continuous embedding optimization under state-dependent topological and geometric constraints."

  • Newly added references:
    [62] Bleker et al., "A Graph-Based Grammar for Structural Design using Deep Reinforcement Learning," IASS 2024.
    [63] He et al., "X-RLflow: Graph Reinforcement Learning for Neural Network Subgraphs Transformation," MLSys 2023.

--

[eez1 W2] Can the method be extended to mesh-generation?

  • This is a great suggestion. We believe the method could be extended to constrained 2D mesh generation with a prescribed boundary, particularly when user-defined mesh objectives must be optimized. This would require a small change of the grammar: instead of starting from a single expansion node, the initial state could contain several expansion nodes along the boundary. Additional constraints would keep generated nodes and edges inside the domain, and an episode would terminate only once the generated planar graph is connected and conforms to the boundary. For larger meshes, this extension could be combined with the hierarchical strategies described in the answer to [eez1 Q1].

  • We therefore see no fundamental incompatibility with mesh generation. However, high-quality mesh generation requires well-shaped elements and strong quality guarantees, for which established meshing methods are substantially more specialized and mature. Nevertheless, the incorporation of grammar-encoded local constraints and global task optimization could provide complementary flexibility for user-defined objectives beyond standard mesh generator criteria. We therefore view this extension as a possible application direction rather than claiming that the current method is competitive with dedicated mesh-generation algorithms.

  • We will add mesh generation as a potential application to the Introduction in the manuscript. We refer the reviewer to our answer to [cuNK W1] for the revised Introduction paragraph. We will also discuss this direction in the Limitations and Future Work Section, where we elaborate the associated scalability challenges for mesh-generation, see our responses and revised paragraph in the answer to [eez Q1].


We believe to have addressed the reviewer’s concerns to improve the completeness of our work.

Authors · CommentOpenReview ↗

Dear Reviewer eez1,

Thank you again for your thoughtful feedback and questions.

As the discussion period nears its end, we’d appreciate any final thoughts you may have on our responses, if time permits. We’d also be happy to clarify anything further if needed.

If you feel that our responses have addressed your concerns, we would appreciate it if you could take them into account when finalizing your evaluation.

Reviewer eez1 · CommentOpenReview ↗

Thank you for the detailed response. All of my concerns have been addressed, and the planned revisions will improve the paper's clarity and completeness. Based on the authors' feedback, I have updated my evaluation and increased my final score to Accept.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…