Conditional flows add up to a marginal flow: crossing lines, one smooth field

Flow matching trains a velocity field to carry noise (left edge) to data (right edge). Say the data are a few single points, Diracs. For one target alone the path is easy: a straight line to it. Drag the diamonds, change their probabilities with the sliders, and compare what happens when every target has its own line (left) with the single field a network has to learn (right).

try:
Conditional and marginal flow fields from Dirac targets Left: for each Dirac target, straight lines from noise at the left edge to that target at the right edge, one color per target, crossing one another. Right: the marginal flow, the posterior-weighted average of the conditional velocities, drawn as an arrow field with trajectories that never cross, each ending at one of the targets. A probe point shows the conditional arrows on the left and their weighted sum on the right.