learn/model families
Normalising flow
A normalising flow is a reversible mathematical recipe that bends a simple spread of random numbers into the complicated shape of real data, and can be run backwards again.
What it is
Start with something simple: a cloud of random numbers in a plain bell-shaped spread, where you know exactly how likely every point is. A normalising flow applies a chain of smooth, reversible stretches and bends to that cloud until it matches the messy shape of real measurements. Because each step is reversible, you can also run the chain backwards and carry any real data point home to the simple cloud. And because the bookkeeping of how much each step stretches space is tracked, you can work out how likely any point was in the first place.
The stretches and bends are learned. They are built from a neural network, a flexible function tuned by trial and error, and the tuning rewards settings that make the real data look as likely as possible. The reversibility is not an afterthought: the recipe is deliberately built from pieces that can be undone, which is what separates a flow from other ways of generating data.
Why scientists use it
Scientists often want the full shape of a probability distribution, not just an average. A flow gives two things at once that are usually hard to get together: it can produce fresh samples that look like the data, and it can state how likely a given point is. That second ability matters when the distribution itself is the scientific answer, and when the result must be smooth enough to differentiate, so that slopes and gradients can be read off it.
It also stands in for expensive work. Where the honest calculation means a long simulation or a heavy piece of analysis software for every case, a flow trained on examples can be sampled quickly instead. And where a quantity cannot be written down as a tidy formula, a flow can learn the shape from examples and then generate as many new cases as needed.
In the record
Limits
A flow only knows the data it was trained on. Where examples are sparse, at the thin edges of a distribution, it will still confidently report likelihoods that may be guesswork. The demand for reversibility constrains what each step can do, so many steps are often needed, and training can be slow or unstable. A smooth answer can also hide real sharp features. And when a flow replaces a costly calculation, any bias in the examples it learned from is quietly inherited.
Written by AIxSci: the background from general knowledge, the examples from checked records.