Skip to main content
QUICK REVIEW

[Paper Review] Block Neural Autoregressive Flow

Nicola De Cao, Ivan Titov|arXiv (Cornell University)|Apr 9, 2019
Gaussian Processes and Bayesian InferenceComputer Science30 references22 citations
TL;DR

This paper introduces Block Neural Autoregressive Flow (B-NAF), a compact normalizing flow that directly parameterizes invertible, autoregressive transformations using block-structured weight matrices to ensure strict monotonicity and invertibility without a separate conditioner network. B-NAF achieves state-of-the-art density estimation and variational inference performance with orders of magnitude fewer parameters than existing universal approximators like NAF and Sylvester flows.

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.

Motivation & Objective

  • To address the high parameter cost of neural autoregressive flows (NAFs), which require large conditioner networks that scale quadratically with the flow width.
  • To develop a more compact universal approximator for density functions that maintains invertibility and efficient Jacobian computation.
  • To eliminate the need for a separate conditioner network by directly designing a feed-forward network with block matrices that enforce autoregressive and monotonic behavior.
  • To achieve competitive performance in density estimation and variational inference with significantly reduced model size and memory footprint.
  • To enable efficient amortized inference in deep latent variable models by minimizing trainable parameters while preserving expressivity.

Proposed method

  • Design a feed-forward neural network where weight matrices are partitioned into block matrices that enforce zero gradients from future variables, ensuring autoregressive structure.
  • Enforce strict monotonicity by constraining each block such that ∂y_i/∂x_i > 0, guaranteeing invertibility without requiring a conditioner network.
  • Use a single shared transformation network to parametrize the flow, replacing the hypernetwork paradigm of NAFs, thereby reducing parameter count.
  • Apply permutation of variables after each flow block to allow modeling of complex dependencies across all dimensions.
  • Construct the flow as a composition of such blocks, enabling efficient density evaluation and sampling via tractable Jacobian determinant computation.
  • Amortize flow parameters by predicting only bias and two scaling vectors per layer, rather than full weight matrices, for memory efficiency in variational inference.

Experimental results

Research questions

  • RQ1Can a normalizing flow be designed to be a universal approximator without relying on a large conditioner network?
  • RQ2Is it possible to achieve universal approximation in density modeling using a compact, directly parameterized flow with minimal trainable parameters?
  • RQ3How does a flow that directly enforces autoregressive and monotonic structure compare to NAFs and other established flows in terms of performance and efficiency?
  • RQ4Can such a flow maintain strong performance in amortized variational inference while drastically reducing the number of trainable parameters?
  • RQ5Does eliminating the conditioner network lead to a more efficient and scalable architecture for deep generative models?

Key findings

  • B-NAF achieves competitive log-likelihood performance on MNIST, Freyfaces, Omniglot, and Caltech 101 Silhouettes, outperforming normal VAEs, planar flows, and IAFs across all datasets.
  • Despite using only 8 flows and 4d hidden units, B-NAF matches or exceeds the performance of models with 16 flows (e.g., Sylvester flows) from van den Berg et al. (2018).
  • B-NAF uses 6.16× to 9.35× fewer trainable parameters than orthogonal and Householder parametrizations of Sylvester flows, respectively.
  • B-NAF uses 14.45× fewer parameters than IAFs, demonstrating that IAFs are significantly over-parameterized for the same task.
  • The model achieves strong performance in amortized variational inference with only 7.7k parameters per data point, compared to 50.7k–76.8k in fully amortized Sylvester flows.
  • The absence of a conditioner network enables a more memory-efficient architecture, making B-NAF suitable for large-scale deep generative models with high-capacity decoders.

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.