> ## Documentation Index
> Fetch the complete documentation index at: https://aegean.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Probability transport

> Generation as moving probability mass from noise to data.

A generative model turns samples from a simple source distribution, such as Gaussian noise, into samples from the data distribution, such as the distribution of images. This chapter treats that as a transport problem. You want a rule that carries the source onto the target, and you want to know what the rule costs.

Each development in the table answers one question about that rule. The sections take them in this order.

| Development | Question it answers |
| - | - |
| [Monge](https://aegean.ai/aiml-common/lectures/optimal-transport/maps-and-couplings/index.md) | How can one distribution be moved into another, and at what cost? |
| [Kantorovich](https://aegean.ai/aiml-common/lectures/optimal-transport/maps-and-couplings/index.md) | What if no map can do it, because mass has to split? |
| [Wasserstein](https://aegean.ai/aiml-common/lectures/optimal-transport/maps-and-couplings/index.md) | What is the smallest possible cost? |
| [Benamou-Brenier](https://aegean.ai/aiml-common/lectures/optimal-transport/dynamic-transport/index.md) | How should the mass move through time? |
| [Normalizing flows](https://aegean.ai/aiml-common/lectures/normalizing-flows/index.md) | How can a learned invertible map give the exact density of its samples? |
| [Flow matching](https://aegean.ai/aiml-common/lectures/flow-matching/index.md) | How can the motion be learned from samples? |

[Velocity fields](https://aegean.ai/aiml-common/lectures/velocity-fields/index.md) come just before dynamic transport, because that section describes the motion of mass by a field.

In diffusion models the samples move randomly instead of following a fixed velocity field. Diffusion models solve the same transport problem, and the [diffusion introduction](https://aegean.ai/aiml-common/lectures/diffusion/introduction/index.md) covers them.

## The conceptual map

The chapter splits generation into transport between the two endpoints and transport along a path in time.

```mermaid theme={null}
graph TB
    GM["<b>Generative modeling</b><br/>Probability transport"]
    ET["<b>Endpoint transport</b><br/>Maps and couplings"]
    DT["<b>Dynamic transport</b><br/>Probability paths"]
    SOT["<b>Static optimal transport</b><br/>Minimum cost"]
    DOT["<b>Dynamic optimal transport</b><br/>Minimum kinetic action"]
    FM["Deterministic dynamics<br/><b>Flow matching</b><br/>Continuity equation"]
    DM["Stochastic dynamics<br/><b>Diffusion models</b><br/>Fokker-Planck equation"]
    GM --> ET
    GM --> DT
    ET --> SOT
    DT --> DOT
    DOT -.-> FM
    DOT -.-> DM
    classDef base fill:#475569,stroke:#94a3b8,stroke-width:2px,color:#fff
    classDef ot fill:#0f766e,stroke:#2dd4bf,stroke-width:2px,color:#fff
    classDef det fill:#1d4ed8,stroke:#60a5fa,stroke-width:2px,color:#fff
    classDef sto fill:#7e22ce,stroke:#c084fc,stroke-width:2px,color:#fff
    class GM,ET,DT base
    class SOT,DOT ot
    class FM det
    class DM sto
```

*Solid lines go from a general problem to a more specific one. Dashed lines mark conceptual extensions: flow matching and diffusion models are not special cases of dynamic optimal transport.*

The first section, [maps and couplings](https://aegean.ai/aiml-common/lectures/optimal-transport/maps-and-couplings/index.md), sets up the example the whole chapter uses: a standard normal source and a mixture of three Gaussians as the target.

***

Found an error on this page? [Report an issue](https://github.com/aegean-ai/eaia-feedback/issues/new?template=page-issue.yml\&page=/aiml-common/lectures/optimal-transport/introduction).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.