图像分词器应在图像之间训练
研究论文 · 2026/10/15
潜在扩散模型将图像生成为图像分词器的代码,其解码器将这些代码转换为像素图像。近期的分词器改进了代码重建图像的效果以及生成器学习代码的容易程度。然而,生成器不会复现训练图像的代码,当生成的代码落在解码器预期之外时,解码图像会出现瑕疵。当前方法通过在训练期间添加噪声使解码器对生成的代码更鲁棒。但生成的代码位于训练代码之间,更像它们的混合而非其中之一加噪声。因此,为了改进生成图像,解码器应在训练样本之间的代码空间上训练。我们提出InterpTok,它微调MAETok以将图像代码的混合解码为自然图像。由于两个训练样本之间不存在目标图像,判别器判断每个解码混合是否与其两个源一样自然。混合比例损失要求解码混合保持两个代码的混合比例。两者共同防止崩溃到平凡解,并产生两幅图像的清晰自然组合。InterpTok保持了MAETok的重建质量,并将插值质量提升三倍以上,在近期基准测试中所有分词器中最佳。除插值外,InterpTok将匹配扩散变换器的无引导生成FID从11.61提升至8.48,甚至在八分之一采样步数下达到8.11,而基于MAETok代码的生成器则变差。在我们分词器上训练的生成器也在一半训练步数下达到基于MAETok训练的最终结果。我们的发现表明,图像代码之间的空间可以且应该被显式监督而非忽略。
该研究揭示了图像分词器训练中一个被忽视的关键问题:生成代码位于训练代码之间,而非训练代码加噪声。通过显式监督代码间的空间,InterpTok显著提升了生成质量和效率,为扩散模型中的分词器设计提供了新方向。
Latent diffusion models generate images as codes of an image tokenizer, whose decoder turns them into the pixel image. Recent tokenizers improve how well these codes reconstruct an image and how easily a generator learns them. Yet a generator does not reproduce the codes of training images, and when a generated code lands outside what the decoder expects, the decoded image contains imperfections. Current methods make the decoder more robust to generated codes by adding noise during training. However, generated codes lie between the training codes and resemble their mixture more than one of them plus noise. To improve generated images, decoders should therefore be trained on codes in the space between training samples. We propose InterpTok, which fine-tunes MAETok to decode mixtures of image codes into natural images. Since no target image exists between two training samples, a discriminator judges whether each decoded mixture looks as natural as its two sources. A mixing ratio loss requires the decoded mixture to keep the mixing ratio of the two codes. Together, they prevent collapse to a trivial solution and yield a sharp and natural composition of both images. InterpTok keeps MAETok's reconstruction quality and improves interpolation quality more than threefold, the best of all tokenizers in a recent benchmark. Beyond interpolation, InterpTok improves the generation FID of a matched diffusion transformer from 11.61 to 8.48 without guidance, and even reaches 8.11 at an eighth of the sampling steps, where the generator on MAETok's codes worsens. The generator trained on our tokenizer also reaches the final result of the one trained on MAETok at half the training steps. Our findings show that the space between image codes can and should be explicitly supervised rather than ignored.