arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.09430cs.CV
收藏

FlashAR: 用于自回归图像生成的高效后训练加速

FlashAR: Efficient Post-Training Acceleration for Autoregressive Image Generation

Zhejiang University(浙江大学);University of Adelaide(阿德莱德大学)

Junkang Zhou, Yefei He, Feng Chen, Weijie Wang, Bohan Zhuang

AI总结:

本文提出FlashAR框架,通过双向往前预测将预训练自回归模型转化为高效并行生成器,实现512x512图像生成速度提升22.9倍。

摘要:

大规模自回归模型在图像生成中表现出色,但其顺序扫描解码依赖严格下一步预测,导致推理成本过高。现有加速方法或需重新训练,或牺牲训练-推理差距。本文提出FlashAR,通过双向往前预测将预训练模型转化为高效并行生成器,保留原始训练目标以保持学习先验。引入轻量垂直头与水平头,通过可学习融合门动态结合预测,采用两阶段适应流程降低适应成本,实验表明在LlamaGen和Emu3.5上实现22.9倍速度提升。

英文摘要:

Large-scale autoregressive models have demonstrated remarkable capabilities in image generation. However, their sequential raster-scan decoding relies on strictly next-token prediction, making inference prohibitively expensive. Existing acceleration methods typically either introduce entirely new generation paradigms that necessitate costly pre-training from scratch, or enable parallel generation at the expense of a training-inference gap or altered prediction objectives. In this paper, we introduce FlashAR, a lightweight post-training adaptation framework that efficiently adapts a pre-trained raster-scan autoregressive model into a highly parallel generator based on two-way next-token prediction. Our key insight is that effective adaptation should minimize modifications to the pre-trained model's original training objective to preserve its learned prior. Accordingly, we retain the original AR head as a horizontal head for row-wise prediction and introduce a complementary, lightweight vertical head for column-wise prediction. To facilitate efficient adaptation, we branch the vertical head from an intermediate layer rather than the final layer, bypassing the inherent horizontal head bias. Moreover, since horizontal and vertical predictions capture complementary dependencies whose relative importance varies across target positions, we employ a learnable fusion gate to dynamically combine the two predictions at each position. To further reduce adaptation cost, we propose a two-stage adaptation pipeline: the vertical head is first initialized through adaptation from the pre-trained autoregressive model before jointly fine-tuned with backbone to adapt to the new decoding paradigm. Extensive experiments on LlamaGen and Emu3.5 show that FlashAR achieves up to a 22.9x speedup for 512x512 image generation through a lightweight post-training with merely 0.05% of the original training data.

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

↑