Global-Order GFlowNets

Lluís Pastor Pérez, Javier Alonso García, Lukas Mauch · DOI

Abstract

Multi-objective optimization (MOO) seeks to find the Pareto front—the set of solutions where no objective can be improved without sacrificing another. Generative Flow Networks (GFlowNets) have emerged as a powerful framework for sampling diverse solutions in MOO. However, existing Order-Preserving (OP) GFlowNets suffer from a "local order dilemma," where inconsistent local Pareto dominance relations hinder convergence. This paper introduces Global-Order GFlowNets, which resolve these inconsistencies by transforming local relations into a globally consistent ranking. We propose Global Rank (GR) and Nearest Neighbor (NN) ordering schemes, along with a computationally efficient "Cheap-GR" variant. Our approach demonstrates significant improvements in diversity and fidelity across synthetic and real-world benchmarks, including DNA sequence generation and molecular design.

Introduction

In Multi-Objective Optimization (MOO), the goal is rarely to find a single optimal solution but rather to identify the Pareto front: the set of candidates where improving one objective necessarily degrades another. Generative Flow Networks (GFlowNets) are particularly well-suited for this task because they can be trained to sample diverse candidates with probabilities proportional to a reward function.

A recent advancement, Order-Preserving (OP) GFlowNets, attempted to solve MOO without the need for "scalarization"—the process of combining multiple objectives into a single weighted sum. However, OP-GFlowNets rely on local comparisons within small data subsets, which introduces a fundamental logical flaw.

The Local Order Dilemma

The authors identify the Local Order Dilemma, a condition where local Pareto dominance relations lead to logical contradictions. When a model compares points within small, overlapping subsets, it may receive conflicting signals. For instance, a point might be identified as part of a local Pareto front in one subset but dominated in another.

The local order dilemma: overlapping subsets $\mathcal{X}_i$ can lead to inconsistent dominance relations that prevent the model from learning a stable distribution.

Mathematically, this forces the GFlowNet into a trap: it must assign a non-zero probability to a point to satisfy one local marginal while simultaneously assigning it zero probability to satisfy another. This inconsistency prevents the model from efficiently converging on the true global Pareto front.

Global-Order GFlowNets

To resolve this dilemma, the authors propose shifting from local comparisons to a Global Order perspective. By defining a consistent global ranking across the entire search space, the model is provided with a stable "North Star" for training. Two primary algorithms are introduced:

  1. Global Rank (GR): This method iteratively identifies the Pareto front of the current dataset, assigns those points the highest rank, removes them, and repeats the process. This "onion-peeling" approach ensures that any point dominating another always maintains a higher global rank.
  2. Nearest Neighbor (NN) Order: This approach uses a continuous score based on the Euclidean distance to the currently known Pareto front, providing a smoother gradient for optimization.
  3. Cheap-GR-GFNs: To address the computational cost of repeated Pareto calculations, this variant focuses on ranking the top-tier candidates within a replay buffer, offering a scalable alternative that retains the benefits of global ordering.

Experimental Evaluation

The proposed methods were evaluated on several benchmarks, including synthetic HyperGrid tasks, DNA sequence generation, and fragment-based molecule generation (QM9).

The results demonstrate that Global-Order GFlowNets consistently outperform baseline models in both fidelity and diversity. In the DNA sequence generation task, the Cheap-GR-GFNs variant discovered 356 unique samples near the Pareto front, a massive improvement over the 18 samples found by the original OP-GFlowNet.

Sampling results for Cheap-GR-GFNs on the DNA benchmark, demonstrating high diversity and density of candidates near the Pareto front.

On the HyperGrid task, the Global Rank methods achieved significantly lower Inverted Generational Distance (IGD+), indicating that the sampled points were much closer to the true mathematical Pareto front than those produced by previous state-of-the-art models.

Conclusion

Global-Order GFlowNets resolve the logical inconsistencies inherent in local-order MOO models. By enforcing a globally consistent ranking, these models achieve more stable training and superior sampling of diverse, high-quality candidates. While computational complexity remains a challenge for global ranking, the "Cheap-GR" variant provides a practical path forward. Future work will focus on more efficient rank approximations and scale-invariant distance metrics to further enhance the robustness of the Nearest Neighbor approach.

Summary updated

BibTeX
@inproceedings{perez2025global,
  author = {Lluís Pastor Pérez and Javier Alonso García and Lukas Mauch},
  title = {{Global-Order GFlowNets}},
  booktitle = {FPI @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=kCextHQXCV},
}
Figure