Abstract
In the past, normalizing generative flows have emerged as a promising class of generative models for natural images. This type of model has many modeling advantages: the ability to efficiently compute log-likelihood of the input data, fast generation, and simple overall structure. Normalizing flows remained a topic of active research but later fell out of favor, as visual quality of the samples was not competitive with other model classes, such as GANs, VQ-VAE-based approaches or diffusion models. In this paper we revisit the design of coupling-based normalizing flow models by carefully ablating prior design choices and using computational blocks based on the Vision Transformer architecture, not convolutional neural networks. As a result, we achieve a much simpler architecture that matches existing normalizing flow models and improves over them when paired with pretraining. While the overall visual quality is still behind the current state-of-the-art models, we argue that strong normalizing flow models can help advancing the research frontier by serving as building components of more powerful generative models.
Introduction
Normalizing flows (NFs) were once a premier class of generative models, prized for their ability to compute exact log-likelihoods and perform fast, one-pass generation. However, as generative modeling progressed, NFs were largely eclipsed by GANs and Diffusion models, which produced superior visual results. To remain competitive, NF research introduced increasingly complex "hacks"—such as multiscale architectures and specialized normalization layers—that made models difficult to scale and implement.
Jet revisits coupling-based normalizing flows with a focus on simplicity and modern architecture. By replacing traditional Convolutional Neural Network (CNN) backbones with Vision Transformers (ViT) and leveraging large-scale pretraining, Jet achieves state-of-the-art performance while stripping away the complexity of previous generations.
Methods
Jet is built on the classic coupling-based framework but introduces several critical modernizations to the standard pipeline:
- ViT Backbone: Instead of CNNs, Jet utilizes a Vision Transformer to predict the scaling and bias factors for data transformations. The global receptive field of the Transformer is better suited for capturing the complex dependencies required for invertible mappings.
- Radical Simplification: The authors explicitly removed multiscale structures, invertible dense layers, and specialized activation normalization (ActNorm), resulting in a "flat" and more scalable model.
- Identity Initialization: To ensure training stability without ActNorm, the final layer of the ViT is initialized with zeros. This causes the model to initially act as an identity function, gradually learning transformations as training progresses.
- Interleaved Splitting: The architecture alternates between channel-wise splitting (mixing color information) and spatial splitting (mixing pixels across the image).
- Sigmoid Scaling: A sigmoid function is used to constrain scale coefficients, preventing numerical instability when stacking many layers.
Key Results and Insights
The evaluation of Jet across ImageNet and CIFAR-10 benchmarks reveals several core advantages of the Transformer-based approach over traditional CNN-based flows.
- Efficiency and Scaling: As shown in the figures above, ViT blocks are significantly more compute-efficient than CNN blocks for reaching target log-likelihoods. Furthermore, Jet exhibits clear scaling laws: increasing the depth of the Transformer leads to predictable improvements in negative log-likelihood (NLL).
- State-of-the-Art Likelihood: Jet matches or exceeds the performance of previous gold-standard coupling flows like Flow++. On ImageNet-1k (64x64), a pretrained Jet model achieved an NLL of 3.58 bits-per-dimension (bpd), outperforming Flow++'s 3.69.
- The Power of Pretraining: A major finding is that normalizing flows benefit significantly from pretraining on large datasets like ImageNet-21k. When pretrained and then fine-tuned on CIFAR-10, Jet achieved 3.018 bpd, a leading result for its class.
Conclusion and Future Work
While Jet represents a significant step forward for normalizing flows, it is not without limitations. The visual quality of generated samples, while improved, still lacks the crispness found in modern Diffusion models. Additionally, the high expressive power of the ViT backbone can lead to overfitting on smaller datasets without proper regularization or pretraining.
However, the authors argue that Jet's value lies in its simplicity and mathematical properties. As a perfectly invertible model providing exact likelihoods, Jet can serve as a robust building block for more complex generative systems, potentially acting as the latent space for VAEs or autoregressive transformers.
Summary updated