arXiv:2610.13711cs.LGOct 2026

Manuscript Offprint

arXiv:2610.13711

Towards Understanding the Training of GFlowNets: A Theoretical Perspective

Rui Hu, Yu Chen, Zhuoran Li, Longbo Huang

Rui Hu, Yu Chen, Zhuoran Li, and Longbo Huang

Institute for Interdisciplinary Information Sciences, Tsinghua University

Correspondence: longbohuang@tsinghua.edu.cn

Abstract. Generative Flow Networks (GFlowNets) learn policies that sample discrete objects in proportion to a positive reward. They are trained by minimizing balance objectives, whose exact satisfaction guarantees correct sampling. However, a comprehensive theory linking nonzero balance loss and approximate stationarity to sampling accuracy, especially under evolving sampling distributions and backward policies, is still lacking. To bridge this gap, we develop a unified theory for Flow Matching, Detailed Balance, and Trajectory Balance in this regime. We first bound terminal symmetric KL by the square root of the expected balance loss. Then, we show that approximate stationarity controls this distribution error up to a tangent-space residual measuring parameterization incompleteness. Finally, we establish finite-time convergence under fixed or controlled sampling and fixed, balance-trained, or separately updated backward policies. Under standard smoothness assumptions, with fixed or controlled sampling and a fixed or balance-trained backward policy, the expected loss is O(ϵ~2+T−1)O(\tilde{\epsilon}^2 + T^{-1}) and expected terminal symmetric KL is O(ϵ~+T−1/2)O(\tilde{\epsilon} + T^{-1/2}) under uniform coverage. For a separately updated backward policy, we characterize the sufficient update decay to approach the residual neighborhood and preserve these rates. These results connect balance objectives to sampling accuracy and clarify how parameterization, coverage, and moving components govern GFlowNet training.

1. Introduction

Generative Flow Networks (GFlowNets, Bengio et al. (2021, 2023)) have emerged as a promising framework for training generative models that sample objects with probabilities proportional to a positive reward. High-reward objects are therefore sampled frequently, while different high-reward regions retain probability mass. This combination of quality and diversity has made GFlowNets useful in various applications such as molecule generation (Zhu et al., 2023; Koziarski et al., 2024), combinatorial optimization (Zhang et al., 2023), probabilistic inference (Manta et al., 2023; Deleu et al., 2024), text generation (Hu et al., 2024), and image generation (Liu et al., 2025; Yun et al., 2025).

GFlowNets transform the sampling problem into a sequential generation process on a directed acyclic graph (DAG). Starting from an initial state, a forward policy constructs an object through a series of local decisions until it reaches a terminal state. The central idea is to view probability mass as flow through the DAG. If the flow is conserved at intermediate states and the terminal flow matches the reward, then the forward policy samples terminal states from the desired reward-proportional distribution. This global property can be enforced through local or trajectory-level balance conditions, leading to the standard Flow Matching (FM, Bengio et al. 2021), Detailed Balance (DB, Bengio et al.

2023), and Trajectory Balance (TB, Whitammer et al. 2022) objectives.

This elegant construction explains what happens when every balance condition is satisfied exactly, but it does not explain what happens during practical training. A parameterized model may attain only a small nonzero loss or approach a stationary point rather than a global minimizer. Moreover, the states, edges, or trajectories used for training may be drawn from an off-policy and time-varying distribution, while the backward policy may be fixed, trained jointly with the balance loss, or updated using a separate criterion. These choices make the objective seen by stochastic gradient descent (SGD) evolve over time. Consequently, to understand GFlowNet training, a systematic study is required to connect loss and stationarity to terminal accuracy while accounting for these moving components. This motivates three essential questions:

  1. Does a small balance loss guarantee that the learned terminal distribution is close to the reward-proportional target?

  2. When optimization reaches an approximate stationary point, how good is the resulting sampler, and what limits its accuracy?

  3. As sampling strategies and backward policies are adapted during training, when can learning still approach the target distribution, and at what rate?

Existing studies provide complementary pieces of this picture. Flow-imbalance analyses (Silva et al., 2025a) examine how balance violations affect the generated distribution, while generalization analyses (Krichel et al., 2024; Silva et al., 2025b) study learning from limited observations. Connections to variational inference and entropy-regularized reinforcement learning (Whitammer et al., 2023; Tiapkin et al., 2024), together with advances in loss design (Hu et al., 2025; Fawkes & Hartford, 2026), relate training objectives to distribution discrepancies. However, these relationships do not by themselves connect balance objectives to sampling accuracy. Yu (2025) establishes gradient-convergence results for FM and DB, as well as sample-complexity guarantees for TB. However, the objectives in their analysis differ from the commonly used squared log-ratio loss and do not clarify the quality of parameterized stationary points or the behavior of stochastic training under varying sampling and backward policies. Very recently, Lei et al. (2026) derived total variation guarantees from a uniform residual bound, providing a quantitative measure of sampling accuracy based on balance loss. A comprehensive literature review is available in Appendix A.

To answer the above questions, we develop a unified theory for FM, DB, and TB that connects balance loss, stationary-point quality, and finite-time sampling accuracy. Our theoretical results are summarized as follows:

  1. Balance loss controls sampling accuracy. For FM, DB, and TB, we bound the terminal symmetric KL by the square root of the expected balance loss, with explicit occupancy-mass and coverage factors. Thus a small loss is informative when the training samples cover the states, edges, or trajectories on which the forward and backward flows disagree.

  2. Stationarity implies approximate optimality. We decompose the log-flow imbalance into a gradient-visible tangent component and an orthogonal parameterization residual. This yields an approximate gradient-domination property in which the terminal distribution error is controlled by the gradient norm and a precisely defined parameterization-incompleteness term. Thus, approximate stationarity leads to a nearly accurate sampler.

  3. Finite-time convergence with moving training components. We analyze stochastic GFlowNet training when the sampling distribution is fixed or changes in a controlled manner and when the backward policy is fixed, jointly optimized by the balance loss, or updated by a general rule. With fixed or controlled sampling and a fixed or balance-trained backward policy, the expected balance loss is bounded by O(ϵˉ2+T−1)O(\bar{\epsilon}^2 + T^{-1}), which gives expected terminal symmetric KL of O(ϵˉ+T−1/2)O(\bar{\epsilon} + T^{-1/2}) under uniform coverage. For a separately updated backward policy, we characterize how fast its update must decay to ensure convergence and to preserve these rates.

The remainder of the paper is organized as follows. Section 2 introduces FM, DB, and TB in a unified framework. Section 3 relates their expected balance losses to terminal-distribution mismatch. Section 4 establishes the stationarity-to-optimality guarantee, and Section 5 gives the finite-time convergence analysis. Additionally, we extend the analysis to Sub-Trajectory Balance in Appendix E.

References (76)