
TarFlow
Diffusion and generative79 ops42.6K params
A normalizing flow made of causal Transformer blocks that transform a sequence of image patches.
Diffusion and generative · 79 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
This model is STARFlow, a generative model based on normalizing flows whose core is the Transformer Autoregressive Flow. Its paper makes generation conditional by prepending a control signal, such as a class label or a caption, to the input of the flow.
About this model's family
TarFlow is a normalizing flow, a likelihood-based model for continuous inputs, built from Transformers. Its paper describes it as a Transformer-based variant of Masked Autoregressive Flows: a stack of autoregressive Transformer blocks on image patches, with the autoregression direction alternating between layers.
Each flow block contains a sequence permutation operation, a standard causal Transformer, and an affine transformation of the permuted inputs. During training the flow is computed in parallel with causal masks, but sampling reverses the series of causal Transformers, and that reverse step is sequential along the sequence.
STARFlow builds on the same core, which its paper calls Transformer Autoregressive Flow (TARFlow). It adds a deep-shallow design, in which one deep Transformer block holds most of the representational capacity and a few shallow Transformer blocks complement it. It also models the latent space of pretrained autoencoders, which its paper found more effective than direct pixel-level modeling. The STARFlow paper notes that the model remains an end-to-end normalizing flow, which allows exact maximum likelihood training in continuous spaces without discretization.
Key idea. TarFlow shows that a stack of autoregressive Transformer blocks on image patches, alternating direction between layers, makes a normalizing flow that can model and generate pixels directly.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{zhai2025normalizingflowscapablegenerative,
title={Normalizing Flows are Capable Generative Models},
author={Shuangfei Zhai and Ruixiang Zhang and Preetum Nakkiran and David Berthelot and Jiatao Gu and Huangjie Zheng and Tianrong Chen and Miguel Angel Bautista and Navdeep Jaitly and Josh Susskind},
year={2025},
eprint={2412.06329},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2412.06329},
}