[Paper Review] Draft-and-Revise: Effective Image Generation with Contextual RQ-Transformer
This paper proposes Draft-and-Revise, a novel image generation framework using a Contextual RQ-Transformer to improve global context modeling in autoregressive image generation. By first generating diverse low-quality drafts and then iteratively refining them while preserving global structure, the method achieves state-of-the-art FID scores on ImageNet and CC-3M benchmarks, outperforming prior models including 3.8B-parameter RQ-Transformer with rejection sampling.
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.
Motivation & Objective
- To address the limitation of autoregressive image generation models in failing to leverage global context during sequential generation.
- To improve image generation quality and diversity by explicitly modeling bidirectional context during the generation process.
- To develop a decoding strategy that balances quality and diversity through two distinct phases: draft (diverse, low-quality generation) and revise (quality refinement with context preservation).
- To achieve state-of-the-art performance on conditional image generation benchmarks, including ImageNet and CC-3M.
Proposed method
- Representing high-resolution images as sequences of discrete code stacks using Residual-Quantized VAE (RQ-VAE) for efficient modeling.
- Training a Contextual RQ-Transformer with bidirectional self-attention to predict masked code stacks based on unmasked global context, similar to BERT pretraining.
- Proposing a two-phase decoding strategy: Draft-and-Revise, where the draft phase generates diverse, low-fidelity images and the revise phase iteratively improves quality while preserving global structure.
- Using temperature scaling only in the revise phase and classifier-free guidance selectively to control the quality-diversity trade-off.
- Applying iterative refinement in the revise phase by updating code stacks in parallel while maintaining global coherence.
- Employing rejection sampling and sampling speed evaluation to compare efficiency and performance against prior models.
Experimental results
Research questions
- RQ1Can a bidirectional transformer-based model effectively model global context in image generation by infilling masked code stacks?
- RQ2Does the Draft-and-Revise decoding strategy improve image quality and diversity compared to standard autoregressive generation?
- RQ3Can the two-phase decoding process effectively control the quality-diversity trade-off in image generation?
- RQ4How does the proposed method compare in FID and inference speed to state-of-the-art autoregressive models like RQ-Transformer and VQGAN?
Key findings
- The proposed method achieves a state-of-the-art FID of 3.45 on the ImageNet benchmark, outperforming the 3.8B-parameter RQ-Transformer with rejection sampling.
- With $ T_{\text{draft}} = 64 $, the model achieves an FID of 3.45 while being 2.5× slower than RQ-Transformer, yet still outperforms it in FID.
- Using classifier-free guidance only in the revise phase yields the best balance, achieving the lowest FID (3.45) with high precision (0.82) and acceptable recall (0.52).
- The draft phase with $ T_{\text{draft}} = 32 $ achieves the best FID (3.73) and sampling speed (0.06 s/sample), demonstrating a favorable trade-off between quality and efficiency.
- The ablation study confirms that increasing $ T_{\text{revise}} $ beyond 2 slightly degrades FID due to error propagation from low-quality draft code stacks.
- The model with $ T_{\text{draft}} = 8 $ achieves SOTA FID (5.41) and faster inference (0.03 s/sample) than VQGAN (15.78 FID, 0.16 s/sample) and RQ-Transformer (8.71 FID, 0.04 s/sample).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.