[Paper Review] Implicit Normalizing Flows
This paper introduces Implicit Normalizing Flows (ImpFlows), a generalization of normalizing flows that define invertible transformations implicitly via root-finding equations $F(\mathbf{z}, \mathbf{x}) = \mathbf{0}$, enabling richer expressivity than ResFlows. ImpFlows achieve state-of-the-art performance on density modeling and classification benchmarks with comparable parameter counts and computational cost, outperforming ResFlows by exactly modeling functions that ResFlows approximate with non-negligible error.
Normalizing flows define a probability distribution by an explicit invertible transformation $\boldsymbol{\mathbf{z}}=f(\boldsymbol{\mathbf{x}})$. In this work, we present implicit normalizing flows (ImpFlows), which generalize normalizing flows by allowing the mapping to be implicitly defined by the roots of an equation $F(\boldsymbol{\mathbf{z}}, \boldsymbol{\mathbf{x}})= \boldsymbol{\mathbf{0}}$. ImpFlows build on residual flows (ResFlows) with a proper balance between expressiveness and tractability. Through theoretical analysis, we show that the function space of ImpFlow is strictly richer than that of ResFlows. Furthermore, for any ResFlow with a fixed number of blocks, there exists some function that ResFlow has a non-negligible approximation error. However, the function is exactly representable by a single-block ImpFlow. We propose a scalable algorithm to train and draw samples from ImpFlows. Empirically, we evaluate ImpFlow on several classification and density modeling tasks, and ImpFlow outperforms ResFlow with a comparable amount of parameters on all the benchmarks.
Motivation & Objective
- To overcome the expressivity limitations of explicit normalizing flows, particularly Residual Flows (ResFlows), which are constrained by Lipschitz continuity and cannot exactly represent certain invertible functions.
- To develop a tractable framework for implicit invertible transformations that maintain computational feasibility for density estimation and sampling.
- To demonstrate that implicit flows can exactly represent functions with non-negligible approximation error in ResFlows, even with a single block.
- To design a scalable training and inference algorithm for ImpFlows using implicit differentiation and root-finding procedures.
Proposed method
- ImpFlows define a transformation implicitly through the root of an equation $F(\mathbf{z}, \mathbf{x}) = \mathbf{0}$, where $\mathbf{z}$ is obtained via a root-finding procedure given $\mathbf{x}$.
- Each block in ImpFlow is constructed as the composition of a ResFlow block and the inverse of another ResFlow block, ensuring invertibility and tractable Jacobian determinant estimation.
- The log-determinant of the Jacobian is estimated using a stochastic estimator based on the implicit function theorem, enabling differentiable training.
- A scalable sampling and density evaluation algorithm is developed using iterative root-finding and implicit differentiation, with computational overhead similar to ResFlows.
- The method leverages spectral normalization and Lipschitz constraints on the residual blocks to ensure invertibility and numerical stability.
- The model is trained using Adam with a learning rate of $10^{-3}$, and log-determinant terms are estimated using geometric or Poisson distributions over the number of terms.
Experimental results
Research questions
- RQ1Can implicit invertible mappings defined by root-finding equations provide a richer function space than explicit mappings in normalizing flows?
- RQ2Does a single-block ImpFlow exactly represent functions that multi-block ResFlows can only approximate with non-negligible error?
- RQ3Can ImpFlows achieve better density modeling performance than ResFlows with comparable model size and computational cost?
- RQ4Is the training and sampling of implicit flows scalable and practical, with manageable computational overhead?
Key findings
- ImpFlows outperform ResFlows on all tested benchmarks, including image and tabular density modeling tasks, with comparable parameter counts and computational cost.
- On the CIFAR10 dataset, ImpFlows achieve a test NLL of 2.88 bits/dim, outperforming the 2.92 bits/dim achieved by a 200-block ResFlow.
- On the MINIBOONE dataset, a 20-block ImpFlow achieves a test NLL of 0.48 bits/dim, significantly outperforming ResFlow, which overfits due to data scarcity.
- Theoretical analysis shows that the function space of single-block ImpFlows is strictly richer than that of two-block ResFlows, and ImpFlows can exactly represent functions with non-negligible ResFlow approximation error.
- Empirical results show that the performance gap between ImpFlows and ResFlows diminishes with increasing depth, indicating that ImpFlows achieve higher capacity with fewer blocks.
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.