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:
- Mathematical Inconsistency: It forces a unidirectional dependency on data that is inherently bidirectional.
- Structural Loss: Flattening disrupts the spatial locality and 2D structure of an image.
- 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.
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).
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