Enterprise-ready security: ISO 27001 + SOC 2 Type I compliant.
Ultralytics
Back to Ultralytics Glossary

Normalizing Flows

Explore normalizing flows, how invertible neural networks enable exact likelihoods, and their applications in generative AI, anomaly detection, medical imaging, and uncertainty modeling.

Normalizing flows are generative AI models that learn an invertible mapping between a simple probability distribution, usually Gaussian noise, and a complex data distribution. Unlike many generative models, they can both create samples and calculate exact data likelihoods efficiently. This makes them useful for density estimation, uncertainty modeling, and learning structured latent spaces, as explained in the foundational normalizing flows review. (arxiv.org)

Link to this sectionHow Normalizing Flows Work#

A flow applies a sequence of reversible neural-network transformations:

  1. Sample a point from a simple base distribution.
  2. Transform it through several invertible layers.
  3. Track how each layer expands or contracts probability density using its Jacobian determinant.
  4. Reverse the transformations when calculating the probability of observed data.

The Pyro normalizing flow tutorial provides practical examples of sampling and density evaluation. Although the name sounds similar, normalizing flows are not the same as feature normalization or batch normalization. Here, “normalizing” means transforming a complex distribution into a standard one.

Traditional designs require carefully structured invertible layers. Recent Free-form Flows research relaxes this restriction, while a 2024 universality analysis of coupling-based flows explains why affine coupling layers remain effective. (proceedings.mlr.press)

Link to this sectionReal-World Applications#

Flow matching usually trains a continuous velocity field with a regression objective, as detailed in Meta’s Flow Matching guide. Traditional normalizing flows instead emphasize invertible transformations and direct likelihood optimization. Rectified flow seeks straighter transport paths, while diffusion models generate data through iterative denoising. Normalizing flows also differ from Generative Flow Networks, which learn policies for constructing discrete objects, and from GANs, which do not normally provide exact likelihoods. (ai.meta.com)

Link to this sectionRecent Developments And Best Practices#

Transformer-based architectures have renewed interest in flows. The 2025 TarFlow study reported image generation competitive with diffusion approaches, while Jet modernized coupling flows with Vision Transformers. In 2026, regression-based flow training connected normalizing flows with flow-matching-style objectives, and SESaMo incorporated exact physical symmetries. (proceedings.mlr.press)

For vision applications, a practical approach is to model high-level embeddings rather than raw pixels:

from ultralytics import YOLO

model = YOLO("yolo26n.pt")
embeddings = model.embed("https://ultralytics.com/images/bus.jpg")
print(embeddings[0].shape)

These Ultralytics YOLO26 embeddings can become inputs to a separately trained flow for density estimation or anomaly scoring. Use careful data preprocessing and evaluate likelihood alongside downstream performance rather than treating it as a complete quality measure.

Explore solutions

Real-time AI that works with your team

AI in Robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Real-time AI that works with your team

AI in Logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Real-time AI that works with your team

AI in Retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Real-time AI that works with your team

AI in Healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Real-time AI that works with your team

AI in Manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Real-time AI that works with your operation

AI in Automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Real-time AI tailored to your operation

AI in Agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more
Real-time AI that works with your team

AI in Robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Real-time AI that works with your team

AI in Logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Real-time AI that works with your team

AI in Retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Real-time AI that works with your team

AI in Healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Real-time AI that works with your team

AI in Manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Real-time AI that works with your operation

AI in Automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Real-time AI tailored to your operation

AI in Agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more
Real-time AI that works with your team

AI in Robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Real-time AI that works with your team

AI in Logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Real-time AI that works with your team

AI in Retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Real-time AI that works with your team

AI in Healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Real-time AI that works with your team

AI in Manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Real-time AI that works with your operation

AI in Automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Real-time AI tailored to your operation

AI in Agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning