Optimizing Backward Policies in GFlowNets via Trajectory Likelihood Maximization
Timofei Gritsaev, Nikita Morozov, Sergey Samsonov, Daniil Tiapkin
TL;DR
This work addresses the limitation of fixed backward policies in GFlowNets by introducing Trajectory Likelihood Maximization (TLM), a principled backward-policy optimization that alternates between maximizing the backward trajectory likelihood and optimizing the forward policy under an entropy-regularized RL objective with non-stationary rewards. The method integrates with existing GFlowNet algorithms (e.g., TB, DB, SubTB, SoftDQN) and provides convergence guarantees under stability and diminishing non-stationary regret. Empirically, TLM accelerates convergence and improves mode discovery across Hypergrid, Bit Sequences, and QM9+sEH molecule design tasks, though benefits can vary with environment structure. Overall, TLM offers a versatile, easy-to-implement improvement to backward policy optimization, with strong performance in less-structured domains and actionable stability strategies for training.
Abstract
Generative Flow Networks (GFlowNets) are a family of generative models that learn to sample objects with probabilities proportional to a given reward function. The key concept behind GFlowNets is the use of two stochastic policies: a forward policy, which incrementally constructs compositional objects, and a backward policy, which sequentially deconstructs them. Recent results show a close relationship between GFlowNet training and entropy-regularized reinforcement learning (RL) problems with a particular reward design. However, this connection applies only in the setting of a fixed backward policy, which might be a significant limitation. As a remedy to this problem, we introduce a simple backward policy optimization algorithm that involves direct maximization of the value function in an entropy-regularized Markov Decision Process (MDP) over intermediate rewards. We provide an extensive experimental evaluation of the proposed approach across various benchmarks in combination with both RL and GFlowNet algorithms and demonstrate its faster convergence and mode discovery in complex environments.
