HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Block Neural Autoregressive Flow

Nicola De Cao; Ivan Titov; Wilker Aziz

Block Neural Autoregressive Flow

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.

Code Repositories

nicola-decao/BNAF
Official
pytorch
Mentioned in GitHub
sshish/NF
pytorch
Mentioned in GitHub
metachenyiyan/BreezeForest
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
density-estimation-on-bsds300B-NAF
Log-likelihood: 157.36
density-estimation-on-caltech-101B-NAF
NLL: 105.42
Negative ELBO: 94.91
density-estimation-on-freyfacesB-NAF
NLL: 4.42
Negative ELBO: 4.33
density-estimation-on-omniglotB-NAF
NLL: 100.08
Negative ELBO: 94.83
density-estimation-on-uci-gasB-NAF
Log-likelihood: 12.06
density-estimation-on-uci-hepmassB-NAF
Log-likelihood: -14.71
density-estimation-on-uci-minibooneB-NAF
Log-likelihood: -8.95
density-estimation-on-uci-powerB-NAF
Log-likelihood: 0.61

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Block Neural Autoregressive Flow | Papers | HyperAI