Autoregressive Image Generation without Vector Quantization

Tianhong Li, Yonglong Tian, He Li, Mingyang Deng, Kaiming He
2/3/2026

No official code found. Best implementation: LTH14/mar (1,941 stars, MIT, last commit 2026-02-20). 1 more below.

Abstract

Conventional wisdom holds that autoregressive models for image generation are typically accompanied by vector-quantized tokens. We observe that while a discrete-valued space can facilitate representing a categorical distribution, it is not a necessity for autoregressive modeling. In this work, we propose to model the per-token probability distribution using a diffusion procedure, which allows us to apply autoregressive models in a continuous-valued space. Rather than using categorical cross-entropy loss, we define a Diffusion Loss function to model the per-token probability. This approach eliminates the need for discrete-valued tokenizers. We evaluate its effectiveness across a wide range of cases, including standard autoregressive models and generalized masked autoregressive (MAR) variants. By removing vector quantization, our image generator achieves strong results while enjoying the speed advantage of sequence modeling. We hope this work will motivate the use of autoregressive generation in other continuous-valued domains and applications. Code is available at: https://github.com/LTH14/mar.

View on arXivView PDF

Code Implementations(2)

LTH14/marCommunity100%
MIT

PyTorch implementation of MAR+DiffLoss https://arxiv.org/abs/2406.11838

1,941124PythonJul 24, 20248 months agoMIT
baaivision/NOVACommunity75%
Apache-2.0

[ICLR 2025] Autoregressive Video Generation without Vector Quantization

66121PythonDec 16, 202411 months agoApache-2.0
autoregressive-modelsdiffusion-modelsimage-generationvideo-generation

Similar Papers

Cite this paper

@article{li2026autoregressive,
  title  = {Autoregressive Image Generation without Vector Quantization},
  author = {Tianhong Li and Yonglong Tian and He Li and Mingyang Deng and Kaiming He},
  year   = {2026},
  eprint = {2406.11838},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.11838},
  url    = {https://arxiv.org/abs/2406.11838},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.11838.svg)](https://codeofpaper.com/paper/2406.11838)

Discussion