Flow-Map GRPO: Reinforcement Learning for Few-Step Flow-Map Generators via Anchored Stochastic Composition

Zhiqi Li Wen Zhang Bo Zhu

Georgia Institute of Technology

Flow-Map GRPO brings online reinforcement learning to deterministic few-step flow-map generators, such as MeanFlow and sCM, without changing their parameterization.

Images from MeanFlow and sCM after Flow-Map GRPO, and base versus Flow-Map GRPO pairs for OCR, PickScore and GenEval.
Few-step generation with Flow-Map GRPO. Left: MeanFlow and sCM samples after joint OCR + PickScore post-training. Right: the base model against Flow-Map GRPO on OCR, PickScore and GenEval.
  • 0.349 to 0.850OCR accuracy, MeanFlow
  • 20.35 to 23.48PickScore, sCM
  • 0.504 to 0.845GenEval, MeanFlow
  • 25.43 to 16.72ImageNet FID with an image-set MMD reward, MeanFlow

Few-step samples after Flow-Map GRPO

MeanFlow, sCM and SD3.5-Medium samples after post-training on text rendering, visual preference, object relations and the joint OCR + PickScore reward. Select a tile to compare it with the base model.

Abstract

Few-step flow-map generators, such as consistency models and MeanFlow, accelerate sampling by learning long-range transport maps between noise and data. However, their deterministic transitions do not directly provide the stochastic trajectories and tractable likelihood ratios required by reinforcement learning (RL) post-training. Existing SDE-based stochasticization techniques target velocity-based samplers and do not directly extend to long-range flow-map transitions. We propose Flow-Map GRPO, an online RL post-training framework for deterministic few-step flow-map generators. Its key component, Anchored Stochastic Flow Map Composition (ASFMC), combines deterministic transport with anchor-based conditional resampling. We establish the conditions under which this construction preserves the marginal probability path and develop tractable local- and endpoint-anchor policies for two-time and single-time flow maps. These policies enable a unified GRPO training procedure. Experiments on FLUX-based MeanFlow and sCM generators demonstrate substantial improvements in OCR, PickScore, and GenEval at different numbers of inference steps, including joint OCR–PickScore gains with mixed rewards. Controlled ablations show that the stochastic transition design is essential for translating training rewards into generation quality. Flow-Map GRPO enables effective RL alignment of pretrained deterministic flow-map generators while retaining their original parameterization, without retraining them as native stochastic models.

Across sampling steps

The same adapter, trained at K = 4, evaluated at other step counts. Choose a backbone, a reward and the number of stochastic transitions K.

Stochastic transitions K

Examples from the paper's appendix. K counts the stochastic transitions before the final endpoint step, so sampling uses K + 1 steps; the green dot marks the training setting.

Method

A long flow-map jump has no tractable Gaussian transition. Flow-Map GRPO keeps the pretrained deterministic map, moves on to an anchor time and samples back, which gives a Gaussian policy that GRPO can train.

ASFMC: transport to an anchor time and sample back to the target time
(a) ASFMC principle
Local anchor: transport a short step forward and sample back
(b) Local anchor
Endpoint anchor: transport to the data endpoint and re-noise
(c) Endpoint anchor
Infinitesimal SDE transition with a Gaussian distribution around the velocity step
(a) Infinitesimal transition: Gaussian, tractable.
Long-range SDE transition whose distribution is not Gaussian around the flow-map output
(b) Long-range transition: not Gaussian in general.
Method details

Why flow maps need a new stochastic policy

Likelihood-ratio RL such as GRPO needs stochastic transitions with tractable densities. For a small velocity step, an SDE discretization gives a Gaussian transition, which is how Flow-GRPO makes flow matching stochastic. A flow map instead jumps over a long interval, where the accumulated nonlinear stochastic dynamics generally produce a non-Gaussian transition. The paper shows that no additive-Gaussian form built from the flow map and its derivatives represents this transition in general, and resolving the path with many small steps would give up the few-step advantage.

Anchored Stochastic Flow Map Composition

ASFMC first transports the state, \(X_r=\psi^\theta_{t\to r}(X_t)\), then moves on to an anchor time \(\tau\) and samples back to time \(r\) from the conditional distribution \(p_{r\mid\tau}\). When the maps are accurate, the resampled state \(\widetilde X_r\) keeps the marginal \(p_r\), so the probability path of the generator is preserved. The choice of anchor gives two tractable Gaussian policies.

