Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Normalizing Flows are Capable Generative Models

About

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.

Shuangfei Zhai, Ruixiang Zhang, Preetum Nakkiran, David Berthelot, Jiatao Gu, Huangjie Zheng, Tianrong Chen, Miguel Angel Bautista, Navdeep Jaitly, Josh Susskind• 2024

Related benchmarks

TaskDatasetResultRank
Class-conditional Image GenerationImageNet 256x256--
441
Class-conditional Image GenerationImageNet 64x64
FID4.21
126
Image GenerationImageNet 64x64
FID18.42
114
Class-conditional Image GenerationImageNet 64x64 (test)
FID2.66
86
Class-conditional generationImageNet 256 x 256 1k (val)
FID5.56
67
Generative ModelingImageNet 64x64 unconditional (test)
BPD2.99
12
Molecular SamplingTri-alanine (AL3) 10^4 samples (test)
E-W21.051
12
Image GenerationConditional ImageNet 128x128 (test)
FID5.03
8
Molecular SamplingAlanine tetrapeptide (AL4) 10^4 samples (test)
E-W26.277
6
Showing 9 of 9 rows

Other info

Code

Follow for update