Full list of architectures (presets)

We list all implemented NF architectures and their respective class names below. Using these presets facilitates experimentation and modeling, however you can also modify each architecture and build new ones.

Autoregressive architectures

We provide the list of autoregressive architectures in the table below. Import them with from torchflows.bijections.finite.autoregressive import <class name>. Click the architecture name to see the API and usage examples. Check the API for all autoregressive architectures here.

Architecture

Reference

NICE

Dinh et al. NICE: Non-linear Independent Components Estimation (2015)

RealNVP

Dinh et al. Density estimation using Real NVP (2017)

Inverse RealNVP

Dinh et al. Density estimation using Real NVP (2017)

MAF

Papamakarios et al. Masked Autoregressive Flow for Density Estimation (2018)

IAF

Kingma et al. Improving Variational Inference with Inverse Autoregressive Flow (2017)

Coupling RQ-NSF

Durkan et al. Neural Spline Flows (2019)

Masked autoregressive RQ-NSF

Durkan et al. Neural Spline Flows (2019)

Inverse autoregressive RQ-NSF

Durkan et al. Neural Spline Flows (2019)

Coupling LR-NSF

Dolatabadi et al. Invertible Generative Modeling using Linear Rational Splines (2020)

Masked autoregressive LR-NSF

Dolatabadi et al. Invertible Generative Modeling using Linear Rational Splines (2020)

Inverse autoregressive LR-NSF

Dolatabadi et al. Invertible Generative Modeling using Linear Rational Splines (2020)

Coupling deep SF

Huang et al. Neural Autoregressive Flows (2018)

Masked autoregressive deep SF

Huang et al. Neural Autoregressive Flows (2018)

Inverse autoregressive deep SF

Huang et al. Neural Autoregressive Flows (2018)

Coupling dense SF

Huang et al. Neural Autoregressive Flows (2018)

Masked autoregressive dense SF

Huang et al. Neural Autoregressive Flows (2018)

Inverse autoregressive dense SF

Huang et al. Neural Autoregressive Flows (2018)

Coupling deep-dense SF

Huang et al. Neural Autoregressive Flows (2018)

Masked autoregressive deep-dense SF

Huang et al. Neural Autoregressive Flows (2018)

Inverse autoregressive deep-dense SF

Huang et al. Neural Autoregressive Flows (2018)

Unconstrained monotonic neural network

Wehenkel and Louppe Unconstrained Monotonic Neural Networks (2019)

Multiscale architectures

We provide the list of multiscale autoregressive architectures in the table below. Import them with from torchflows.bijections.finite.multiscale import <class name>. These architectures are specifically made for image modeling, but can also be used for voxels or tensors with more dimensions. Click the architecture name to see the API and usage examples. Check the API for all multiscale architectures here.

Architecture

Reference

MultiscaleNICE

Dinh et al. NICE: Non-linear Independent Components Estimation (2015)

Multiscale RealNVP

Dinh et al. Density estimation using Real NVP (2017)

Multiscale RQ-NSF

Durkan et al. Neural Spline Flows (2019)

Multiscale LR-NSF

Dolatabadi et al. Invertible Generative Modeling using Linear Rational Splines (2020)

Multiscale deep SF

Huang et al. Neural Autoregressive Flows (2018)

Multiscale dense SF

Huang et al. Neural Autoregressive Flows (2018)

Multiscale deep-dense SF

Huang et al. Neural Autoregressive Flows (2018)

Shift Glow

Kingma and Dhariwal Glow: Generative Flow with Invertible 1x1 Convolutions (2018)

Affine Glow

Kingma and Dhariwal Glow: Generative Flow with Invertible 1x1 Convolutions (2018)

RQS Glow

Kingma and Dhariwal Glow: Generative Flow with Invertible 1x1 Convolutions (2018)

LRS Glow

Kingma and Dhariwal Glow: Generative Flow with Invertible 1x1 Convolutions (2018)

Deep sigmoidal Glow

Kingma and Dhariwal Glow: Generative Flow with Invertible 1x1 Convolutions (2018)

Dense sigmoidal Glow

Kingma and Dhariwal Glow: Generative Flow with Invertible 1x1 Convolutions (2018)

Deep-dense sigmoidal Glow

Kingma and Dhariwal Glow: Generative Flow with Invertible 1x1 Convolutions (2018)

Residual architectures

We provide the list of iterative residual architectures in the table below. Import them with from torchflows.bijections.finite.residual import <class name>. Click the architecture name to see the API and usage examples. Check the API for all residual architectures here.

Architecture

Reference

Invertible ResNet

Behrmann et al. Invertible Residual Networks (2019)

ResFlow

Chen et al. Residual Flows for Invertible Generative Modeling (2020)

ProximalResFlow

Hertrich Proximal Residual Flows for Bayesian Inverse Problems (2022)

We also list presets for some convolutional iterative residual architectures in the table below. These are suitable for image modeling.

Architecture

Reference

Convolutional invertible ResNet

Behrmann et al. Invertible Residual Networks (2019)

Convolutional ResFlow

Chen et al. Residual Flows for Invertible Generative Modeling (2020)

We finally list presets for residual architectures, based on the matrix determinant lemma. These only implement the inverse transformation. This means they can be used for sampling (and variational inference), but not for density estimation on arbitrary data.

Architecture

Reference

Planar flow

Rezende and Mohamed Variational Inference with Normalizing Flows (2016)

Radial flow

Rezende and Mohamed Variational Inference with Normalizing Flows (2016)

Sylvester flow

Van den Berg et al. Sylvester Normalizing Flows for Variational Inference (2019)

Continuous architectures

We provide the list of continuous architectures in the table below. Import them with from torchflows.bijections.continuous import <class name> and wrap them with ContinuousFlow. Click the architecture name to see the API and usage examples. Check the API for all continuous architectures here.

Architecture

Reference

DDNF

Salman et al. Deep Diffeomorphic Normalizing Flows (2018)

FFJORD

Grathwohl et al. FFJORD: Free-form Continuous Dynamics for Scalable Reversible Generative Models (2018)

RNODE

Finlay et al. How to train your neural ODE: the world of Jacobian and kinetic regularization (2020)

OT-Flow

Onken et al. OT-Flow: Fast and Accurate Continuous Normalizing Flows via Optimal Transport (2021)

We also list presets for convolutional continuous architectures in the table below. These are suitable for image modeling.

Architecture

Reference

Convolutional DDNF

Salman et al. Deep Diffeomorphic Normalizing Flows (2018)

Convolutional FFJORD

Grathwohl et al. FFJORD: Free-form Continuous Dynamics for Scalable Reversible Generative Models (2018)

Convolutional RNODE

Finlay et al. How to train your neural ODE: the world of Jacobian and kinetic regularization (2020)