Hierarchical Cooperative GFlowNets
Organizations: School of Applied Mathematics (EMaP), Getulio Vargas Foundation, Rio de Janeiro, Brazil · Department of Informatics Engineering, University of Coimbra, Coimbra, Portugal
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.
Figures & tables
| Method | 8 Gaussians | Rings | Moons | Spiral |
|---|---|---|---|---|
| TB | ||||
| SA | ||||
| ACE | ||||
| HCG (ours) |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Component | Setting |
|---|---|
| Sequences | 19 amino acids + STOP ; |
| Batch size | 4096 trajectories per rollout |
| Exploration | 0.1 |
| Seeds | |
| Policy | Windowed autoregressive MLP (embedding 32, context 8, hidden 64) over actions |
| Optimizer | AdamW; learning rates |
| Classifier | Reward ( , ) | Distance to target ( ) | |||
|---|---|---|---|---|---|
| updates | mean | vs | Pooled TV | FCS | |
| TB | 0 | – | |||
| 1 | 8000 | – | |||
| 10 | 800 | ||||
| 25 | 320 | ||||
| 50 | 160 | ||||
| Classifier | Reward ( , ) | Distance to target ( ) | |||
|---|---|---|---|---|---|
| updates | mean | vs | Pooled TV | FCS | |
| TB | 0 | – | |||
| 1 | 8000 | – | |||
| 10 | 8000 | ||||
| 25 | 8000 | ||||
| 50 | 8000 | ||||
Generative Flow Networks
Generative Flow Networks learn to sample diverse objects with probabilities proportional to their rewards.
See all 57 papers