GFlowRL: Scaling Distribution-Matching RL to Large Language Models
On the map: LLM reasoning → Reinforcement learning for reasoning
Abstract (arXiv)
Generative Flow Networks (GFlowNets) offer a promising alternative to reward-maximizing reinforcement learning (RL) for large reasoning models, encouraging diverse reasoning paths by matching reward distributions rather than collapsing to dominant modes. Recent work shows promise on math and code, but scaling GFlowNet-style RL to modern post-training pipelines remains difficult: as model size, rollout horizon, reward noise, and distributed-systems complexity grow together, a learned prompt-conditional partition function becomes a source of gradient instability and engineering overhead rather than a useful normalizer. Through systematic analysis, we find that the learned partition function, previously treated as essential, can be replaced by an in-batch Monte Carlo estimate computed from the rollout group already required for training. We propose GFlowRL, a streamlined GFlowNet-style RL algorithm that removes the auxiliary partition network entirely while preserving the reward-distribution-matching objective, completed by two stabilizers: importance-sampling correction for rollout/trainer drift and asymmetric flow-gap clipping for outlier residuals. GFlowRL exceeds all counterparts on math, code, and adversarial red-teaming benchmarks, reaching a Codeforces rating of 2048 at the 14B scale (within 25 Elo of o3-mini) and attaining the highest average ASR@1 on AdvBench and HarmBench, outperforming the previous SOTA multi-turn attacker in a regime where FlowRL, a prior GFlowNet-style method, diverges. The same recipe transfers to all evaluated MoE configurations up to 235B parameters, where FlowRL again fails to converge. To our knowledge, GFlowRL is the first GFlowNet-style RL algorithm to scale stably across both dense and sparse architectures. Code will be at: https://github.com/microsoft/gflowrl
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Reinforcement learning for reasoning, one of 17 directions in LLM reasoning. Builds on 46 of its 56 references that are in the map. First posted on arXiv 15 Jul 2026.
Builds on
46 of 56 references.
Closest ancestors · 6
Same direction, newest first
- 2025FlowRL: Matching Reward Distributions for LLM Reasoning18 Sep
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scale18 Mar
- 2025Kimi k1.5: Scaling Reinforcement Learning with LLMs22 Jan
- 2025REINFORCE++: Stabilizing Critic-Free Policy Optimization with Global Advantage Normalization4 Jan
- 2023Let's Verify Step by Step31 May
- 2017Proximal Policy Optimization Algorithms20 Jul
Other references · 40
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
- 2024OlympiadBench: A Challenging Benchmark for Promoting AGI with Olympiad-Level Bilingual Multimodal Scientific Problemscited by 1,136
- 2021Flow Network based Generative Models for Non-Iterative Diverse Candidate Generationcited by 392
- 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attackcited by 390
- 2021GFlowNet Foundationscited by 290
28 more
- 2022Trajectory balance: Improved credit assignment in GFlowNetscited by 251
- 2022Learning GFlowNets from partial episodes for improved convergence and stabilitycited by 132
- 2025X-Teaming: Multi-Turn Jailbreaks and Defenses with Adaptive Multi-Agentscited by 125
- 2022Generative Flow Networks for Discrete Probabilistic Modelingcited by 114
- 2017Backpropagation through the Void: Optimizing control variates for black-box gradient estimationcited by 106
- 2022GFlowNets and variational inferencecited by 106
- 2023Amortizing intractable inference in large language modelscited by 97
- 2024LLMs know their vulnerabilities: Uncover Safety Gaps through Natural Distribution Shiftscited by 86
- 2013The Optimal Reward Baseline for Gradient-Based Reinforcement Learningcited by 85
- 2020Solving high-dimensional Hamilton-Jacobi-Bellman PDEs using neural networks: perspectives from the theory of controlled diffusions and measures on path spacecited by 82
- 2024FlipAttack: Jailbreak LLMs via Flippingcited by 80
- 2017REBAR: Low-variance, unbiased gradient estimates for discrete latent variable modelscited by 79
- 2024Chain of Attack: a Semantic-Driven Contextual Multi-Turn attacker for LLMcited by 77
- 2020VarGrad: A Low-Variance Gradient Estimator for Variational Inferencecited by 75
- 2024Amortizing intractable inference in diffusion models for vision, language, and controlcited by 72
- 2023Robust Scheduling with GFlowNetscited by 69
- 2018Variance Reduction for Policy Gradient with Action-Dependent Factorized Baselinescited by 68
- 2023Generative Flow Networks as Entropy-Regularized RLcited by 64
- 2025Foot-In-The-Door: A Multi-turn Jailbreak for LLMscited by 54
- 2024Echoes in AI: Quantifying lack of plot diversity in LLM outputscited by 48
- 2024Automated Red Teaming with GOAT: the Generative Offensive Agent Testercited by 45
- 2025On Entropy Control in LLM-RL Algorithmscited by 40
- 2023Maximum entropy GFlowNets with soft Q-learningcited by 30
- 2024Flow of Reasoning: Training LLMs for Divergent Reasoning with Minimal Examplescited by 30
- 2025Jailbreak-R1: Exploring the Jailbreak Capabilities of LLMs via Reinforcement Learningcited by 27
- 2024Jigsaw Puzzles: Splitting Harmful Questions to Jailbreak Large Language Modelscited by 19
- 2024Iterative Self-Tuning LLMs for Enhanced Jailbreaking Capabilitiescited by 17
- 2026SEMA: Simple yet Effective Learning for Multi-Turn Jailbreak Attackscited by 12
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025GFlowVLM: Enhancing Multi-step Reasoning in Vision-Language Models with Generative Flow Networks
- 2025Accurate and Diverse LLM Mathematical Reasoning via Automated PRM-Guided GFlowNets
- 2024GFlowNet Training by Policy Gradients
- 2024GFlowNet Fine-tuning for Diverse Correct Solutions in Mathematical Reasoning Tasks
- 2026PowerFlow: Unlocking the Dual Nature of LLMs via Principled Distribution Matching
- 2024Random Policy Evaluation Uncovers Policies of Generative Flow Networks
- 2025Scaling Up RL: Unlocking Diverse Reasoning in LLMs via Prolonged Training
- 2024Proof Flow: Preliminary Study on Generative Flow Network Language Model Tuning for Formal Reasoning