通过粗到细预测提升自回归图像生成质量与速度
Improving Autoregressive Image Generation through Coarse-to-Fine Token Prediction
- 先预测粗粒度标签,再根据粗标签预测细粒度标签
- ImageNet上实现59分的Inception Score提升,且采样更快
- 适合关注图像生成效率与质量的开发者
自回归模型在图像生成中表现出色,但需通过VQ-VAE等方法将连续像素离散化。为减少量化误差,现有方法采用更大码本,却导致词汇量膨胀,增加建模难度。本文发现相似码字表示的令牌对生成图像影响相近,存在显著冗余。基于此,提出粗到细(CTF)预测框架:第一阶段自回归预测每个令牌的粗标签;第二阶段辅助模型基于粗标签并行预测细粒度标签。在ImageNet上的实验表明,该方法平均提升Inception Score 59分,且尽管多一步推理,采样速度反而更快。
原文摘要 · Abstract (English)
Autoregressive models have shown remarkable success in image generation by adapting sequential prediction techniques from language modeling. However, applying these approaches to images requires discretizing continuous pixel data through vector quantization methods like VQ-VAE. To alleviate the quantization errors that existed in VQ-VAE, recent works tend to use larger codebooks. However, this will accordingly expand vocabulary size, complicating the autoregressive modeling task. This paper aims to find a way to enjoy the benefits of large codebooks without making autoregressive modeling more difficult. Through empirical investigation, we discover that tokens with similar codeword representations produce similar effects on the final generated image, revealing significant redundancy in large codebooks. Based on this insight, we propose to predict tokens from coarse to fine (CTF), realized by assigning the same coarse label for similar tokens. Our framework consists of two stages: (1) an autoregressive model that sequentially predicts coarse labels for each token in the sequence, and (2) an auxiliary model that simultaneously predicts fine-grained labels for all tokens conditioned on their coarse labels. Experiments on ImageNet demonstrate our method's superior performance, achieving an average improvement of 59 points in Inception Score compared to baselines. Notably, despite adding an inference step, our approach achieves faster sampling speeds.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。