2025-03-14 · 专家 · 机器学习 · 计算机视觉

Autoregressive Image Generation with Randomized Parallel Decoding

本文提出了一种名为ARPG的新型视觉自回归模型,通过随机并行解码实现图像的高效生成,显著提高了生成速度和内存消耗效率。

更新于 2025-03-14。作者:Haopeng Li、Jinyue Yang、Guoqi Li、Huan Wang。

中文摘要

我们引入了ARPG,这是一种新颖的可视自回归模型,它能够实现随机并行生成,解决了传统光栅顺序方法固有的局限性。这些局限性由于它们的顺序性和预定义的标记生成顺序,阻碍了推理效率和零样本泛化。我们的关键洞察是,有效的随机顺序建模需要明确指导来确定下一个预测标记的位置。为此,我们提出了一种新的引导解码框架,将位置引导与内容表示解耦,将它们分别编码为查询和键值对。通过直接将这种引导纳入因果注意力机制,我们的方法实现了完全的随机顺序训练和生成,消除了双向注意力的需求。因此,ARPG可以轻松地泛化到零样本任务,如图像修复、图像扩展和分辨率扩展。此外,它通过使用共享的KV缓存同时处理多个查询来支持并行推理。在ImageNet-1K 256基准测试中,我们的方法在仅64个采样步骤的情况下达到了1.94的FID,与类似规模的代表性最近的自回归模型相比,实现了超过20倍的吞吐量提升,同时将内存消耗降低了超过75%。

英文摘要

We introduce ARPG, a novel visual autoregressive model that enables randomized parallel generation, addressing the inherent limitations of conventional raster-order approaches, which hinder inference efficiency and zero-shot generalization due to their sequential, predefined token generation order. Our key insight is that effective random-order modeling necessitates explicit guidance for determining the position of the next predicted token. To this end, we propose a novel guided decoding framework that decouples positional guidance from content representation, encoding them separately as queries and key-value pairs. By directly incorporating this guidance into the causal attention mechanism, our approach enables fully random-order training and generation, eliminating the need for bidirectional attention. Consequently, ARPG readily generalizes to zero-shot tasks such as image inpainting, outpainting, and resolution expansion. Furthermore, it supports parallel inference by concurrently processing multiple queries using a shared KV cache. On the ImageNet-1K 256 benchmark, our approach attains an FID of 1.94 with only 64 sampling steps, achieving over a 20-fold increase in throughput while reducing memory consumption by over 75% compared to representative recent autoregressive models at a similar scale.

解读

一句话总结

本文提出了一种名为ARPG的新型视觉自回归模型,通过随机并行解码实现图像的高效生成,显著提高了生成速度和内存消耗效率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源