All models

STARFlow

A normalizing flow made of causal Transformer blocks that transform a sequence of image patches.

Diffusion and generative · 79 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (26 KB)

Open in a new tab

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.

At a glance

Family
TarFlow
Parameters
42.6K
Operations
79
Framework
PyTorch
Recurrent
No
Published
ICML 2025
Cited by
5 (as of 29 October 2026)
Authors
Shuangfei Zhai, Ruixiang Zhang, Preetum Nakkiran and others
License
LicenseRef-Apple-Sample-Code
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m2727
Graph hash
47ef4b38226be1801fc14746ee5a71036492d9eb59d991556d4e970d7bbf78b7
Skeleton hash
56eebc14ff4a0c2ed1af012b0b7668dd35f54cf16f41e9102d8c94e6a0a7b8ac
Architecture hash
f9ec03574aa12c0bdedaa10cea99f0493e523950c642db34983d439b897dbfc3
Diagram SHA-256
d1fd043269954386af323e9fc339bee5b4b6f6bf2de0366bc44d018bc1015d83
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • TarFlow
  • STARFlow
  • Transformer Autoregressive Flow
  • normalizing flow
  • autoregressive flow
  • image generation
  • likelihood estimation
  • latent normalizing flow

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}