[Paper Review] Deep Diffeomorphic Normalizing Flows
This paper proposes Deep Diffeomorphic Normalizing Flows (DDNF), a novel normalizing flow architecture that models posterior approximations using a diffeomorphic recurrent neural network inspired by fluid dynamics. By approximating continuous diffeomorphic transformations via residual RNN blocks, DDNF enables flexible, invertible, and differentiable posterior inference with improved log-likelihood performance on MNIST and CIFAR-10, outperforming baseline VAEs, planar flows, and IAFs.
The Normalizing Flow (NF) models a general probability density by estimating an invertible transformation applied on samples drawn from a known distribution. We introduce a new type of NF, called Deep Diffeomorphic Normalizing Flow (DDNF). A diffeomorphic flow is an invertible function where both the function and its inverse are smooth. We construct the flow using an ordinary differential equation (ODE) governed by a time-varying smooth vector field. We use a neural network to parametrize the smooth vector field and a recursive neural network (RNN) for approximating the solution of the ODE. Each cell in the RNN is a residual network implementing one Euler integration step. The architecture of our flow enables efficient likelihood evaluation, straightforward flow inversion, and results in highly flexible density estimation. An end-to-end trained DDNF achieves competitive results with state-of-the-art methods on a suite of density estimation and variational inference tasks. Finally, our method brings concepts from Riemannian geometry that, we believe, can open a new research direction for neural density estimation.
Motivation & Objective
- To improve posterior approximation in variational inference by replacing simple structured posteriors with more flexible, flow-based distributions.
- To address the limitations of existing normalizing flows—such as planar and IAF flows—by modeling continuous, smooth deformations inspired by viscous fluid motion.
- To develop a flow architecture that maintains invertibility and efficient Jacobian determinant computation for scalable posterior estimation.
- To demonstrate that RNN-based diffeomorphic flows can achieve tighter variational bounds and better likelihood estimates than existing methods.
Proposed method
- The method models the posterior as a diffeomorphic transformation of a standard normal prior, using a residual RNN architecture to approximate continuous-time flows.
- Each flow step is defined as a small diffeomorphic deformation via a velocity field, with the overall transformation computed as the composition of these small steps.
- The log-determinant of the Jacobian is approximated as the sum of logarithmic determinants of small deformations using Taylor expansion, enabling efficient computation.
- The flow is trained end-to-end in a VAE framework, with the decoder reconstructing input data and the flow-based encoder learning complex posterior structures.
- Inverse consistency is encouraged via regularization to improve numerical stability and ensure accurate invertibility.
- The model uses a non-stationary velocity field constructed by stacking multiple stationary velocity fields, enabling richer transformation dynamics.
Experimental results
Research questions
- RQ1Can a RNN-based architecture effectively approximate continuous diffeomorphic flows for posterior approximation in variational inference?
- RQ2How does the number of RNN blocks affect the accuracy of the ODE approximation and the resulting likelihood performance?
- RQ3Can diffeomorphic flows based on fluid dynamics motion better capture complex posterior structures than planar or IAF flows?
- RQ4To what extent does inverse consistency regularization improve the stability and quality of the learned flow?
- RQ5Does the proposed method achieve better likelihoods on standard benchmarks like MNIST and CIFAR-10 compared to existing normalizing flow baselines?
Key findings
- The proposed Deep Diffeomorphic Normalizing Flow achieves significantly lower negative log-likelihood on MNIST and CIFAR-10 compared to vanilla VAE, planar normalizing flows, and IAF.
- Increasing the number of RNN blocks reduces the L2 error in ODE approximation, with eight blocks achieving a stable performance knee point.
- The inversion error decreases with more RNN blocks, confirming that smaller integration steps improve numerical accuracy and flow invertibility.
- The model demonstrates improved posterior flexibility, enabling tighter variational bounds and better generative performance.
- The use of inverse consistency regularization leads to more stable and accurate flow inversion, enhancing training stability.
- The architecture successfully models complex posterior distributions, as evidenced by superior likelihood scores on benchmark datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.