[Paper Review] Normalizing Flows are Capable Generative Models
This paper introduces TarFlow, a Transformer-based normalizing flow architecture that achieves state-of-the-art likelihood estimation on ImageNet 64x64 with under 3.0 bits per dimension, and generates high-quality, diverse images comparable to diffusion models—demonstrating that normalizing flows are capable generative models when combined with Gaussian noise augmentation, post-training denoising, and guidance techniques.
Normalizing Flows (NFs) are likelihood-based models for continuous inputs. They have demonstrated promising results on both density estimation and generative modeling tasks, but have received relatively little attention in recent years. In this work, we demonstrate that NFs are more powerful than previously believed. We present TarFlow: a simple and scalable architecture that enables highly performant NF models. TarFlow can be thought of as a Transformer-based variant of Masked Autoregressive Flows (MAFs): it consists of a stack of autoregressive Transformer blocks on image patches, alternating the autoregression direction between layers. TarFlow is straightforward to train end-to-end, and capable of directly modeling and generating pixels. We also propose three key techniques to improve sample quality: Gaussian noise augmentation during training, a post training denoising procedure, and an effective guidance method for both class-conditional and unconditional settings. Putting these together, TarFlow sets new state-of-the-art results on likelihood estimation for images, beating the previous best methods by a large margin, and generates samples with quality and diversity comparable to diffusion models, for the first time with a stand-alone NF model. We make our code available at https://github.com/apple/ml-tarflow.
Motivation & Objective
- To demonstrate that normalizing flows (NFs) are more powerful than previously believed and can achieve state-of-the-art performance in image generation.
- To address the limited practical adoption and stagnation in performance gains of NFs compared to diffusion and autoregressive models.
- To develop a scalable, end-to-end trainable NF architecture that directly models pixels without discretization or tokenization.
- To improve sample quality through novel training and inference techniques, including noise augmentation and guidance.
- To establish normalizing flows as a viable alternative to diffusion models for high-quality image generation.
Proposed method
- Proposes TarFlow, a stack of autoregressive Transformer blocks applied to image patches with alternating autoregressive directions (e.g., top-left to bottom-right and vice versa).
- Uses a causal Vision Transformer (ViT) to perform block-wise autoregressive transformations on image patches, enabling parallel training while maintaining strong modeling capacity.
- Applies Gaussian noise augmentation during training to improve perceptual quality of generated samples, contrasting with common uniform noise.
- Introduces a post-training score-based denoising procedure to refine generated samples by removing noise introduced during training.
- Develops a guidance method compatible with both class-conditional and unconditional NFs, enabling conditional image generation with improved quality.
- Trains the model end-to-end using maximum likelihood estimation (MLE) via the change of variables formula, ensuring exact likelihood computation and deterministic training.

Experimental results
Research questions
- RQ1Can normalizing flows achieve state-of-the-art likelihood estimation on image datasets like ImageNet 64x64 when equipped with a powerful, scalable architecture?
- RQ2Does Gaussian noise augmentation during training significantly improve the perceptual quality of generated images in normalizing flows?
- RQ3Can post-training denoising improve sample quality without compromising likelihood or requiring retraining?
- RQ4Is guidance—previously used in diffusion models—compatible and effective for normalizing flow-based generative modeling?
- RQ5Can a single, continuous, end-to-end normalizing flow model generate high-fidelity, diverse images comparable to diffusion models without discrete tokenization or VAEs?
Key findings
- TarFlow achieves a state-of-the-art likelihood of under 3.0 bits per dimension (BPD) on ImageNet 64x64, significantly outperforming previous NF methods.
- The model generates image samples with quality and diversity comparable to those of diffusion models, marking the first time a standalone normalizing flow achieves such performance.
- Gaussian noise augmentation during training is critical for high perceptual quality, outperforming uniform noise in generating realistic textures and details.
- The post-training denoising procedure effectively removes noise from generated samples, improving FID and perceptual fidelity without retraining.
- Guidance techniques enable high-quality class-conditional image generation with improved alignment to class labels, demonstrating compatibility with NFs.
- TarFlow's modular, Transformer-based architecture enables scalable, stable, and efficient training, overcoming previous limitations in NF capacity and performance.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.