Manuscript Offprint
arXiv:2610.17007Mixture of GFlowNets
ABSTRACT
Generative Flow Networks (GFlowNets) learn a policy that samples compositional objects in proportion to an unnormalized reward . This makes them useful wherever many diverse, high-reward candidates are needed and oracle queries are expensive, as in AI for Science. In practice, a single GFlowNet often fails to cover all modes of a complex distribution, and the obvious ways to scale compute saturate: larger batches and data-parallel gradient averaging draw every trajectory from one, possibly biased, policy, so extra rollouts rediscover known modes instead of finding new ones. We explore whether this mode-bias problem (mode collapse in the extreme) can be addressed with a population of asynchronously trained policies which divide the state space between them. Mixture of GFlowNets (MoG) replaces the single forward policy with a community of K independent GFlowNets coupled through one jointly trained soft classifier, which assigns each member its own region of the state space through reward shaping. Mixing the members under their learned partition functions provably recovers the target . MoG exchange (MoGX) also lets the classifier route sampled trajectories: a trajectory the classifier assigns to another member is sent to that member and trained on there, with no importance sampling. We evaluate both methods by keeping the environment-interaction budget fixed while scaling the community size, turning parallel compute into mode coverage without extra oracle calls. On HyperGrid, across six reward landscapes and communities of up to K=64, MoG and MoGX keep finding new modes as K grows, while data-parallel training saturates. On a genomic ideotype-design task, MoGX covers 39% of the 1024 optima at K=64, against 31% for independent agents and 20% for data-parallel training. MoG also has a lower per-iteration synchronization cost than data-parallel training.
1 INTRODUCTION
Many AI for Science problems, such as drug design, materials discovery and biological sequence engineering, require searching huge combinatorial spaces for many distinct, high-reward objects. Here sample diversity is the goal, and the dominant cost is the environment query rather than gradient compute, so the number of sampled trajectories should be minimized. Generative Flow Networks (GFlowNets) fit this regime (Bengio et al., 2021; Jain et al., 2022; Bengio et al., 2023; Pan et al., 2024). They amortize sampling from an unnormalized reward , so the trained policy samples and spreads over the high-reward regions instead of collapsing onto one, as return-maximizing RL tends to (Malkin et al., 2022; Madan et al., 2023).
In practice, trained GFlowNets often miss modes and concentrate on a subset of the high-reward regions; Dall'Antonia et al. (2025) report this on synthetic benchmarks and on peptide design. Two lines of work try to fix this. The first adds exploration to a single policy: intermediate rewards, intrinsic bonuses, Thompson sampling, local search, replay prioritization, or exploratory “sibling”
Entropy-regularized RL and samplers for unnormalized densities are closely related; see section A.
networks (Pan et al., 2023; Kim et al., 2023; Rector-Brooks et al., 2023; Shen et al., 2023; Schaul et al., 2016; Vemgal et al., 2023; Madan et al., 2025). These raise trajectory diversity, but all exploration happens around one learned sampler, and a biased sampler limits what can be reached at any iteration. The second uses several GFlowNets. Dall'Antonia et al. (2025) fit a chain of GFlowNets, each targeting the reward its predecessors left uncovered, which helps coverage but is serial, and therefore cannot leverage parallel compute. In contrast, Ikram et al. (2025) (EGFN) evolve a parallel population of GFlowNet agents by weight mutation and distill the population's best trajectories into one gradient-trained sampler through a prioritized replay buffer. The population's search is uncoordinated, and so it serves as an exploration front for that one sampler.
Adding parallel rollouts during training of a single policy gives saturating returns. Obando Ceron et al. (2023) found that smaller batches improve value-based deep RL, and Singla et al. (2024) show that on-policy policy-gradient training plateaus at tens of thousands of parallel environments, because extra samples from one policy add diminishing trajectory diversity. SAPG overcomes this plateau by dividing the environments among several sub-policies, but the split helps only when each sub-policy also learns, off-policy, from the data the others collect. What scales is data that a single policy would not produce. GFlowNets saturate for the same reason: Every trajectory in a batch comes from the same forward policy , so extra trajectories land in modes the policy already knows and carry no additional signal about missing modes. If the policy's reachable set at iteration i is a strict subset of the terminal space , no batch size closes the gap. This is known as the mode-bias problem (which leads to mode collapse in the extreme).
MoG / MoGX engine

