Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction

Keyu Tian, Yi Jiang, Zehuan Yuan, Bingyue Peng, Liwei Wang

Introduction

Autoregressive (AR) models have revolutionized natural language processing, with the GPT series demonstrating remarkable scaling properties. However, in the visual domain, AR models have historically lagged behind Diffusion models. This performance gap stems from the traditional "raster-scan" approach, which flattens 2D images into 1D sequences. This paper introduces Visual Autoregressive (VAR) modeling, a new paradigm that shifts from "next-token" to "next-scale" prediction, enabling AR models to finally surpass Diffusion Transformers (DiT) in both quality and speed.

The Problem with Raster-Scan Autoregression

Traditional visual AR models treat images like text, predicting pixels or tokens one-by-one in a linear order (left-to-right, top-to-bottom). This approach suffers from three major flaws:

  1. Mathematical Inconsistency: It forces a unidirectional dependency on data that is inherently bidirectional.
  2. Structural Loss: Flattening disrupts the spatial locality and 2D structure of an image.
  3. Inefficiency: Generating an image token-by-token is computationally expensive ($O(n^6)$ complexity) and slow.

Consequently, these models failed to exhibit the predictable scaling laws—where performance improves linearly with more data and parameters—that made LLMs so successful.

Methods: Next-Scale Prediction

The core innovation of VAR is redefining the autoregressive order as a hierarchy of scales rather than a sequence of pixels. Instead of predicting the next token in a sequence, the model predicts an entire higher-resolution token map based on all previous lower-resolution maps.

The VAR framework generates images by predicting higher-resolution token maps from lower-resolution ones.

This process utilizes a multi-scale quantized autoencoder (VQVAE) to encode images into discrete token maps at resolutions ranging from $1 \times 1$ to $16 \times 16$. By generating tokens within a scale in parallel, VAR reduces complexity to $O(n^4)$ and aligns the model's objective with the natural hierarchical structure of visual perception—seeing the "forest" before the "trees."

Key Results and Scaling Laws

VAR is the first visual AR model to demonstrate clear power-law scaling, mirroring the behavior of LLMs with a near-perfect linear correlation (-0.998) between model compute and performance.

On the ImageNet 256×256 benchmark, VAR achieved a state-of-the-art Fréchet Inception Distance (FID) of 1.73, significantly outperforming the AR baseline (18.65) and even surpassing the Diffusion Transformer (DiT-XL/2 at 2.27).

VAR achieves superior FID and inference speed compared to diffusion and traditional autoregressive models, with clear scaling across model sizes (0.3B to 5B).

Beyond raw generation, the model's understanding of global-to-local relationships allows it to perform zero-shot downstream tasks like in-painting, out-painting, and image editing without any task-specific fine-tuning. Furthermore, VAR is roughly 20x faster than traditional AR models and requires significantly fewer training epochs than diffusion-based counterparts.

Conclusion

By moving beyond the limitations of raster-scan sequences, VAR unlocks the true potential of autoregressive modeling for computer vision. It offers a scalable, efficient, and high-performance alternative to diffusion models, providing a promising path forward for high-resolution image and video synthesis.

Summary updated

BibTeX
@inproceedings{tian2024visual,
  author = {Keyu Tian and Yi Jiang and Zehuan Yuan and BINGYUE PENG and Liwei Wang},
  title = {{Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=gojL67CfS8},
}
Figure