Abstract
Generative Flow Networks (GFlowNets) have emerged as a robust framework for generating diverse, high-reward objects such as molecules and biological sequences. However, their application to large-scale scientific discovery is often hindered by poor data efficiency in high-dimensional action spaces. We present Bifurcated GFlowNets (BN), a novel architecture that factorizes edge flows into separate state-flow and edge-allocation components. Drawing inspiration from the dueling architecture in reinforcement learning, BN enables more efficient information propagation across transitions. Our results demonstrate that BN significantly outperforms existing GFlowNet variants in mode discovery and diversity across complex benchmarks, including large-scale molecule generation.
Introduction
Generative Flow Networks (GFlowNets) are designed to sample objects $x$ with a probability proportional to a given reward $R(x)$. Unlike traditional Reinforcement Learning (RL), which typically seeks to maximize the expected reward by finding a single optimal path, GFlowNets aim to discover the entire landscape of high-reward solutions. This property is particularly valuable in scientific domains like drug discovery, where diversity is as crucial as quality.
Despite their potential, GFlowNets face significant scaling challenges. In tasks like molecule synthesis, the action space can encompass thousands of possible building blocks at each step, leading to a combinatorial explosion of states. Standard GFlowNet objectives, such as Trajectory Balance (TB), often struggle with these high-dimensional spaces because they require learning a complex backward policy ($P_B$) or modeling individual edge flows directly, which is computationally intensive and slow to converge. Furthermore, existing methods often fail to distinguish between "critical" states (e.g., forming a molecule's core) and "peripheral" states (e.g., adding minor side chains), leading to inefficient use of model capacity.
Bifurcated GFlowNets (BN)
To address these limitations, we introduce Bifurcated GFlowNets (BN). The core innovation lies in the factorization of the edge flow $F(s \to s')$—representing the total flow from state $s$ to state $s'$—into two distinct, learnable streams:
- State Flow ($F(s)$): A scalar value representing the total flow passing through state $s$.
- Edge-based Allocation ($A(s'|s)$): A probability distribution over the children of $s$, determining how the incoming flow is distributed.
This factorization is expressed in log-space as: $$\log F(s \to s') = \log F(s) + \log A(s'|s)$$
The Dueling Architecture Inspiration
This approach is inspired by the Dueling DQN architecture in RL, which separates the estimation of state value from action advantages. In BN, a shared state encoder branches into a State Flow Stream and an Edge Advantage Stream. This structure allows for superior information propagation: an update to a single action at a given state informs the total state flow, which in turn provides useful signals for all other possible actions at that state, even those that have not been frequently sampled.
Learning without a Backward Policy
A key advantage of the BN framework is its new learning objective based on Flow Matching (FM). By ensuring that the sum of incoming factored flows matches the outgoing state flow, the model satisfies flow consistency constraints without the need for an explicit or learned backward policy. This bypasses the "backward policy bottleneck" that plagues many state-of-the-art GFlowNet variants, making BN more robust and easier to optimize in tasks with massive action spaces.
Experimental Results
We evaluated BN against standard baselines—including Flow Matching (FM), Detailed Balance (DB), and Trajectory Balance (TB)—on three benchmarks:
- HyperGrid: A $d$-dimensional grid world designed to test mode discovery.
- Biological Sequence Design: Generating RNA sequences to maximize binding affinity.
- Molecule Generation: A large-scale task involving approximately $10^6$ states and 2000 possible actions per state to find candidates binding to the sEH protein.
Key Findings
- Superior Mode Discovery: In the molecule generation task, BN discovered an average of 2345.67 unique high-scoring molecules, compared to 1447.00 for the next best baseline (FM).
- Enhanced Diversity: BN produced a more diverse set of candidates, as evidenced by a lower average Tanimoto similarity (0.472) compared to FM (0.497).
- Scalability: As the action space size increased in the HyperGrid task, the performance gap between BN and other methods widened, demonstrating its superior scaling properties.
Conclusion
Bifurcated GFlowNets offer a significant upgrade to the GFlowNet framework by introducing a factorized flow architecture. By separating state-level and edge-level information, BN achieves higher data efficiency, eliminates the need for a backward policy, and scales effectively to high-dimensional scientific discovery tasks. Future work will explore the application of BN to even more complex state spaces and investigate further optimizations for graphs with high in-degrees.
Summary updated