Local anchor, \(\tau=r+h\)MeanFlow

A short anchor gives a drift correction plus scheduled noise, accurate to \(O(h^{3/2})\). Two-time maps use it.

\[\widetilde X_r=X_r+h\lambda^2\!\left[u_r(X_r)-\tfrac{\dot a_r}{a_r}X_r\right]+\sigma_r\sqrt h\,\xi\]

Endpoint anchor, \(\tau=1\)sCM

Transport to the data endpoint, \(X_1=\psi^\theta_{r\to1}(X_r)\), and re-noise with the affine path. One-time models predict \(X_1\) directly.

\[\widetilde X_r\sim\mathcal N\!\left(a_rX_1,\;b_r^2I\right)\]

One GRPO objective for both

Both anchors define Gaussian policies with explicit means and variances, so a single clipped GRPO objective trains either kind of model through LoRA adapters. Sampling uses \(K\) stochastic transitions followed by one deterministic endpoint step, which is excluded from the likelihood ratio. Rewards need no gradients: per-image rewards (OCR, PickScore, GenEval) and image-set rewards (MMD) both apply.

Results

One LoRA adapter per reward on FLUX-based MeanFlow and sCM, trained at \(K=4\) stochastic transitions (five sampling steps).

Task metric of the base model and Flow-Map GRPO at K = 2, 3, 4, 7 and 15 for OCR accuracy, PickScore and GenEval, on MeanFlow and sCM. Flow-Map GRPO is above the base at every K.
The gains hold at other step counts. Adapters are trained at K = 4 and evaluated from K = 2 to K = 15. Solid: Flow-Map GRPO. Dashed: base.
Evaluation reward during training for Flow-Map GRPO, DiffusionNFT and SFT on sCM and MeanFlow with the OCR and PickScore rewards. Flow-Map GRPO rises steadily while the two baselines stay near the starting value.
Against baselines. Evaluation reward during training with the same models, prompts, rewards and optimizer steps: supervised fine-tuning and DiffusionNFT change the rewards little.
Joint OCR + PickScore post-training. MeanFlow before (top) and after (bottom), at K = 3, 4, 7 and 15. Prompt: “A weathered treasure map laid out on an old wooden table, with ‘X Marks the Spot’ clearly visible in the center …”
Tables

Base against Flow-Map GRPO at K = 4 (higher is better). The joint adapter is trained on a mixture of OCR and PickScore prompts.

RewardMetricMeanFlowsCM
BaseOursBaseOurs
OCROCR acc.0.3490.8500.4900.886
PickScorePickScore20.9823.0820.3523.48
GenEvalGenEval0.5040.8450.4510.805
OCR + PickScoreOCR acc.0.3490.7720.4900.857
PickScore20.9822.5020.3522.52

Matched baselines at K = 4.

MethodsCMMeanFlow
OCRPickScoreOCRPickScore
Base0.49020.350.34920.98
SFT0.45920.790.33620.98
DiffusionNFT0.53620.220.35820.54
Flow-Map GRPO0.88623.480.85023.08

On ImageNet with an image-set MMD reward, removing the drift correction or replacing the scheduled noise with variance-matched constant noise degrades generation. Only the anchored policies improve FID, precision and recall together, so simply adding noise to the deterministic flow-map output is not enough.

MeanFlow, local anchor (five steps, epoch 400).

PolicyFID ↓Precision ↑Recall ↑
Base25.430.5910.340
Ours16.720.7740.421
Drift + constant noise32.710.6090.214
No drift70.130.2690.195
No drift + constant noise49.250.3840.102

Consistency model, endpoint anchor (five steps, epoch 400).

PolicyFID ↓Precision ↑Recall ↑
Base25.690.5670.381
Ours15.650.7840.438
Constant noise42.160.4600.107

BibTeX

@article{li2026flowmapgrpo,
  title   = {Flow-Map GRPO: Reinforcement Learning for Few-Step Flow-Map Generators via Anchored Stochastic Composition},
  author  = {Li, Zhiqi and Zhang, Wen and Zhu, Bo},
  journal = {arXiv preprint arXiv:2607.00535},
  year    = {2026}
}