Abstract
Generating high-resolution, photo-realistic images remains a significant computational challenge. Traditional autoregressive models are limited by sequential token prediction, while continuous diffusion models are often memory-intensive in pixel space. This paper introduces a novel discrete diffusion prior that enables Transformers to generate high-resolution images by predicting vector-quantized (VQ) tokens in parallel. By framing image generation as a denoising process of masked tokens—specifically using an "absorbing state" diffusion—the proposed method achieves state-of-the-art diversity and density metrics. Notably, the approach offers an 18x speedup over standard pixel-based diffusion models while maintaining competitive image quality.
Introduction
The current landscape of generative modeling for high-resolution images is dominated by two paradigms: Autoregressive (AR) models and Diffusion Probabilistic Models (DPMs). AR models, such as VQGAN, compress images into discrete tokens and predict them sequentially. This unidirectional approach (typically top-left to bottom-right) is not only slow for large-scale generation but also fails to leverage global context effectively during the initial stages of synthesis. Conversely, DPMs generate high-quality results by iteratively removing noise from continuous signals, but their operation in pixel space leads to high memory overhead at high resolutions.
This research seeks to bridge these paradigms by applying the efficiency of discrete token representations to the parallel generation capabilities of diffusion models. By "unleashing" the Transformer from causal constraints, the authors enable bidirectional context utilization for faster and more coherent image synthesis.
Methodology
Discrete Absorbing Diffusion
The core of the proposed method is a Discrete Absorbing Diffusion model operating within the latent space of a VQGAN. The process involves three primary stages:
- Vector Quantization: An input image $x$ is encoded into a grid of discrete latent codes (tokens) $z_0$ using a pre-trained VQGAN encoder.
- Absorbing State Forward Process: Unlike continuous diffusion that adds Gaussian noise, the forward process here involves randomly replacing tokens with a special
[MASK]token. At the final timestep $T$, the latent representation $z_T$ consists entirely of masks. - Bidirectional Transformer Reverse Process: To reconstruct the image, a bidirectional Transformer is trained to predict the original tokens from a partially masked grid. Because the model is not restricted to a causal (left-to-right) order, it can predict multiple tokens in parallel, significantly accelerating the sampling process.
Training Stability and Scaling
To address the high gradient variance encountered when predicting tokens from sparse, noisy inputs, the authors introduced a reweighted Evidence Lower Bound (ELBO) loss. This scheme prioritizes timesteps with higher information density, stabilizing the training of the Transformer. For generating images beyond the 256x256 training resolution, the model employs a sliding window aggregation technique, ensuring global consistency across larger canvases by overlapping context windows.
Experimental Results
The model was evaluated on three standard benchmarks: LSUN Bedroom, LSUN Churches, and FFHQ (Flickr-Faces-HQ).
Performance Metrics
The approach achieved state-of-the-art results in distribution coverage and quality:
- Efficiency: Sampling is 18x faster than standard pixel-based Diffusion Models (DDPM).
- Density and Coverage: The model reached a Density of 1.51 on LSUN Bedroom and 1.20 on FFHQ, with Coverage scores of 0.83 and 0.80, respectively.
- Image Quality: The model achieved a competitive Fréchet Inception Distance (FID) of 3.27 on LSUN Bedroom and 4.07 on LSUN Churches, outperforming several larger and more computationally intensive architectures.
Discussion and Key Insights
The Power of Bidirectionality and Masking
A critical finding of this work is that bidirectionality is essential for capturing the 2D structural dependencies of images. By treating generation as a global denoising task rather than a sequence prediction task, the model maintains better structural integrity. Furthermore, the authors found that "absorbing" diffusion (masking) is superior to "uniform" diffusion (random token swapping) in discrete spaces. Masking provides a clear, unambiguous signal to the model about which regions require prediction, whereas random swapping introduces corrupted data that is difficult for the model to distinguish from ground truth.
Versatility and Limitations
Due to its order-agnostic training, the model is naturally proficient at downstream tasks like image inpainting. Any region of an image can be masked and subsequently filled by the Transformer. However, the system is not without limitations. The final image quality is inherently capped by the reconstruction fidelity of the underlying VQGAN. Additionally, while faster than pixel-diffusion, the quadratic complexity of the Transformer's self-attention remains a hurdle for scaling to extreme resolutions (e.g., 1024x1024) without specialized attention mechanisms.
Conclusion
Discrete Absorbing Diffusion represents a significant step forward in efficient high-resolution image synthesis. By combining VQ-based compression with a bidirectional diffusion prior, the authors have "unleashed" the Transformer to perform parallel token prediction, resulting in a model that is both faster and more robust than traditional autoregressive counterparts. Future work will likely focus on improving the VQGAN bottleneck and integrating more efficient attention architectures to further scale these capabilities.
Summary updated