改进图像生成的离散分词器,提升生成质量与收敛速度
Image Tokenizer Needs Post-Training
- 主训练阶段引入噪声扰动模拟采样误差,增强分词器鲁棒性
- 使用新指标pFID验证分词器性能,400M模型生成质量达1.36 gFID
- 后训练优化解码器,适用于各类生成模型和分词器架构
当前图像生成模型通常依赖固定的图像分词器在预构建的潜在空间中捕捉图像分布。然而,重建与生成分布之间存在显著差异:现有分词器仅关注生成前的重建任务,未考虑采样过程中的生成误差。本文系统分析了离散潜在空间中该差异的成因,并提出包含主训练与后训练的新分词器训练方案,分别优化潜在空间构建与解码过程。主训练阶段引入潜在扰动策略,模拟生成推理中的采样噪声,设计即插即用的训练方案,显著提升分词器鲁棒性,加速收敛并提升生成质量;同时提出新评估指标pFID,成功关联分词器性能与生成质量。后训练阶段针对已训练好的生成模型优化分词器解码器,缓解生成与重建令牌分布差异。使用约400M生成器,经主训练的离散分词器获得1.60 gFID,后训练进一步降至1.36 gFID。广泛实验验证了该后训练策略在自回归与扩散模型、离散与连续分词器上的有效性。
原文摘要 · Abstract (English)
Recent image generative models typically capture the image distribution in a pre-constructed latent space, relying on a frozen image tokenizer. However, there exists a significant discrepancy between the reconstruction and generation distribution, where current tokenizers only prioritize the reconstruction task that happens before generative training without considering the generation errors during sampling. In this paper, we comprehensively analyze the reason for this discrepancy in a discrete latent space, and, from which, we propose a novel tokenizer training scheme including both main-training and post-training, focusing on improving latent space construction and decoding respectively. During the main training, a latent perturbation strategy is proposed to simulate sampling noises, \ie, the unexpected tokens generated in generative inference. Specifically, we propose a plug-and-play tokenizer training scheme, which significantly enhances the robustness of tokenizer, thus boosting the generation quality and convergence speed, and a novel tokenizer evaluation metric, \ie, pFID, which successfully correlates the tokenizer performance to generation quality. During post-training, we further optimize the tokenizer decoder regarding a well-trained generative model to mitigate the distribution difference between generated and reconstructed tokens. With a $\sim$400M generator, a discrete tokenizer trained with our proposed main training achieves a notable 1.60 gFID and further obtains 1.36 gFID with the additional post-training. Further experiments are conducted to broadly validate the effectiveness of our post-training strategy on off-the-shelf discrete and continuous tokenizers, coupled with autoregressive and diffusion-based generators.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。