Customize Your Visual Autoregressive Recipe with Set Autoregressive Modeling

Wenze Liu, Le Zhuo, Yi Xin, Sheng Xia, Peng Gao +1 more
10/14/2024
cs.CV

No official code found. Best implementation: poppuppy/SAR (34 stars, last commit 2025-12-29).

Abstract

We introduce a new paradigm for AutoRegressive (AR) image generation, termed Set AutoRegressive Modeling (SAR). SAR generalizes the conventional AR to the next-set setting, i.e., splitting the sequence into arbitrary sets containing multiple tokens, rather than outputting each token in a fixed raster order. To accommodate SAR, we develop a straightforward architecture termed Fully Masked Transformer. We reveal that existing AR variants correspond to specific design choices of sequence order and output intervals within the SAR framework, with AR and Masked AR (MAR) as two extreme instances. Notably, SAR facilitates a seamless transition from AR to MAR, where intermediate states allow for training a causal model that benefits from both few-step inference and KV cache acceleration, thus leveraging the advantages of both AR and MAR. On the ImageNet benchmark, we carefully explore the properties of SAR by analyzing the impact of sequence order and output intervals on performance, as well as the generalization ability regarding inference order and steps. We further validate the potential of SAR by training a 900M text-to-image model capable of synthesizing photo-realistic images with any resolution. We hope our work may inspire more exploration and application of AR-based modeling across diverse modalities.

View on arXivView PDF

Code Implementations(1)

poppuppy/SARCommunity100%
340Oct 11, 20249 months ago

Similar Papers

Cite this paper

@article{liu2024customize,
  title  = {Customize Your Visual Autoregressive Recipe with Set Autoregressive Modeling},
  author = {Wenze Liu and Le Zhuo and Yi Xin and Sheng Xia and Peng Gao and Xiangyu Yue},
  year   = {2024},
  eprint = {2410.10511},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.10511v1}
}

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/2410.10511.svg)](https://codeofpaper.com/paper/2410.10511)

Discussion