arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.17787cs.CV
收藏

协同解码提升视觉自回归建模效率

Collaborative Decoding Makes Visual Auto-Regressive Modeling Efficient

National University of Singapore(新加坡国立大学)

Zigeng Chen, Xinyin Ma, Gongfan Fang, Xinchao Wang

AI总结:

针对视觉自回归(VAR)建模因由粗到细特性导致的内存与计算瓶颈,提出协同解码(CoDe)策略,通过大模型起草小尺度低频内容、小模型精炼大尺度高频细节的协作,实现1.7-2.9倍提速、约50%内存减少且质量损失极小。

摘要:

在快速发展的图像生成领域,视觉自回归(VAR)建模因其创新的下一尺度预测方法备受关注。该范式在效率、可扩展性和零样本泛化方面有显著提升,但VAR固有的由粗到细特性导致标记序列过长,造成内存消耗过高和计算冗余。为解决这些瓶颈,我们提出协同解码(CoDe)——专为VAR框架设计的新型高效解码策略。CoDe利用两个关键观察:较大尺度参数需求大幅降低,不同尺度存在专属生成模式。基于这些见解,我们将多尺度推理过程划分为大模型与小模型的无缝协作:大模型作为“起草者”,专注于小尺度生成低频内容;小模型作为“精炼者”,仅聚焦大尺度预测高频细节。这种协作在质量影响极小的情况下实现显著效率提升:CoDe提速1.7倍,内存使用减少约50%,FID仅从1.95微增至1.98;进一步减少起草步骤时,可实现2.9倍加速,在单NVIDIA 4090 GPU上256x256分辨率下达到41张/秒,同时保持2.27的良好FID。代码可在https://github.com/czg1225/CoDe获取。

英文摘要:

In the rapidly advancing field of image generation, Visual Auto-Regressive (VAR) modeling has garnered considerable attention for its innovative next-scale prediction approach. This paradigm offers substantial improvements in efficiency, scalability, and zero-shot generalization. Yet, the inherently coarse-to-fine nature of VAR introduces a prolonged token sequence, leading to prohibitive memory consumption and computational redundancies. To address these bottlenecks, we propose Collaborative Decoding (CoDe), a novel efficient decoding strategy tailored for the VAR framework. CoDe capitalizes on two critical observations: the substantially reduced parameter demands at larger scales and the exclusive generation patterns across different scales. Based on these insights, we partition the multi-scale inference process into a seamless collaboration between a large model and a small model. The large model serves as the 'drafter', specializing in generating low-frequency content at smaller scales, while the smaller model serves as the 'refiner', solely focusing on predicting high-frequency details at larger scales. This collaboration yields remarkable efficiency with minimal impact on quality: CoDe achieves a 1.7x speedup, slashes memory usage by around 50%, and preserves image quality with only a negligible FID increase from 1.95 to 1.98. When drafting steps are further decreased, CoDe can achieve an impressive 2.9x acceleration ratio, reaching 41 images/s at 256x256 resolution on a single NVIDIA 4090 GPU, while preserving a commendable FID of 2.27. The code is available at https://github.com/czg1225/CoDe

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

↑