Compare torchgfn performance with other GFlowNet libraries
masterThis benchmark analysis compares the per-iteration training performance of torchgfn against gflownet (PyTorch/Hydra) and gfnx (JAX/Equinox).
Supported Environments
- Hypergrid (2D, height=8): Discrete grid navigation. Supported by all three libraries.
- Box/CCube (2D, delta=0.1): Continuous environment with Beta mixture policies. Supported by
torchgfnandgflownetonly. - Ising (6x6, 10x10): Discrete Ising model. Supported by all three libraries.
- BitSequence: Non-autoregressive binary sequence generation. Supported by
torchgfnandgfnxonly.
Benchmark Configuration
All benchmarks use Trajectory Balance (TB) loss with the following standard settings:
hidden_dim: 256layers: 2-layer MLPslr: 1e-3lr_logz: 0.1batch sizes: 32, 128, and 512