Visual Autoregressive Modeling (VAR Next-Scale)
Coarse-to-Fine VQ2024 ยท Peking University & ByteDance (Tian et al.)Next-scale discrete visual prediction outperforming diffusion models in quality & speed
Intuition & Key Idea
ELI5 GuideWhy this model was invented and how it transforms generation
"Generates images coarse-to-fine from a tiny 1ร1 thumbnail to a crisp 16ร16 HD image in a few multi-scale parallel resolution steps."
A painter roughing out broad color shapes on the canvas first, then stepping in to paint individual leaves and eyelashes in fine detail.
Layout is established at 1x1 before high-frequency textures are synthesized.
Generates full image in 10 scale steps instead of 256 raster steps.
First autoregressive visual model to surpass standard Diffusion models.
All tokens inside scale k are predicted in parallel conditioned on scales < k.
1. Predict Scale 1 (1x1 Global Blueprint)
Conditioned on class label or text prompt, predict the initial 1x1 token representing the global semantic composition.
Establishes color scheme, high-level subject, and broad layout in 1 step.
Instead of generating tokens one by one in 8โ500 serial passes, NCM generates an entire response in only 3 hierarchy passes. Within each pass, all horizontal positions are predicted in parallel.
One token at a time. The GPU is starved waiting for VRAM memory transfers on every single word.
Plans high-level thought first. Emits all 8 tokens in a single parallel burst at Level 3.
GPU Memory Hierarchy & HBM Traffic for this Step
HBM โ SRAM on-chipLoads initial prompt conditioning
Active Tensor Dimensions & Memory Shapes
The first autoregressive model to decisively beat Diffusion Transformers (DiT) in image generation quality while running ~20x faster. Proved that natural image order is multi-scale coarse-to-fine resolution, not 1D raster scan.
Training Objective:Multi-Scale Cross-Entropy Loss: L = -โ_{k=1}^K log P_ฮธ(R_k | R_1..R_{k-1})
Inference Bottleneck:O(K) scale steps (K=7 scales, parallel within each scale grid)