Rethinking GFlowNet Training: Negative Reinforce Dynamics
Organizations: School of Applied Mathematics, Getulio Vargas Foundation
Abstract
Generative Flow Networks (GFlowNets) are models that learn to sample discrete objects proportional to a target reward. They are trained by minimizing balance errors over sampled trajectories, which inherently ties correctness to exploration: if a region is not visited, balance cannot be enforced there. Adaptive exploration is therefore crucial, yet standard training relies on a semi-gradient update that treats the sampling distribution as fixed at each optimization step. On the other hand, the full gradient reveals a second mechanism that reduces the observed errors in an anti-exploratory manner. In this paper, we establish a connection between the full gradient and min-min dynamics between the GFlowNet and a decoupled sampler, showing that the sampler reduces observed violations by avoiding high-error regions. This insight motivates a bridge between two-player games and single-policy dynamics, which underpins the design of our proposed method, Negative Reinforce Dynamics (NRD). By tying the parameters of an adversarial game together, we recover a single-policy dynamic that extends exploration while maintaining correctness. In standard benchmarks, our method outperforms existing approaches in both convergence speed and exploration efficiency, without training a separate teacher or auxiliary exploration policy.
Figures & tables
| Two-player | Tied single-policy |
|---|---|
| Min-min | Full gradient |
| Min-max | ? |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Environment | Size / vocabulary | Batch | Iterations | Checkpoint interval |
|---|---|---|---|---|
| Bags18 | 32 | 1,500 | 50 | |
| Bags24 | 32 | 1,500 | 50 | |
| Knapsack128 | 32 | 256 | 10 | |
| Binary32 | 64 | 2,000 | 50 | |
| Seq24/V4 | 64 | 2,000 | 50 | |
| Seq24/V6 | 64 | 2,000 | 50 |
| Environment | NRD | TB | ACE | SA-GFN | Adaptive Teacher |
|---|---|---|---|---|---|
| Bags18 | |||||
| Bags24 | |||||
| Knapsack128 | |||||
| Binary32 | |||||
| Seq24/V4 | |||||
| Seq24/V6 |
| Environment | ||||
|---|---|---|---|---|
| Estimated terminal TV | ||||
| Rings | ||||
| Moons | ||||
| 8 Gaussians | ||||
| HyperGrid | ||||
| FCS | ||||
Generative Flow Networks
Generative Flow Networks learn to sample diverse objects with probabilities proportional to their rewards.
See all 60 papers