NeurIPS 2026QuestionsPapersAreasAboutMarkdown

gfnx: Fast and Scalable Library for Generative Flow Networks in JAX

Daniil Tiapkin, Artem Agarkov, Nikita Morozov, Ian Maksimov, Askar Tsyganov, Timofei Gritsaev, Sergey Samsonov

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: AI for Molecules, Materials & Genomics › Equivariance and Invariance in Deep Learning · Type: system or tooling · Keywords: generative flow networks, benchmark suite, JAX implementation, speedup, sequence generation, molecular design

Summary

gfnx is a fast and scalable JAX library that implements core Generative Flow Network training objectives and provides a diverse suite of benchmark environments, enabling rapid and standardized empirical evaluation of GFlowNets.

Explained to a 5-year-old

A new tool helps computers learn to make random things like molecules and trees. It runs really fast on regular computers. It comes with many games to test how well it works. It makes it easier for scientists to try new ideas quickly. It helps people build better tools for medicine and science.

Explained to a 5-year-old, longer

Computers can sometimes make random choices to create new things, like pictures or molecules. Making these things can be slow and hard to compare. This paper describes a new fast library that helps computers do this faster. It is written in a popular programming language for AI. The library includes many different test problems, like building simple worlds. It also includes tests for generating DNA sequences. It has special tests for learning how genes work. It includes tests for building family trees. It also has tests for physics puzzles. The library is easy to use because everything is in one file. It runs quickly on both regular CPUs and powerful GPUs. It is much faster than older versions that used other programming languages. Researchers can now compare their ideas more easily. This helps new discoveries in medicine and science happen quicker. The library also helps teachers show students how computers can learn to create things.

For a technical reader

The work provides a high-performance JAX library that implements core Generative Flow Network training objectives in a single module. It ships with a variety of benchmark environments covering sequence generation, molecular design, phylogenetic trees, Bayesian networks, and physics models. The library achieves orders-of-magnitude speedups on both CPU and GPU compared to existing PyTorch implementations. It simplifies empirical evaluation by offering ready-to-use environments and metrics, making it easier for engineers to prototype and compare GFlowNet methods.

Problem

Training and evaluating Generative Flow Networks (GFlowNets) can be slow and difficult to compare across different tasks due to the lack of standardized benchmarks and efficient tooling.

Method

The approach provides a high-performance, scalable implementation in a deep-learning framework, offering a collection of benchmark environments and evaluation metrics, along with single-file implementations of core training objectives for GFlowNets.

Results

The approach achieves up to 55× speedup on CPU-based sequence generation tasks and up to 80× speedup on GPU-based Bayesian network structure learning compared to PyTorch-based baselines.

Contributions

The paper introduces a fast, scalable library that supplies a comprehensive suite of benchmark environments and metrics, together with single-file implementations of core GFlowNet training objectives to standardize empirical evaluation and accelerate research.

Practical relevance

It enables researchers and practitioners to benchmark and develop GFlowNets more efficiently, fostering faster adoption in fields such as molecular design and statistical physics.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction