humanoidsdata.com

Search

Search datasets, articles, and glossary terms for humanoids and embodied AI.

← All glossary terms

Models & learning

Flow matching

Flow matching is a generative-model training method that learns a time-dependent vector field transporting samples from a simple prior distribution to a data distribution. Training regresses the vector field along chosen probability paths without solving the flow during each update; generation starts from the prior and numerically integrates the learned ordinary differential equation.

Also known as: FM, flow-matching objective

Updated

Learning a vector field

Flow Matching for Generative Modeling defines probability paths between a tractable prior and a target data distribution. A neural network receives a point on a path and its time, then predicts the velocity that should move the point along that path.

For a straight conditional path between a noise sample and a data sample, the target velocity is their difference. Training is ordinary regression: sample both endpoints and a time, interpolate a point, and minimise the error between predicted and target velocity.

Generating a sample

Inference begins with a sample from the prior, commonly a standard Gaussian. An ordinary differential equation solver repeatedly applies the learned vector field from the prior endpoint to the data endpoint. Euler integration is the simplest numerical rule, although other solvers and schedules can trade compute for accuracy.

The path direction, target-velocity sign and integration direction must agree. Reversing one without the others moves samples towards noise rather than towards the learned data distribution.

Relationship to diffusion and robot actions

Diffusion models can be expressed through particular probability paths and vector fields. Flow matching also permits straighter transport-style paths, which may need fewer integration steps than a stochastic diffusion sampler. It is a broader training framework, not a synonym for diffusion.

π0 and SmolVLA apply conditional flow matching to continuous robot action chunks. Images, language and robot state condition the vector field, while integration transforms an initial noisy chunk into executable action values.

Sources