# Przepływy odwracalne z warstwami sprzężenia (RealNVP, Glow)

EN: **Coupling-layer normalising flows (RealNVP, Glow)** · id `normflows` · aliases: normalizing flows, RealNVP, Glow, NICE, coupling layers, invertible networks, sieci odwracalne

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Sieci i modele generatywne](https://aiatlasgraph.com/t/neural.md) › [Rodziny modeli generatywnych](https://aiatlasgraph.com/t/generative.md) › [Przepływy normalizujące i flow matching](https://aiatlasgraph.com/t/flowmatching.md) › Przepływy odwracalne z warstwami sprzężenia (RealNVP, Glow)

## Description

- PL: Generatory z odwracalnych transformacji o łatwym wyznaczniku jakobianu, pozwalające liczyć dokładną log-wiarygodność wzorem zamiany zmiennych.
- EN: Generators built from invertible transformations with tractable Jacobian determinants, giving exact log-likelihood via the change-of-variables formula.

## In one sentence

- PL: Model, który zamienia prosty losowy szum w realistyczne dane szeregiem odwracalnych kroków, więc może też dokładnie policzyć, jak prawdopodobny jest przykład.
- EN: A model that turns simple random noise into realistic data through reversible steps, so it can also compute exactly how likely an example is.

## Problem it solves

- PL: Wiele generatorów tworzy przekonujące próbki, ale nie potrafi powiedzieć, czy dany przykład jest typowy, czy dziwny.
- EN: Many generators make convincing samples but cannot tell whether a given example is typical or strange.

## What it does

- PL: Jak ciasto rozwałkowywane i składane: każdą operację można cofnąć, więc wiadomo dokładnie, skąd przyszedł każdy okruch.
- EN: Like dough rolled and folded: every move can be undone, so you know exactly where each crumb came from.

## Everyday example

- PL: Fizycy generują próbki konfiguracji cząstek, a model od razu podaje, jak bardzo każda z nich jest prawdopodobna.
- EN: Physicists generate samples of particle configurations, and the model immediately reports how probable each one is.

## This concerns you if you…

- PL: potrzebujesz dokładnej oceny prawdopodobieństwa danych
- PL: chcesz zrozumieć korzenie nowszych metod przepływowych
- EN: need an exact probability score for data
- EN: want to understand the roots of newer flow methods

## Keywords

RealNVP · Glow · NICE · affine coupling · invertible 1x1 convolution · masked autoregressive flow · neural spline flows · exact log-likelihood

## How it works

- PL: Warstwa sprzężenia dzieli wektor na dwie części: jedna przechodzi bez zmian i steruje afinicznym przekształceniem drugiej, więc odwrotność i jakobian są tanie. Złożenie wielu takich warstw z permutacjami lub odwracalnymi splotami 1×1 tworzy elastyczne mapowanie szumu w dane, trenowane maksymalizacją dokładnej wiarygodności.
- EN: A coupling layer splits the vector in two: one half passes unchanged and parameterises an affine transform of the other, so the inverse and Jacobian are cheap. Stacking many such layers with permutations or invertible 1×1 convolutions gives a flexible noise-to-data map trained by maximising exact likelihood.

## Limits

- PL: Dokładna wiarygodność wymaga, by każda transformacja była odwracalna i miała tani wyznacznik jakobianu. Ogranicza to wybór warstw, utrzymuje pełny wymiar reprezentacji i zwiększa koszt pamięci dla dużych danych.
- EN: Exact likelihood requires every transformation to be invertible with a tractable Jacobian determinant. This restricts layer design, keeps representations full-dimensional and raises memory cost for large data.

## Key terms

- PL: **warstwa sprzężenia**: Odwracalny blok, w którym połowa danych steruje przekształceniem drugiej połowy.
- PL: **wyznacznik jakobianu**: Liczba mówiąca, jak przekształcenie rozciąga lub ściska przestrzeń.
- PL: **zamiana zmiennych**: Wzór przeliczający gęstość prawdopodobieństwa przez odwracalne przekształcenie.
- EN: **coupling layer**: An invertible block where half the data controls the transform of the other half.
- EN: **Jacobian determinant**: A number showing how a transform stretches or squeezes space.
- EN: **change of variables**: A formula carrying probability density through an invertible transform.

## Know first

- [Rachunek różniczkowy i gradienty (Calculus and gradients)](https://aiatlasgraph.com/t/calculus.md)
- [Rozkłady prawdopodobieństwa (Probability distributions)](https://aiatlasgraph.com/t/distributions.md)

## Sources

- [Glow: Generative Flow with Invertible 1x1 Convolutions](<https://arxiv.org/abs/1807.03039>) `kingma-glow-2018` · by Diederik P. Kingma, Prafulla Dhariwal

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/normflows · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
