Parts 1 and 2 built the two halves of a Gaussianization layer, the marginal map and the rotation. Part 3 stacks them the RBIG way: each layer is fitted greedily to the data as the layers before it left them, in closed form and without gradient training, and the stack is run backwards to generate. Each notebook checks the loop against rbig and the smooth RBIG of gauss_flows.
The thread through the part is when the loop has done its job. A latent with zero mean and identity covariance can still be far from Gaussian, so the part tests the joint distribution, and asks which rotations keep the loop moving and when to stop it.
| # | Notebook | What you take away |
|---|---|---|
| 00 | The canonical RBIG loop | one layer is a midpoint empirical CDF (1) per coordinate (2) and a rotation; PCA rotations stall on two moons while random ones reach a Gaussian, by a projection test (3); the stack’s inverse (4) and a fix for rbig’s; generation and density with the smooth fit_rbig |
| 01 | Convergence and stopping | each layer lowers the divergence from a standard normal by the marginal divergence it removes (3), so the reductions add up to the divergence (4) and, from the second layer on, to the total correlation (5), checked on a banana with a known answer (2); a stopping rule from the estimator’s noise floor, and rbig.AnnealedRBIG’s rule and measures against it |
| 02 | Rotation choices | the rotation sets how many layers the loop needs: PCA finishes a correlated Gaussian in two and stalls on two moons, ICA finishes rotated non-Gaussian sources in two and crosses the threshold on two moons in four once rbig’s orthogonal-ICA frame is corrected, and random rotations always get there slowly; rbig.PicardRotation is ICA with extended=False, which stalls on sub-Gaussian structure |
| 03 | Boundaries and support | a point beyond the range maps to NaN, or to the clip (1) whatever its distance; the tail round-trip error is rbig’s inverse, not the clip; pdf_extension swaps in a histogram CDF; only a parametric tail (1) lets the inverse generate beyond the data; tied counts need dequantisation (2) |
RBIG as a warm start for a parametric flow (3.D) has no notebook of its own here yet; the warm-start example shows it, and Part 4 builds on it.