SNACK: A Sequential Notation Framework for Probabilistic Graph Generation
Hohyun Kim, Hyesung Kim, Min-hwan Oh, Seunggeun Lee
NeurIPS 2026
TL;DR. SNACK converts graphs into ordered-adjacency sequences, enabling valid, conditioned generation and efficient string-based GFlowNet training with competitive performance.
Abstract. We introduce SNACK, a string representation for probabilistic graph generation that enables language models to generate graphs with discrete node and edge features. SNACK linearizes graphs by encoding the nonzero entries of the lower-triangular adjacency matrix, establishing a bijective correspondence between valid sequences and ordered adjacency matrices. This design enables invalid logit masking to enforce structural constraints, such as chemical valence and ordering rules, thereby guaranteeing 100% valid generated sequences while sticking to standard language modeling for effective training. SNACK also enables principled string-based GFlowNet training by explicitly accounting for node-ordering symmetries. Across standard graph-generation tasks and molecular distribution-learning benchmarks, SNACK achieves competitive sample quality, while substantially improving the throughput of GFlowNet training relative to graph-based generation. Probing analyses further show that models trained on SNACK encode meaningful local and global graph structure despite receiving only sequential supervision. These results position SNACK as a practical framework for probabilistic graph generation with deep sequence models.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper introduces a novel simple graph encoding method for graph generative models. There is a significant amount of disagreement amongst reviewers, especially considering the novelty and impact of the paper. I tend to take Ffqb view before the discussion period and author-reviewer comments; in my view, accepting a paper with a clear (albeit sometimes marginal) gains in something as fundamental as graph encoding is better than some over-engineered methodology. I would encourage authors to answer Reviewer YFJu's questions fully.
Final justification
After extensive discussions the negative champion R. YFJu has raised their evaluation of the paper; now it seems like a clear accept. I tend to value simple contributions since they will be hopefully more broadly applicable, so I am happy to recommend acceptance in this case. The only ask is for authors to carefully update the paper on the basis of discussions held during the reviewing process.
Read meta-review
Meta-review
This paper introduces a novel simple graph encoding method for graph generative models. There is a significant amount of disagreement amongst reviewers, especially considering the novelty and impact of the paper. I tend to take Ffqb view before the discussion period and author-reviewer comments; in my view, accepting a paper with a clear (albeit sometimes marginal) gains in something as fundamental as graph encoding is better than some over-engineered methodology. I would encourage authors to answer Reviewer YFJu's questions fully.
Final justification
After extensive discussions the negative champion R. YFJu has raised their evaluation of the paper; now it seems like a clear accept. I tend to value simple contributions since they will be hopefully more broadly applicable, so I am happy to recommend acceptance in this case. The only ask is for authors to carefully update the paper on the basis of discussions held during the reviewing process.
1 comment
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/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 introduces SNACK, a novel method that converts a graph into a sequence. The representation is proven to establish a bijective correspondence between valid sequences and ordered adjacency matrices. Because an intermediate graph can be readily decoded from any partially generated sequence, SNACK also supports invalid-logit masking to enforce structural constraints during generation. In addition, it enables principled string-based GFlowNet training. Experiments on multiple standard graph-generation tasks and molecular distribution-learning benchmarks demonstrate the effectiveness of SNACK, and probing analyses further show that models trained on SNACK encode meaningful local and global graph structure.
Strengths and weaknesses
S1. Accurate motivation and gap identification. The many-to-one nature of string representations is a genuine obstacle to their use in GFlowNets, and the proposed bijection-plus-automorphism formulation offers a principled and practical remedy.
S2. Comprehensive capability coverage. A single framework simultaneously supports distribution learning, constrained generation (grammar/valence/BFS masking), and both de novo and conditional GFlowNet training, all while guaranteeing 100% structural validity. This directly addresses the fragmentation of prior string-based methods, each of which covers only a subset of these capabilities.
S3. Convincing evidence for scalability. SNACK outperforms graph baselines across all three dimensions—training throughput, inference latency, and memory usage—and these gains are consistent with the accompanying complexity analysis (computing an entire trajectory in a single forward pass rather than passes, reducing cost from cubic to quadratic).
S4. Probing analysis with independent value. The authors show that, under pure sequence-level supervision alone, the model still internally recovers local connectivity and global geometry, supported by layer-wise visualizations—an interesting finding that stands on its own.
W1. Marginal gains in distribution learning. On QM9 and MOSES, SNACK largely ties SELFIES/STGG/GEEL within one standard deviation. The representation does not clearly improve standard generation quality, so the central case for the method rests almost entirely on GFlowNet scalability rather than on generative performance.
W2. Vocabulary scaling with bandwidth. The vocabulary grows linearly with the BFS bandwidth, so for graphs with large bandwidth the distance-token vocabulary—and consequently the masking and decoding cost—could grow substantially. While the paper bounds this by , it does not report per-dataset bandwidth statistics or empirically characterize the practical effect on large graphs.
Questions
The distance-token vocabulary size is estimated from the training-set bandwidth with some "extra allocation"—how much exactly is allocated, and on what basis? When generation genuinely requires a connection that exceeds the maximum distance seen in training, how does the masking avoid incorrectly filtering out valid molecules?
Limitations
yes
Formatting concerns
No formatting concerns
2 comments
Rebuttal
We sincerely appreciate for the insightful and highly encouraging review. We are deeply grateful that the reviewer recognized our core motivations and technical contributions, specifically: (1) addressing the many-to-one challenge of string representations via the proposed bijection-plus-automorphism formulation, (2) providing comprehensive capability coverage with guaranteed structural validity, and (3) demonstrating significant scalability improvements backed by both empirical evidence and complexity analysis.
Below, we address the remaining questions regarding (1) performance gains in distribution learning and (2) vocabulary scaling with respect to bandwidth.
Distribution learning performance
Our new results demonstrate that SNACK is a robust and competitive string-based method on distribution learning.
We additionally evaluated our model on the Peptides-func dataset from [10]. Peptides-func provides a more challenging distribution learning benchmark, as its molecules contain 150 atoms on average (compared to 22 for MOSES). We adopted a 10,000 / 2,000 / 3,371 split for training / validation / testing. Models were trained for 100 epochs with an early stopping patience of 20, with all other hyperparameters kept identical to those in the MOSES experiments.
| Method | Valid ↑ | FCD ↓ | SNN ↑ | Frag ↑ | Scaf ↑ |
|---|---|---|---|---|---|
| SMILES | 0.820 ± 0.027 | 0.755 ± 0.071 | 0.762 ± 0.003 | 0.999 ± 0.000 | 0.887 ± 0.006 |
| SELFIES | 1.000 ± 0.000 | 0.444 ± 0.042 | 0.715 ± 0.002 | 1.000 ± 0.000 | 0.887 ± 0.003 |
| GEEL | 0.781 ± 0.028 | 1.701 ± 0.331 | 0.689 ± 0.010 | 0.998 ± 0.000 | 0.896 ± 0.004 |
| SNACK (None) | 0.938 ± 0.013 | 0.422 ± 0.064 | 0.755 ± 0.002 | 0.999 ± 0.000 | 0.889 ± 0.001 |
| SNACK (B+V) | 1.000 ± 0.000 | 0.376 ± 0.070 | 0.755 ± 0.005 | 1.000 ± 0.000 | 0.891 ± 0.003 |
On this challenging benchmark, SNACK demonstrates a clear advantage in validity metrics and outperforms existing baselines on FCD, the most informative metric, while being competitive on SNN. Compared to SELFIES, the only other method guaranteeing 100% validity, SNACK achieves superior performance across all metrics. This may stem from SNACK's compact, unambiguous tokens, which reduce syntax redundancies and help the model focus more effectively on structural patterns.
The results demonstrate that SNACK is a robust and competitive string-based method that enables both generic and molecular graph generation.
Finally, we would like to highlight a key insight revealed by our unified experiments: prior work on distribution learning often evaluated molecular representations under confounding factors, such as disparate backbone architectures or training tricks (e.g., using CharRNN instead of directly evaluating SMILES), making apples-to-apples comparisons difficult. By holding the experimental setup controlled and consistent across representations, our benchmark reveals that:
- Standard representations (e.g., SMILES) are surprisingly robust, showing that the choice of molecular representation may have a smaller impact on distribution learning performance among top-performing strings than assumed in some prior work.
- Top-performing string representations remain distinct and highly effective, and SNACK establishes itself as one of these top-performing methods.
[10] Diamant et al., Improving graph generation by restricting graph bandwidth, ICML, 2023.
Conditioned generation results
We additionally include conditional generation results on the Peptides-func dataset. We selected 161 samples that have atoms as conditional fragments. For each condition sample, we generated 100 samples using the pretrained models and computed the similarities against the remaining test set. The next table shows that both SNACK (V+B) and SNACK (None) exhibit strong performance in constrained generation.
| Method | Valid ↑ | Unique ↑ | EOS ↓ | FCD ↓ | SNN ↑ |
|---|---|---|---|---|---|
| SELFIES | 1.000±.000 | 0.093±.022 | 0.884 ± 0.017 | 27.08±0.23 | 0.643 ± 0.002 |
| SMILES | 0.989±.001 | 0.090±.011 | 0.896 ± 0.011 | 28.94±0.34 | 0.645 ± 0.003 |
| SNACK (None) | 0.993±.001 | 0.243±.010 | 0.682 ± 0.008 | 21.18±0.43 | 0.669 ± 0.004 |
| SNACK (V+B) | 1.000±.000 | 0.237±.008 | 0.681 ± 0.021 | 20.91±0.42 | 0.670 ± 0.004 |
The EOS rate represents the percentage of generated sequences where the model immediately terminates generation without adding any atoms. SMILES and SELFIES exhibit relatively high EOS rates because complete fragments rarely appear as valid prefixes. In contrast, for SNACK, every subsequence ending with a node-type token constitutes a valid prefix.
In fact, SNACK functions more similarly to graph-based methods by allowing attachments to any atom within the bandwidth.
Example:
-
SNACK:
[C]1-[C]1-[C]3-[C]→ Can attach
3-[N]to the second atom.→ Valid prefixes:
[C],[C]1-[C],[C]1-[C]1-[C] -
SMILES:
C(CC)C→ The only option is to extend from the last atom.
→ Valid prefixes:
C,C(CC)
This flexibility makes SNACK particularly well-suited for conditioned generation.
Distance token allocation
You are correct that SNACK's vocabulary grows with bandwidth—a clear improvement over GEEL [6], a scalable graph generation method that scales as . We are more than happy to clarify how distance tokens are allocated in advance. We separate the procedure into two cases:
- Distribution learning: In this case, bandwidth can be estimated from the training set, similar to GraphRNN [3]. GraphRNN estimated bandwidth by sampling 100,000 BFS orderings per dataset and setting to roughly the 99.9th percentile of the empirical distribution. Similarly, we used the empirical distribution to estimate the maximum bandwidth in the training set. We then assigned distance tokens across all datasets. The number 5 was chosen for convenience, as it incurs minimal computational cost.
- Goal-directed learning: In this case, the vocabulary size needs to be large enough to accommodate the bandwidth of the generated graphs. Since a model generates a sequence using only its pre-assigned bandwidth, the generated sequences inherently have a bounded bandwidth. Larger bandwidths occur only when the generated graphs are linearized under different node orderings. While a precise estimation of the maximum bandwidth could be beneficial, we chose to assign (number of nodes) distance tokens, given that is at most 40 in our setting.
Therefore, regarding the question of whether generation requires a connection that exceeds the maximum distance seen in training, the short answer is simply that this scenario will only rarely happen, if ever. Other graph tokenizers, such as GEEL [6], STGG [5], and G2PT [16], face a similar out-of-vocabulary (OOV) token issue, where the number of rings, bandwidth, or number of nodes must be estimated in advance. A common and simple practical strategy is to allocate additional vocabulary space.
If one genuinely has to deal with situations where it is difficult to estimate the maximum bandwidth in advance, the practical way will be to remove samples that exceeds the bandwidth when computing the loss. Alternatively, one could define digit tokens (0–9) and combine them to represent numbers greater than 9, similar to how character-level SMILES handles ring numbers exceeding 9.
A larger bandwidth is unlikely to increase the decoding cost. This is because the distance token directly identifies the target node for attachment, allowing the parser to determine the exact connection position. Similarly, the masking cost is unlikely to increase, as candidate tokens are straightforward to identify—for instance, if the previous distance token is , only tokens within the range are valid for the next distance token.
Regarding the training cost, we believe that the extra allocation of distance tokens does not incur significant computational overhead, as it accounts for only a small fraction of parameters. In fact, such extra allocation is intentionally leveraged to boost training speed in certain settings [71]. Likewise, masking a few additional logits in the model output imposes negligible computational cost.
Additionally, we provide the bandwidth statistics for general graphs, which are also summarized in Table 12 of the paper.
| Dataset | # of graphs | # of nodes | Max. B | Max. # of edges |
|---|---|---|---|---|
| Planar | 200 | 33 | 181 | |
| Lobster | 100 | 60 | 99 | |
| Enzymes | 587 | 26 | 149 | |
| SBM | 200 | 120 | 1129 | |
| Ego | 757 | 284 | 1071 | |
| Grid | 100 | 39 | 684 | |
| Ego-small | 200 | 16 | 66 | |
| Community-small | 100 | 15 | 60 | |
| QM9 | 133,885 | 5 | 13 | |
| MOSES | 1,936,962 | 12 | 31 | |
[6] Jang et al., A simple and scalable representation for graph generation, ICLR, 2024.
[3] You et al., Graphrnn: Generating realistic graphs with deep auto-regressive models, ICML, 2018.
[5] Ahn et al., Spanning tree-based graph generation for molecules, ICLR, 2021.
[16] Chen et al., Graph generative pre-trained transformer, ICML, 2025.
[71] https://github.com/rasbt/LLMs-from-scratch/tree/main/ch05/10_llm-training-speed
Gentle Reminder: Discussion Period Closing Soon
Thank you again for your valuable time and insightful feedback.
As the author–reviewer discussion period is approaching its conclusion, we would be grateful if you could let us know whether our response has addressed your main concerns, or whether any point still requires clarification.
We have provided responses to each of the concerns raised in the review, including the additional analyses and clarifications regarding:
- Distribution learning: We have included additional experimental results and clarified our scope and positioning accordingly.
- Clarification on bandwidth scaling: We have provided a detailed analysis of the computational efficiency with bandwidth-restricted encoding.
We would be happy to provide a concise follow-up during the remaining discussion period.
Best regards,
Authors
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces SNACK (Sequential Notation of Adjacent Connectivity FrameworK), a string representation for graphs intended for probabilistic graph generation with sequence models. SNACK linearizes a graph by walking the lower-triangular part of the adjacency matrix row by row, recording only non-zero entries: each node contributes a node-type token (the repurposed diagonal), and each edge to an earlier node contributes a (distance, edge-type) token pair, using relative distance |k−i| so that the distance-token vocabulary scales with the graph bandwidth rather than the number of nodes. The encoding uses BFS ordering to keep bandwidth small, and uses N+2M tokens for a graph with N nodes and M edges.
The representation has three properties the authors build on: (i) it is bijective with the (ordered) adjacency matrix, so each string decodes to a unique ordered graph and vice versa; (ii) any prefix decodes to a valid partial graph, enabling invalid-logit masking (grammar, chemical-valence, and BFS-ordering masks) for constraint enforcement and 100% validity; and (iii) because the string-to-graph map is exactly evaluable, the node-ordering distribution q(x|G) = |Aut(A)|·q^{ord}(π|G) can be computed (the automorphism-correction formula of Chen et al. [7]), which the authors use to train string-based GFlowNets with a (VarGrad) Trajectory-Balance objective, including a conditioned variant for substructure-constrained generation.
Experiments span (a) generic graph generation (MMD on degree/clustering/orbit statistics; Planar/Enzymes/SBM/Grid and more), (b) molecular distribution learning (QM9/MOSES; validity, FCD, SNN, Frag, Scaf) against string baselines (SMILES, SELFIES, SAFE, STGG, GEEL, G2PT), (c) goal-directed generation via GFlowNets (HOMO–LUMO gap and albuterol/aripiprazole similarity) against a graph-based GFlowNet, (d) conditioned optimization, (e) a throughput/scalability study, and (f) a bilinear-probing analysis showing the trained model's hidden states can reconstruct adjacency and shortest-path-distance matrices.
Strengths and weaknesses
Originality (good). The core idea—combining a compact bijective string encoding with an explicit automorphism correction so that a standard sequence model can be trained as a correct GFlowNet—is a useful and, to my knowledge, novel synthesis. To the authors' credit they are clear that the automorphism formula itself is from Chen et al. [7]. I would, however, temper the framing of bijectivity as a first. Reading the supplied GEEL tokenizer, GEEL's deterministic edge-list encode/decode is also one-to-one with the ordered adjacency matrix; it is simply not framed as "bijective." So the bijection is a fairly mechanical property of any deterministic edge/row enumeration, and the genuine increments over GEEL are (i) the row-by-row, node-centric encoding giving a distance-token vocabulary that is linear in bandwidth rather than GEEL's quadratic edge-tuple vocabulary, and (ii) being first to wire such an encoding + automorphism correction into a string GFlowNet (prior string representations targeted distribution learning only). These are real, but they are incremental rather than foundational.
Quality (good). The technical execution is solid and, importantly, I was able to check it. The bijectivity proof (App. A.4) is correct, the Trajectory-Balance loss and the role of q(x|G) in distributing reward across equivalent strings match the implementation in the supplement, and the reward oracles are faithfully ported (the QM9-gap MXMNet reward is "identical to gflownet's QM9GapTask"). SNACK's own pipeline therefore looks reproducible. The chief quality concern is on the goal-directed comparison, which carries the paper's strongest claim ("substantially outperforms" the graph baseline). The graph-based GFlowNet baseline is absent from the supplement, so its tuning cannot be verified, and two confounds are not addressed: (a) whether the baseline used the same automorphism correction—since exact graph GFlowNets require it (Kim et al. [8]), comparing a corrected SNACK against an uncorrected graph baseline would conflate "string vs. graph" with "corrected vs. uncorrected"; and (b) whether the sharp reward_exponent (32 by default) was tuned for the baseline, since an overly sharp reward is a classic driver of the mode collapse observed on albuterol (unique fraction 0.001). On the smaller HOMO–LUMO task, where the baseline does not collapse, the two methods are essentially at parity.
Significance (limited). UQ-free graph generation is well-studied and a clean, masking-friendly, GFlowNet-compatible representation is a welcome addition. But the demonstrated empirical advantages are weaker than the abstract suggests. On distribution learning, SNACK is on par with, not clearly better than, the strongest baselines: on QM9 it ties SELFIES on FCD (0.037), but on MOSES the simplest baseline (SMILES) attains the best FCD (0.100 vs. SNACK's 0.103) and GEEL/SMILES match or beat SNACK on SNN. Since validity is near-saturated and trivially achievable via masking, and since the most informative metric (FCD) shows parity, the wording "competitive or state-of-the-art" overstates the SOTA part; "competitive with the best string representations" would be accurate. The remaining significance therefore rests largely on the methodological enablement (correct, scalable string GFlowNets) and on the scalability argument, whose cubic→quadratic claim depends on N ∝ L under dense attention and on bandwidth-bounded vocabulary.
Clarity (good). The method is well explained and Figure 1 makes the encoding concrete; the paper is thorough (broad experiments, probing, ablations). Two clarity issues: the scope of "graph generation" is broader in the title/abstract than what the representation supports—SNACK encodes only categorical node/edge types plus topology, so it applies to molecules and unattributed graphs but not to graphs with continuous node features; this boundary should be stated up front. The probing result, while intriguing, would be more convincing with a control (e.g., the same over-parameterized bilinear probe on an untrained model or a non-SNACK representation), since a two-full-rank-matrix probe is expressive enough that near-perfect reconstruction may partly reflect probe capacity rather than what SNACK uniquely encodes.
Overall, this is a well-executed paper with a genuinely useful methodological contribution (a reproducible, automorphism-correct string GFlowNet via a compact bijective encoding), but its headline empirical claims are somewhat overstated and the single most striking result is not currently reproducible.
Questions
- Goal-directed baseline. Please release the graph-based GFlowNet baseline code/config and clarify: (a) did it use the same automorphism correction (Kim et al. [8]) as SNACK, and (b) was its reward_exponent/learning rate tuned separately? An apples-to-apples comparison—matched correction and per-method tuning—on the albuterol/aripiprazole tasks would directly address whether the collapse reflects an inherent graph-GFlowNet scaling limitation or an under-tuned baseline.
- Distribution-learning positioning. Given that on MOSES the best FCD is SMILES (0.100) and SNACK is 0.103, and SNN favors GEEL/SMILES, could you either (a) soften "state-of-the-art" to "on par with the strongest string baselines," or (b) provide significance testing / additional metrics showing a real distribution-learning advantage? What, concretely, does SNACK gain on distribution learning beyond enabling GFlowNets?
- Bijectivity novelty vs. GEEL. GEEL's deterministic edge-list encoding also appears one-to-one with the ordered adjacency matrix. Could you state precisely what is uniquely novel in SNACK's bijection claim—is it the linear-in-bandwidth vocabulary, the GFlowNet application, or something else—and contrast with GEEL on that specific axis?
- Scope / applicability. Please clarify in the abstract/intro that SNACK targets graphs with discrete (or absent) node/edge attributes. How would the framework handle graphs with continuous node features, if at all?
- Probing control. Can you add a baseline for Figure 3—e.g., the same bilinear probe on an untrained SNACK model and/or on a non-SNACK string representation—so the reconstruction quality can be attributed to SNACK's representation rather than probe capacity?
Limitations
Adequately discussed for the most part—the authors are upfront about the fixed, hand-designed ordering policy, the O(N^2) attention/memory bottleneck (PubMed-scale exceeds GPU memory), and the |Aut(A)| computation cost. Two limitations are under-stated and should be added: (1) the scope restriction to discrete-attributed/unattributed graphs (no continuous node features); and (2) that the goal-directed superiority is demonstrated only against a single, non-released graph baseline, with parity on the one task where that baseline is stable. No negative societal impact concerns beyond the general dual-use nature of molecular generation, which is adequately benign here.
Formatting concerns
None
2 comments
Rebuttal
We appreciate your thoughtful comments, especially your detailed summary of our work, recognition of our contributions to the field, and valuable feedback.
Goal-directed baseline
We provide additional details on the hyperparameters and experimental results to ensure our conclusions are not based on artifacts.
(a) Automorphism correction
We applied the same automorphism correction for both the SNACK and the graph-GFN, following [8].
(b) Hyperparameters
For the graph-based GFlowNet baseline, we used the implementation from the open-source recursionpharma/gflownet repository. We mostly used the default hyperparameters of the repo, also adopted in the MO-GFN [18]:
- learning_rate: 1e-4
- gradient_clip_value: 10
- uniform_policy_mix: 0.001
- reward_exponent: 32
Regarding the reward exponent, we adopted different strategies for QM9Gap and the similarity tasks (albuterol, aripiprazole). For QM9Gap, we fixed the exponent to a constant value of 32 to align with the MO-GFN paper. For the similarity tasks, reward exponents were sampled uniformly from during training, not the sharp reward_exponent 32 (following the repository's default implementation). For SNACK-GFN, we used uniform_policy_mix=0.1, reward_exponent=32.
(c) Sensitivity analysis
We conducted additional experiments on Graph-GFN to analyze the impact of the reward exponent under two settings: (i) Graph-GFN matching SNACK's configuration exactly, except for model-related parameters, and (ii) a sensitivity sweep over constant reward exponents in {4, 16, 32}.
| Reward | Method | Reward exponent | Avg. Reward | Diversity | Top 100 reward | Uniq. Frac. |
|---|---|---|---|---|---|---|
| Ari | Graph-GFN | uniform in [0.5, 32] | 0.138 | 0.719 | 0.214 | 0.573 |
| 4 | 0.160 | 0.967 | 0.208 | 0.999 | ||
| 16 | 0.158 | 0.955 | 0.210 | 0.974 | ||
| 32 | 0.131 | 0.960 | 0.209 | 0.806 | ||
| SNACK (V) | 32 | 0.187 | 0.942 | 0.258 | 1.000 | |
| SNACK (V+B) | 32 | 0.292 | 0.945 | 0.469 | 1.000 | |
| Alb | Graph-GFN | uniform in [0.5, 32] | 0.096 | 0.002 | 0.098 | 0.001 |
| 4 | 0.114 | 0.955 | 0.164 | 0.996 | ||
| 16 | 0.116 | 0.959 | 0.180 | 0.977 | ||
| 32 | 0.004 | 0.966 | 0.129 | 0.039 | ||
| SNACK (V) | 32 | 0.353 | 0.937 | 0.552 | 1.000 | |
| SNACK (V+B) | 32 | 0.529 | 0.930 | 0.736 | 1.000 | |
Graph-GFN no longer exhibits mode collapse and achieves an improved average reward for all exponent values, possibly because of increased policy mix. However, even the tuned Graph-GFN still falls short of SNACK in terms of average reward, Top-100 reward, and fraction of unique molecules. SNACK can also be further improved once hyperparameters are adequately tuned, as we used a single setting across all tasks without per-task tuning.
Importantly, we promise to thoroughly release all hyperparameters and implementation details, revise the main table, and ensure that our experimental results are not an artifact of specific hyperparameter tuning.
[8] Kim et al., Symmetry-aware gflownets, ICML, 2025.
[18] Jain et al., Multi-objective gflownets, ICML, 2023.
Distribution-learning positioning
Our new results demonstrate that SNACK is a robust and competitive string-based method on distribution learning. While we agree that describing our model as "on par with the strongest string baselines" provides a more accurate characterization given MOSES results, our additional experiments further demonstrate its strong performance on the Peptides-func dataset.
Peptides-func provides a more challenging distribution learning benchmark, as its molecules contain 150 atoms on average (compared to 22 for MOSES). We adopted a 10,000 / 2,000 / 3,371 split, and models were trained for 100 epochs with patience of 20, with all other hyperparameters kept identical to those in the MOSES experiments.
| Method | Valid ↑ | FCD ↓ | SNN ↑ | Scaf ↑ |
|---|---|---|---|---|
| SMILES | 0.82 ± 0.03 | 0.76 ± 0.07 | 0.76 ± 0.00 | 0.89 ± 0.01 |
| SELFIES | 1.00 ± 0.00 | 0.44 ± 0.04 | 0.72 ± 0.00 | 0.89 ± 0.00 |
| GEEL | 0.78 ± 0.03 | 1.70 ± 0.33 | 0.69 ± 0.01 | 0.90 ± 0.00 |
| SNACK (None) | 0.94 ± 0.01 | 0.42 ± 0.06 | 0.76 ± 0.00 | 0.89 ± 0.00 |
| SNACK (B+V) | 1.00 ± 0.00 | 0.38 ± 0.07 | 0.76 ± 0.01 | 0.89 ± 0.00 |
On this challenging benchmark, SNACK demonstrates a clear advantage in validity metrics and outperforms existing baselines on FCD, the most informative metric.
Bijectivity novelty vs. GEEL
You are correct to point out the novelty of SNACK compared to GEEL are:
- Explicit formalism that allows us to compute .
- Improved vocabulary size: .
In addition, SNACK provides more versatile framework:
- Conditional generation capability: SNACK naturally supports continuation from arbitrary graph fragments without complicating the generation process. In contrast, GEEL requires a "dummy" edge-tuple token indicating that no further edges can be added to that node. So completing a fragment closes off its ordering and leaves no valid place to append new bonds. Continuation is thus ill-defined, whereas SNACK can simply keep adding edges.
In our paper, we conducted experiments on both conditional generation (Appendix F.5; using a pretrained model) and conditional optimization (Section 4.3; using a GFlowNet objective), demonstrating its flexibility.
Finally, GEEL is not designed with bijectivity in mind. For instance, it suffers from node-type ambiguity, using both [NH] and [N] tokens to represent identical molecules. Additionally, to our knowledge, we are the first to apply BFS masking, which is crucial for preserving bijectivity and improving exploration in goal-directed settings. Thus, we emphasize that bijectivity is not automatically preserved, but rather requires a combination of tailored techniques. Our work is the first to formally analyze the conditions for bijectivity and successfully implement them within string-based representations for GFlowNets. Nevertheless, we will clarify in the revision the conditions under which other methods can preserve bijectivity.
Conditioned generation results
We additionally include conditional generation results on the Peptides-func dataset. We selected 161 samples that have atoms as conditional fragments. For each condition sample, we generated 100 samples using the pretrained models and computed the similarities against the remaining test set. The next table shows that both SNACK (V+B) and SNACK (None) exhibit strong performance in constrained generation.
| Method | Unique ↑ | EOS ↓ | FCD ↓ | SNN ↑ |
|---|---|---|---|---|
| SELFIES | 0.093±.022 | 0.884 ± 0.017 | 27.08±0.23 | 0.643 ± 0.002 |
| SMILES | 0.090±.011 | 0.896 ± 0.011 | 28.94±0.34 | 0.645 ± 0.003 |
| SNACK (None) | 0.243±.010 | 0.682 ± 0.008 | 21.18±0.43 | 0.669 ± 0.004 |
| SNACK (V+B) | 0.237±.008 | 0.681 ± 0.021 | 20.91±0.42 | 0.670 ± 0.004 |
The EOS rate represents the percentage of generated sequences where the model immediately terminates generation without adding any atoms. SMILES and SELFIES exhibit relatively high EOS rates because complete fragments rarely appear as valid prefixes. In contrast, for SNACK, every subsequence ending with a node-type token constitutes a valid prefix.
In fact, SNACK functions more similarly to graph-based methods by allowing attachments to any atom within the bandwidth.
Example:
-
SNACK:
[C]1-[C]1-[C]3-[C]→ Can attach
3-[N]to the second atom.→ Valid prefixes:
[C],[C]1-[C],[C]1-[C]1-[C] -
SMILES:
C(CC)C→ The only option is to extend from the last atom.
→ Valid prefixes:
C,C(CC)
This flexibility makes SNACK particularly well-suited for conditioned generation.
Scope / applicability
We agree that explicitly defining the applicability of SNACK will sharpen the scope of the paper. In the revised version, we promise to update the Abstract and the Introduction to state clearly that SNACK specifically targets graphs with discrete node and edge attributes.
Probing control
Our use of over-parameterization does not increase the expressiveness of the model beyond its single-matrix counterpart. Because the two matrices enter the inner product in the form , the formulation essentially optimizes a single matrix .
As suggested, we evaluated a bilinear probe on both a trained SMILES model and an untrained baseline. The trained SMILES model achieves high accuracy in reconstructing the adjacency matrix, indicating that the next-token prediction task generally induces representations that encode graph structural patterns, despite the linearized input.
In contrast, the randomly initialized model reconstructs adjacency matrices that capture only coarse structural trends, yielding blurred probability distributions along the main diagonal—a trivial artifact of the BFS ordering, where non-zero entries inherently cluster near the diagonal. Similarly, the recovered SPD matrices merely exhibit averaged patterns rather than fine-grained structural representations.
| Target | Metric | SNACK | SMILES | Random |
|---|---|---|---|---|
| Adjacency | Accuracy ↑ | 0.9976 | 0.9894 | 0.9191 |
| ROC AUC ↑ | 0.9998 | 0.9970 | 0.9362 | |
| SPD | MSE ↓ | 1.6659 | 1.2722 | 3.0564 |
| MAE ↓ | 0.9250 | 0.8148 | 1.2897 | |
We will incorporate these results and clarify our use of the term “over-parameterizaion” in the revised version.
We hope this clarifies our points and addresses your concerns.
Gentle Reminder: Discussion Period Closing Soon
Thank you again for your valuable time and insightful feedback.
As the author–reviewer discussion period is approaching its conclusion, we would be grateful if you could let us know whether our response has addressed your main concerns, or whether any point still requires clarification.
For your convenience, here is a brief summary of the key revisions and clarifications we made in response to your comments.
- Goal-directed baseline: Our additional experiments show that Graph-GFN underperforms even after hyperparameter tuning. For our initial experiments, we retained the standard repository configuration for reproducibility rather than independently tuning it for each task, but applied automorphism correction for a fair comparison.
- Distribution learning: We have included additional experimental results and clarified our scope and positioning accordingly.
- Comparison with GEEL: We highlighted that SNACK achieves better vocabulary size scaling and supports conditional generation.
If there are any additional clarifications or experiments that could help address your remaining concerns, please let us know. We would be more than happy to provide them.
Best regards,
Authors
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes SNACK, a sequence-based framework for graph generation that represents graphs as structured sequences that can be decoded into unique adjacency matrices. The method incorporates several components to support efficient and valid graph generation, including invalid logit masking for enforcing structural constraints, bandwidth-restricted encoding for reducing the vocabulary size, and GFlowNet-based training for effective and flexible graph generation.
The paper evaluates SNACK on standard graph generation, molecular distribution learning, and goal-directed learning tasks. The results show that SNACK achieves competitive and sometimes state-of-the-art performance compared with existing methods. The paper also compares SNACK-based GFlowNet with graph-based GFlowNet, showing advantages in terms of goal-directed learning performance, training time, and memory usage, and demonstrates through ablation studies the contributions of proposed components such as grammar and valence masking, as well as BFS masking.
Strengths and weaknesses
[Strengths]
S1. The paper addresses a relevant problem in improving sequence-based graph generation.
- The paper addresses an important problem in graph generation, namely, how to make sequence-based graph generation efficient, flexible, and validity-preserving. By representing graphs as structured sequences, the paper aims to improve the efficiency of graph generative modeling while supporting flexible graph generation objectives and ensuring the validity of generated graphs.
S2. The framework combines practical components for efficient and validity-preserving graph generation.
- The proposed SNACK framework combines several useful components, including an efficient sequential notation that decodes into a unique adjacency matrix, invalid logit masking for enforcing structural constraints such as chemical valence and ordering constraints, and bandwidth-restricted encoding to reduce the vocabulary size. Together, these components enable SNACK to be trained with GFlowNets for sequence-based graph generation.
S3. The empirical evaluation shows competitive performance across several graph generation settings.
- On standard graph generation and molecular distribution learning tasks, SNACK achieves competitive and sometimes state-of-the-art performance compared with existing methods. Compared with graph-based GFlowNet, SNACK-based GFlowNet shows advantages in both goal-directed learning performance, and scalability (measured by training time and memory usage). Ablation studies also demonstrate the usefulness of grammar and valence masking as well as BFS masking.
[Weaknesses]
W1. The paper’s novelty and contribution appear limited and the empirical gains are marginal.
- The paper’s novelty is somewhat limited. In particular, it is not clearly discussed how SNACK differs from and improves upon existing graph/sequence generative methods. For example, Sec. 2.2 adopts BFS ordering for bandwidth-restricted encoding, which has been used in prior graph generative models, and the trajectory balance objective is also adopted from an existing study [17]. Similarly, while the proposed invalid logit masking in Sec. 2.3 is useful for maintaining valid graph structures during generation, its conceptual distinction from existing validity-preserving mechanisms is not sufficiently clear. Furthermore, since the main modeling framework appears to be based on GFlowNets, it is also unclear what methodological advancement SNACK makes in this respect.
- The empirical results also do not demonstrate a clear advantage of SNACK. Across graph and string generation tasks, SNACK generally performs comparably to existing graph-based and string-based methods, but it does not appear to consistently outperform them or provide substantial performance gains.
- Overall, the contribution would be more convincing if the paper more clearly articulated what is technically new beyond combining or adapting existing components and provided stronger empirical evidence showing where SNACK offers meaningful advantages over prior methods.
W2. The empirical evaluation could be strengthened.
- Since SNACK is a string-based method, its advantages over existing string-based methods should be more clearly demonstrated. In graph and string generation tasks, SNACK achieves performance mostly comparable to existing methods, leaving its practical advantage over prior string-based approaches unclear.
- Although efficiency is presented as a key advantage of SNACK, the paper lacks a theoretical analysis of its time and memory complexity. The empirical analysis of efficiency is also limited, as the paper mainly compares SNACK against graph-based GFlowNet methods, but does not compare SNACK’s scalability against existing string-based baselines in terms of runtime and memory usage.
- In Table 3 on goal-directed learning, the comparison is restricted to graph-based GFlowNet. To properly validate SNACK in this setting, the paper should include additional existing baselines, where applicable, to demonstrate whether SNACK provides meaningful gains for goal-directed learning.
- The paper could better validate the practical value of the bandwidth-restricted encoding. Although this encoding is presented as an important design choice, the paper does not provide an ablation or sensitivity analysis to validate its impact. Such an analysis would help clarify its effect on performance, runtime, and memory usage.
W3. The writing could be improved for clarity and self-containment.
- The paper is not fully self-contained and relies heavily on the reader’s prior knowledge of GFlowNets. For example, Sec. 2.6 assumes familiarity with GFlowNets, trajectory balance loss, and related concepts, making it difficult to understand from the main text alone how SNACK operates end-to-end.
- The main text provides limited detail on how SNACK sequences are processed by the model after the graph-to-sequence transformation. Since this step appears to rely on the GFlowNet framework, the lack of explanation makes it difficult to understand the model structure and operational flow.
- Some method descriptions in the main text are too brief, with important details deferred to the appendix. For instance, Sec. 2.3 provides only a high-level description of invalid logit masking, making this component difficult to fully understand from the main text alone.
Questions
The main questions and suggestions are listed below. See the weaknesses discussed above for more details.
- Could the authors clarify the main contribution of SNACK relative to existing graph- and sequence-based generative methods? In particular, what is technically new beyond adapting existing components such as BFS-based sequence encoding, invalid logit masking, and GFlowNet-based training? Further, as the empirical performance appears comparable to existing methods in many cases, it would be helpful to clarify where SNACK provides meaningful empirical or practical advantages over prior approaches.
- Could the authors provide stronger evidence that SNACK offers practical advantages over existing string-based graph generation methods? Since SNACK is positioned as an efficient string-based framework, a theoretical analysis of time and memory complexity, together with empirical comparisons against relevant string-based baselines in terms of performance, runtime, and memory usage, would help clarify its practical contribution. Additional ablations or sensitivity analysis of the bandwidth-restricted encoding would also help clarify the contribution of this design choice.
- I suggest improving the clarity and self-containment of the method description. A clearer end-to-end explanation of how the sequence representation, GFlowNet-based modeling, and validity-preserving constraints fit together within the proposed framework would make SNACK easier to understand without relying heavily on prior knowledge of GFlowNets or the appendix.
Clarifications or additional evidence on these points would be important for assessing whether the contribution is sufficiently strong relative to prior graph- and sequence-based generative methods.
Limitations
yes
Final justification
I appreciate the authors' detailed rebuttal and discussion. The additional experimental results and complexity analysis substantially address my concerns regarding the evaluation. The discussion also provides more detail on the methodological aspects of the paper, which helps clarify several of my questions about the proposed approach. I believe that a clearer and more self-contained presentation of the methodological contributions would further strengthen the paper. Overall, the rebuttal has increased my confidence that the work makes a meaningful contribution. Accordingly, I have updated my rating to 4.
Formatting concerns
N/A
6 comments
Rebuttal
We sincerely appreciate your thoughtful comments and valuable feedbacks.
Contribution Summary
To address the novelty concern, we respectfully highlight the key contributions of our work below.
(1) Methodological Advancement in GFlowNets
SNACK is the first framework to overcome the intractability of backward policies over strings in GFlowNets, establishing a mathematically exact and computationally efficient string-based approach.
- Exact Backward Policy with Automorphism Correction: We propose an exact backward policy tailored for string representations resolving the intractability issue in string-based GFlowNets.
- Fragment-Conditioned TB Objective: We introduce a novel conditioned TB objective, extending fragment-conditioned GFlowNet training to strings.
- Significant Computational Efficiency: By evaluating an entire trajectory in a single forward pass, SNACK reduces computational complexity from to .
(2) Comprehensive Capability Coverage While individual components of SNACK may overlap with prior string-based methods, existing approaches address only a subset of essential generation capabilities.
- Guaranteed Validity: Unlike SAFE, G2PT, and AutoGraph, which fail to ensure strict 100% validity, SNACK guarantees valid outputs.
- Domain Generalizability: While methods like SELFIES and SAFE are strictly domain-specific, SNACK offers a generalizable string representation applicable beyond molecules.
- Flexible Conditioned Generation: Frameworks such as STGG, GEEL, and G2PT lack support for conditioned generation. SNACK naturally supports flexible conditioning through its flexible semantics.
(3) Empirical Insights
- Proven Goal-Directed Optimization: STGG, GEEL, and AutoGraph were evaluated solely on unconditional distribution learning. In contrast, SNACK is validated for goal-directed optimization tasks.
- Effectiveness of Logit Masking: Our empirical results demonstrate that invalid logit masking and BFS masking accelerate convergence by preventing the policy from wasting probability mass on ungrammatical sequences. Specifically, BFS masking further improves the performance by aligning with and shrinking the action space, in contrast to prior works that use BFS orderings only to build training sequences and then discard them.
Stronger empirical evidence
We have substantially expanded our experimental results. We thank the reviewer for pushing us to strengthen empirical evaluation.
(1) Distribution learning
Our new results demonstrate that SNACK is a robust and competitive string-based method on distribution learning.
We evaluated our model on the Peptides-func dataset. Peptides-func provides a more challenging distribution learning benchmark, as its molecules contain 150 atoms on average (compared to 22 for MOSES).
| Method | Valid ↑ | FCD ↓ | SNN ↑ | Scaf ↑ |
|---|---|---|---|---|
| SMILES | 0.82 ± 0.03 | 0.76 ± 0.07 | 0.76 ± 0.00 | 0.89 ± 0.01 |
| SELFIES | 1.00 ± 0.00 | 0.44 ± 0.04 | 0.72 ± 0.00 | 0.89 ± 0.00 |
| GEEL | 0.78 ± 0.03 | 1.70 ± 0.33 | 0.69 ± 0.01 | 0.90 ± 0.00 |
| SNACK (None) | 0.94 ± 0.01 | 0.42 ± 0.06 | 0.76 ± 0.00 | 0.89 ± 0.00 |
| SNACK (B+V) | 1.00 ± 0.00 | 0.38 ± 0.07 | 0.76 ± 0.01 | 0.89 ± 0.00 |
On this challenging benchmark, SNACK demonstrates a clear advantage in validity metrics and outperforms existing baselines on FCD, the most informative metric.
(2) Conditioned generation results
SNACK is particularly well-suited for conditioned generation.
From Peptides-func dataset, we selected 161 samples that have atoms as conditional fragments, and compared with the remaining test set.
| Method | Unique ↑ | EOS ↓ | FCD ↓ | SNN ↑ |
|---|---|---|---|---|
| SELFIES | 0.093±.022 | 0.884 ± 0.017 | 27.08±0.23 | 0.643 ± 0.002 |
| SMILES | 0.090±.011 | 0.896 ± 0.011 | 28.94±0.34 | 0.645 ± 0.003 |
| SNACK (None) | 0.243±.010 | 0.682 ± 0.008 | 21.18±0.43 | 0.669 ± 0.004 |
| SNACK (V+B) | 0.237±.008 | 0.681 ± 0.021 | 20.91±0.42 | 0.670 ± 0.004 |
The EOS rate represents the percentage of generated sequences where the model immediately terminates generation without adding any atoms. SMILES and SELFIES exhibit relatively high EOS rates because complete fragments rarely appear as valid prefixes. In contrast, for SNACK, every subsequence ending with a node-type token constitutes a valid prefix, making the framework highly amenable to conditional generation.
(3) Goal-directed learning performance
Additional results show that SNACK consistently offers performance gains in goal-directed setting, and applying masking further improves its performance.
We expanded our experimental results along two dimensions: (i) adding SMILES and SELFIES as string-based baselines, and (ii) incorporating PPO.
| Reward | Method | Avg. Reward | Diversity | Uniq. Frac. | |
|---|---|---|---|---|---|
| Ari | GFlowNet | Graph | 0.14 | 0.72 | 0.57 |
| SMILES | 0.00 | — | — | ||
| SELFIES | 0.16 | 0.95 | 0.92 | ||
| SNACK (V) | 0.19 | 0.94 | 1.00 | ||
| SNACK (B+V) | 0.29 | 0.95 | 1.00 | ||
| PPO | Graph | 0.23 | 0.95 | 1.00 | |
| SMILES | 0.28 | 0.87 | 1.00 | ||
| SELFIES | 0.32 | 0.87 | 1.00 | ||
| SNACK (V) | 0.44 | 0.89 | 1.00 | ||
| SNACK (B+V) | 0.49 | 0.90 | 1.00 | ||
| Alb | GFlowNet | Graph | 0.10 | 0.00 | 0.00 |
| SMILES | 0.00 | — | — | ||
| SELFIES | 0.26 | 0.95 | 0.99 | ||
| SNACK (V) | 0.35 | 0.94 | 1.00 | ||
| SNACK (B+V) | 0.53 | 0.93 | 1.00 | ||
| PPO | Graph | 0.24 | 0.84 | 0.98 | |
| SMILES | 0.30 | 0.80 | 0.20 | ||
| SELFIES | 0.32 | 0.37 | 0.00 | ||
| SNACK (V) | 0.43 | 0.79 | 0.97 | ||
| SNACK (B+V) | 0.51 | 0.77 | 0.79 | ||
We excluded the Gap task from the table, as PPO failed to generate unique molecules (Unique=0) across all methods. We highlight several key observations:
- SNACK proves to be the most effective string representation for goal-directed learning, achieving the strongest performance across both GFlowNet and PPO.
- PPO reliably finds high-reward molecules but is much weaker in diversity than GFlowNet and collapses to a few modes easily (e.g., Unique = 0.0 for all representations on Gap, and average reward nearly identical to top-100 reward throughout).
- Imposing the BFS ordering consistently improves performance, demonstrating the benefit of SNACK's BFS masking for goal-directed learning.
Across three objectives, and two learning algorithms, SNACK (B+V) attains the best or tied-best reward in every configuration. We will incorporate this expanded table into the Appendix.
Analysis of time and memory complexity
Below, we provide a comparative analysis against other string-based methods.
Notation — (B: Bandwidth, N: # nodes, M: # edges, R: # rings)
- Vocabulary size: SNACK needs tokens, whereas GEEL needs tokens. G2PT needs tokens, which is larger than . STGG requires tokens (preset to 100 in their code).
- Sequence length: SNACK, GEEL and G2PT all exhibit a sequence length of . STGG additionally linearly depends on the number of rings. In practice, SNACK yields shorter sequence lengths compared to other baselines, as demonstrated in the table below for the MOSES dataset.
| Methods | Vocab size | Avg. sequence length |
|---|---|---|
| G2PT | 42 | 116 |
| GEEL | 321 | 75 |
| STGG | 117 | 69 |
| SNACK | 31 | 70 |
The time and memory complexities depend on the specific model architecture used, which can be directly derived from the vocabulary size and sequence length. For instance, with standard dense attention, the time complexity is for SNACK, GEEL, and G2PT.
Overall, SNACK operates faster than graph-based methods, similar to other edge list-based approaches, and remains more compact than existing string-based methods.
Effects of bandwidth-restricted encoding
Bandwidth-restricted encoding clearly outperforms uniform ordering.
In Section 4.4, we evaluated the effect of the ordering policy, where CM and BFS ordering correspond to bandwidth-restricted encoding. For convenience, we reproduce Table 5 below, which presents the FCD scores.
| Ordering | QM9 | MOSES |
|---|---|---|
| Uniform | 0.203 | 6.513 |
| CM | 0.044 | 0.113 |
| BFS | 0.037 | 0.103 |
Regarding time complexity, bandwidth-restricted encoding reduces the vocabulary size from to , where is upper bounded by . Furthermore, both approaches share the same sequence length complexity of . The primary difference stems from the data preprocessing stage, where uniform ordering is marginally faster in constant factor time. We provide the per-epoch training time on QM9 below:
| Ordering | Time per Epoch (s) |
|---|---|
| Uniform | 10.93 ± 0.28 |
| CM | 11.70 ± 0.15 |
| BFS | 11.50 ± 0.30 |
Writing
In the revised version, we promise to provide a clearer walk-through of the SNACK framework without requiring prior familiarity with GFlowNets. Specifically, we will restructure the section to explicitly connect the three core components:
- Input Processing: How the generated token sequence is embedded and processed by the autoregressive backbone model.
- GFlowNet-Based Modeling: A self-contained overview of the GFlowNet objective and how trajectory flows are parametrized directly over this sequence space.
- Validity-Preserving Constraints: Explanation of how structural constraints are integrated as action masks during decoding to guarantee 100% valid graph generation.
We hope these clarifications and additional analyses adequately address your concerns.
Gentle Reminder: Discussion Period Closing Soon
Thank you again for your valuable time and insightful review.
As the discussion period is set to close in two days, we wanted to kindly check if you have any remaining questions or feedback regarding our manuscript or rebuttal.
In our rebuttal, we have addressed your primary concerns by clarifying our key contributions and significantly expanding our empirical evaluations:
- Clarified Novelty & Theoretical Contributions: We highlighted SNACK's unique theoretical advantages, including the first exact backward policy with automorphism correction for string-based GFlowNets, a fragment-conditioned TB objective, and a reduction in trajectory evaluation complexity from to .
- Expanded Empirical Evaluations:
- Distribution Learning: Added results on the challenging
Peptides-funcbenchmark, where SNACK achieves 100% validity and state-of-the-art FCD (0.38). - Goal-Directed Optimization: Expanded evaluations across GFlowNet and PPO backbones with additional SMILES/SELFIES baselines, confirming that SNACK (B+V) consistently achieves the highest rewards.
- Distribution Learning: Added results on the challenging
- Manuscript Reorganization: Promised a self-contained walk-through of the SNACK framework in the revised draft.
If there are any additional questions or if further clarifications would help address your remaining concerns, please let us know. We would be glad to provide them before the discussion period ends.
Best regards,
Authors
Thank you for providing the additional experimental results and complexity analysis. These additions substantially address my concerns regarding the evaluation.
That said, given the current level of technical detail and explanation, it remains difficult to assess how novel and significant the claimed methodological advancements are relative to prior work. This is also related to W3 on the paper’s clarity and self-containment. Given their importance to the paper’s contribution, a more self-contained explanation would be helpful:
- Exact backward policy with automorphism correction: Why is the backward policy intractable in prior string-based GFlowNets, and how does SNACK enable an exact backward policy? It would be helpful to explain SNACK’s automorphism correction mechanism, including its role in this formulation and the extent to which it contributes to the methodological advancement over prior work.
- Fragment-conditioned TB objective: What modifications are needed to make the standard trajectory balance objective fragment-conditioned, and why do they constitute a novel and significant methodological advancement?
- Computational efficiency: How does the proposed approach reduce complexity from O(N^3) to O(N^2)? A brief derivation and comparison with the relevant prior formulation would help clarify the source of this improvement and its significance.
If these points are already covered in the paper, pointers to the relevant sections or appendix would also be helpful.
Comments on the paper
1 comment
Dear Reviewers and AC,
We sincerely thank you for your time and thoughtful evaluation of our paper. As the discussion period concludes, we would like to briefly summarize the key points addressed in our rebuttal and revisions.
[Summary of Key Improvements]
During the rebuttal, we were pleased to engage in constructive discussions that helped strengthen our work. The main improvements are summarized below:
- Distribution learning experiments: We demonstrated that SNACK achieves strong performance on the challenging
Peptides-funcdataset in terms of validity metrics and FCD. - Conditioned generation: Conditional generation experiments on
Peptides-funcshowed that SNACK is particularly well-suited for conditioned generation compared to prior string representations. - Complexity analysis: We provide a clearer time complexity analysis for SNACK, demonstrating that it is an order of magnitude faster than graph-based methods. Additionally, our bandwidth-restricted encoding introduces minimal overhead.
- Additional baselines: For goal-directed learning, we included PPO and other string-based baselines, confirming that SNACK consistently outperforms existing methods. PPO finds high-reward molecules but collapses to a few modes, confirming that diversity is what GFlowNets buy — and why enabling them correctly on strings matters.
- Fair comparison: Automorphism correction is applied to both the Graph- and SNACK-GFlowNets. We tuned the hyperparameters for Graph-GFlowNet to ensure a fair evaluation, and SNACK still consistently outperforms it across key metrics.
[Core Contributions]
We would like to reiterate the core contributions of our work as follows:
- One representation, all capabilities: By resolving the node-ordering ambiguity inherent to string representations, SNACK covers distribution learning, constrained generation, and both de novo and conditioned GFlowNet training in a single framework.
- The first principled GFlowNet over strings: We show that SNACK allows exact trajectory balance and loss calculations for GFlowNets directly on string representations, bridging the gap between string models and exact graph-based methods.
- Reduced complexity: SNACK significantly lowers computational overhead, operating an order of magnitude faster than conventional graph-based approaches.
- Probing & interpretability: Through probing analyses, we show that models trained on SNACK internalize graph structure in their hidden representations, without explicit structural supervision.
We believe our further clarifications, theoretical analysis, and additional experiments comprehensively address the reviewers' concerns. We deeply appreciate the valuable feedback on presentation and look forward to incorporating all suggestions in the final revision.
Thanks,
Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We sincerely thank you for your positive and encouraging feedback, especially for recognizing the value of our simple yet fundamental graph encoding approach.
We have provided comprehensive, point-by-point responses to all reviewers. We briefly summarize below how we addressed the primary concerns raised by each reviewer.
1. Response Summary for Reviewer YFJu (Primary Focus)
Novelty & Methodological Advances (W1):
Clarified that SNACK is the first framework to overcome intractable backward policies over strings in GFlowNets via an exact, mathematically grounded policy (with automorphism correction) and a fragment-conditioned TB objective.
Highlighted that SNACK uniquely guarantees 100% output validity, generalizability beyond molecules, and flexible conditioned generation.
Extended Empirical Benchmarks & Efficiency (W2):
Complex Distribution Learning: On the challenging
Peptides-funcdataset (avg. 150 atoms/molecule vs. 22 in MOSES), SNACK outperforms existing baselines on key metrics (FCD 0.38 vs. SMILES 0.76, GEEL 1.70) with 100% validity.Goal-Directed Optimization: Expanded baselines to include PPO, SMILES, and SELFIES. SNACK (B+V) achieved the best or tied-best reward across all configurations.
Efficiency & Ablations: Demonstrated SNACK's compact sequence length (avg. 70 vs. GEEL's 175) and provided epoch-runtime/ordering ablations validating the necessity of BFS masking.
Plan for Writing Improvements (W3): Promised to restructure the main text in the final version to provide a self-contained walkthrough of SNACK without requiring deep prior GFlowNet background.
2. Response Summary for Reviewer Ffqb
Fair Baseline Tuning (Q1): Clarified hyperparameter settings for both methods and conducted sensitivity sweeps for Graph-GFlowNet. Although additional tuning resolved Graph-GFlowNet's mode collapse, SNACK consistently outperforms it across all tasks.
Refined Claims (Q2): Softened our claim on MOSES to "on par with the strongest string baselines" while demonstrating clear advantages on complex datasets (
Peptides-func).Novelty vs. GEEL (Q3): Emphasized SNACK’s distinct formal guarantees: exact backward policy computation, reduced vocabulary size (O(B) vs. O(B2)), and native support for fragment-conditioned generation.
Probing Control & Scope (Q4 & Q5): Added random baseline controls for probing analysis and explicitly defined the paper scope for graphs with discrete attributes.
3. Response Summary for Reviewer spWN
Distribution Learning Gains (W1): Re-emphasized that SNACK remains highly competitive on standard molecular datasets and offers clear gains on larger-scale graphs (
Peptides-func), as detailed above.Vocabulary Scaling & Bandwidth (W2): Clarified that vocabulary grows linearly with bandwidth O(B)—significantly more compact than GEEL O(B2). Practical bandwidth is easily estimated from training data, incurring negligible decoding/masking overhead.
We believe these responses fully address the reviewers' concerns and further strengthen the paper. We sincerely appreciate your guidance during this process.