HINT: Hierarchical Invertible Neural Transport for General and Sequential Bayesian inference

Gianluca Detommaso, Jakob Kruse, Lynton Ardizzone, Carsten Rother, Ullrich Köthe, Robert ScheichlarXiv 2019

Abstract

Many recent invertible neural architectures are based on coupling block designs where variables are divided in two subsets which serve as inputs of an easily invertible (usually affine) triangular transformation. While such a transformation is invertible, its Jacobian is very sparse and thus may lack expressiveness. This work presents a simple remedy by noting that subdivision and (affine) coupling can be repeated recursively within the resulting subsets, leading to an efficiently invertible block with dense, triangular Jacobian. By formulating our recursive coupling scheme via a hierarchical architecture, HINT allows sampling from a joint distribution $p(y,x)$ and the corresponding posterior $p(x|y)$ using a single invertible network. We evaluate our method on some standard data sets and benchmark its full power for density estimation and Bayesian inference on a novel data set of 2D shapes in Fourier parameterization, which enables consistent visualization of samples for different dimensionalities.

Introduction

Invertible Neural Networks (INNs), particularly those based on normalizing flows, have become a cornerstone of generative modeling due to their ability to provide exact density calculation and efficient sampling. However, a significant bottleneck exists in popular architectures like RealNVP or GLOW: they rely on coupling blocks that transform only half of the variables at a time. This design choice, while ensuring easy invertibility, results in a sparse Jacobian matrix, limiting the expressive power of a single block. Consequently, modeling complex dependencies often requires stacking hundreds of such blocks, leading to high computational costs. HINT (Hierarchical Invertible Neural Transport) addresses this by introducing a recursive coupling scheme that achieves the dense interactions of autoregressive models with the efficiency of coupling-based INNs.

Methods

Recursive Coupling Blocks

The core innovation of HINT is the recursive application of the coupling principle. Instead of a single split, the input vector is subdivided recursively, with coupling transformations applied at each level. This process effectively "fills in" the sparse lower-triangular portion of the Jacobian matrix, allowing for much denser interactions between variables within a single block.

Jacobian sparsity comparison between standard coupling blocks (left) and recursive HINT blocks (right).

Hierarchical Architecture for Inference

For Bayesian tasks requiring the posterior $p(x | y)$, HINT organizes the flow into a hierarchical structure of "lanes." Information is constrained to flow from the observation lane ($y$) to the parameter lane ($x$), but not vice versa. This allows a single model to represent the joint distribution $p(x, y)$ while remaining perfectly suited for conditional sampling. By passing $y$ through its lane, the model generates a partial latent code; sampling the remaining latent variables then allows for the generation of $x$ conditioned on $y$.

Hierarchical architecture for joint and conditional sampling, showing the flow of information between observation and parameter lanes.

Experimental Evaluation

The authors evaluated HINT across several benchmarks:

  • UCI Tabular Data: HINT consistently achieved higher log-likelihoods than standard RealNVP architectures on datasets like Power, Gas, and MiniBooNE, even with a matched parameter budget.
  • Fourier Shapes: A novel dataset of 2D closed curves parameterized by Fourier coefficients. This benchmark demonstrated HINT's superior ability to capture geometric symmetries and sharp features that standard INNs often blur. Quantitatively, HINT showed significantly better Intersection-over-Union (IoU) and lower Hausdorff distance.
  • Sequential Bayesian Filtering: In Lotka-Volterra predator-prey modeling, HINT successfully tracked hidden populations over time, showing clear posterior contraction as more data was observed.

Discussion and Conclusion

HINT demonstrates that dense interactions are often more critical than network depth for high-fidelity density estimation. While the recursive implementation currently introduces a computational overhead (roughly 2-10x slower than standard coupling), the theoretical complexity remains comparable. Future work focusing on specialized masking operations could potentially eliminate this speed gap. Ultimately, HINT provides a unified and expressive framework for both general density estimation and complex Bayesian inference tasks.

Summary updated

BibTeX
@misc{detommaso2019hint,
  author = {Gianluca Detommaso and Jakob Kruse and Lynton Ardizzone and Carsten Rother and Ullrich Köthe and Robert Scheichl},
  title = {{HINT: Hierarchical Invertible Neural Transport for General and Sequential Bayesian inference}},
  year = {2019},
  eprint = {1905.10687},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.10687},
}
Figure