让图像自回归模型一步生成,速度提升200倍以上
Distilled Decoding 1: One-step Sampling of Image Auto-regressive Models with Flow Matching
- 用流匹配构建高斯分布到生成分布的确定映射
- 对VAR实现1步生成(6.3倍提速),FID仅升至9.96
- 无需原始训练数据,适用于文本到图像生成场景
自回归(AR)模型在文本和图像生成中表现卓越,但因逐标记生成导致速度慢。本文提出蒸馏解码(DD),通过流匹配建立从高斯分布到预训练AR模型输出分布的确定映射,并训练网络蒸馏该映射,实现少步生成。DD无需原始训练数据,更具实用性。在ImageNet-256上,对VAR模型,从10步生成压缩至1步(6.3×加速),FID由4.19升至9.96;对LlamaGen,从256步降至1步(217.8×加速),FID由4.11升至11.35。基线方法在相同条件下FID均超100。在文本到图像生成中,将LlamaGen生成步数从256减至2,FID仅由25.70升至28.95。这是首个实现图像AR模型一步生成的工作,挑战了自回归模型固有缓慢的观念,为高效生成开辟新路径。
原文摘要 · Abstract (English)
Autoregressive (AR) models have achieved state-of-the-art performance in text and image generation but suffer from slow generation due to the token-by-token process. We ask an ambitious question: can a pre-trained AR model be adapted to generate outputs in just one or two steps? If successful, this would significantly advance the development and deployment of AR models. We notice that existing works that try to speed up AR generation by generating multiple tokens at once fundamentally cannot capture the output distribution due to the conditional dependencies between tokens, limiting their effectiveness for few-step generation. To address this, we propose Distilled Decoding (DD), which uses flow matching to create a deterministic mapping from Gaussian distribution to the output distribution of the pre-trained AR model. We then train a network to distill this mapping, enabling few-step generation. DD doesn't need the training data of the original AR model, making it more practical. We evaluate DD on state-of-the-art image AR models and present promising results on ImageNet-256. For VAR, which requires 10-step generation, DD enables one-step generation (6.3$\times$ speed-up), with an acceptable increase in FID from 4.19 to 9.96. For LlamaGen, DD reduces generation from 256 steps to 1, achieving an 217.8$\times$ speed-up with a comparable FID increase from 4.11 to 11.35. In both cases, baseline methods completely fail with FID>100. DD also excels on text-to-image generation, reducing the generation from 256 steps to 2 for LlamaGen with minimal FID increase from 25.70 to 28.95. As the first work to demonstrate the possibility of one-step generation for image AR models, DD challenges the prevailing notion that AR models are inherently slow, and opens up new opportunities for efficient AR generation. The project website is at https://imagination-research.github.io/distilled-decoding.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。