MoGX: classifier-routed trajectory all-to-all destination
Figure 1: Mixture of GFlowNets (MoG) and MoG exchange (MoGX) at a glance. A community of K GFlowNets is trained in parallel against a target , coupled to one jointly trained soft classifier that softly partitions the state space. Each GFlowNet trains on the shaped reward (blue arrows). The classifier is the only object whose gradients cross rank boundaries. MoGX routes part of the on-policy trajectory to other ranks based on the classifier. Post-training, the Z-weighted mixture provably recovers .
Existing work scales GFlowNet training asynchronously without addressing this bias. Asynchronous trajectory balance (Bartoldson et al., 2025) spreads off-policy searchers across nodes that feed a shared buffer, but the searchers are snapshots of one policy and share its reachable set. Embarrassingly Parallel GFlowNets (Da Silva et al., 2024) train one local GFlowNet per factor of a product reward to distribute reward evaluation, not to cover a shared target better. Distributed RL (Espeholt et al., 2018; Horgan et al., 2018) and population-based training (Jaderberg et al., 2017) parallelize agents without encouraging specialization (section A).
We attack mode bias with a population of policies that divide the state space between them. Mixture of GFlowNets (MoG) replaces the single forward policy with a community of GFlowNets trained in parallel and coupled to one jointly trained soft classifier that partitions . Component trains on the shaped reward , and mixing the components under their learned partition functions recovers exactly. Only the small classifier's gradients are all-reduced across ranks, bounding communication costs, and the classifier pushes each GFlowNet toward its own subregion. This removes both the parameter coupling that limits data-parallel training and the redundancy that limits independent training. MoG exchange (MoGX) goes further and sends each on-policy trajectory to the rank the classifier assigns it to, through an MPI all-to-all keyed on . GFlowNet losses accept off-policy data, so the exchange needs no importance correction. Figure 1 shows the full pipeline.
with a learnable estimate of . Detailed balance (Bengio et al., 2023) and sub-trajectory balance (Madan et al., 2023) give alternative decompositions of the same constraint; our framework does not depend on the choice of training objective.
Single-learner coverage and the mode-bias problem. The guarantee holds at the global optimum of the balance objective, which requires the balance conditions on every trajectory. However, training only enforces them on trajectories the behavior distribution visits. On multi-modal landscapes, that distribution often concentrates on a few high-reward regions, so the conditions can be badly violated on undiscovered modes while the empirical loss looks converged (Dall'Antonia et al., 2025). The remedies in section 1 change how a single learner explores; some of them sample off-policy, but in all of them the behavior distribution is generated by, or seeded from, one set of learned parameters. The learner's current beliefs alone decide which regions receive gradient signal. We make this precise with the -reachable set at iteration i,
where is the forward policy after training iterations. A softmax policy gives every positive probability, so coverage failure is about non-negligible probability under a realistic budget: whenever the path to some needs transitions whose product of probabilities falls below . Larger batches help only marginally. Extra trajectories are drawn i.i.d. from the same behavior distribution, so the expected cost of reaching an excluded mode scales as , exponentially in the number of low-probability transitions on its path. On-policy deep RL shows the same saturation under batch scaling (Singla et al., 2024).
Decorrelating failures across a population. Every policy will miss some modes, so we aim for policies that miss different ones, leaving a mode lost only when all of them miss it. N independently initialized policies sample from the union , which is larger than a single reachable set only if the policies fail differently. Independent initialization does not guarantee that, since policies trained on the same reward can still settle on the same modes. So we push them apart explicitly, making their reachable sets overlap as little as possible.
3 METHODS
3.1 MIXTURE FRAMEWORK
We train a community in parallel on a target reward over a finite DAG with source . Component owns forward and backward policies and a learnable log-partition (for DB and SubTB, the source log-flow plays the same role). The total budget is fixed: instead of trajectories from one policy, each component gets . The components are coupled through one soft classifier trained jointly with them, and component trains on the shaped log-reward
(1) so that at convergence. Mixing the components under their learned partition functions,
recovers the original target.
Proposition (mixture correctness). If each component reaches its shaped target, with , and pointwise, then .
Proof. , and .
The result holds for any pointwise simplex assignment; only redistributes mass. Since is supported on , a set the classifier can align with component 's reachable set, each component's convergence assumption can be easier to meet than reaching all of . After training, we form , sample and then ; section 4 checks that this reproduces (fig. 4). We train with trajectory balance, but any objective with a log-partition estimate works.
3.2 MIXTURE OF GFLOWNETS (MOG)
MoG jointly trains K GFlowNets and one soft classifier. The classifier is the only object whose gradients are all-reduced across ranks. Each GFlowNet otherwise samples its own data and takes its own updates, which keeps communication minimal and lets MoG train asynchronously.
Partition classifier and reward shaping. reads the same preprocessed state as the policies and outputs K logits. Its gradients are all-reduced before each step, so its parameters stay identical across ranks and the shaped rewards stay coherent (section C). Rank k replaces the log-reward of every terminating state with eq. (1) at loss time, so the shaping always reflects the current classifier, even for states buffered many iterations ago.
Classifier objective. Each rank trains by cross-entropy, labeling every on-policy state with its own component index:
with the softmax entropy and . All-reduced across ranks, this is supervised classification on the union , whose Bayes-optimal solution is . As each specializes, the classifier sharpens, and eq. (1) reinforces that specialization on the next iteration, with eq. (2) as the fixed point.
3.3 TRAJECTORY EXCHANGE (MOGX)
MoG changes each component’s training signal but not its experience collection: rank k still samples from alone, which early in training may rarely visit its assigned subregion. MoGX sends each on-policy trajectory to the component the classifier assigns it to.
Selection and transport. After sampling its batch , rank k computes each terminating state's destination
From the states assigned elsewhere, , it sends the trajectories with the smallest (those the classifier is most sure do not belong to ) to their destination ranks. caps the per-step communication volume, and components outside an exchange keep sampling and training independently. TB (Malkin et al., 2022), DB (Bengio et al.,
2023), SubTB (Madan et al., 2023) and ZVar (Zhang et al., 2023) reach zero loss only when the balance conditions hold on every trajectory the training distribution can produce. Assuming the model can reach zero loss and the training distribution has full support, every such distribution gives the same global minimizer, so exchanged trajectories need no importance-sampling correction. See Section 3.3 for the MoGX algorithm. Steps unique to MoGX are marked †, removing them recovers MoG, removing both the exchange step and the reward shaping recovers NoComm, and adding a gradient all-reduce on policy parameters recovers DDP. Section C additional and communication details.
Algorithm 1: One MoGX iteration on training rank k
-
Sample. Roll out trajectories from .
-
Exchange. Compute and self-log-probs via ; select low-self-probability misrouted trajectories per eq. (4); MPI_Alltoall across the training group; merge received trajectories into the local batch.
-
Store. Insert the merged batch into the local replay buffer D.
-
Mix. , i.e., a fraction of the batch is sampled from the replay buffer and the rest from the current on-policy data ( : on-policy only).
-
Shape rewards. Replace by via eq. (1), using current .
-
GFlowNet loss. Compute on the shaped batch; do a backward pass and the optimizer step.
-
Classifier step. Compute eq. (3); backward pass; all-reduce across training ranks; optimizer step on .
4 EXPERIMENTS
We compare MoG and MoGX with three population baselines on HyperGrid under six reward landscapes, with community sizes spanning two orders of magnitude. The rewards differ in how local or non-local their structure is, which lets us see how the landscape interacts with each method. We then turn to a genomic ideotype-design environment whose optima are placed by a real genetic map (section 4.1).
Environments. HyperGrid (Bengio et al., 2021) with ndim=10 under six rewards in two regimes. The non-tiered rewards follow prior GFlowNet work: original (corner modes, Bengio et al., 2021, H=10, ), cosine (a regular cosine-shaped pattern of high-reward regions, H=16) and sparse (tiny isolated corner modes from GAFN, Pan et al., 2023, H=16). The tiered/compositional rewards (H=16) make structure found in one region determine where reward lies elsewhere. In bitwise_xor, a global GF(2) parity rule, enforced at progressively stricter bit-planes, scatters modes with no spatial gradient; each policy must infer the same non-local rule, which then predicts every remaining mode. In multiplicative_coprime, each tier adds a different number-theoretic constraint (prime support, exponent caps, cross-coordinate coprimality, LCM targets), so policies must compose heterogeneous constraints, and factorizations learned near the origin are prerequisites for uncovering the rarer high-tier modes. In conditional_multiscale, each scale's constraint depends on the coarser scales already resolved (a coarse-to-fine shifted-digit filter), so modes must be found in a fixed coarse-to-fine order. The partition function grows as , which puts all but the smallest grids in the mode-bias regime of section 2. These tiered/compositional rewards are much harder than earlier HyperGrid variants (see the appendix of Richardson et al., 2026 for an initial version of these environments); section D.1 gives full details.
Baselines. All five methods share the per-policy architecture, and each agent runs for trajectories (section D). They differ only in how policies coordinate. NoComm: K independent GFlowNets. DDP: K agents with all-reduced gradients, i.e., an effective batch of . EGFN (Ikram et al., 2025): rank 0 is the only gradient-trained GFlowNet; the other ranks form a population evolved every iteration by selection, crossover and mutation, and each member sends its 64 best trajectories to the learner’s prioritized replay buffer (ported from the official code and adapted to our setup; see below and table 2). MoG (ours): classifier-driven reward shaping, with only classifier gradients all-reduced. MoGX (ours): MoG plus exchange of 128 of 1024 trajectories per step. We sweep and read every run at the same total budget, summed over agents: trajectories, where a community stops. This is deliberate: we target settings where oracle queries are the scarce resource, so the question is how best to spend a fixed number of them. The cost is that agents in larger communities train for less: at each agent sees trajectories (4,000 gradient steps), against 128,000 steps at . A single GFlowNet ( , where NoComm, DDP, MoG and MoGX coincide) stops at trajectories, half the shared budget, so it is not in the endpoint plots. We report the cumulative number of unique modes the community finds, as mean s.d. over 4 seeds; discovery curves are in section F.
Adapting EGFN. EGFN is hard to compare fairly. The original pairs a learner batch of 16 with 5 population agents sampling 4 trajectories each. For fairness, we match the algorithm hyperparameters: K networks, 1024 trajectories per rank per iteration, and the same number of gradient steps. At this batch size EGFN has a weakness. Its mutation adds noise to whole weight tensors, which makes a population policy nearly deterministic: after one mutation, 1024 samples cover 2 distinct terminal states, so most of the population budget is wasted. We run EGFN only off-policy, because the population's trajectories reach the learner only through the replay buffer.
Results (off-policy, replay mix ratio ). Each training batch mixes fresh on-policy trajectories and replayed samples half and half. Figure 2 shows the headline result: MoG and MoGX generally improve with K, while NoComm and DDP use trajectories less efficiently as agents are added. The discovery curves (section F) show why. NoComm plateaus quickly because independent agents rediscover the same modes, and DDP saturates soon after because every agent shares the same stale parameters and reachable set, as Singla et al. (2024) found for on-policy RL. MoG scales better because the soft partition pushes each component into its own subregion. MoGX generally improves over MoG, since exchange gives every component in-subregion samples from the first iteration. The gap grows with the number of modes: on conditional_multiscale and bitwise_xor, where policy bias hurts most, MoGX keep its coverage as K grows while NoComm and DDP drop by up to an order of magnitude. On sparse, no method gains from larger K. With few, distant modes, the bottleneck is reaching any mode at all, and partitioning cannot help with that. EGFN is strongest at small K: it leads on original at K=2, and on sparse it is the only method to find every mode, up to K=8. It then degrades quickly, because at a fixed total budget its single learner takes fewer steps as K grows and the collapsed population does not make up for it.
Pure on-policy ( ). We rerun the sweep without a replay buffer, so every batch comes from the current policies (fig. 3). Dropping replay does not change how the methods scale: each method loses coverage with K at almost the same rate as in fig. 2, and the methods rank in the same order. MoG and MoGX keep their lead over NoComm and DDP without replay.
Per-iteration cost. Table 1 gives the mean wall-clock time per iteration on original, pure on-policy, over 4 seeds (per-reward and per-phase numbers in section H; table 9 is the phase breakdown for the same runs). Rank-local work (sampling, the loss forward pass with reward shaping, the backward pass) stays flat in K at 700 ms for every method, so a larger community adds no per-rank compute. What grows with K is cross-rank traffic. DDP's policy-gradient all-reduce climbs from 24 ms at K=2 to 549 ms at K=64. MoG has no policy-gradient sync, only all-reduce on a two-hidden-layer MLP classifier. At K=64 MoG's is 22% faster (976 vs. 1249 ms). MoGX is slower than DDP at every K, and at K=64 its exchange (760 ms) costs more than the rank-local work. The overhead comes from our implementation, which calls mpi4py's pickle-based alltoall, serializing every payload as a Python object, and makes every rank wait for the slowest one. A buffer-based, asynchronous exchange would avoid both costs. Small differences between methods are run-to-run noise.
Empirical validation of mixture correctness. The proposition in section 3.1 assumes every component exactly reaches its shaped target. We test whether a finitely trained MoGX checkpoint (original, ndim=10, , 1024 corner modes) still gives (setup in section E). Figure 4 shows each rank far from the optimum, as intended: each rank targets its own and puts
NoComm
DDP
EGFN
MoG
MoGX

Modes found
Modes found

multiplicative_coprime
conditional_multiscale

Community size
Figure 2: Modes found at a fixed total-trajectory budget vs community size (log axis; right axis: % of all modes), off-policy regime (replay mix ratio 0.5). MoG (red) and MoGX (purple) scale with while DDP (blue), NoComm (grey), and EGFN (green) tend to decline; MoGX gains most on the structured rewards.
| Method | K=1 | 2 | 4 | 8 | 16 | 32 | 64 |
|---|---|---|---|---|---|---|---|
| NoComm | 702 ±4 | 729 ±6 | 726 ±7 | 728 ±7 | 732 ±3 | 758 ±23 | 713 ±9 |
| DDP | 702 ±4 | 715 ±3 | 743 ±2 | 784 ±1 | 823 ±2 | 950 ±4 | 1249 ±11 |
| EGFN | 702 ±4 | 712 ±3 | 748 ±23 | 853 ±14 | 876 ±70 | 803 ±6 | 975 ±3 |
| MoG | 702 ±4 | 721 ±4 | 749 ±7 | 800 ±3 | 818 ±6 | 923 ±8 | 976 ±7 |
| MoGX | 702 ±4 | 762 ±30 | 804 ±15 | 841 ±12 | 998 ±12 | 1215 ±49 | 1477 ±12 |
Table 1: Mean per-iteration wall-clock time (ms) by method and , pure on-policy, original reward, over 4 seeds and all steps. NoComm stays flat, MoG grows with the non-blocking classifier all-reduce, DDP with the all-reduce, and MoGX adds the exchange all-to-all. At all methods are the same loop.
mass on a distinct, sparse subset of the modes. The Z-weighted mixture nonetheless spreads mass almost uniformly over all 1024 modes, with . The learned are accurate enough that biased, classifier-shaped sub-policies combine into an unbiased sampler.
4.1 GENOMIC IDEOTYPE DESIGN
Plant breeding is an AI-for-Science problem that needs a large set of high-reward states. Breeders want many distinct genotypes that meet a target trait profile, because each candidate must be crossed, grown and phenotyped over several field seasons before its value is known (Tester & Langridge, 2010), and because a genetically diverse portfolio protects against disease and climate (Esquinas-Alcázar, 2005). Donald (1968) introduced the ideotype, a model plant defined by the traits expected to maximize yield. Genomic ideotype design carries the idea to the DNA level: one assembles a target genotype by pyramiding beneficial alleles at known loci. Alleles close together on a chromo-

Figure 3: As fig. 2, pure on-policy regime. MoG and MoGX still separate from DDP and NoComm, and the MoGX–MoG gap is wider without replay.
some are inherited together, though, and cannot be recombined freely. We evaluate MoG and MoGX in this setting.
Environment. A state is a dosage vector over loci, starting from . Each action raises the dosage at one locus by one (masked at the top dosage), and termination is legal at every state, so . The loci are partitioned into blocks of size ; a block is satisfied when its dosage sums to exactly , with any excess counting as the double-dosage failure case. Writing for the number of satisfied blocks,
The weights tie the landscape to biology: is the Haldane recombination fraction (Haldane, 1919) between locus and its block's anchor, read off the wheat genetic map of Wang et al. (2014), as shipped with ChromaX (Younis et al., 2023). Tightly linked loci get large weights, so the penalty measures how improbable the needed recombination is. We use , , , , , .
Results. Figure 5 reports modes found at a budget of trajectories, with and without replay, over 4 seeds (curves in figs. 18 and 19). Both regimes agree: MoGX leads at every K, MoG matches NoComm, and DDP falls behind, as the mode-bias argument of section 2 predicts.
5 CONCLUSION
Larger batches and data-parallel gradient averaging do not enlarge the set of regions a distributed system can reach. MoG targets that reachable set directly: a community of K GFlowNets, coupled through one jointly trained classifier, each learns a distinct subregion of the target. The mixture is provably correct, and we showed empirically that biased, classifier-shaped sub-policies recombine

(a) Rank 0, , .

(b) Rank 1, , .

(c) Rank 2, , .

(d) Rank 3, , .

(e) Z-weighted mixture, .
Figure 4: Mixture correctness (eq. (2)) for a MoGX checkpoint on HyperGrid original. Bars are empirical per-mode marginals from on-policy trajectories; the dotted red line is the optimal policy (uniform, per mode). Each rank covers a distinct sparse subset of modes; the Z-weighted mixture recovers .

(a) Replay regime ( ).

(b) Pure on-policy regime ( ).
Figure 5: Modes found at a fixed total-trajectory budget vs K on the ChromaX ideotype environment (B=10, ; 1024 optima), mean s.d. over 4 seeds. MoGX (purple) leads at every K, MoG (red) tracks NoComm (grey), and DDP (blue) is generally last. Dropping replay costs MoGX, MoG and NoComm 5–7% of their K=64 coverage and gains DDP 7%; no ordering changes.
into an unbiased sampler. MoGX adds classifier-driven trajectory exchange, which gives each component in-subregion experience from the first iteration. With the environment-interaction budget held fixed, both methods turn parallel compute into mode coverage. Across six HyperGrid rewards and up to 64 policies, MoG and MoGX generally keep finding modes as K grows while DDP saturates and independent agents plateau, with or without replay, and MoG synchronizes more cheaply than DDP. On ideotype design, with optima separated by linkage from a real wheat map, MoGX reaches 39% of the 1024 optima at K=64, while MoG alone only matches independent agents, likely because of the reward's geometry.
Two limitations point to future work. Both environments share the same state-space structure, so we have not tested whether a learned partition works for graph or sequence generation with larger action spaces and variable trajectory lengths. And the community is static: K is fixed in advance, with no way to retire or reallocate stalled components; a discovery-rate signal could drive that resizing. The obvious next step is molecule and biological-sequence design, where oracle calls are expensive and structural diversity is the point. The framework does not depend on the balance objective or the form of the partition, and we expect its core idea, giving each parallel agent its own learned sub-target, to carry over.
6 REPRODUCIBILITY STATEMENT
We will release all code, including model training code, environments, and analysis scripts. These artifacts are intended to allow the community to inspect the work, extend the framework to new domains, and benchmark the method easily on more challenging problems.
7 AI ASSISTANCE DISCLOSURE
Large language models (LLMs) were used to assist with manuscript drafting (primarily consistency checks, accuracy of claims validation, and LaTeX automation), and for code generation for model evaluations. Many elements of this codebase predate the advent of human-level coding agents, so most core methods were implemented entirely by hand. LLMs were used under heavy supervision for figure and table generation. They were not used for research ideation, method design, or experiment design. The authors reviewed all code underlying reported results and rewrote any generated manuscript text by hand.
REFERENCES
Brian R Bartoldson, Siddarth Venkatraman, James Diffenderfer, Moksh Jain, Tal Ben-Nun, Seanie Lee, Minsu Kim, Johan Obando-Ceron, Yoshua Bengio, and Bhavya Kailkhura. Trajectory balance with asynchrony: Decoupling exploration and learning for fast, scalable LLM post-training. arXiv preprint arXiv:2503.18929, 2025.
Emmanuel Bengio, Moksh Jain, Maksym Korablyov, Doina Precup, and Yoshua Bengio. Flow network based generative models for non-iterative diverse candidate generation. Advances in Neural Information Processing Systems, 34:27381–27394, 2021.
Yoshua Bengio, Salem Lahlou, Tristan Deleu, Edward J Hu, Mo Tiwari, and Emmanuel Bengio. GFlowNet foundations. Journal of Machine Learning Research, 24(210):1–55, 2023.
Tiago Da Silva, Luiz Max Carvalho, Amauri Souza, Samuel Kaski, and Diego Mesquita. Embarrassingly parallel gflownets. arXiv preprint arXiv:2406.03288, 2024.
Pedro Dall'Antonia, Tiago da Silva, Daniel Augusto de Souza, César Lincoln C. Mattos, and Diego Mesquita. Boosted GFlowNets: Improving exploration via sequential learning, 2025. URL https://arxiv.org/abs/2511.09677.
Tristan Deleu, Padideh Nouri, Nikolay Malkin, Doina Precup, and Yoshua Bengio. Discrete probabilistic inference as control in multi-path environments. In UAI, volume 244 of PMLR, 2024.
C. M. Donald. The breeding of crop ideotypes. Euphytica, 17(3):385–403, 1968.
Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Volodymyr Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. IMPALA: Scalable distributed deep-RL with importance weighted actor-learner architectures. In International Conference on Machine Learning, 2018.
José Esquinas-Alcázar. Protecting crop genetic diversity for food security: political, ethical and technical challenges. Nature Reviews Genetics, 6(12):946–953, 2005.
Timur Garipov, Sebastiaan De Peuter, Ge Yang, Vikas Garg, Samuel Kaski, and Tommi Jaakkola. Compositional sculpting of iterative generative processes. In Advances in Neural Information Processing Systems, 2023.
John Burdon Sanderson Haldane. The combination of linkage values, and the calculation of distances between the loci of linked factors. Journal of Genetics, 8(29):299–309, 1919.
Dan Horgan, John Quan, David Budden, Gabriel Barth-Maron, Matteo Hessel, Hado van Hasselt, and David Silver. Distributed prioritized experience replay. In International Conference on Learning Representations, 2018.
Zarif Ikram, Ling Pan, and Dianbo Liu. Evolution guided generative flow networks, 2025. URL https://arxiv.org/abs/2402.02186.
Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. Adaptive mixtures of local experts. Neural Computation, 3(1):79–87, 1991.
Max Jaderberg, Valentin Dalibard, Simon Osindero, Wojciech M Czarnecki, Jeff Donahue, Ali Razavi, Oriol Vinyals, Tim Green, Iain Dunning, Karen Simonyan, Chrisantha Fernando, and Koray Kavukcuoglu. Population based training of neural networks. arXiv preprint arXiv:1711.09846, 2017.
Moksh Jain, Emmanuel Bengio, Alex Hernandez-Garcia, Jarrid Rector-Brooks, Bonaventure FP Dossou, Chanakya Ajit Ekbote, Jie Fu, Tianyu Zhang, Michael Kilgour, Dinghuai Zhang, et al. Biological sequence design with GFlowNets. In International Conference on Machine Learning, 2022.
Minsu Kim, Taeyoung Yun, Emmanuel Bengio, Dinghuai Zhang, Yoshua Bengio, Sungsoo Ahn, and Jinkyoo Park. Local search GFlowNets. arXiv preprint arXiv:2310.02710, 2023.
Salem Lahlou, Tristan Deleu, Pablo Lemos, Dinghuai Zhang, Alexandra Volokhova, Alex Hernández-García, Léna Néhale Ezzine, Yoshua Bengio, and Nikolay Malkin. A theory of continuous generative flow networks. In ICML, PMLR, 2023.
Kanika Madan, Jarrid Rector-Brooks, Maksym Korablyov, Emmanuel Bengio, Moksh Jain, Andrei Cristian Nica, Tom Bosc, Yoshua Bengio, and Nikolay Malkin. Learning GFlowNets from partial episodes for improved convergence and stability. In International Conference on Machine Learning, 2023.
Kanika Madan, Alex Lamb, Emmanuel Bengio, Glen Berseth, and Yoshua Bengio. Towards improving exploration through sibling augmented GFlowNets. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=HH4KWP8RP5.
Nikolay Malkin, Moksh Jain, Emmanuel Bengio, Chen Sun, and Yoshua Bengio. Trajectory balance: Improved credit assignment in GFlowNets. In Advances in Neural Information Processing Systems, 2022.
Volodymyr Mnih, Adrià Puigdomènech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International Conference on Machine Learning, 2016.
Johan Obando Ceron, Marc Bellemare, and Pablo Samuel Castro. Small batch deep reinforcement learning. Advances in Neural Information Processing Systems, 36:26003–26024, 2023.
Johan Obando-Ceron, Ghada Sokar, Timon Willi, Clare Lyle, Jesse Farebrother, Jakob Foerster, Gintare Karolina Dziugaite, Doina Precup, and Pablo Samuel Castro. Mixtures of experts unlock parameter scaling for deep RL. In International Conference on Machine Learning, 2024.
Ling Pan, Dinghuai Zhang, Aaron Courville, Longbo Huang, and Yoshua Bengio. Generative augmented flow networks. In ICLR, 2023.
Ling Pan, Moksh Jain, Kanika Madan, and Yoshua Bengio. Pre-training and fine-tuning generative flow networks. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=ylhiMfpqkm.
Jack Parker-Holder, Aldo Pacchiano, Krzysztof Choromanski, and Stephen Roberts. Effective diversity in population based reinforcement learning. In Advances in Neural Information Processing Systems, 2020.
Jarrid Rector-Brooks, Kanika Madan, Moksh Jain, Maksym Korablyov, Cheng-Hao Liu, Sarath Chandar, Nikolay Malkin, and Yoshua Bengio. Thompson sampling for improved exploration in GFlowNets. arXiv preprint arXiv:2306.17693, 2023.
Oliver E Richardson, Mandana Samiei, Mehran Shakerinava, Joseph D Viviano, Abdessamad El Kabid, Ali Parviz, and Yoshua Bengio. Local inconsistency resolution: The interplay between attention and control in probabilistic models. arXiv preprint arXiv:2604.17140, 2026.
Tom Schaul, John Quan, Ioannis Antonoglou, and David Silver. Prioritized experience replay. In International Conference on Learning Representations (ICLR), 2016. arXiv:1511.05952.
Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In International Conference on Learning Representations, 2017.
Max W. Shen, Emmanuel Bengio, Ehsan Hajiramezanali, Andreas Loukas, Kyunghyun Cho, and Tommaso Biancalani. Towards understanding and improving GFlowNet training. In ICML, 2023.
Tiago Silva, Amauri H Souza, Luiz Max Carvalho, Samuel Kaski, and Diego Mesquita. Federated contrastive GFlowNets. OpenReview preprint, 2024. URL https://openreview.net/forum?id=VJDFhkwQg6.
Tiago Silva, Amauri Souza, Omar Rivasplata, Vikas Garg, Samuel Kaski, and Diego Mesquita. Generalization and distributed learning of GFlowNets. In International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=PJNhZoCjLh.
Jayesh Singla, Ananye Agarwal, and Deepak Pathak. SAPG: Split and aggregate policy gradients. arXiv preprint arXiv:2407.20230, 2024.
Mark Tester and Peter Langridge. Breeding technologies to increase crop production in a changing world. Science, 327(5967):818–822, 2010.
Daniil Tiapkin, Nikita Morozov, Alexey Naumov, and Dmitry Vetrov. Generative flow networks as entropy-regularized RL. In International Conference on Artificial Intelligence and Statistics, 2024a.
Daniil Tiapkin, Nikita Morozov, Alexey Naumov, and Dmitry P. Vetrov. Generative flow networks as entropy-regularized rl. In AISTATS, volume 238 of PMLR, pp. 4213–4221, 2024b.
Francisco Vargas, Will Grathwohl, and Arnaud Doucet. Denoising diffusion samplers. In ICLR, 2023.
Nikhil Vemgal, Elaine Lau, and Doina Precup. An empirical study of the effectiveness of using a replay buffer on mode discovery in GFlowNets. In ICML 2023 Workshop on Structured Probabilistic Inference & Generative Modeling (SPIGM), 2023. arXiv:2307.07674.
Joseph D. Viviano, Omar G. Younis, Sanghyeok Choi, Victor Schmidt, Yoshua Bengio, and Salem Lahlou. torchgfn: A PyTorch GFlowNet library. arXiv preprint arXiv:2305.14594, 2023.
Shichen Wang et al. Characterization of polyploid wheat genomic diversity using a high-density 90,000 single nucleotide polymorphism array. Plant Biotechnology Journal, 12(6):787–796, 2014.
Omar G Younis, Matteo Turchetta, Daniel Ariza Suarez, Steven Yates, Bruno Studer, Ioannis N Athanasiadis, Andreas Krause, Joachim M Buhmann, and Luca Corinzia. Chromax: a fast and scalable breeding program simulator. Bioinformatics, 39(12):btad691, 2023.
David W. Zhang, Corrado Rainone, Markus Peschl, and Roberto Bondesan. Robust scheduling with GFlowNets. In International Conference on Learning Representations, 2023.
Qinsheng Zhang and Yongxin Chen. Path integral sampler: A stochastic control approach for sampling. In ICLR, 2022.
A EXTENDED RELATED WORK
GFlowNets, MaxEnt RL and continuous samplers. The mode collapse discussed in section 2 is specific to return maximization. Entropy-regularized (MaxEnt) RL instead learns a stochastic policy that samples in proportion to reward, and GFlowNet training can be recast as a MaxEnt RL problem with a particular reward and regularizer (Tiapkin et al., 2024b). In the multi-path environments typical of sequential construction, this equivalence requires correcting the reward so that the optimal policy's marginal is proportional to regardless of the underlying MDP (Deleu et al., 2024). Sampling from an unnormalized density is also the aim of diffusion and stochastic-control samplers (Zhang & Chen, 2022; Vargas et al., 2023), to which continuous GFlowNets (Lahlou et al., 2023) are closely related. We use GFlowNets because they match the multi-path, discrete structure of our construction processes, not because we see them as a separate paradigm.
Parallel and population-based training in RL. Distributed actor-learner architectures such as A3C (Mnih et al., 2016), IMPALA (Espeholt et al., 2018), and Ape-X (Horgan et al., 2018) scale experience collection by spreading actors across many workers. Only IMPALA corrects for the resulting lag between actor and learner policies, with V-trace importance weights; A3C and Ape-X apply no off-policy correction. These frameworks parallelize a single policy and do not enforce specialization across subregions of the target. Population-based training (Jaderberg et al., 2017) maintains a population of agents with diverse hyperparameters, periodically replacing under-performers; diversity-aware variants additionally regularize for behavioral spread (Parker-Holder et al., 2020). Specialization there emerges only implicitly from hyperparameter perturbations or behavioral diversity bonuses, not from an explicit partition of the target distribution, and connects to a broader literature linking GFlowNet training to maximum-entropy reinforcement learning (Tiapkin et al., 2024a; Deleu et al., 2024). Mixture-of-experts architectures (Jacobs et al., 1991; Shazeer et al., 2017; Obando-Ceron et al., 2024) are closer in spirit: a learned gate routes inputs to specialized sub-networks. Our classifier-driven partition can be viewed as a mixture of experts in which the experts are full generative policies rather than feed-forward heads, and the gate's role is to define each expert's target distribution rather than to combine their outputs.
Parallel and distributed GFlowNets. Several recent methods parallelize GFlowNet training. Only one of them also targets mode coverage. Trajectory Balance with Asynchrony (Bartoldson et al., 2025) decouples exploration from learning by spreading off-policy searchers across nodes that populate a shared replay buffer, yielding large speedups for language-model post-training; the searchers, however, are snapshots of a single policy, so the underlying reachable set is shared and the population is asymptotically homogeneous. Embarrassingly Parallel GFlowNets (Da Silva et al., 2024) and federated contrastive variants (Silva et al., 2024) train one local GFlowNet per factor of the reward (or per data shard in federated Bayes) and aggregate them via balance conditions that recover a global target, so that reward evaluation can be spread across machines. Subgraph Asynchronous Learning (SAL, Silva et al., 2025) comes closest to our setting. It splits the state graph into subgraphs, trains one GFlowNet per subgraph in parallel, and then combines them. The authors report up to more modes than a single GFlowNet. In SAL the split is chosen before training and the local GFlowNets train in isolation; in MoG the partition is learned jointly with the policies, and in MoGX they also exchange trajectories. Compositional Sculpting (Garipov et al., 2023) composes pre-trained generative processes via classifier-guided routing, but operates post-hoc on fixed models rather than co-training a community of policies. No existing method scales GFlowNet training by partitioning the state space across a community of policies that are trained jointly under a fixed environment-interaction budget, precisely the regime that matters for AI for Science, where the dominant per-sample cost is an expensive environment query rather than gradient compute.
B SHARED DISTRIBUTED INFRASTRUCTURE
Every method in this paper (NoComm, DDP, EGFN, MoG, MoGX) runs on the same distributed stack. Isolating this stack as a single shared layer serves two purposes: it lets us hold the environment-interaction budget fixed across methods and community sizes, so that performance differences reflect the method rather than uneven sampling; and it provides a single place to define the global mode registry that produces our headline metric.
Rank topology. A run with community size K uses K training ranks, B buffer ranks (default B=1), and an optional coordinator rank. Training ranks own a GFlowNet replica plus a thin local replay buffer of capacity 2048; buffer ranks own a remote replay buffer plus per-rank mode-discovery state; the coordinator, when present, maintains the union mode set across the population. Training and coordinator ranks share an MPI sub-communicator used for all collectives (all-reduce of gradients, all-to-all of exchanged trajectories). Buffer ranks are excluded from the sub-communicator so they never participate in training-time synchronization.
Replay and mode registry. Each training rank composes the loss-time batch as a fixed mixture of fresh on-policy trajectories and replay samples. After loss evaluation, the batch is shipped to the assigned buffer rank for centralized scoring; the buffer rank invokes the environment's mode-detection routine on every terminating state, hashes any newly discovered modes, and updates a per-rank counter . The coordinator unions these counters and exposes the global metric n_modes_found reported in section 4. For MoG and MoGX, the mode registry is read-only; the same infrastructure supports discovery-rate-driven replacement variants of the framework that are out of scope for this paper. Section G repeats the on-policy sweep with SubTB and DB.
C METHOD IMPLEMENTATION DETAILS
Loss-agnostic instantiation. The framework is orthogonal to the choice of GFlowNet objective. We instantiate with trajectory balance (TB) (Malkin et al., 2022) throughout, but the same code path applies to detailed balance, sub-trajectory balance (Madan et al., 2023), log-partition variance, and modified DB. The only requirement is that the loss be off-policy-friendly when consumed through a replay buffer, a property shared by all four objectives since each is computed from tuples or trajectories without an importance-weighted likelihood correction tied to the sampling policy.
Classifier coherence. consumes the same K-hot preprocessed state used by the policies. Its parameters are broadcast from rank 0 at construction time, so every replica starts from identical weights; combined with the gradient all-reduce, this gives true data-parallel training of regardless of how the policies are synchronized. Because every rank starts from the same and applies the same averaged gradient, all replicas of remain identical throughout training, with no broadcast beyond initialization. This is essential: the shaped reward in eq. (1) would be incoherent across ranks if their classifiers drifted apart.
Reward-shaping safety net. We clip the shaping term in eq. (1) to clip , a numerical safety net: deep into training, for an out-of-subregion state can otherwise saturate the loss for that sample. Shaping is applied after the replay-buffer sampler, so the multiplier always reflects the current classifier weights even when was buffered many iterations ago, which is what makes joint training stable, and it is computed inside a torch.no_grad() block so policy gradients never propagate back into the classifier.
Self-consistency. The all-reduced cross-entropy in eq. (3) is equivalent to supervised classification on the union dataset . The Bayes-optimal classifier under that distribution is
As each specializes onto a subregion of , the classifier sharpens its routing of states to whichever component covers them most, and eq. (1) re-amplifies that specialization on the next iteration. The two halves close the loop, and eq. (2) is the fixed point.
Symmetry breaking and initialization. At iteration 0, outputs a near-uniform softmax, so pointwise and eq. (1) reduces to a global constant offset on every component's log-reward; this constant is absorbed into within a handful of gradient steps and the policy distribution is unaffected. Which subregion ends up assigned to which component is supplied by the independence of on-policy sampling early in training. Empirically the partition stabilizes within the first few thousand iterations and stays put.
Exchange transport. In MoGX, selected trajectories are grouped by destination rank, serialized into a CPU-tensor payload (states, actions, terminating indices, log-rewards, log-probabilities, estimator outputs), and exchanged via a single MPI_Alltoall on the training sub-communicator. Every rank participates on every iteration; empty send slots are no-ops. Received payloads are concatenated with the locally retained slice of the source batch, and enter the replay buffer as ordinary samples. The exchange step sits between on-policy sampling and the optimization step, so the receiving rank attributes any mode discoveries to itself and the reward shaping of eq. (1) applies uniformly to local and received trajectories.
D IMPLEMENTATION DETAILS AND HYPERPARAMETERS
This appendix consolidates the architecture, optimizer, and training-schedule settings shared across all four population configurations (NoComm, DDP, MoG, MoGX). All methods use an identical per-agent architecture and run each agent for the same number of trajectories. Section 4 compares them at a shared total budget, so agents in larger communities take fewer gradient steps. The methods differ only in their inter-agent coordination, as described in section 3. table 2 lists the full configuration. All experiments are implemented on top of the torchgfn library (Viviano et al., 2023).
Hardware. All runs are executed on the CPU partition of the Trillium cluster (SciNet, University of Toronto; part of the Digital Research Alliance of Canada). Each CPU node comprises two 96-core AMD EPYC “Zen5” (Turin) processors for 192 cores and 768 GB of RAM, connected by an NDR InfiniBand (Mellanox Dragonfly+) fabric. We map one MPI rank to one physical CPU core, so a community of size K uses K cores for the training ranks plus one core for the buffer rank (section C). Every configuration in the sweep, up to the largest (K=64, i.e. 65 ranks), therefore fits within a single node, and all cross-rank communication reported in section H (gradient/classifier all-reduce and the MoGX trajectory all-to-all) is intra-node shared-memory MPI rather than inter-node network traffic.
D.1 HYPERGRID ENVIRONMENTS
All environments instantiate the -dimensional HyperGrid of Bengio et al. (2021): a grid of height whose states are vectors , with all trajectories starting at and permitted to terminate in any state, giving terminal states. Where convenient we write the per-dimension normalized coordinate . Unless noted, we use . The three compositional rewards share a cumulative tiered form
with strictly increasing weights , so that a state attains the reward of tier t only if it also satisfies every lower tier. Because the tier indicators are cumulative, summing equation 6 over X gives a closed-form partition function
where is the tier-t mode count given in closed form for each environment below. For , we have , and the term dominates (e.g. gives ); since the highest tier occupies a vanishing fraction of , on-policy sampling almost never lands on a top-tier mode, which is precisely the mode-bias regime of section 2.
Original (Bengio et al., 2021).
We use , , at . Modes are the states lying in the inner band in every dimension simultaneously (reward ); with admissible band indices per axis the mode set has size (e.g. at , i.e. modes concentrated near the corners).
| Component / hyperparameter | Value |
|---|---|
| Policy network | |
| Architecture | MLP, 2 hidden layers, width 256 |
| Forward/backward policy | shared parameters (tied ) |
| GFlowNet loss | trajectory balance (TB) |
| Sampling temperature / | |
| Optimization | |
| Optimizer | AdamW |
| Learning rate | |
| Batch size | 1024 trajectories |
| LR warmup | linear over first 500 iterations |
| Gradient clipping | |
| Per-agent budget | trajectories |
| Partition classifier (MoG, MoGX) | |
| Architecture | MLP, 2 hidden layers, logits |
| Input | -hot preprocessed state |
| Initialization | broadcast from rank 0 (identical) |
| Gradient synchronization | all-reduce (sum-then-divide), AdamW step |
| Entropy weight | 0 (default) |
| Shaping clip | |
| Replay and infrastructure | |
| Local replay buffer capacity | 2048 |
| Remote replay buffer capacity | 8192 |
| Buffer ranks | 1 (default) |
| Replay mix ratio | 0.5 (replay) / 0 (pure on-policy) |
| Trajectory exchange (MoGX only) | |
| Exchange count | 128 of 1024 (12.5%) |
| Routing rule | |
| EGFN only (our adaptation, see section 4) | |
| Learner / population | rank 0 / ranks 1, ..., |
| Generations | one per gradient step |
| Elite fraction / tournament size | 0.2 / 4 |
| Crossover probability | 0.1 |
| Mutation | per tensor, prob. 0.9 |
| Prioritized replay buffer | top 1000 by reward |
| Replay sampling | 50% from top 10%, 50% from rest |
| Trajectories sent per member | top 64 of 1024 |
| Learner batch | 1024 on-policy + 1024 replay |
| Sweep | |
| Environment | HyperGrid, ndim=10 |
| Community sizes | \{1, 2, 4, 8, 16, 32, 64\} |
Table 2: Shared per-agent hyperparameters across all four population configurations. The four methods differ only in inter-agent coordination (section 3); all other settings are identical, which is what makes the iso-budget comparisons in section 4 meaningful. Reward-specific grid heights are given in section 4. The EGFN rows apply to that baseline only.
Cosine. With ,
with , at . The oscillatory factor produces a regular lattice of high-reward regions; a state is counted as a mode when the product exceeds a -scaled per-dimension peak, (we use ).
Sparse (Pan et al., 2023). Let the target set contain, for each , every distinct permutation of the vector with entries equal to 1 and entries equal to . The reward places an isolated spike on each target,
There are such spikes (1023 at ; the all-ones vector is excluded), each surrounded by reward , making the modes extremely small and maximally isolated.
Bitwise XOR (compositional; rule reuse). Let denote the -th bit and restrict attention to a subset of constrained dimensions. For tier with bit window , the constraint requires, at every bit-plane , a system of GF(2) (XOR) parity checks on the bit vector across constrained dimensions (defaulting to even parity when unspecified). The reward is equation 6 with these cumulative bit-plane constraints. Modes are therefore non-local: they are placed by an algebraic law rather than by proximity, and carry no spatial gradient. For a single even-parity check across dimensions at all bit-planes, one coordinate is fully determined by the XOR of the others, and (since is a power of two the determined value is always in range) the mode count is ; e.g. , gives modes at the strictest tier. The intended challenge is rule reuse: the same parity computation, learned once, is reused at each tier under increasing strictness, so that identifying the rule from a handful of modes predicts the location of all the others.
Multiplicative Coprime (compositional; knowledge composition). Coordinates are internally shifted by +1 (state value ) so the origin is valid and short trajectories immediately encounter small prime-factorable numbers, providing early signal. Over a small prime set and active dimensions , successive tiers impose qualitatively different constraints:
• tier 0 (prime support): each , , factors entirely over ;
• tier ≥ 1 (exponent caps): every prime exponent is bounded, , with tightening per tier;
• coprimality: designated pairs become coprime, ;
• LCM targets: an optional global target.
The reward is equation 6 with these cumulative constraints. Ignoring the cross-dimensional coprimality/LCM couplings, the prime-support-plus-caps mode count factorizes as , where is the number of admissible “smooth” values in ; for , , we have (namely ), giving modes when all dimensions are active. Coprimality couples dimensions and further reduces this count (it no longer factorizes). The intended challenge is knowledge composition: each tier is a different kind of number-theoretic reasoning, and the factorization structure learnable near the origin is a prerequisite for the coprimality and LCM reasoning that gates the rarer high-tier modes.
Conditional Multi-Scale (compositional; conditional hierarchy). Decompose each coordinate in base into digits, . Ordering tiers coarse-to-fine, tier constrains digit (the -th most significant) through a shifted filter whose offset depends on all coarser digits already constrained:
(11) with seed-derived coefficients (tier 0 has ), and an optional cross-dimensional term . The reward is equation 6. Because coarse-scale digits are small near the origin (high digits equal 0 and pass trivially), difficulty is distance-correlated. The mode count admits a closed form,
(with the factor present only under cross-dimensional constraints), and Z follows from equation 7 with no enumeration. As a reference instantiation, , , , yields , , and as tiers accumulate. The intended challenge is a conditional hierarchy: the constraint at each scale is a function of the scales below it, so exploration must proceed coarse-to-fine, with the lower tiers acting as foothills that bootstrap discovery of the higher ones.
E MIXTURE-CORRECTNESS VALIDATION: SETUP AND FULL RESULTS
Setup. We take a MoGX checkpoint on HyperGrid original (ndim=10, , , “challenging” preset; corner modes; analytical reward-proportional optimum uniform across modes at each with 99.26% off-mode mass). For each rank we draw on-policy trajectories and bin terminating states by mode index. We then build the Z-weighted mixture marginal with , reading directly from the trained TB scalar exactly as prescribed by eq. (2). The reference optimum is computed in closed form by enumerating only the mode-band states and using original’s outer-ring decomposition for the partition function (no enumeration). KL divergences are reported over the full -category support.
Full results. Figure 4 reports the per-rank and mixture marginals. Each individual rank is far from the optimum on its own, by design: each targets its shaped reward , not . All four ranks place mass on distinct, sparse subsets of the 1024 modes (off-mode mass 99.1–99.6%, forward KL ). The Z-weighted mixture, in contrast, recovers the analytical optimum: , lower than every individual rank by a factor of , with off-mode mass 99.31% matching the analytic 99.26% to within sampling noise and on-mode mass distributed near-uniformly across the 1024 modes. No single rank covers the modes on its own; the mixture does, because the union of the four ranks' coverage, weighted by , reassembles into the full target. This is the operational content of MoG's mixture-correctness proposition.
F FULL TRAINING CURVES
For completeness, we give the full per-trajectory mode-discovery curves underlying the iso-budget endpoints reported in section 4. figs. 6 to 11 cover the replay regime ( ) and figs. 12 to 17 the pure on-policy regime ( ), with one figure per reward. In general, the curves show that MoG and MoGX are more sample efficient than NoComm and DDP and continue benefiting from larger K. In each figure, columns subdivide by community size K and shaded bands show s.d. across seeds. Figures 18 and 19 give the same view for the ChromaX ideotype environment of section 4.1, in the replay and pure on-policy regimes respectively.
G OTHER TRAINING OBJECTIVES
We reran the pure on-policy sweep ( ) with SubTB and DB on original (easy preset, ), bitwise_xor and conditional_multiscale. SubTB uses with geometric weighting within each sub-trajectory, and for both losses the log head shares the policy trunk. Everything else follows table 2. Endpoints are read at the largest budget every run with reached, over 4 seeds.
SubTB. SubTB’s baselines barely suffer from a larger community. On bitwise_xor, NoComm finds modes at and still at , where all four methods sit within 7% of each other (fig. 20). There is no collapse for MoG to prevent. The one clear gain is on original at intermediate : at MoG finds 100 modes, DDP 34 and NoComm 17. So the TB gains of fig. 3 depend on how badly TB’s baselines degrade with .
Mode discovery — Original reward

Figure 6: Modes discovered vs total trajectories on the original reward, replay regime ( ). MoGX (purple) and MoG (red) discover modes faster than DDP (blue) and NoComm (grey).
Mode discovery — cosine reward

Figure 7: Modes discovered vs total trajectories on the cosine reward, replay regime ( ).
DB. Under DB, MoG and MoGX carry the tilt as a flow potential. Rank k uses
and shapes terminal rewards with the same . The optimum is that of DB with boundary , but every interior residual now carries from the first update, and only fits the untilted flow.
MoG tracks the baselines up to and pulls ahead on bitwise_xor beyond it, with modes at against for DDP and for NoComm (fig. 21). On the other two rewards, it shows no consistent gain. MoGX is worse: it trails every method at every on bitwise_xor, and at on original it finds 17–51 modes where the others find 95–229.
Mode discovery — Sparse reward

Figure 8: Modes discovered vs total trajectories on the sparse reward, replay regime ( ).
Mode discovery — Bitwise XOR reward

Figure 9: Modes discovered vs total trajectories on the bitwise_xor reward, replay regime ( ). The MoGX–MoG gap widens with structural complexity.
H TIMINGS
Per-reward totals. Table 1 of the main paper reports the per-method per-iteration total for the original reward. Tables 3 to 8 give the same total for each reward separately, with table 3 reproducing the main-paper table. The per-method scaling pattern is identical for every reward: NoComm stays flat in K; DDP grows with the all-reduce; MoG grows much more slowly, paying only the much cheaper classifier all-reduce; and MoGX adds the trajectory all-to-all on top. The absolute level shifts with the per-reward shaping cost (sparse is the cheapest, cosine the most expensive). At K=64 the ordering NoComm < MoG < DDP < MoGX holds on every reward except sparse, where MoG and NoComm are within noise. At small K the methods are within run-to-run noise of each other and the ordering varies. NoComm, whose per-rank work does not depend on K, varies by up to 23% across K on a single reward.
Mode discovery — Multiplicative Coprime reward

Figure 10: Modes discovered vs total trajectories on the multiplicative_coprime reward, replay regime ( ). The MoGX–MoG gap widens with structural complexity.
Mode discovery — Conditional Multiscale reward

Figure 11: Modes discovered vs total trajectories on the conditional_multiscale reward, replay regime ( ). The MoGX–MoG gap widens with structural complexity.
Per-reward phase breakdown. We also time the different training phases while scaling the community size. Tables 9 to 14 split the measurement by reward. Sample = on-policy rollouts; Loss = reward shaping + GFN loss forward; Bwd = backward pass. The rank-local phases are pooled over all methods. The cross-rank phases are averaged over the methods that use them: Exch. = MoGX trajectory all-to-all; = DDP policy-gradient all-reduce; = classifier loss + blocking gradient all-reduce, averaged over MoG and MoGX. The two differ: on original, MoG's phase takes 23 ms at K=2 and 284 ms at K=64, while MoGX's stays below 12 ms. The rank-local phases (Sample, Loss, Bwd) track the per-reward shaping cost: sparse is the cheapest, while cosine is the most expensive. The cross-rank phases (Exch., , ) follow the same qualitative scaling in K as in the aggregate, independent of the reward.
Mode discovery — Original reward

Figure 12: Modes discovered vs total trajectories on the original reward, pure on-policy regime ( , replay buffer record-only).
Mode discovery — cosine reward

Figure 13: Modes discovered vs total trajectories on the cosine reward, pure on-policy regime ( , replay buffer record-only).
| Method | K=1 | 2 | 4 | 8 | 16 | 32 | 64 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NoComm | 702 | ±4 | 729 | ±6 | 726 | ±7 | 728 | ±7 | 732 | ±3 | 758 | ±23 | 713 | ±9 |
| DDP | 702 | ±4 | 715 | ±3 | 743 | ±2 | 784 | ±1 | 823 | ±2 | 950 | ±4 | 1249 | ±11 |
| EGFN | 702 | ±4 | 712 | ±3 | 748 | ±23 | 853 | ±14 | 876 | ±70 | 803 | ±6 | 975 | ±3 |
| MoG | 702 | ±4 | 721 | ±4 | 749 | ±7 | 800 | ±3 | 818 | ±6 | 923 | ±8 | 976 | ±7 |
| MoGX | 702 | ±4 | 762 | ±30 | 804 | ±15 | 841 | ±12 | 998 | ±12 | 1215 | ±49 | 1477 | ±12 |
Table 3: Same per-method per-iteration wall-clock total as table 1, reported also here for reference.
Mode discovery – Sparse reward

Figure 14: Modes discovered vs total trajectories on the sparse reward, pure on-policy regime ( , replay buffer record-only).
Mode discovery – Bitwise XOR reward

Figure 15: Modes discovered vs total trajectories on the bitwise_xor reward, pure on-policy regime ( , replay buffer record-only).
| Method | K=1 | 2 | 4 | 8 | 16 | 32 | 64 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NoComm | 2936 | ±45 | 3103 | ±167 | 3278 | ±278 | 2971 | ±65 | 3303 | ±122 | 2999 | ±71 | 2969 | ±73 |
| DDP | 2936 | ±45 | 3106 | ±142 | 3127 | ±94 | 3181 | ±123 | 3451 | ±224 | 3988 | ±204 | 4727 | ±182 |
| MoG | 2936 | ±45 | 2982 | ±68 | 3099 | ±52 | 3197 | ±26 | 3274 | ±37 | 3628 | ±40 | 3994 | ±31 |
| MoGX | 2936 | ±45 | 2919 | ±24 | 3092 | ±35 | 3218 | ±15 | 3643 | ±64 | 4059 | ±34 | 4840 | ±17 |
Table 4: Per-method per-iteration wall-clock total, similar to table 1, but restricted to the cosine reward. Aggregation, units, and method definitions match table 1. At all four methods collapse to the same single-agent loop and share the pooled baseline.
Mode discovery — Multiplicative Coprime reward

Figure 16: Modes discovered vs total trajectories on the multiplicative_coprime reward, pure on-policy regime (, replay buffer record-only).
Mode discovery — Conditional Multiscale reward

Figure 17: Modes discovered vs total trajectories on the conditional_multiscale reward, pure on-policy regime (, replay buffer record-only).
| Method | 2 | 4 | 8 | 16 | 32 | 64 | |
|---|---|---|---|---|---|---|---|
| NoComm | |||||||
| DDP | |||||||
| MoG | |||||||
| MoGX |
Table 5: Per-method per-iteration wall-clock total, similar to table 1, but restricted to the sparse reward. Aggregation, units, and method definitions match table 1. At all four methods collapse to the same single-agent loop and share the pooled K=1 baseline.
Mode discovery — ChromaX ideotype (, , replay mix 0.5, )

Figure 18: Modes discovered vs total trajectories on the ChromaX ideotype environment (section 4.1; , , optima), replay regime (), one panel per community size , mean SEM over 4 seeds. MoGX (purple) pulls ahead of the other three methods from on, while MoG (red) and NoComm (grey) stay close together throughout.
Mode discovery — ChromaX ideotype (, , on-policy, )

Figure 19: Modes discovered vs total trajectories on the ChromaX ideotype environment (section 4.1; , , optima), pure on-policy regime (, replay buffer record-only), one panel per community size , mean SEM over 4 seeds. The picture is the one from fig. 18: MoGX (purple) separates from the other three methods from on, and MoG (red) stays on top of NoComm (grey).
| Method | K=1 | 2 | 4 | 8 | 16 | 32 | 64 |
|---|---|---|---|---|---|---|---|
| NoComm | 1083 ±22 | 1151 ±48 | 1061 ±26 | 1066 ±22 | 1094 ±47 | 1067 ±9 | 937 ±23 |
| DDP | 1083 ±22 | 1206 ±19 | 1402 ±43 | 1636 ±25 | 1829 ±29 | 1904 ±41 | 2530 ±81 |
| MoG | 1083 ±22 | 1208 ±39 | 1363 ±40 | 1567 ±22 | 1543 ±15 | 1578 ±16 | 1470 ±44 |
| MoGX | 1083 ±22 | 1199 ±59 | 1388 ±89 | 1619 ±130 | 1901 ±147 | 2291 ±171 | 2923 ±215 |
Table 6: Per-method per-iteration wall-clock total, similar to table 1, but restricted to the bitwise_xor reward. Aggregation, units, and method definitions match table 1. At all four methods collapse to the same single-agent loop and share the pooled baseline.


Community size
Modes found (% of )
Figure 20: Modes discovered at fixed total-trajectory budget vs community size , SubTB, pure on-policy regime, mean s.d. over 4 seeds.


Community size
Modes found (% of )
Figure 21: Same as fig. 20 for DB, with the tilt carried as a flow potential in MoG and MoGX.
| Method | K=1 | 2 | 4 | 8 | 16 | 32 | 64 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NoComm | 1162 | ±25 | 1320 | ±98 | 1238 | ±60 | 1328 | ±106 | 1319 | ±43 | 1216 | ±63 | 1102 | ±53 |
| DDP | 1162 | ±25 | 1348 | ±40 | 1495 | ±28 | 1725 | ±30 | 1906 | ±33 | 1945 | ±15 | 2315 | ±40 |
| MoG | 1162 | ±25 | 1244 | ±41 | 1415 | ±21 | 1598 | ±27 | 1615 | ±17 | 1789 | ±30 | 1671 | ±20 |
| MoGX | 1162 | ±25 | 1325 | ±17 | 1505 | ±11 | 1774 | ±20 | 2086 | ±74 | 2300 | ±26 | 2795 | ±48 |
Table 7: Per-method per-iteration wall-clock total, similar to table 1, but restricted to the multiplicative_coprime reward. Aggregation, units, and method definitions match table 1. At all four methods collapse to the same single-agent loop and share the pooled baseline.
| Method | K=1 | 2 | 4 | 8 | 16 | 32 | 64 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NoComm | 1114 | ±24 | 1272 | ±45 | 1110 | ±26 | 1220 | ±33 | 1174 | ±39 | 1171 | ±65 | 1087 | ±45 |
| DDP | 1114 | ±24 | 1241 | ±31 | 1433 | ±36 | 1597 | ±30 | 1736 | ±20 | 1758 | ±33 | 2329 | ±136 |
| MoG | 1114 | ±24 | 1180 | ±16 | 1323 | ±37 | 1518 | ±37 | 1580 | ±12 | 1674 | ±17 | 1672 | ±38 |
| MoGX | 1114 | ±24 | 1194 | ±72 | 1364 | ±99 | 1523 | ±112 | 1841 | ±165 | 2020 | ±171 | 2697 | ±265 |
Table 8: Per-method per-iteration wall-clock total, similar to table 1, but restricted to the conditional_multiscale reward. Aggregation, units, and method definitions match table 1. At all four methods collapse to the same single-agent loop and share the pooled baseline.
| Sample | Loss | Bwd | ||||
|---|---|---|---|---|---|---|
| 1 | - | - | - | |||
| 2 | ||||||
| 4 | ||||||
| 8 | ||||||
| 16 | ||||||
| 32 | ||||||
| 64 |
Table 9: Per-iteration timing phase breakdown, restricted to the original reward.
| Sample | Loss | Bwd | ||||
|---|---|---|---|---|---|---|
| 1 | - | - | - | |||
| 2 | ||||||
| 4 | ||||||
| 8 | ||||||
| 16 | ||||||
| 32 | ||||||
| 64 |
Table 10: Per-iteration timing phase breakdown, restricted to the cosine reward.
| Sample | Loss | Bwd | ||||
|---|---|---|---|---|---|---|
| 1 | - | - | - | |||
| 2 | ||||||
| 4 | ||||||
| 8 | ||||||
| 16 | ||||||
| 32 | ||||||
| 64 |
Table 11: Per-iteration timing phase breakdown, restricted to the sparse reward.
| Sample | Loss | Bwd | ||||
|---|---|---|---|---|---|---|
| 1 | - | - | - | |||
| 2 | ||||||
| 4 | ||||||
| 8 | ||||||
| 16 | ||||||
| 32 | ||||||
| 64 |
Table 12: Per-iteration timing phase breakdown, restricted to the bitwise_xor reward.
| Sample | Loss | Bwd | ||||
|---|---|---|---|---|---|---|
| 1 | - | - | - | |||
| 2 | ||||||
| 4 | ||||||
| 8 | ||||||
| 16 | ||||||
| 32 | ||||||
| 64 |
Table 13: Per-iteration timing phase breakdown, restricted to the multiplicative_coprime reward.
| Sample | Loss | Bwd | Exch. | |||
|---|---|---|---|---|---|---|
| 1 | 413 | 351 | 350 | - | - | - |
| 2 | 416 | 363 | 361 | 143 | 123 | 31 |
| 4 | 404 | 346 | 343 | 352 | 306 | 102 |
| 8 | 386 | 358 | 354 | 487 | 532 | 223 |
| 16 | 379 | 353 | 350 | 788 | 697 | 260 |
| 32 | 362 | 364 | 360 | 967 | 710 | 303 |
| 64 | 347 | 348 | 344 | 1687 | 1323 | 311 |
Table 14: Per-iteration timing phase breakdown, restricted to the conditional_multiscale reward.