Generative Flow Networks as Entropy-Regularized RL
Daniil Tiapkin, Nikita Morozov, Alexey Naumov, Dmitry Vetrov
TL;DR
This work establishes a direct reduction of Generative Flow Networks (GFlowNets) to entropy-regularized reinforcement learning (MaxEnt RL) for general DAGs, showing that with a fixed backward policy and appropriately structured rewards the optimal soft RL policy coincides with the GFlowNet forward policy. It then demonstrates that existing soft RL algorithms, notably SoftDQN and Munchausen DQN, can be ported to train GFlowNets, interpreting classic TB/DB/SubTB objectives through soft RL lenses. Empirically, Munchausen DQN often matches or surpasses traditional GFlowNet methods on synthetic hypergrid tasks, small molecule generation, and non-autoregressive sequence generation, highlighting the practical viability of RL-based GFlowNet training. The results suggest a unifying perspective where RL principles provide a flexible and scalable toolkit for diverse GFlowNet applications, with potential for further theoretical and algorithmic cross-pollination such as MCTS-inspired approaches.
Abstract
The recently proposed generative flow networks (GFlowNets) are a method of training a policy to sample compositional discrete objects with probabilities proportional to a given reward via a sequence of actions. GFlowNets exploit the sequential nature of the problem, drawing parallels with reinforcement learning (RL). Our work extends the connection between RL and GFlowNets to a general case. We demonstrate how the task of learning a generative flow network can be efficiently redefined as an entropy-regularized RL problem with a specific reward and regularizer structure. Furthermore, we illustrate the practical efficiency of this reformulation by applying standard soft RL algorithms to GFlowNet training across several probabilistic modeling tasks. Contrary to previously reported results, we show that entropic RL approaches can be competitive against established GFlowNet training methods. This perspective opens a direct path for integrating RL principles into the realm of generative flow networks.
