Global-Order GFlowNets

Lluís Pastor-Pérez, Javier Alonso Garcia, Lukas Mauch

TL;DR

While Order-Preserving GFlowNets (OP-GFNs) avoid arbitrary reward scalarization in multi-objective optimization by ranking candidates within local subsets, their training objective can lead to mathematical contradictions. Global-Order GFlowNets resolve this dilemma by transforming local Pareto dominance into globally consistent ranking functions, enabling broader exploration and discovering higher-quality Pareto fronts across sequence and molecular design tasks.

What Problem Does This Paper Address?

In multi-objective black-box optimization (MOO), the goal is to discover diverse, high-performing candidates that balance trade-offs across conflicting objectives—known collectively as the Pareto front. Generative Flow Networks (GFlowNets) are well-suited for this, but adapting them to multi-objective settings is tricky:

  • Preference-Conditional GFlowNets (PC-GFNs) rely on scalarization (combining multiple objectives into a weighted sum), which can bias sampling and struggle with non-convex Pareto fronts.
  • Order-Preserving GFlowNets (OP-GFNs) avoid scalarization by forcing the policy to sample uniformly over the Pareto set of arbitrary subsets of the data.

However, the authors uncover the Local Order Dilemma: training on subset-level uniform distributions can impose logically conflicting training objectives. For example, considering three overlapping subsets of candidate points can force the model to simultaneously require $P(x) > 0$ and $P(x) = 0$ for the same candidate. As a result, no single probability distribution can satisfy all marginal constraints, degrading sample efficiency and exploration.

Methods

To eliminate local contradictions, the authors introduce Global-Order GFlowNets, which assign a global score or rank $\hat{R}(x)$ across the entire dataset such that if candidate $x_1$ Pareto-dominates $x_2$, then $\hat{R}(x_1) > \hat{R}(x_2)$. Two primary strategies are proposed:

  1. Global Rank (GR-GFNs):
  2. Iteratively extracts the non-dominated Pareto front from the dataset, removes it, and repeats on the remaining points (similar to non-dominated sorting in evolutionary algorithms).
  3. Ranks are inverted so that points on the primary Pareto front receive the highest reward.
  4. Cheap-GR-GFNs: A lightweight variation that leverages a replay buffer to focus specifically on the true Pareto front, keeping computational costs equivalent to standard OP-GFNs.
  5. Trimmed GR-GFNs: Limits sorting iterations to a fixed cutoff $k$ to cap computational overhead.
  6. Nearest Neighbor Order (NN-GFNs):
  7. Computes the Pareto front $P$ once and assigns $\hat{R}(p) = 0$ for $p \in P$.
  8. Any sub-optimal point $x \notin P$ receives a negative score proportional to its minimum Euclidean distance to the Pareto front: $\hat{R}(x) = -\min_{p \in P} d(x, p)$. An interpolated variant (NN-int-GFNs) interpolates along the front for smoother distance estimates.

Once assigned, the GFlowNet is trained to match the global ranking (or its softmax transformation).

Datasets

The authors evaluate their methods on standard multi-objective benchmarks from recent literature (no new datasets were introduced):

  • HyperGrid: Synthetic 2D and 3D discrete grid navigation across classic benchmark functions (Branin, Currin, Shubert, Beale).
  • N-Grams: Synthetic sequence generation maximizing counts of specific unigrams and bigrams across 2, 3, and 4 objectives.
  • DNA Sequence Generation: Generation of 30-base DNA sequences evaluated for secondary structure free energy (NUPACK), base-pair counts, and hairpin index (pins).
  • Fragment-Based Molecular Generation: Constructing drug-like molecules optimizing soluble epoxide hydrolase binding proxy (SEH), drug-likeness (QED), synthetic accessibility (SA), and molecular weight (MW).
  • QM9: Molecule generation up to 9 heavy atoms evaluated on HOMO-LUMO gap (MXMNet), logP, SA, and target MW.

Key Insights and Ideas

  • Local Pareto consistency does not imply global consistency: Forcing uniform sampling across sub-fronts creates unsolvable constraints across overlapping batches. Replacing local constraints with a monotonic global ranking guarantees that Pareto dominance holds universally without contradictions.
  • Balancing the Replay Buffer is essential: The ablation study shows that setting the buffer sampling ratio of known Pareto-front samples to 0.1 works substantially better than 0.4. Over-sampling the current front causes premature convergence on sub-optimal initial solutions.
  • Exploration vs. Exploitation Trade-off: By uncoupling candidates from strict subset requirements, Cheap-GR-GFNs explore significantly wider regions of the search space rather than clustering tightly around early Pareto points.

Key Results

  • HyperGrid ($d=2, 3$): GR-GFNs achieved the highest percentage of generated samples located directly on the true Pareto front (e.g., 93.5% vs. 88.9% for OP-GFNs on branin-currin, and 95.0% vs. 89.9% on branin-beale), with superior Hausdorff distances ($d_H$). NN-GFNs excelled at capturing extreme, isolated front points.
  • DNA Sequence Generation: On the 3-objective task (energy-pins-pairs), Cheap-GR-GFNs outperformed baselines on Hypervolume (0.11 vs. 0.07 for OP-GFNs and 0.08 for PC-GFNs) and $R_2$ indicator (14.44 vs. 17.32 and 17.08). On 2 objectives, Cheap-GR-GFNs produced 356 unique samples compared to just 18 for OP-GFNs.
  • N-Grams: Cheap-GR-GFNs pulled ahead on higher-dimensional targets, notably on 4-bigrams ($HV = \mathbf{0.09}$ vs. 0.06 for OP-GFNs; $R_2 = \mathbf{39.94}$ vs. 50.18).
  • Molecule Design (QM9 & Fragment-based): When pooling Pareto fronts across all algorithms, Global-Order methods contributed the largest share of non-dominated solutions in most pairwise objective combinations (e.g., on QM9 MXMNet-logP, Cheap-GR-GFNs contributed 12 non-dominated solutions compared to 7 for OP-GFNs and 0 for PC-GFNs).

Limitations and Future Work

  • Computational Complexity: Iteratively peeling Pareto fronts in standard Global Rank sorting scales poorly for massive replay buffers and high dimensions, necessitating approximations like Cheap-GR or trimmed rank caps.
  • Sensitivity to Normalization: The Nearest Neighbor (NN) method relies on Euclidean distances, making it vulnerable when objective functions operate on wildly different scales or non-uniform distributions.
  • Theoretical Optimality: The authors note they have not established theoretical optimality for their chosen ranking functions; other global orders consistent with Pareto dominance might yield even better sample distributions.

Summary updated

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