Visualizing the Change-of-Variables Rule and the Jacobian-Inverse Term in Flow Models

CatAstro_Piyush · x · 2026-10-17

While re-reading flow model papers in a reading group, the author realized his grasp of the change-of-variables rule in probability was weaker than it should be, so he wrote a blog post with a collection of visuals to build intuition for the Jacobian-inverse determinant term.

Core formula: for Y = g(X) with invertible g, fY(y) = fX(g⁻¹(y)) × |det J g⁻¹(y)|. Normalizing flows rest on this: starting from samples of a simple Gaussian, composing invertible transformations yields samples from arbitrarily complex distributions (e.g., human face images). The author notes the flow literature treats the formula as axiomatic, yet it isn't immediately intuitive — so the post breaks it down term by term with geometric and probabilistic visual intuition.

Original post →

More from Research

Research channel →