Fast graph generators avoid the cost of adding one node or edge at a time. Instead they build a graph coarse-to-fine: first a small skeleton of communities, then the edges inside and between those communities, all filled in parallel. When such a generator is fine-tuned toward a reward, such as a target spectral property, a structural constraint, or a binding score, the standard reinforcement-learning objective is known to concentrate probability on one solution and discard the others. We conjecture that in hierarchical generators this collapse happens mainly at the coarse level: the model learns one community skeleton that scores well and then produces only cosmetic edge variations of it. If that is true, the expensive machinery for keeping diversity only has to run over the skeleton, which has tens of nodes rather than thousands.
The proposal is therefore to train only the skeleton generator with a sampler whose output frequency is proportional to reward (a generative flow network, or GFlowNet). The skeleton's reward is the expected reward of its completions, estimated by sampling. The fine-level generators are sharpened with ordinary reward-weighted likelihood. The result is reward-proportional sampling over distinct structural designs, at the cost of a hierarchical generator rather than a flat sequential one. The note also proposes measuring diversity at the skeleton level, using a clustering independent of the one the generator was trained with. This measurement is the graph analogue of separating a different solution strategy from a rephrasing of the same one.
Core Claim
Diversity-preserving reward fine-tuning has so far come in two forms. One is flat, step-by-step samplers that scale poorly. The other is objectives built for token sequences. Scalable graph generators, for their part, have only been trained by maximum likelihood on fixed datasets. We claim that a hierarchical generator's two-level factorization makes mode-covering fine-tuning cheap, because distinct high-reward designs differ mostly in their coarse skeletons. Applying flow-balance training only at that level should therefore recover most of the mode coverage of a full-graph GFlowNet at a small fraction of its cost, on graphs too large for the full-graph version. We also claim that standard reverse-KL fine-tuning loses skeleton diversity much faster than it loses edge-level diversity. This is a falsifiable diagnostic that the whole design rests on.
Grounding in Prior Work
The scalable side supplies the method. GRAN generates blocks of nodes per step and reaches 5,000-node graphs. HiGen goes further. It extracts a community dendrogram, generates super-nodes linked by weighted super-edges, and then fills the communities in parallel through a recursive binomial/multinomial factorization. Its sampling is 34x faster than GRAN on Protein, and it handles 1.4k-node point clouds. FragFM plays the same coarse-to-fine role for molecules, generating fragments first and then atom-level bonds, and reports FCD 0.58 on MOSES against DiGress's 1.19. All three are trained purely by likelihood. None of them is ever steered by a reward, and none studies what happens to its diversity when it is.
The diversity side motivates the proposal and also constrains it. Beyond Mode Collapse and KL-Regularized RL is Designed to Mode Collapse trace collapse to the mode-seeking behaviour of reverse KL, the divergence implicit in reward-plus-KL-penalty objectives. The first paper's distribution-matching method (DMPO) improves TSP Quality Ratio on MM-NP-Bench from 38.4% to 43.1% over GRPO. However, DMPO matches a group-level target over token sequences, and it breaks when no sampled member of a group finds a valid solution. That failure matters for us, because sparse structural rewards make empty groups common. The original GFlowNet trains a sequential builder so that each object is sampled with probability proportional to its reward. It finds all 16 hypergrid modes where entropy-regularized PPO finds only a few, and more than 2,300 sEH molecules with reward above 8 where MARS finds fewer than 100. Its construction is a long sequence of small additions, so its cost grows with graph size, and it suffers training variance from bootstrapped flow estimates. We reuse its balance objective but apply it only to a short coarse trajectory.
Are We Measuring Strategy or Phrasing? constrains how we evaluate. It shows that surface diversity metrics hide strategic collapse, and that rewarding a diversity judge directly gets hacked. We take two lessons from it. First, we never reward diversity directly. Second, we measure structural diversity at a level the model cannot game through local edge rewiring.
SPECTRE is a partial counterpoint. It fights one-shot mode collapse by conditioning the generator on a sampled Laplacian spectrum. This suggests that a global descriptor, rather than a hierarchy, could be the "coarse variable." We treat it as an alternative coarse level in one ablation, not as the main design, because its spectra are not guaranteed to be realizable as actual graphs.
Research Program
Write a generated graph as a skeleton $c$ (the top-level community graph with super-edge counts) and a completion $f$ (all finer levels). The pretrained hierarchical generator factorizes as $p_\theta(c)\,q_\phi(f\mid c)$. The target is a skeleton distribution proportional to the marginal reward of each skeleton,
$$\bar R(c) = \mathbb{E}_{f\sim q_\phi(\cdot\mid c)}\big[R(c,f)\big]^{\alpha},$$
where $R$ is the task reward and $\alpha$ is a temperature exponent. We estimate the expectation with $K$ parallel completions. The completions are cheap because communities are filled in parallel. We use a log-mean-exp estimate and measure the bias it introduces against large-$K$ references.
The skeleton is small, so we rebuild its top-level generator as a node-and-super-edge sequential policy $P_F$ with a uniform backward policy $P_B$. We train it with the trajectory-balance loss
$$\mathcal{L}(\tau_c)=\big(\log Z + \log P_F(\tau_c) - \log \bar R(c) - \log P_B(\tau_c)\big)^2,$$
where $\tau_c$ is a construction trajectory for the skeleton and $Z$ is a learned normalizer. Trajectory balance needs no bootstrapping of intermediate flows, which sidesteps the variance problem the original GFlowNet paper reports. Off-policy skeletons are drawn from the pretrained $p_\theta$, so a group with zero reward still yields a useful training signal. That signal is exactly what DMPO lacks.
The completion model $q_\phi$ is fine-tuned separately by reward-weighted likelihood on its own samples, conditioned on the skeleton. Some collapse within a mode is acceptable at this level, so plain sharpening is enough there. An optional KL anchor to the pretrained $q_\phi$ preserves realism. For molecules, the same recipe uses FragFM's fragment graph as $c$ and atom-level bond assignment as $f$. Since FragFM is a flow-matching model rather than a sequential one, the coarse sampler there is a separate small fragment-graph GFlowNet that conditions FragFM's decoder.
The diagnostic study runs first and does not depend on the method. We fine-tune HiGen with standard KL-regularized policy gradient and track two quantities over training. Skeleton diversity is the number of distinct Weisfeiler-Lehman hashes of the quotient graph, computed with spectral clustering rather than the Louvain clustering HiGen trains on, so the metric is not tied to the model's own partition. Fine diversity is the edge-level variation among samples that share a skeleton hash. If both collapse together, the core claim is wrong. In that case we would extend balance training one level down the hierarchy and report the cost.
Baselines
The naive reference point is the pretrained hierarchical generator (HiGen, or FragFM for molecules) with no fine-tuning. We sample from it and keep the top fraction by reward, using the same total number of reward evaluations as every other method. This baseline is diverse by construction. Any method that does not beat it on reward at equal mode coverage has added nothing.
The standard competitor is the same generator fine-tuned by KL-regularized policy gradient with an entropy bonus. Its entropy coefficient and KL weight get the same hyperparameter-search budget we give our method. This is the setting in which collapse is expected, and we count our method as beating it only if it reaches the same reward quantiles while finding substantially more distinct skeleton modes.
The distribution-matching competitor applies a DMPO-style group Boltzmann target over whole graphs, following Beyond Mode Collapse, with matched group size and compute. Its TSP Quality Ratio of 43.1% on MM-NP-Bench is the strongest reported number for distribution-matching fine-tuning in the file. It comes from a language-model setting, though, and no reported result was found on Lacuna for DMPO applied to direct graph generators.
The strongest mode-coverage competitor is a flat GFlowNet over the full graph in the style of the original GFlowNet. On sEH it reports more than 2,300 unique molecules with reward above 8. We reproduce that environment and count, and treat this baseline as the ceiling on mode coverage. We run it on SBM and Enzymes-scale graphs, where it is feasible. On Protein and point clouds we report where it runs out of memory or exceeds a fixed wall-clock budget. For reward-driven fine-tuning of HiGen or GRAN at Protein or point-cloud scale, no reported result was found on Lacuna.
Two ablations isolate the key ingredient. The first sets $K=1$, testing whether marginalizing over completions matters. The second moves balance training down to the completion level as well, testing whether the coarse-only restriction loses modes. A third ablation replaces the skeleton with a SPECTRE-style eigenvalue vector as the coarse variable.
Why not just…?
Why not just raise the entropy bonus or sampling temperature during standard fine-tuning? The original GFlowNet paper reports that PPO with high entropy regularization still finds only a few of 16 separated hypergrid modes. Higher temperature in a graph generator mostly produces invalid or disconnected structures rather than new skeletons. Our tuned entropy-bonus baseline tests this directly, and the skeleton-hash curves will show whether added entropy turns into skeleton diversity or only into edge noise.
Why not just sample a lot from the pretrained model and filter? This is the real threat, because the pretrained model really is diverse. It fails when high-reward skeletons are rare under the data distribution. In that regime filtering needs a number of samples that grows inversely with their prior mass. We settle the question by plotting distinct high-reward modes found against the number of reward evaluations. If filtering matches our curve at equal budget, the method is unnecessary, and we will report that.
Why not just run a flat GFlowNet on the whole graph? On small graphs it is the gold standard, and we expect it to match or beat us there. The question is whether our coarse-only approximation keeps most of its mode coverage at a fraction of its cost. The test is the coverage ratio between the two on SBM and Enzymes, followed by whether ours still runs on Protein and FirstMM-DB.
Why not just add an explicit diversity reward? Lee et al. show that models learn to fool diversity judges while their actual strategies keep collapsing. A graph-distance bonus invites the same failure through edge rewiring. We include a pairwise graph-kernel-distance bonus as a secondary baseline to check whether it inflates surface MMD diversity without raising skeleton-hash counts.
Proposed Experiments
The central benchmark is a "skeleton hypergrid" built on SBM and Protein-sized graphs, by analogy to the hypergrid in the original GFlowNet paper. The reward is high only when the quotient graph matches one of $M$ predefined skeleton families and the completion meets degree and clustering targets. Because the true modes are known, mode recall is exact.
On real data we use Protein and Enzymes with spectral-band rewards on algebraic connectivity, and FirstMM-DB point clouds for the scale test. For molecules we use FragFM pretrained on ZINC250k with the sEH proxy reward. There we count distinct Murcko scaffolds among molecules with reward above 8, alongside the GFlowNet paper's figure of more than 2,300 unique molecules.
Every condition reports reward quantiles, mode recall or skeleton-hash counts, MMD on degree, clustering and orbit statistics against the pretraining data to track realism, and wall-clock time per thousand samples.
The decisive checks are three. First, the diagnostic must show that skeleton diversity collapses faster than fine diversity under standard fine-tuning. Second, at equal reward-evaluation budget, our method must find clearly more skeleton modes than both filtering and DMPO-style matching while keeping MMD close to the pretrained model. Third, it must keep most of the flat GFlowNet's mode coverage on small graphs, while remaining feasible on graphs where the flat GFlowNet is not.
References
- Efficient Graph Generation with Graph Recurrent Attention Networks
- HiGen: Hierarchical Graph Generative Networks
- FragFM: Hierarchical Framework for Efficient Molecule Generation via Fragment-Level Discrete Flow Matching
- Beyond Mode Collapse: Distribution Matching for Diverse Reasoning
- KL-Regularized Reinforcement Learning is Designed to Mode Collapse
- Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
- Are We Measuring Strategy or Phrasing? The Gap Between Surface- and Approach-Level Diversity in LLM Math Reasoning
- SPECTRE: Spectral Conditioning Helps to Overcome the Expressivity Limits of One-shot Graph Generators