TL;DR
When reinforcement learning (RL) dramatically boosts a text-to-image model's benchmark score, is the model genuinely learning new skills, or just folding "best-of-$k$" cherry-picking into its weights? By dissecting a popular RL-trained flow model skill by skill, this paper reveals it actually does both—mostly concentrating lucky guesses the base model already made, while genuinely unlocking spatial reasoning from scratch. Knowing the difference tells you when to invest in training versus simply drawing a few extra samples at inference time.
What Problem Does This Paper Address?
Post-training generative models with Reinforcement Learning—specifically Group Relative Policy Optimization (GRPO)—has become a go-to recipe for making text-to-image models follow complex prompts. For example, Flow-GRPO boosts the compositional benchmark score of Stable Diffusion 3.5 Medium (SD3.5-M) from 0.63 to an impressive 0.95.
Naturally, we say the model "learned" compositional generation. But skeptics in the LLM world have long argued an alternative: sharpening. For almost any prompt, a few lucky random noise seeds in the base model already produce a great image. If RL simply shifts probability mass from bad seeds to those lucky seeds, it isn't discovering new capabilities—it's just compiling best-of-$k$ selection into the weights. Until now, nobody had tested whether RL in continuous image flow models (where noise variance is fixed and the model can't easily "widen" its search) sharpens existing skills or unlocks new ones, largely because single benchmark averages hide the answer.
Methods
Instead of looking at a single aggregate score, the authors build an inference-only diagnostic anatomy based on pass@$k$—the probability that at least one out of $k$ images generated from shared random noise seeds passes a strict reward check.
Using SD3.5-M and Flow-GRPO checkpoints, they operationalize two distinct regimes per skill:
- Sharpening: The RL model’s first-try success (
pass@1) matches what the base model achieves in a small number of tries ($k^* \le 32$), the upper bound (pass@32ceiling) barely budges, and zero-coverage prompts (0/32 base successes) stay unsolved. - Unlocking: No $k \le 32$ in the base model catches up to the RL model's
pass@1, thepass@32ceiling jumps, and previously unsolved prompts succeed at high rates.
To explain why both happen in one run, they propose a theoretical account—testing it via LoRA weight interpolation, unregularized (no-KL) checkpoints, DINOv2 diversity metrics, and controlled small-budget training runs where 20 object classes are completely held out from training.
Datasets
- GenEval: 553 held-out evaluation prompts spanning six compositional skills (single object, two objects, counting, colors, position/spatial relations, and attribute binding), alongside Flow-GRPO’s 33,199 training prompts.
- Controlled 20-Class Split: A custom 256-prompt evaluation set built from 20 object classes held out from a restricted 60-class Flow-GRPO training vocabulary to test whether learned skills transfer to unseen objects.
- OCR Text Rendering: 200 held-out prompts asking for verbatim quoted strings of varying lengths, used to evaluate Flow-GRPO-Text.
Key Insights and Ideas
- Benchmarks lie by averaging: Across GenEval, you need 31 base samples to match one RL sample. Yet zero individual skills look like 31—five skills take 4 to 10 samples, while spatial relations take more than 128.
- Exogenous noise vs. shared parameters: Within a single prompt, flow-matching RL can only re-weight outcomes already present in its sample group (sharpening), folding many noise seeds onto the same winning image and slashing visual diversity by a third. However, across prompts, shared network weights allow gradients from successful spatial layouts on easy prompts to fix layout deficits on prompts that never succeeded once (unlocking).
- Sharpening is fast and general; unlocking is slow and object-specific: In controlled runs, sharpening appears early and transfers immediately to unseen object classes. Unlocking spatial relations takes 3x–5x more training samples and emerges object-by-object on practiced vocabulary before slowly generalizing to held-out objects.
- The KL penalty protects semantic quirks: The base model draws "a purple bear" as a plush toy, failing the detector's strict animal check on 32/32 seeds. Standard Flow-GRPO leaves this untouched because changing how one word is read fights the KL penalty. Removing KL unlocks "purple bear" (32/32), but causes severe mode collapse into washed-out backgrounds and breaks previously working prompts like "a white sandwich."
Key Results
- Four skills sharpen: On single objects, two objects, counting, and colors, Flow-GRPO's
pass@1(0.89–0.98) equals the base model'spass@4topass@10, whilepass@32moves by $\le 0.013$. Outside spatial relations, simply generating 8 base images and picking the best with the reward detector recovers 90% of the RL gain. - Spatial relations unlock: Base
pass@1jumps from 0.16 to 0.94, andpass@32leaps from 0.69 to 1.00. Even 128 base samples (pass@128= 0.89) cannot match a single post-trained sample. All 31 zero-coverage spatial prompts are rescued, succeeding 93% of the time—matching prompts the base model already knew how to solve. - Mixed skills: Attribute binding (
k^*=8, ceiling +0.08) and OCR text rendering (k^*=12, ceiling +0.18, rescuing 37/42 zero-coverage strings) blend both effects, unlocking most strongly on long strings where base coverage is lowest.
Limitations and Future Work
The authors note their evidence covers a single base model (SD3.5-M) and one algorithm (Flow-GRPO). Because the base model already solves nearly every prompt in 32 tries on four GenEval skills, there is no headroom there to observe whether RL could unlock them. Furthermore, all "correctness" is judged by automated object/OCR detectors (which make mistakes) rather than human evaluators, and the controlled held-out object runs were single-GPU, single-seed experiments that plateaued around 78k–95k images before closing the gap to full-scale runs. For future work, the authors recommend papers report two numbers alongside any RL reward gain: $k^*$ (the inference-time sampling cost to match it) and the count of rescued zero-coverage prompts on both seen and unseen vocabularies.
Summary updated