gfnx: Fast and Scalable Library for Generative Flow Networks in JAX
Not on the map. Why?
Abstract (arXiv)
In this paper, we present gfnx, a fast and scalable package for training and evaluating Generative Flow Networks (GFlowNets) written in JAX. gfnx provides an extensive set of environments and metrics for benchmarking, accompanied with single-file implementations of core objectives for training GFlowNets. We include synthetic hypergrids, multiple sequence generation environments with various editing regimes and particular reward designs for molecular generation, phylogenetic tree construction, Bayesian structure learning, and sampling from the Ising model energy. Across different tasks, gfnx achieves significant wall-clock speedups compared to Pytorch-based benchmarks (such as torchgfn library) and author implementations. For example, gfnx achieves up to 55 times speedup on CPU-based sequence generation environments, and up to 80 times speedup with the GPU-based Bayesian network structure learning setup. Our package provides a diverse set of benchmarks and aims to standardize empirical evaluation and accelerate research and applications of GFlowNets. The library is available on GitHub (https://github.com/d-tiapkin/gfnx) and on pypi (https://pypi.org/project/gfnx/). Documentation is available on https://gfnx.readthedocs.io.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 42 of its 70 references that are in the map. First posted on arXiv 20 Nov 2025.
Builds on
42 of 70 references.
References · 42
- 2017Attention Is All You Needcited by 59,932
- 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 384
- 2021Brax -- A Differentiable Physics Engine for Large Scale Rigid Body Simulationcited by 375
- 2021GFlowNet Foundationscited by 286
- 2022Trajectory balance: Improved credit assignment in GFlowNetscited by 244
- 2013Learning Bayesian Networks: The Combination of Knowledge and Statistical Datacited by 185
- 2022Biological Sequence Design with GFlowNetscited by 172
- 2022Bayesian Structure Learning with Generative Flow Networkscited by 153
- 2021Equinox: neural networks in JAX via callable PyTrees and filtered transformationscited by 143
- 2022Learning GFlowNets from partial episodes for improved convergence and stabilitycited by 129
- 2022Generative Flow Networks for Discrete Probabilistic Modelingcited by 113
- 2022GFlowNets and variational inferencecited by 103
30 more
- 2022Discovered Policy Optimisationcited by 103
- 2022Multi-Objective GFlowNetscited by 100
- 2023Better Training of GFlowNets with Local Credit and Incomplete Trajectoriescited by 83
- 2024Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learningcited by 80
- 2023Towards Understanding and Improving GFlowNet Trainingcited by 74
- 2013Learning Gaussian Networkscited by 62
- 2023Generative Flow Networks as Entropy-Regularized RLcited by 60
- 2023JaxMARL: Multi-Agent RL Environments and Algorithms in JAXcited by 59
- 2023Hyperparameters in Reinforcement Learning and How To Tune Themcited by 58
- 2018How Many Random Seeds? Statistical Power Analysis in Deep Reinforcement Learning Experimentscited by 56
- 2023XLand-MiniGrid: Scalable Meta-Reinforcement Learning Environments in JAXcited by 54
- 2023Pgx: Hardware-Accelerated Parallel Game Simulators for Reinforcement Learningcited by 45
- 2023Local Search GFlowNetscited by 45
- 2020Molecular Mechanics-Driven Graph Neural Network with Multiplex Graph for Molecular Structurescited by 44
- 2024Discrete Probabilistic Inference as Control in Multi-path Environmentscited by 40
- 2024RGFN: Synthesizable Molecular Generation Using GFlowNetscited by 39
- 2022Bayesian learning of Causal Structure and Mechanisms with GFlowNets and Variational Bayescited by 30
- 2023Maximum entropy GFlowNets with soft Q-learningcited by 30
- 2022EvoJAX: Hardware-Accelerated Neuroevolutioncited by 29
- 2024Adaptive teachers for amortized samplerscited by 23
- 2024Discovering Temporally-Aware Reinforcement Learning Algorithmscited by 18
- 2024Position: Benchmarking is Limited in Reinforcement Learning Researchcited by 15
- 2023Order-Preserving GFlowNetscited by 13
- 2023A Theory of Non-Acyclic Generative Flow Networkscited by 12
- 2024Optimizing Backward Policies in GFlowNets via Trajectory Likelihood Maximizationcited by 12
- 2024JaxUED: A simple and useable UED library in Jaxcited by 10
- 2023torchgfn: A PyTorch GFlowNet librarycited by 9
- 2024Improving GFlowNets with Monte Carlo Tree Searchcited by 8
- 2025Revisiting Non-Acyclic GFlowNets in Discrete Environmentscited by 8
- 2024Random Policy Evaluation Uncovers Policies of Generative Flow Networkscited by 5
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026Proximal Policy Optimization for Amortized Discrete Sampling14 Jun 2026
- 2026Learning Shortest Paths with Generative Flow Networks2 Mar 2026