Generative Vision Atlas

core

STARFlow: Scaling Latent Normalizing Flows for High-resolution Image Synthesis

Jiatao Gu, Tianrong Chen, David Berthelot, Huangjie Zheng, Shuangfei Zhai · Apple · 2025-06 · arXiv:2506.06276

Why it matters

Revives normalizing flows as a serious high-resolution generator using a transformer autoregressive flow with a deep-shallow architecture, trained in a pretrained autoencoder's latent space. Notable for an explicit ablation finding latent-space modeling beats pixel-level for this family, and for giving exact likelihoods that diffusion and flow matching do not.

What this paper does

read: full text

Before this

Diffusion dominated high-resolution image generation but needs iterative denoising at both training and inference. Discrete autoregressive models avoid iteration but lose fidelity to quantization. Normalizing flows received little attention in the recent wave of generative modeling despite being a principled likelihood-based approach, and TARFlow had shown transformer autoregressive flows were promising without demonstrating they could scale to high resolution.

The problem

Whether autoregressive normalizing flows can scale to high-resolution class-conditional and text-to-image generation, competitive with diffusion and autoregressive baselines, while keeping exact maximum-likelihood training.

The idea

Stack transformer autoregressive flow blocks in a deep-shallow allocation, one deep block carrying most of the model's capacity and a few lightweight shallow blocks doing local refinement, and model in a pretrained autoencoder's latent space rather than pixels. The authors prove that three or more stacked autoregressive-flow blocks with alternating variable orderings are universal approximators of continuous densities, and derive a classifier-free guidance rule directly from the flow's own score.

How it works

STARFlow operates in the latent space of a pretrained SD-1.4 VAE, a 32 by 32 token grid for 256-pixel images, not in pixels. The flow is trained on latents perturbed with Gaussian noise at scale 0.3 rather than on clean latents, and a pixel decoder is separately fine-tuned on noisy latents with an L2, LPIPS and GAN loss so it stays compatible with the flow's non-clean output. The training objective is exact log-likelihood, not noise, velocity or a discrete token. Each latent coordinate is generated autoregressively as an affine transform of previously generated coordinates, so the network predicts a per-coordinate mean and log-variance rather than a denoising target. The deep-shallow architecture default is 18 layers then 6 shallow two-layer blocks at width 2048 for ImageNet at 1.4B parameters, or 24 layers then 6 shallow blocks at width 3072 for text-to-image at 3.8B parameters. Only the deep block receives conditioning, which comes from a frozen T5-XL encoder for text.

Evidence

On ImageNet at 256 pixels the 1.4B model reaches FID 2.40 using classifier-free guidance with weight between 3.0 and 4.0, trained on 400 million images at batch size 512 across 32 H100 GPUs for about 22 weeks. Reported at similar scale in the same paper, SiT reaches 2.06 at 675M parameters, VAR reaches 1.73 at 2.0B parameters and MAR reaches 1.55 at 943M parameters, so STARFlow is competitive but does not beat the best diffusion or autoregressive baselines at these sizes. Zero-shot COCO text-to-image FID is 3.00 for the 1.4B model against DiT-XL slash 2 at 3.04 with 674M parameters and EDM2-XXL at 1.25 with 1.5B parameters. On a larger text-to-image setup trained on roughly 700 million pairs, STARFlow reaches FID 9.1, behind Imagen's 7.3, Parti-20B's 7.2 and eDiff-I's 7.0. GenEval overall score is 0.56, slightly above SDXL's 0.55.

Limitations

The authors concede that relying entirely on a pretrained, frozen autoencoder leaves joint design of the latent space and the flow unexplored. Inference remains un-optimized despite the deep-shallow speedup, since autoregressive sampling still proceeds sequentially through all coordinates and blocks. Training cannot use clean latents directly; noise injection is required for stability and complicates the pipeline. Evaluation is restricted to class- and text-conditional image generation on standard benchmarks, and the authors state that generalization to video, 3D or more diverse real-world distributions remains to be seen. They also note the decoder fine-tuning may have reached a performance ceiling, with reconstruction FID around 2.73 bounding a generation FID of 2.40.

Why it matters

This is presented as the first successful demonstration of normalizing flows operating effectively at this scale and resolution, giving the field a third paradigm alongside diffusion and autoregressive modeling that keeps a tractable exact likelihood, something diffusion and flow matching do not provide directly. The deep-shallow architecture and the score-derived guidance rule are general enough that they could transfer to other autoregressive-flow designs.

Abstract, in the authors' own words

We present STARFlow, a scalable generative model based on normalizing flows that achieves strong performance in high-resolution image synthesis. The core of STARFlow is Transformer Autoregressive Flow (TARFlow), which combines the expressive power of normalizing flows with the structured modeling capabilities of Autoregressive Transformers. We first establish the theoretical universality of TARFlow for modeling continuous distributions. Building on this foundation, we introduce several key architectural and algorithmic innovations to significantly enhance scalability: (1) a deep-shallow design, wherein a deep Transformer block captures most of the model representational capacity, complemented by a few shallow Transformer blocks that are computationally efficient yet substantially beneficial; (2) modeling in the latent space of pretrained autoencoders, which proves more effective than direct pixel-level modeling; and (3) a novel guidance algorithm that significantly boosts sample quality. Crucially, our model remains an end-to-end normalizing flow, enabling exact maximum likelihood training in continuous spaces without discretization. STARFlow achieves competitive performance in both class-conditional and text-conditional image generation tasks, approaching state-of-the-art diffusion models in sample quality. To our knowledge, this work is the first successful demonstration of normalizing flows operating effectively at this scale and resolution.

Research line

Normalizing-flow revivalemerging

Design-axis choices

Method note — the shared flow-matching interpolation

Every flow-matching / rectified-flow paper in this atlas trains toward a straight-line path between a noise sample x₀ and a data sample x₁:

xt=(1t)x0+tx1,vθ(xt,t)x1x0x_t = (1-t)\,x_0 + t\,x_1, \qquad v_\theta(x_t, t) \approx x_1 - x_0

Builds on

Nothing recorded yet.

Built on by

Nothing recorded yet.