Beyond Squared Error: Exploring Loss Design for Enhanced Training of Generative Flow Networks
Rui Hu, Yifan Zhang, Zhuoran Li, Longbo Huang
Abstract
Generative Flow Networks (GFlowNets) are a novel class of generative models designed to sample from unnormalized distributions and have found applications in various important tasks, attracting great research interest in their training algorithms. In general, GFlowNets are trained by fitting the forward flow to the backward flow on sampled training objects. Prior work focused on the choice of training objects, parameterizations, sampling and resampling strategies, and backward policies, aiming to enhance credit assignment, exploration, or exploitation of the training process. However, the choice of regression loss, which can highly influence the exploration and exploitation behavior of the under-training policy, has been overlooked. Due to the lack of theoretical understanding for choosing an appropriate regression loss, most existing algorithms train the flow network by minimizing the squared error of the forward and backward flows in log-space, i.e., using the quadratic regression loss. In this work, we rigorously prove that distinct regression losses correspond to specific divergence measures, enabling us to design and analyze regression losses according to the desired properties of the corresponding divergence measures. Specifically, we examine two key properties: zero-forcing and zero-avoiding, where the former promotes exploitation and higher rewards, and the latter encourages exploration and enhances diversity. Based on our theoretical framework, we propose three novel regression losses, namely, Shifted-Cosh, Linex(1/2), and Linex(1). We evaluate them across three benchmarks: hyper-grid, bit-sequence generation, and molecule generation. Our proposed losses are compatible with most existing training algorithms, and significantly improve the performances of the algorithms concerning convergence speed, sample diversity, and robustness.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Avoid What You Know: Divergent Trajectory Balance for GFlowNets cites Biological Sequence Design with GFlowNets
- Avoid What You Know: Divergent Trajectory Balance for GFlowNets cites Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
- Avoid What You Know: Divergent Trajectory Balance for GFlowNets cites Trajectory balance: Improved credit assignment in GFlowNets
- Avoid What You Know: Divergent Trajectory Balance for GFlowNets cites Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
- Path-dependent Discrete Amortized Inference cites Revisiting Non-Acyclic GFlowNets in Discrete Environments
- Path-dependent Discrete Amortized Inference cites Biological Sequence Design with GFlowNets
- Path-dependent Discrete Amortized Inference cites Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
- Path-dependent Discrete Amortized Inference cites Trajectory balance: Improved credit assignment in GFlowNets
- Path-dependent Discrete Amortized Inference cites Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
- Revisiting Non-Acyclic GFlowNets in Discrete Environments cites Biological Sequence Design with GFlowNets
- Revisiting Non-Acyclic GFlowNets in Discrete Environments cites Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
- Revisiting Non-Acyclic GFlowNets in Discrete Environments cites Trajectory balance: Improved credit assignment in GFlowNets
- Revisiting Non-Acyclic GFlowNets in Discrete Environments cites Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
- Biological Sequence Design with GFlowNets cites Trajectory balance: Improved credit assignment in GFlowNets
- Biological Sequence Design with GFlowNets cites Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
- Beyond the Proxy: Trajectory-Distilled Guidance for Offline GFlowNet Training cites Revisiting Non-Acyclic GFlowNets in Discrete Environments
- Beyond the Proxy: Trajectory-Distilled Guidance for Offline GFlowNet Training cites Biological Sequence Design with GFlowNets
- Beyond the Proxy: Trajectory-Distilled Guidance for Offline GFlowNet Training cites Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
- Beyond the Proxy: Trajectory-Distilled Guidance for Offline GFlowNet Training cites Trajectory balance: Improved credit assignment in GFlowNets
- Learning GFlowNets From Partial Episodes For Improved Convergence And Stability cites Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
- Trajectory balance: Improved credit assignment in GFlowNets cites Learning GFlowNets From Partial Episodes For Improved Convergence And Stability
- Trajectory balance: Improved credit assignment in GFlowNets cites Flow Network based Generative Models for Non-Iterative Diverse Candidate Generation
Cited by top-tier papers4
- Avoid What You Know: Divergent Trajectory Balance for GFlowNetsPedro Dall’Antonia, Tiago Silva, Daniel Csillag, Salem Lahlou et al.ICML 2026 · 2 citations
- Path-dependent Discrete Amortized InferenceTiago Silva, Esmeralda S. Whitammer, Salem LahlouICML 2026
- Revisiting Non-Acyclic GFlowNets in Discrete EnvironmentsNikita Morozov, Ian Maksimov, Daniil Tiapkin, Sergey SamsonovICML 2025
- Beyond the Proxy: Trajectory-Distilled Guidance for Offline GFlowNet TrainingRuishuo Chen, Xun Wang, Rui Hu, Zhuoran Li et al.ICML 2026
Builds on22
- Flow Network based Generative Models for Non-Iterative Diverse Candidate GenerationEmmanuel Bengio, Moksh Jain, Maksym Korablyov, Doina Precup et al.NeurIPS 2021 · 565 citations
- Trajectory balance: Improved credit assignment in GFlowNetsNikolay Malkin, Moksh Jain, Emmanuel Bengio, Chen Sun et al.NeurIPS 2022 · 316 citations
- Biological Sequence Design with GFlowNetsMoksh Jain, Emmanuel Bengio, Alex Hernández-García, Jarrid Rector-Brooks et al.ICML 2022 · 224 citations
- Beyond Reverse KL: Generalizing Direct Preference Optimization with Diverse Divergence ConstraintsChaoqi Wang, Yibo Jiang, Chenghao Yang, Han Liu et al.ICLR 2024 · 173 citations
- Learning GFlowNets From Partial Episodes For Improved Convergence And StabilityKanika Madan, Jarrid Rector-Brooks, Maksym Korablyov, Emmanuel Bengio et al.ICML 2023 · 138 citations
Related papers
- On Divergence Measures for Training GFlowNetsTiago da Silva, Eliezer de Souza da Silva, Diego MesquitaNeurIPS 2024 · 8 citations
- Towards Understanding and Improving GFlowNet TrainingMax W. Shen, Emmanuel Bengio, Ehsan Hajiramezanali, Andreas Loukas et al.ICML 2023 · 81 citations
- Pessimistic Backward Policy for GFlowNetsHyosoon Jang, Yunhui Jang, Minsu Kim, Jinkyoo Park et al.NeurIPS 2024 · 14 citations
- CFlowNets: Continuous Control with Generative Flow NetworksYinchuan Li, Shuang Luo, Haozhi Wang, Jianye HaoICLR 2023 · 6 citations
- Optimizing Backward Policies in GFlowNets via Trajectory Likelihood MaximizationTimofei Gritsaev, Nikita Morozov, Sergey Samsonov, Daniil TiapkinICLR 2025
