TL;DR
This paper uncovers a surprising, fundamental link between Generative Flow Networks (GFlowNets) and standard reinforcement learning (RL): the complex reward-matching behavior of GFlowNets can be achieved simply by performing standard policy evaluation on a fixed, uniform random policy with a transformed reward structure. Based on this insight, the authors introduce Rectified Random Policy Evaluation (RPE), a simpler and highly stable alternative for diverse solution discovery that completely avoids the non-stationarity challenges typical of traditional GFlowNet training.
What Problem Does This Paper Address?
Generative Flow Networks (GFlowNets) have recently taken off as a powerful tool for sampling diverse, high-reward items (like molecules or DNA sequences) proportionally to their rewards. Unlike standard RL, which tries to find the single best reward-maximizing path, GFlowNets aim for "reward matching"—making sure they discover a wide variety of good solutions.
However, training GFlowNets is notoriously tricky. It requires specialized, complex objectives (like Flow Matching or Trajectory Balance) that often suffer from high variance and non-stationarity because the sampling policy and the flow functions are constantly changing and chasing each other during training. While recent machine learning literature has successfully connected GFlowNets to Maximum Entropy (MaxEnt) RL, the relationship between GFlowNets and standard, vanilla RL has remained unexplored. The authors tackle this gap to see if foundational, simpler RL principles can be repurposed to achieve the exact same diverse sampling capabilities.
Methods
The authors bridge the gap by first introducing Flow Iteration, a dynamic programming view of GFlowNets. Through this lens, they mathematically prove a striking equivalence: for tree-structured decision graphs, the state flow function $F(s)$ in a GFlowNet is perfectly identical to the value function $V(s)$ obtained by evaluating a simple uniform random policy, provided the terminal rewards are scaled by the number of available actions along the path. They then extend this theory to more complex, non-tree Directed Acyclic Graphs (DAGs) by introducing a branching ratio factor under a "path-invariance condition."
Building directly on this theory, they propose Rectified Random Policy Evaluation (RPE). Instead of learning an evolving policy and flow functions simultaneously, RPE simply runs standard policy evaluation on a fixed uniform random policy over a transformed reward structure. Once the value function is learned, the target GFlowNet sampling policy can be directly derived from it.
Datasets
The authors evaluated RPE against standard GFlowNet and MaxEnt RL baselines across several established biological and chemical generation benchmarks:
- TF Bind Generation: The task of generating DNA sequences that exhibit high binding affinity with human transcription factors (tested on both tree-structured and graph-structured DAG setups).
- RNA Sequence Generation: Generating strings of 14 nucleobases using a prepend-append Markov Decision Process (PA-MDP).
- Molecule Generation (QM9): Generating molecular graphs consisting of 5 blocks chosen from 12 building blocks, where the reward is a chemical property proxy predicted by a pre-trained MXMNet model.
Key Insights and Ideas
- GFlowNets are Random Policy Evaluation in Disguise: The core "aha!" moment is that GFlowNets' sophisticated reward-matching capability doesn't require complex new algorithmic frameworks. It can be reinterpreted as standard value estimation of a completely random policy under a specific reward transformation.
- Bypassing Non-Stationarity: Traditional RL and GFlowNets suffer from non-stationarity because the policy changes as it learns, constantly shifting the data distribution. Because RPE evaluates a fixed uniform policy, the training distribution stays stable, mitigating a massive optimization headache.
- The Path-Invariance Bridge: For non-tree graphs, the equivalence holds as long as the ratio of outgoing to incoming actions remains consistent across different paths to the same state. This uncovers the exact structural boundaries where standard RL and GFlowNets naturally align.
Key Results
RPE performs competitively with, and often outperforms, established GFlowNet objectives (Flow Matching, Detailed Balance, Trajectory Balance, SubTB) and MaxEnt RL methods (Soft DQN, Munchausen DQN).
- RNA Generation: In this highly challenging task, RPE achieved nearly 100% accuracy across multiple targets, significantly outperforming all baselines, which typically hovered between 66% and 89% accuracy.
- Mode Discovery: RPE consistently discovered more high-reward modes faster than traditional methods, proving that evaluating a simple random policy does not sacrifice the agent's ability to find diverse, high-quality solutions.
Limitations and Future Work
- Path-Invariance Constraint: The primary limitation is that this exact equivalence does not hold universally for all DAGs. For example, environments with severe boundary effects (like the standard HyperGrid benchmark) violate path invariance, meaning RPE cannot be applied directly without modification.
- Computational Efficiency: The current implementation requires separate forward passes for each child state to compute the final forward policy, leaving an open opportunity for computational optimization.
- Future Directions: The authors suggest extending this framework to non-uniform fixed policies and developing adaptive methods that can automatically satisfy or adjust for structural requirements in general, arbitrary DAG settings.
Summary updated