arXiv:2610.33968cs.LGOct 2026

Manuscript Offprint

arXiv:2610.33968

Hierarchical Cooperative GFlowNets

Pedro Dall'Antonia, Juan Belieni, Ana Carolina Erthal, Saullo H. G. de Oliveira, Eliezer de Souza da Silva, Diego Mesquita

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Generative Flow Networks (GFlowNets) are trained to sample objects from compositional spaces with probability proportional to a reward function, but ineffective exploration can cause learned samplers to concentrate on a few high-reward regions. An intuitive remedy is to train multiple GFlowNets independently in parallel and combine their samples. However, this does not prevent multiple models from collapsing onto the same high-reward areas, leaving large regions of the state space unexplored. With this in mind, we propose Hierarchical Cooperative GFlowNets (HCG), an approach that dynamically partitions the search space to coordinate discovery without relying on hand-crafted boundaries. HCG imposes an ordering in which the highest-ranked model may explore the entire space, while lower-ranked models are progressively pushed toward regions not covered by higher-ranked ones. We provide a theoretical characterization of how specific learning objectives can shift probability mass away from designated areas, instantiating this mechanism within our architecture. A shared classifier coordinates the hierarchy by partitioning the search space, keeping the GFlowNets independently parameterized and enabling asynchronous training. Furthermore, we derive a normalizer-weighted aggregation rule for the ensemble and prove that it recovers the target reward-proportional distribution under the stated assumptions. Finally, experiments across multimodal distributions, sequence generation, combinatorial optimization, and biological sequence design show that HCG improves mode coverage and target approximation, translating increases in the number of coordinated samplers into broader, complementary exploration.

1 INTRODUCTION

Generative Flow Networks (GFlowNets) are a class of generative models trained to learn stochastic policies that sample structured objects with probability proportional to a non-negative reward function (Bengio et al., 2021; 2023). By matching a reward-based distribution GFlowNets provide a natural mechanism for generating diverse collections of high-reward objects, with demonstrated applications in challenging combinatorial problems in various scientific domains such as biological sequence design and molecular discovery (Jain et al., 2022; Zhang et al., 2023), causal discovery (Deleu et al., 2022; da Silva et al., 2026), as well as language-model alignment and post-training (Kwon et al., 2024; Bartoldson et al., 2025; Fawkes & Hartford, 2026).

Naturally, as search spaces grow, effective exploration requires increasingly larger computational budgets, making training multiple parallel GFlowNets an intuitive avenue to translate additional compute into broader coverage. However, naively training multiple GFlowNets targeting the same reward may allocate probability to identical regions, limiting broad complementary coverage. Existing approaches to distribute GFlowNet training exploit useful decompositions when they are available. For instance, Silva et al. (2024) leverage the log-additive structure of Bayesian posteriors to distribute independent reward factors across multiple GFlowNets, while Silva et al. (2025) rely on a user-defined decomposition of the state graph to define subproblems for the individual GFlowNets.

Exploration can also be improved by pairing a main GFlowNet with an auxiliary exploratory one, whose trajectories are used to improve the main sampler's coverage. Sibling-augmented GFlowNets (Madan et al., 2025) add a novelty bonus to the explorer's reward, pushing it toward rarely visited states, while Adaptive Complementary Exploration (Dall'Antonia et al., 2026a) leverages a balance condition that steers the auxiliary sampler toward high-reward regions the main GFlowNet undersamples. These methods, however, do not provide mechanisms to utilize many parallel samplers.

The idea of using multiple GFlowNets to broaden exploration was introduced by Boosted GFlowNets (Dall'Antonia et al., 2026b), which build an ensemble in stages: each new GFlowNet is trained on the reward mass not yet captured by the frozen members trained before it, and the ensemble is sampled by selecting each member with probability proportional to its normalizing constant. This construction, however, is inherently sequential, since a member can only be trained after all of its predecessors have been trained and frozen, so the training time grows with the number of members. Our goal is instead to train all components simultaneously.

We argue that coordinating many samplers requires imposing structure among them. To maximize space coverage, our approach—Hierarchical Cooperative GFlowNets (HCG)—organizes the GFlowNets into a hierarchy in which regions covered by higher-ranked models become unavailable to lower-ranked ones, progressively pushing the latter toward unexplored areas. For this coordination to scale, coverage information is centralized in a shared coordinator rather than exchanged pairwise, whose cost would grow quadratically with the ensemble size. The coordinator consists of a classifier that, in essence, implements a weighted ratio estimator for the probabilities the parallel GFlowNets assign to each terminal state.

We bake this classifier into the individual GFlowNets' losses to mask regions well covered by higher-hierarchy GFlowNets while keeping the target reward unchanged elsewhere. The classifier is trained with samples weighted by two factors: each model's normalizing constant, so that its assignments reflect coverage rather than sampling concentration; and monotonic priority weights that respect the hierarchy, so that overlaps are resolved in favor of the higher-ranked model.

Our theoretical analysis provides a provably correct recipe to combine HCG's individual models into a linear mixture of GFlowNets, as well as a characterization of each model's behavior both inside and outside their assigned regions. Empirically, we show that HCG provides better mode discovery than methods that explicitly incentivize exploration, particularly in settings where high-reward modes are sparse. Furthermore, we find that increasing the number of components leads to the discovery of additional modes and faster convergence toward the target distribution.

Contributions. In summary, our main contributions are:

  1. We introduce hierarchical ownership as a dynamic mechanism for coordinating exploratory coverage among multiple GFlowNets without a predefined partition of the search space;

  2. We characterize a learning objective that avoids already covered regions while preserving the target elsewhere and instantiate it within TB. We further derive a normalizer-weighted aggregation rule that recovers the original reward-proportional target;

  3. We develop an amortized ownership mechanism that removes direct cross-model dependencies from local GFlowNet updates and supports distributed training;

  4. We empirically evaluate HCG across synthetic, combinatorial, and biological sequence design tasks, showing improved exploration and mode discovery over existing exploration methods, and that increasing the number of components leads to broader coverage.

References (42)