Although autoregressive models have achieved promising results on image generation, their unidirectional generation process prevents the resultant images from fully reflecting global contexts. To address the issue, we propose an effective image generation framework of Draft-and-Revise with Contextual RQ-transformer to consider global contexts during the generation process. As a generalized VQ-VAE, RQ-VAE first represents a high-resolution image as a sequence of discrete code stacks. After code stacks in the sequence are randomly masked, Contextual RQ-Transformer is trained to infill the masked code stacks based on the unmasked contexts of the image. Then, Contextual RQ-Transformer uses our two-phase decoding, Draft-and-Revise, and generates an image, while exploiting the global contexts of the image during the generation process. Specifically. in the draft phase, our model first focuses on generating diverse images despite rather low quality. Then, in the revise phase, the model iteratively improves the quality of images, while preserving the global contexts of generated images. In experiments, our method achieves state-of-the-art results on conditional image generation. We also validate that the Draft-and-Revise decoding can achieve high performance by effectively controlling the quality-diversity trade-off in image generation.
翻译:虽然自动递减模型在图像生成方面取得了可喜的成果,但其单向生成过程使生成的图像无法充分反映全球背景。为了解决这一问题,我们提议一个有效的图像生成框架,用背景 RQ 转换器进行预览和更新,以在生成过程中考虑全球背景。作为通用VQ-VAE,RQ-VAE首先代表高分辨率图像,作为离散代码堆叠序列的序列。在序列代码堆叠随机遮盖后,背景RQ-Transer经过培训,以填补基于图像未包装背景的隐藏代码堆叠。然后,背景RQ-Transext利用我们两个阶段的解码、草稿和修正程序,生成一个图像,同时在生成过程中利用图像的全球背景。具体地说,在草案阶段,我们的模型首先侧重于生成不同图像,尽管质量相当低。随后,该模型反复更新了图像的质量,同时保护了生成图像的全球背景。在实验中,我们的方法也有效地实现了在生成的高质量图像上实现状态和高质量版本。