[Paper Review] Stochastic Generative Flow Networks
This paper introduces Stochastic Generative Flow Networks (Stoch-GFN), the first effective method to extend GFlowNets to stochastic environments by decomposing state transitions into deterministic policy steps and stochastic dynamics modeling. It achieves superior performance over standard GFlowNets, MCMC, and RL baselines on stochastic benchmarks, including a 19.5-mode discovery in biological sequence generation with top-100 reward of 0.834.
Generative Flow Networks (or GFlowNets for short) are a family of probabilistic agents that learn to sample complex combinatorial structures through the lens of "inference as control". They have shown great potential in generating high-quality and diverse candidates from a given energy landscape. However, existing GFlowNets can be applied only to deterministic environments, and fail in more general tasks with stochastic dynamics, which can limit their applicability. To overcome this challenge, this paper introduces Stochastic GFlowNets, a new algorithm that extends GFlowNets to stochastic environments. By decomposing state transitions into two steps, Stochastic GFlowNets isolate environmental stochasticity and learn a dynamics model to capture it. Extensive experimental results demonstrate that Stochastic GFlowNets offer significant advantages over standard GFlowNets as well as MCMC- and RL-based approaches, on a variety of standard benchmarks with stochastic dynamics.
Motivation & Objective
- To address the limitation of existing GFlowNets, which fail in stochastic environments due to deterministic transition assumptions.
- To enable GFlowNets to sample from complex, stochastic dynamics while maintaining proportionality to reward functions.
- To develop a practical, generalizable method that isolates and models environmental stochasticity in state transitions.
- To outperform existing baselines—especially MCMC and RL methods—on stochastic generation tasks with high diversity and reward quality.
- To validate the approach on challenging benchmarks, including biological sequence generation with stochastic dynamics.
Proposed method
- Decomposes stochastic transitions into two steps: a deterministic policy step from state s to intermediate state (s,a), followed by a stochastic transition from (s,a) to next state s’.
- Learns a separate dynamics model to capture stochastic transition probabilities P(s’|s,a), decoupling environmental noise from policy learning.
- Uses a modified training objective that maintains flow conservation and reward proportionality in the presence of stochasticity.
- Applies the framework to standard GFlowNet objectives, including trajectory balance and sub-trajectory balance, ensuring compatibility with existing training paradigms.
- Employs a two-stream architecture: one for policy learning (P(s’|s,a)) and one for dynamics modeling (P(s’|s,a)), trained jointly.
- Uses a practical, differentiable training procedure that enables end-to-end learning of both policy and dynamics in stochastic environments.
Experimental results
Research questions
- RQ1Can GFlowNets be effectively extended to stochastic environments where state transitions are probabilistic rather than deterministic?
- RQ2Does isolating environmental stochasticity through intermediate afterstates improve sampling quality and reward proportionality in stochastic dynamics?
- RQ3How does Stoch-GFN compare to MCMC, RL-based, and standard GFlowNet methods in terms of top-100 reward and mode coverage in stochastic benchmarks?
- RQ4Can Stoch-GFN scale to complex, real-world tasks such as biological sequence generation with stochastic transition dynamics?
- RQ5Does the decomposition of transitions into deterministic and stochastic components lead to more stable and accurate flow learning in stochastic settings?
Key findings
- Stoch-GFN achieves a top-100 reward of 0.834 on the AMP generation task, significantly outperforming SAC (0.754), GFN (0.748), and A2C (0.682).
- Stoch-GFN discovers 19.5 high-reward modes on the AMP task, far exceeding SAC (4.33), GFN (3.0), and A2C (2.66).
- On the stochastic MDP benchmark, Stoch-GFN matches the ideal reward proportionality (P(s₁)=1/3, P(s₂)=2/3), while standard GFlowNets produce incorrect distributions (P(s₁)=5/12, P(s₂)=7/12).
- Stoch-GFN demonstrates superior scalability and stability on complex biological sequence generation tasks with stochastic dynamics, outperforming MCMC and RL baselines.
- The method effectively captures stochastic transition dynamics through a learned dynamics model, enabling accurate flow-based sampling even in non-deterministic environments.
- Empirical results confirm that Stoch-GFN maintains flow conservation and reward proportionality in stochastic settings, where standard GFlowNets fail.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.