Pre-Training and Fine-Tuning Generative Flow Networks

Ling Pan, Moksh Jain, Kanika Madan, Y. Bengio
2/12/2026

No official code found. Best implementation: modelscope/scepter (549 stars, Apache-2.0, last commit 2025-04-03). 1 more below.

Abstract

Generative Flow Networks (GFlowNets) are amortized samplers that learn stochastic policies to sequentially generate compositional objects from a given unnormalized reward distribution. They can generate diverse sets of high-reward objects, which is an important consideration in scientific discovery tasks. However, as they are typically trained from a given extrinsic reward function, it remains an important open challenge about how to leverage the power of pre-training and train GFlowNets in an unsupervised fashion for efficient adaptation to downstream tasks. Inspired by recent successes of unsupervised pre-training in various domains, we introduce a novel approach for reward-free pre-training of GFlowNets. By framing the training as a self-supervised problem, we propose an outcome-conditioned GFlowNet (OC-GFN) that learns to explore the candidate space. Specifically, OC-GFN learns to reach any targeted outcomes, akin to goal-conditioned policies in reinforcement learning. We show that the pre-trained OC-GFN model can allow for a direct extraction of a policy capable of sampling from any new reward functions in downstream tasks. Nonetheless, adapting OC-GFN on a downstream task-specific reward involves an intractable marginalization over possible outcomes. We propose a novel way to approximate this marginalization by learning an amortized predictor enabling efficient fine-tuning. Extensive experimental results validate the efficacy of our approach, demonstrating the effectiveness of pre-training the OC-GFN, and its ability to swiftly adapt to downstream tasks and discover modes more efficiently. This work may serve as a foundation for further exploration of pre-training strategies in the context of GFlowNets.

View on arXivView PDF

Code Implementations(2)

modelscope/scepterCommunity100%
Apache-2.0

SCEPTER is an open-source framework used for training, fine-tuning, and inference with generative models.

54930PythonDec 21, 20231 years agoApache-2.0
aigcgenerative-modellar-gensceditstylebooth
TIMMY-CHAN/MISSCommunity100%

[ICANN 2024 (Oral)] MISS: A Generative Pre-training and Fine-tuning Approach for Med-VQA

120PythonApr 11, 20242 years ago

Similar Papers

Cite this paper

@article{pan2026pretraining,
  title  = {Pre-Training and Fine-Tuning Generative Flow Networks},
  author = {Ling Pan and Moksh Jain and Kanika Madan and Y. Bengio},
  year   = {2026},
  eprint = {2310.03419},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.03419},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.03419.svg)](https://codeofpaper.com/paper/2310.03419)

Discussion