arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.01827cs.CVcs.AI
收藏

RandAR:随机顺序下的仅解码器自回归视觉生成

RandAR: Decoder-only Autoregressive Visual Generation in Random Orders

UIUC(伊利诺伊大学厄巴纳-香槟分校);MIT(麻省理工学院);Adobe Research(Adobe研究院)

Ziqi Pang, Tianyuan Zhang, Fujun Luan, Yunze Man, Hao Tan, Kai Zhang, William T. Freeman, Yu-Xiong Wang

AI总结:

RandAR提出一种仅解码器自回归视觉生成模型,通过位置指令令牌实现任意顺序生成,支持并行解码加速2.5倍及零样本修复、外扩和分辨率外推。

摘要:

我们提出了RandAR,一种仅解码器的视觉自回归(AR)模型,能够以任意令牌顺序生成图像。与依赖预定义生成顺序的先前仅解码器AR模型不同,RandAR移除了这一归纳偏置,解锁了仅解码器生成的新能力。我们的核心设计通过在每个待预测的图像令牌之前插入一个“位置指令令牌”来实现随机顺序,该令牌表示下一个图像令牌的空间位置。在随机排列的令牌序列上训练——这一任务比固定顺序生成更具挑战性——RandAR取得了与其传统光栅顺序对应模型相当的性能。更重要的是,从随机顺序训练的仅解码器Transformer获得了新能力。针对AR模型的效率瓶颈,RandAR在推理时采用带有KV-Cache的并行解码,在不牺牲生成质量的情况下享受2.5倍的加速。此外,RandAR支持零样本方式的修复(inpainting)、外扩(outpainting)和分辨率外推。我们希望RandAR能激发仅解码器视觉生成模型的新方向,并拓宽其在多样场景中的应用。我们的项目页面位于https://rand-ar.github.io/。

英文摘要:

We introduce RandAR, a decoder-only visual autoregressive (AR) model capable of generating images in arbitrary token orders. Unlike previous decoder-only AR models that rely on a predefined generation order, RandAR removes this inductive bias, unlocking new capabilities in decoder-only generation. Our essential design enables random order by inserting a "position instruction token" before each image token to be predicted, representing the spatial location of the next image token. Trained on randomly permuted token sequences -- a more challenging task than fixed-order generation, RandAR achieves comparable performance to its conventional raster-order counterpart. More importantly, decoder-only transformers trained from random orders acquire new capabilities. For the efficiency bottleneck of AR models, RandAR adopts parallel decoding with KV-Cache at inference time, enjoying 2.5x acceleration without sacrificing generation quality. Additionally, RandAR supports inpainting, outpainting and resolution extrapolation in a zero-shot manner. We hope RandAR inspires new directions for decoder-only visual generation models and broadens their applications across diverse scenarios. Our project page is at https://rand-ar.github.io/.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