Block Neural Autoregressive Flow

Nicola De Cao, Ivan Titov, Wilker Aziz
4/9/2019
stat.MLcs.LG

Official code: nicola-decao/BNAF (183 stars, MIT, last commit 2021-08-19).

Abstract

Normalising flows (NFS) map two density functions via a differentiable bijection whose Jacobian determinant can be computed efficiently. Recently, as an alternative to hand-crafted bijections, Huang et al. (2018) proposed neural autoregressive flow (NAF) which is a universal approximator for density functions. Their flow is a neural network (NN) whose parameters are predicted by another NN. The latter grows quadratically with the size of the former and thus an efficient technique for parametrization is needed. We propose block neural autoregressive flow (B-NAF), a much more compact universal approximator of density functions, where we model a bijection directly using a single feed-forward network. Invertibility is ensured by carefully designing each affine transformation with block matrices that make the flow autoregressive and (strictly) monotone. We compare B-NAF to NAF and other established flows on density estimation and approximate inference for latent variable models. Our proposed flow is competitive across datasets while using orders of magnitude fewer parameters.

View on arXivView PDF

Code Implementations(1)

nicola-decao/BNAFOfficial100%
MIT

Pytorch implementation of Block Neural Autoregressive Flow

18334Shell, PythonApr 2, 20195 years agoMIT
density-estimationneural-networksnormalizing-flowsvariational-autoencoder

Similar Papers

Cite this paper

@article{cao2019block,
  title  = {Block Neural Autoregressive Flow},
  author = {Nicola De Cao and Ivan Titov and Wilker Aziz},
  year   = {2019},
  eprint = {1904.04676},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.04676}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1904.04676.svg)](https://codeofpaper.com/paper/1904.04676)

Discussion