# The Reward Was in Your Data All Along: Correcting Flow Matching with Discriminator-Guided RL.

*Nicolas Beltran Velez, Felix Friedrich, Xiaofeng Zhang, Reyhane Askari Hemmat, Xiaochuang Han, Adriana Romero-Soriano, Michal Drozdzal*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151614) · [OpenReview](https://openreview.net/forum?id=ZEUZR2yKyB) · [Open on the map](../papers.html#p151614)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Diffusion Model Distillation and Alignment](../pgroup/101.md) · Type: new method · Keywords: flow matching, discriminator-guided RL, image generation, reinforcement learning, visual quality

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › Generative Model Reinforcement › Diffusion and Flow Model Reinforcement

## Summary
Discriminator-Guided RL (DRL) corrects flow-matching models by training a discriminator in a pretrained representation space to separate real data from base-model samples, using its logit as a reward in KL-regularized RL, which improves image fidelity and alignment without human preference data.

## Explained to a 5-year-old
Sometimes computers make pictures that look weird. They try to copy how things look, but they miss some important details. To fix this, we give the computer a helper that can tell if a picture is real or made up. The helper looks at many pictures and learns what real looks like. Then the computer uses this helper's judgment to make better pictures on its own.

## Explained to a 5-year-old, longer
Computers can create new pictures using special rules. These rules try to make the pictures look like real things. However, sometimes the pictures still look strange or missing parts. To help, we give the computer a friend that can guess whether a picture is real or fake. This friend looks at many real pictures and learns what they are like. It then gives a score to any picture, saying how real it seems. The computer uses this score as a guide to improve its own pictures. By following the guide, the computer learns to make pictures that are clearer and more realistic. It also avoids problems like colors that are too bright or too dark. This way, the computer can make better pictures without asking people to tell it what is good. The method works for many different kinds of picture-making models. It helps produce images that look natural and pleasing.

## For a technical reader
The paper observes that flow-matching models, trained with ℓ2 losses on velocity fields, often produce samples that lack visual quality despite matching statistical properties. To address this, they train a discriminator in a pretrained representation space to distinguish real data from model samples and use its logit as a reward signal. This reward is then employed in a KL-regularized reinforcement-learning loop that directly optimizes the model toward the data distribution. The result is a consistent reduction in standard image-quality metrics such as FID and FD, as well as improved human-preference scores without additional labeling. The approach is evaluated on several state-of-the-art flow-matching backbones, showing gains across the board.

## Problem
Score- and flow-matching models often rely on preference-based reinforcement learning to recover visual quality properties that matching losses are poorly aligned with, requiring a reward that reflects these properties without expensive human references.

## Method
The approach trains a discriminator to separate real data from base-model samples in a pretrained representation space, uses its logit as a reward, and applies KL-regularized reinforcement learning to update the flow-matching model.

## Results
The approach lowers guidance-free FID from 9.38 to 2.62 on SiT and semantic-space FD from 88.2 to 19.3 on DINOv3, improves human-preference rewards, and achieves a better trade-off between alignment and image fidelity, reducing artifacts like oversaturation.

## Contributions
It identifies a structural mismatch between matching losses and visual quality, proposes using a pretrained discriminator's logit as an optimal reward for RL, and demonstrates consistent improvements across multiple flow-matching backbones.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151614)
