Towards Improving Exploration through Sibling Augmented GFlowNets

Kanika Madan, Alex Lamb, Emmanuel Bengio, Glen Berseth, Yoshua Bengio

TL;DR

Sibling Augmented Generative Flow Networks (SA-GFN) solve the exploration-exploitation dilemma in GFlowNets by decoupling discovery from learning. By using a "Sibling Network" dedicated to exploration via intrinsic rewards and a "Behavior Network" focused on the true target distribution, the framework achieves faster convergence and discovers more diverse high-reward samples in sparse environments.

What Problem Does This Paper Address?

Generative Flow Networks (GFlowNets) are a powerful class of probabilistic models designed to sample diverse objects (like molecules or sequences) with probabilities proportional to a given reward. However, they face a major hurdle: exploration.

In many real-world tasks, rewards are "sparse"—the agent might have to take hundreds of correct steps before receiving any signal. While Reinforcement Learning (RL) often uses "intrinsic motivation" (curiosity) to encourage exploration, applying this directly to GFlowNets is tricky. Intrinsic rewards are non-stationary; they change as the agent learns what is "novel." If the main model tries to learn from these shifting rewards, it faces a "moving target" problem, which leads to training instability and poor convergence. The authors aim to bridge this gap, allowing GFlowNets to explore aggressively without sacrificing the stability of the final learned policy.

Methods

The core innovation is the Sibling Augmented (SA) architecture, which uses a decoupled dual-network approach:

SA-GFN Architecture
  1. The Sibling Network (SN): This network is the "explorer." Its goal is to maximize a combination of extrinsic (true) rewards and intrinsic rewards. The authors primarily use Random Network Distillation (RND) to generate these intrinsic rewards, which reward the agent for visiting states that are difficult for a predictor model to recognize.
  2. The Behavior Network (BN): This is the main model that aims to learn the true target distribution.
  3. Trajectory Relabeling: This is the "secret sauce." Data collected by the exploratory Sibling Network is relabeled with the true environment rewards. Because GFlowNets can be trained off-policy (learning from data generated by a different policy), the Behavior Network can ingest these relabeled "adventures" from its sibling to learn about high-reward regions it hasn't discovered itself, all while maintaining a stable training objective.

This separation ensures that the Behavior Network never sees the "moving target" of intrinsic rewards, only the fixed ground-truth rewards.

Datasets

The authors evaluated SA-GFN on four increasingly difficult domains:

  • Sparse Zero-Reward HyperGrid: A grid-world where rewards exist only at specific corners, and everything else is zero.
  • Low-Reward HyperGrid: A more complex grid where most of the space has very low (but non-zero) rewards, making it easy for an agent to get "stuck" in local optima.
  • Bit Sequence Task: An auto-regressive task generating sequences of length 120, where the agent must find specific hidden modes in a massive search space.
  • Small Molecule Generation: A practical task involving the design of molecular binders for the sEH protein, featuring a state space of roughly $10^{16}$ possible structures.

Key Insights and Ideas

  • Decoupling is Essential: The paper demonstrates that directly adding intrinsic rewards to a single GFlowNet often performs worse than standard training because the non-stationarity of "curiosity" confuses the model. Separating the "explorer" from the "learner" is the key to stability.
  • Off-Policy Advantage: The research highlights a unique strength of GFlowNets—their ability to learn from any trajectory data. SA-GFN leverages this by using the Sibling Network as a sophisticated, curiosity-driven "sampler" for the main model.
  • Mode Discovery: A major "aha" moment in the paper is the visualization of discovered modes. In large grids, standard GFlowNets and RL baselines (like PPO) often find only one or two high-reward corners. SA-GFN consistently finds all available modes, proving it doesn't just find good solutions, but a diverse set of them.

Key Results

  • Faster Convergence: SA-GFN reached lower L1 error (a measure of how well the model matches the true distribution) significantly faster than other methods.
L1 Error Convergence across Grid Sizes
  • Superior Exploration: In the HyperGrid tasks, SA-GFN discovered all modes even as the grid size scaled up to 152x152, while baselines like GAFN and RND-only policies failed to find more than one or two.
  • Chemical Diversity: In molecule generation, SA-GFN achieved the highest average rewards for top-10 candidates while maintaining the lowest Tanimoto similarity (meaning the generated molecules were more diverse and less like each other).
  • Versatility: The authors showed that SA-GFN works across different GFlowNet objectives (Trajectory Balance, Detailed Balance, and Flow Matching) and can easily swap out different intrinsic reward methods (like NovelD).

Limitations and Future Work

The primary limitation acknowledged is the computational overhead of maintaining two separate networks. While this provides the necessary decoupling, it increases memory usage and parameter count.

For future work, the authors suggest exploring a two-headed architecture—a single shared backbone with different "heads" for behavior and exploration—to reduce the parameter footprint. They also mention that incorporating multiple sibling networks or replay buffers could further enhance the robustness of the exploration process.

Summary updated

BibTeX
@inproceedings{madan2025towards,
  author = {Kanika Madan and Alex Lamb and Emmanuel Bengio and Glen Berseth and Yoshua Bengio},
  title = {{Towards Improving Exploration through Sibling Augmented GFlowNets}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=HH4KWP8RP5},
}
Figure