[Paper Review] Generative Flow Networks for Discrete Probabilistic Modeling
This paper introduces Energy-Based Generative Flow Networks (EB-GFN), a joint learning framework that trains a GFlowNet sampler and an energy function simultaneously for high-dimensional discrete probabilistic modeling. By leveraging the GFlowNet's compositional structure, EB-GFN enables efficient large-block MCMC proposals that mix between modes, achieving state-of-the-art performance on discrete data like MNIST and Dynamic MNIST.
We present energy-based generative flow networks (EB-GFN), a novel probabilistic modeling algorithm for high-dimensional discrete data. Building upon the theory of generative flow networks (GFlowNets), we model the generation process by a stochastic data construction policy and thus amortize expensive MCMC exploration into a fixed number of actions sampled from a GFlowNet. We show how GFlowNets can approximately perform large-block Gibbs sampling to mix between modes. We propose a framework to jointly train a GFlowNet with an energy function, so that the GFlowNet learns to sample from the energy distribution, while the energy learns with an approximate MLE objective with negative samples from the GFlowNet. We demonstrate EB-GFN's effectiveness on various probabilistic modeling tasks. Code is publicly available at https://github.com/zdhNarsil/EB_GFN.
Motivation & Objective
- Address the challenge of slow mixing in MCMC methods when modeling high-dimensional discrete distributions with well-separated modes.
- Overcome the spurious mode problem in energy-based models (EBMs) caused by poor MCMC exploration of complex energy landscapes.
- Enable joint training of a generative flow network (GFlowNet) and an energy function using contrastive divergence-like objectives with GFlowNet-generated negative samples.
- Leverage the compositional structure of GFlowNets to discover and generalize across data modes without prior knowledge of latent structure.
- Develop a scalable, end-to-end framework for discrete probabilistic modeling that amortizes costly MCMC exploration into a fixed number of GFlowNet actions.
Proposed method
- Formulate non-autoregressive sequential generation on discrete data as a GFlowNet, using forward (painting) and reverse (erasure) stochastic policies over a DAG of partial states.
- Construct a Markov chain proposal for Metropolis-Hastings MCMC using the GFlowNet’s forward and reverse policies, enabling large, low-rejection jumps across modes.
- Jointly train the GFlowNet and energy function via a contrastive objective: the energy function is updated using negative samples from the GFlowNet, while the GFlowNet is trained to sample from the energy distribution.
- Use a replay buffer and PCD-style training (PCD-100) to stabilize learning, with model selection based on validation NLL.
- Ensure the joint training procedure estimates the true data log-likelihood gradient under conditions of sufficient GFlowNet convergence.
- Apply the framework to discrete data such as binarized MNIST and synthetic structured data, using trajectory flows to model unnormalized densities.
Experimental results
Research questions
- RQ1Can a GFlowNet be adapted to learn from data rather than from a fixed energy function, enabling joint training of a sampler and energy model?
- RQ2Can GFlowNet-based proposals in MCMC approximate large-block Gibbs sampling and significantly improve mixing between well-separated modes in discrete distributions?
- RQ3Does joint training of a GFlowNet and energy function yield better log-likelihood performance than existing EBM baselines on discrete data?
- RQ4Can the compositional structure of GFlowNets enable generalization across modes without explicit structural priors or long low-probability paths?
- RQ5Is the proposed framework scalable and effective for real-world discrete data like binarized images and structured sequences?
Key findings
- EB-GFN achieves state-of-the-art negative log-likelihood (NLL) performance on three out of four datasets tested, surpassing the GWG baseline.
- On the Dynamic MNIST dataset, EB-GFN generates samples with better mode coverage and detail fidelity than both Gibbs sampling and GWG, particularly in capturing rare or complex patterns.
- The GFlowNet-based MCMC proposal enables efficient large jumps across modes, reducing mixing time compared to standard local MCMC methods.
- Joint training with GFlowNet-generated negative samples stabilizes EBM training and mitigates the spurious mode problem common in traditional EBM training.
- The framework demonstrates competitive performance on synthetic datasets with complex, multimodal structures, indicating robustness to combinatorial mode explosion.
- The trained GFlowNet itself serves as a strong generative model, capable of producing high-quality samples without relying on MCMC.
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.