All models

VAR

An autoregressive image generator that predicts token maps from coarse to fine scales instead of one token at a time.

Diffusion and generative · 1,392 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 (331 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

Parameters
419.2M
Operations
1,392
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2024
Cited by
152 (as of 26 October 2026)
Authors
Keyu Tian, Yi Jiang, Zehuan Yuan and others
License
MIT
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
m21247
Graph hash
549d7fc9fb7d91042ba45c5f2ce6fa9c50da7e913e5b5353b5be12142b85691f
Skeleton hash
5b28c5e000b8eef01e4721346a58b8415aa000967d315ac1097602d7bdf429ab
Architecture hash
5a412bc5d9211f49bf534f8d41a04b0823f474ab4da88cf0dc076b757462fa80
Diagram SHA-256
0e077939efb470e87dc1b75b1b41e5cc588f646dcf50c042f6815d0ddbff8754
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

VAR (Visual AutoRegressive modeling) generates images autoregressively but changes what is predicted at each step. Standard autoregressive image models emit visual tokens one by one in raster-scan order, from left to right and top to bottom. VAR instead generates multi-scale token maps from coarse to fine scales, with all tokens within a scale produced in parallel.

Two parts make this work. A multi-scale quantization autoencoder, with the same architecture as VQGAN but a modified quantization layer, encodes an image into token maps that share one codebook of 4096 entries across all scales. A decoder-only transformer akin to GPT-2, with adaptive normalization (AdaLN), then starts from a 1×1 token map and at each step predicts the next higher-resolution map conditioned on all previous ones. For class-conditional synthesis the class embedding serves as the start token.

On the ImageNet 256×256 benchmark, the paper reports that VAR with 2B parameters reaches an FID of 1.73, and that scaling up VAR models shows power-law scaling laws similar to those observed in LLMs. The authors' model table lists VAR-d16 at 256 resolution with 310M parameters and an FID of 3.55.

Key idea. VAR recasts autoregressive image generation as next-scale prediction, where a transformer predicts each higher-resolution token map from all coarser ones instead of predicting tokens in raster order.

  • VAR
  • Visual AutoRegressive modeling
  • visual autoregressive
  • next-scale prediction
  • next-resolution prediction
  • autoregressive image generation
  • multi-scale VQVAE
  • class-conditional image generation
  • VAR-d16

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

Cite the paper

@misc{tian2024visualautoregressivemodelingscalable,
      title={Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction}, 
      author={Keyu Tian and Yi Jiang and Zehuan Yuan and Bingyue Peng and Liwei Wang},
      year={2024},
      eprint={2404.02905},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2404.02905}, 
}