TL;DR
Standard Generative Flow Networks (GFlowNets) require a manually tuned scalar reward function, which is often difficult to define for multi-objective tasks. Order-Preserving GFlowNets (OP-GFNs) eliminate this requirement by learning a reward function directly from the relative rankings (total or partial orders) of candidates. This approach naturally balances exploration and exploitation through a "sparsification" of the reward landscape, achieving state-of-the-art results in molecular design and neural architecture search.
The Problem with Standard GFlowNets
GFlowNets are powerful tools for sampling diverse, high-reward objects like molecules or neural architectures. However, they face three major hurdles in practice:
- The Reward Engineering Headache: They require an explicit scalar reward $R(x)$. In Multi-Objective Optimization (MOO), creating this scalar usually involves "scalarization" (e.g., a weighted sum of objectives), which often fails to capture the entire Pareto front—the set of optimal trade-offs.
- The Hyperparameter Trap: To focus on the very best candidates, researchers often raise the reward to an exponent $\beta$ (i.e., $R(x)^\beta$). Choosing the right $\beta$ is a balancing act: too small, and the model doesn't exploit the best finds; too large, and it stops exploring early.
- Expensive Evaluations: Calculating the exact reward can be computationally ruinous, such as training a neural network to completion just to get a "reward" for a Neural Architecture Search (NAS) algorithm.
Methodology: Order-Preserving GFlowNets
The authors introduce Order-Preserving GFlowNets (OP-GFNs) to bypass the need for explicit reward formulation. Instead of fitting a predefined reward, the model learns a reward function $\hat{R}$ that is consistent with a provided ordering of candidates.
- Order-Preserving Criterion: The model defines a local labeling distribution based on whether a candidate is "non-dominated" (in the Pareto sense) within a batch. It then minimizes the KL divergence between this labeling and the distribution induced by its learned reward.
- Plugin Architecture: This loss can be seamlessly plugged into standard GFlowNet frameworks like Trajectory Balance (TB) or Detailed Balance (DB).
- Theoretical Sparsification: The authors prove that during training, the learned reward landscape gradually "sparsifies." Early in training, the reward is relatively flat, encouraging broad exploration. As the model identifies better candidates, the reward function becomes increasingly "peaky" around top-tier candidates, naturally shifting the model toward exploitation.
Key Insights
- Rank is Sufficient: You don't need to know how much better candidate A is than candidate B; you only need to know that A ranks higher. This is often much easier to determine in real-world scenarios via pairwise comparisons.
- Automatic Curriculum: The sparsification property acts as an automatic training schedule. It removes the need to manually tune the reward exponent $\beta$, which is typically one of the most finicky parts of training standard GFlowNets.
- Non-Convex Pareto Fronts: In multi-objective tasks, OP-GFNs can discover solutions on the non-convex parts of the Pareto front—areas that traditional linear scalarization methods mathematically cannot reach.
Experimental Results
The researchers evaluated OP-GFNs across a wide array of benchmarks, including synthetic grids, molecular design, and neural architecture search.
Molecular Design
In tasks including Bag, TFBind8, TFBind10, QM9, and sEH binding affinity, OP-GFNs consistently found more unique "optimal" molecules and achieved higher average top-k performance compared to strong baselines like PPO, MARS, and standard GFlowNets.
Neural Architecture Search (NAS)
On NATS-Bench (which includes search spaces for CIFAR-10, CIFAR-100, and ImageNet-16-120), OP-GFNs discovered high-performing architectures significantly faster in terms of simulated wall-clock time than established methods like REA (Evolutionary) and BOHB.
Pareto Approximation
In MOO tasks, OP-GFNs provided a more uniform and accurate approximation of the Pareto front (measured by IGD+ and PC-entropy) than preference-conditioned GFlowNets, especially in complex, non-convex objective spaces.
Limitations and Future Work
- Replay Buffer Reliance: To prevent the model from "collapsing" and only focusing on a small segment of the Pareto front, the authors currently use a replay buffer. More sophisticated methods for maintaining diversity remain a key area for future work.
- Controllability: While OP-GFNs excel at finding the entire Pareto front, adding "controllable guidance"—allowing a user to target specific regions of the trade-off space—would be a valuable extension.
- Batch Sensitivity: The order-preserving loss is calculated over batches. Consequently, the choice of batch size and sampling strategy likely has a significant impact on the stability of the learned reward.
Summary updated