SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.13394 · 2026

GFlowRL: Scaling Distribution-Matching RL to Large Language Models

Jianfeng Gao, Xiaodong Liu, Paul Smolensky, Jack Stokes, Michael Xu, Doug Burger

arXiv · PDF · Open in the Atlas

Code that ran

We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Generative Flow Networks (GFlowNets) offer a promising alternative to rewardmaximizing reinforcement learning (RL) for learning large reasoning models. GFlowNets encourage diverse reasoning paths by matching reward distributions rather than collapsing to dominant modes. Recent work shows promise on math and code benchmarks, but scaling GFlowNet-style RL to modern post-training pipelines remains difficult. In the regimes that matter for LLM post-training, model size, rollout horizon, reward noise, and distributed-systems complexity all increase together, and a learned prompt-conditional partition function can become a source of gradient instability and engineering overhead rather than a useful normalizer. We address these challenges through systematic analysis to reveal what components are truly necessary for GFlowNet-based RL at scale. Our main finding is 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. Based on this observation, we propose GFlowRL, a streamlined GFlowNet-style RL algorithm that removes the auxiliary partition network entirely while preserving the reward-distribution-matching objective. The recipe is completed by two stabilizers: importance-sampling correction for rollout/trainer drift, and asymmetric flow-gap clipping for outlier residuals. GFlowRL improves both stability and performance compared to prior work. It 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 previous GFlowNet-style RL 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 for large reasoning models. Code will be released at https://github.com/microsoft/gflowrl.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2607.13394")
get_code_for_paper("2607.13394")
have("2607.13394")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2607.13394.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2607.13394.svg)](https://syntology.ai/paper/2607.13394)

Connect an agent — have() is free.