NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MintNet: Building Invertible Neural Networks with Masked Convolutions

Yang Song, Chenlin Meng, Stefano Ermon

Introduction

Invertible Neural Networks (INNs) are a cornerstone of generative modeling, specifically within the framework of normalizing flows. To be effective, these networks must balance two competing requirements: efficient inversion for fast sampling and tractable Jacobian determinants for exact likelihood evaluation. Traditionally, models have faced a trade-off. Architectures like Glow and RealNVP use coupling layers to ensure a triangular Jacobian, which simplifies computation but restricts expressivity. Conversely, models like i-ResNet offer greater flexibility but rely on expensive approximations for the Jacobian.

MintNet introduces a framework that achieves high architectural flexibility, exact Jacobian computation, and fast, parallelizable inversion by leveraging masked convolutions and a formal calculus of composition.

Methods: Masked Convolutions and Composition Rules

The core innovation of MintNet is the use of masked convolutions to enforce a triangular structure on the Jacobian matrix.

Masked convolutions in MintNet ensure a triangular Jacobian for efficient computation.

The Basic Module

By applying specific masking patterns to convolutional weights (similar to PixelCNN), MintNet ensures that the operation's Jacobian is triangular. This reduces the complexity of computing the determinant from $O(D^3)$ to $O(D)$, as it becomes the simple product of diagonal elements.

Composition and Inversion

The authors demonstrate that functions with triangular Jacobians are closed under addition and composition. This allows for the construction of deep, non-linear networks that maintain tractable math. To invert the network, MintNet employs a fixed-point iteration method. Unlike the sequential pixel-by-pixel inversion of autoregressive models, this convolutional approach is highly parallelizable on GPUs. To ensure full coverage of the receptive field, MintNet pairs lower-triangular layers with upper-triangular layers.

Key Results

MintNet was evaluated on MNIST, CIFAR-10, and ImageNet 32×32. The model consistently outperformed established normalizing flow architectures in terms of bits per dimension (bpd).

Performance comparison of MintNet against other normalizing flow models across standard benchmarks.

As shown in the results table, MintNet achieved state-of-the-art performance at the time of publication, reaching 0.98 bpd on MNIST and 3.32 bpd on CIFAR-10. Beyond generative performance, MintNet demonstrated high efficiency, using 30% to 74% fewer parameters than Glow and requiring significantly less hardware for training.

In classification tasks, MintNet reached 91.2% accuracy on CIFAR-10, narrowing the "invertibility tax" compared to standard non-invertible ResNets (92.6%). Furthermore, its iterative inversion method proved to be approximately 25 times faster than traditional autoregressive sampling.

Discussion and Limitations

MintNet provides a robust "recipe" for building INNs: if a function has a non-singular triangular Jacobian, it is guaranteed to be invertible. This generalizes the design of invertible layers beyond simple coupling mechanisms.

However, some challenges remain. The inversion algorithm is locally convergent, meaning it requires a good initialization to guarantee success. Additionally, the process depends on a step-size hyperparameter ($\alpha$) that often requires dataset-specific tuning. While MintNet significantly reduces the performance gap between invertible and non-invertible models in classification, a small margin still exists for future research to address.

Summary updated

BibTeX
@inproceedings{song2019mintnet,
  author = {Yang Song and Chenlin Meng and Stefano Ermon},
  title = {{MintNet: Building Invertible Neural Networks with Masked Convolutions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=sbUnQuZTFl},
}
Figure