Northeastern University · CS 7150 · Fall 2026

Flow matching

Flow matching carries noise to data by learning a velocity field. These pieces work in one dimension, where the whole picture fits on screen: position on the vertical axis, time on the horizontal.

  1. The training target

    Conditional flows add up to a marginal flow

    Drag a few Dirac targets and give each a probability. On the left, every target has its own straight conditional flow, and the lines all cross. On the right, the field a network actually learns: the average of those velocities, weighted by how likely each target is to have produced the point you are at. Its trajectories never cross, bend toward the targets in time, and split the noise between them in proportion to the probabilities. A probe point shows the sum arrow by arrow.

    Open the explainer →