NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Ergodic Generative Flows

Leo Maxime Brunswic, Mateo Clémente, Rui Heng Yang, Adam Sigal, Amir Rasouli, Yinchuan Li

Abstract

Generative Flow Networks (GFNs) have emerged as a powerful framework for sampling from unnormalized distributions, yet their application to continuous spaces remains hindered by computational intractability and the difficulty of enforcing acyclicity. This paper introduces Ergodic Generative Flows (EGFs), a novel framework that leverages the mathematical principle of ergodicity to simplify GFN training. By utilizing a finite set of simple, global transformations, EGFs achieve state-of-the-art performance while being 30x smaller and 10x faster to train than existing baselines. Furthermore, the introduction of the KL-weakFM loss enables direct imitation learning from data, bypassing the need for expensive intermediate reward modeling.

1. Introduction

Generative Flow Networks (GFNs) are designed to sample objects with a probability proportional to a given reward function. While highly successful in discrete domains, extending GFNs to continuous state spaces introduces significant hurdles. Specifically, calculating the "flow-matching" loss—essential for ensuring internal consistency—is often mathematically intractable. Moreover, continuous environments naturally allow for "loops" or cycles, which violate the standard directed acyclic graph (DAG) assumptions of traditional GFNs. Finally, existing continuous models like Normalizing Flows (NFs) or Diffusion models often require deep architectures and computationally intensive sampling processes.

Ergodic Generative Flows (EGFs) address these challenges by rethinking the structure of the flow. Instead of learning infinitesimal steps, EGFs utilize a small set of global, invertible mappings (diffeomorphisms). By ensuring these moves are "topologically ergodic," the authors provide theoretical guarantees that the model can reach any part of the state space, ensuring universality with minimal architectural complexity.

2. Methodology

2.1 Finite Global Moves and Ergodicity

EGFs depart from the standard approach of learning complex local transformations. Instead, they employ a fixed set of simple global moves, such as rotations or translations. For instance, on a spherical manifold, the model might only utilize four specific rotations. The authors prove that if these moves are chosen correctly, the resulting flow is ergodic, meaning it can eventually approximate any target distribution. This "shortcut" allows for the representation of complex densities using remarkably simple building blocks.

2.2 Tractable Inflow and the Star Inflow Formula

In continuous GFNs, the "inflow" to a state is typically defined by an integral that is difficult to compute. EGFs simplify this by using a finite number of discrete moves. This allows the authors to derive a closed-form formula for the "star inflow" ($f^*_\leftarrow$), rendering the previously intractable flow-matching loss easy to compute and optimize.

2.3 Direct Imitation Learning via KL-weakFM

Traditionally, learning from a dataset (Imitation Learning) requires a two-step process: training a separate reward model and then training the GFN on that reward. EGFs introduce the KL-weakFM loss, which couples cross-entropy (to match the data distribution) with a weak flow-matching control. This innovation allows the model to learn directly from raw data samples, significantly reducing the computational overhead and eliminating errors introduced by intermediate reward models.

3. Experimental Results

3.1 Performance on Real-World Manifolds

The researchers evaluated EGFs on the NASA Earth Science datasets, which track the locations of volcanoes, earthquakes, and floods globally. These datasets are naturally modeled on a sphere ($S^2$), making them an ideal test case for the manifold-aware design of EGFs.

On the NASA Volcano dataset, EGFs achieved a Negative Log-Likelihood (NLL) of -2.31, significantly outperforming the previous state-of-the-art method, Moser Flow, which achieved -2.02. Qualitatively, EGFs demonstrated the ability to capture sharp boundaries and complex multimodal distributions, such as those found in synthetic 2D checkerboard and spiral tasks.

3.2 Efficiency and Scalability

The most striking result of the EGF framework is its efficiency:

  • Model Size: EGF models were 30x smaller in terms of parameter count compared to Moser Flow baselines.
  • Training Speed: EGFs reached peak performance with a training time 10x shorter than competing methods.

4. Discussion and Limitations

While EGFs represent a significant step forward in efficient generative modeling, several challenges remain. The current study focused primarily on low-dimensional manifolds (2D tori and spheres). Scaling these ergodic moves to high-dimensional spaces, such as those required for image generation, remains a primary objective for future research. Additionally, the proof of universality relies on specific mixing properties ($L^2$-mixing summability) that may be harder to enforce in more complex environments.

5. Conclusion

Ergodic Generative Flows provide a mathematically rigorous yet computationally efficient alternative to standard continuous GFNs. By replacing complex neural architectures with simple ergodic transformations and a tractable loss function, EGFs offer a path toward faster, smaller, and more stable generative models. The ability to perform imitation learning without a reward model further positions EGFs as a versatile tool for modeling complex distributions across various scientific domains.

Summary updated

BibTeX
@inproceedings{brunswic2025ergodic,
  author = {Leo Maxime Brunswic and Mateo Clémente and Rui Heng Yang and Adam Sigal and Amir Rasouli and Yinchuan Li},
  title = {{Ergodic Generative Flows}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=GGgnmOlnRY},
}
Figure