Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Part 4 · Parametric Gaussianization flows

Part 3 fitted each rotation and marginal block of RBIG greedily, one at a time. Part 4 keeps the same architecture and makes it trainable: the parameters of every block are free, and the whole stack is fitted together by maximum likelihood. Each notebook trains the flows of gauss_flows with pipekit-train and compares them with the greedy fit.

The flows here are diagonal: each layer is a per-coordinate marginal map followed by a rotation. Flows whose marginal maps take their parameters from the other coordinates, the coupling flows, are the subject of Part 5.

#NotebookWhat you take away
00NLL trainingthe objective splits into a base term and a log-determinant term (1), and the log-determinant is what stops the flow from shrinking the data (2); gaussianization_flow trained with pipekit-train; its default base trains away from a standard normal, an affine layer in disguise (3), unless it is fixed; the trained flow beats a greedy RBIG fit of the same size on held-out data
01RBIG as a warm startfit_rbig hands over mixture marginals fitted by EM and PCA frames that stay frozen, in the opposite block order from gaussianization_flow (1); the warm start leads early and at small learning rates, but with a fair learning rate and the same budget it ends no better than a cold start on held-out data, and keeps more of the greedy fit’s overfitting
02Layer-wise inspectiona flow taken apart block by block, a Scan unrolled, and the blocks checked against the flow’s log-density (5); the greedy fit does most of its work in its first three layers and then stalls, and pushes a few held-out points ever further out; a trained flow’s intermediate states are not Gaussian, only its output is

The warm-start example shows what notebook 01 leaves out: the warm start’s pushforward and samples before training, and the warm start of a coupling flow. The last section of the Gaussianization flow example shows the states of a flow trained for longer as scatter plots. The comparison of diagonal and coupling flows (4.B) and the walkthrough of coupling_gaussianization_flow (the second half of 4.C) belong with the coupling flows, in Part 5.