Skip to main content
QUICK REVIEW

[Paper Review] Masked Autoregressive Flow for Density Estimation

George Papamakarios, Theo Pavlakou|arXiv (Cornell University)|May 19, 2017
Model Reduction and Neural NetworksPhysics and Astronomy36 references202 citations
TL;DR

MAF introduces a stack of masked autoregressive models to form a flexible normalizing flow for density estimation, achieving state-of-the-art results on several datasets and outperforming RealNVP.

ABSTRACT

Autoregressive models are among the best performing neural density estimators. We describe an approach for increasing the flexibility of an autoregressive model, based on modelling the random numbers that the model uses internally when generating data. By constructing a stack of autoregressive models, each modelling the random numbers of the next model in the stack, we obtain a type of normalizing flow suitable for density estimation, which we call Masked Autoregressive Flow. This type of flow is closely related to Inverse Autoregressive Flow and is a generalization of Real NVP. Masked Autoregressive Flow achieves state-of-the-art performance in a range of general-purpose density estimation tasks.

Motivation & Objective

  • Motivate neural density estimators that are flexible yet tractable for exact density evaluation.
  • Propose a deeper normalizing flow by stacking autoregressive models via masking (MAF).
  • Show theoretical connections between MAF, Inverse Autoregressive Flow (IAF), and Real NVP.
  • Evaluate MAF against Real NVP and MADE variants on diverse density estimation tasks.
  • Demonstrate conditional density estimation extensions and practical implementations.

Proposed method

  • Model p(x) with autoregressive conditionals using Gaussian conditionals parameterized by MADE with masking.
  • Stack multiple autoregressive layers so that the random numbers of one layer drive the next (MAF as a flow).
  • Compute exact densities in one forward pass via MADE-based masking, enabling parallel evaluation.
  • Relate MAF to IAF and Real NVP to clarify computational trade-offs and theoretical connections.
  • Introduce conditional MAF by augmenting inputs with side information and stacking MADEs conditionally.

Experimental results

Research questions

  • RQ1How can stacking autoregressive models as a flow improve density estimation beyond single autoregressive models?
  • RQ2What are the computational trade-offs between MAF and IAF for density estimation and sampling?
  • RQ3How does MAF compare to Real NVP and MADE variants across standard density estimation benchmarks?
  • RQ4Can MAF be extended to conditional density estimation effectively?

Key findings

  • MAF outperforms Real NVP on unconditional density estimation across multiple datasets.
  • MAF variants (including MAF MoG) achieve state-of-the-art or competitive results on UCI datasets and BSDS300 image patches.
  • MAF provides strong density estimates with one-pass evaluation for x, while sampling remains sequential across D layers, contrasting with IAF.
  • MAF MoG (5) achieves the best reported result on BSDS300 among single models (156.36 nats).
  • Conditional MAF improves density estimation on MNIST and CIFAR-10 compared to several baselines, with MADE MoG often excelling.
  • Across datasets (POWER, GAS, HEPMASS, MINIBOONE, BSDS300), MAF and its variants generally outperform Real NVP in unconditional settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.