Introduction
Generative Flow Networks (GFlowNets) have emerged as a powerful framework for sampling diverse discrete objects with probabilities proportional to a given reward. While GFlowNets share a sequential decision-making structure with Reinforcement Learning (RL), the two fields have largely evolved independently. A common misconception in the literature was that the equivalence between GFlowNets and Maximum Entropy (MaxEnt) RL only held for tree-structured problems. This paper bridges this gap by proving that GFlowNet training on any directed acyclic graph (DAG) can be mathematically reduced to an entropy-regularized RL problem.
Theoretical Framework: GFlowNets as Soft RL
The authors demonstrate a direct reduction by constructing a specific Markov Decision Process (MDP) for any given GFlowNet DAG. By defining intermediate rewards as the logarithm of the GFlowNet's backward policy ($\log P_B$) and terminal rewards as the logarithm of the reward function ($\log R$), the optimal policy for a Soft RL agent (with entropy regularization coefficient $\lambda = 1$) becomes identical to the desired GFlowNet forward policy.
This reduction reveals that the logarithmic scaling used in GFlowNet losses like Trajectory Balance (TB) is not merely a numerical trick but a fundamental requirement of the underlying RL equivalence. Furthermore, it clarifies that RL can indeed handle complex graph structures—where multiple paths lead to the same state—provided the backward policy is used to shape intermediate rewards, effectively compensating for path multiplicity.
Experimental Evaluation
The proposed equivalence allows for the application of off-the-shelf "Soft RL" algorithms to GFlowNet tasks. The authors evaluated this approach using SoftDQN and Munchausen DQN (M-DQN) on three benchmarks:
- Hypergrid (2D and 4D): A synthetic environment designed to test mode discovery across low-reward valleys.
- Small Molecule Generation: Generating molecular graphs that bind to the sEH protein.
- Bit Sequence Generation: A non-autoregressive task involving 120-bit strings.
Results
The integration of RL techniques, such as replay buffers and target networks, significantly improved performance. In the Hypergrid benchmarks, Munchausen DQN demonstrated superior convergence properties compared to standard GFlowNet objectives.
As shown in the figure above, M-DQN (red) consistently reaches lower empirical $L^1$ error rates faster than Trajectory Balance (TB) or Detailed Balance (DB). Beyond convergence speed, M-DQN also excelled in diversity; in molecule generation tasks, it discovered approximately 200 high-reward modes, significantly outperforming Sub-trajectory Balance (~150) and standard TB (~100). The Munchausen penalty, which encourages the policy to stay close to its own log-probabilities, proved particularly effective for stabilizing training and enhancing mode discovery.
Conclusion and Future Work
By establishing a rigorous link between GFlowNets and Soft RL, this work opens new avenues for generative modeling. The success of M-DQN suggests that many "tricks" from the RL literature can be directly imported to improve GFlowNet training. Future research may explore extending this framework to continuous state spaces and investigating the theoretical implications of learnable backward policies within the RL context. The potential for integrating more advanced RL methods, such as Monte-Carlo Tree Search, remains a promising direction for future exploration.
Summary updated