The first useful distinction is between a model of motion through a probability distribution and the objective used to improve that model. A velocity field describes the former. A reward-based training procedure changes the latter.
Begin with a path
Take a data sample and a noise sample . A simple interpolation is
Along this conditional path, the target velocity is . A flow-matching objective can therefore be written as
This is a regression objective for a velocity field. It is not, by itself, a reward objective.1
From a field to a sample
Sampling approximately integrates . A minimal Euler update makes the role of the field concrete:
def euler_step(x, t, dt, velocity_model):
velocity = velocity_model(x, t)
return x + dt * velocity
Reducing the step size changes numerical error. Changing the learned velocity changes the distribution we are trying to sample. These are different interventions.
Where the reward enters
Group-relative optimization compares rewards within a group of generated samples. An illustrative normalized advantage is
The hard part is not computing this number. It is specifying a sampling process with a tractable policy likelihood, then relating that likelihood to the model’s parameters. A deterministic ODE update does not automatically provide a stochastic transition likelihood.
Keep the representation of the generator, the sampling process, and the optimization objective separate until their connection is explicit.
Questions to carry forward
- Where does stochasticity enter the training sampler?
- Which transition likelihood is used in the policy ratio?
- What changes between training-time sampling and inference?
- Which rewards favor visual quality, and which measure temporal consistency?
This entry is a conceptual reading scaffold, rather than an implementation or a claim about a particular experiment.
References
- Lipman et al. Flow Matching for Generative Modeling, 2022.
- Shao et al. DeepSeekMath, 2024. See the discussion of group-relative policy optimization.
Footnotes
-
Different couplings and probability paths produce different conditional targets. The linear independent-endpoint example is only one choice. ↩