Skip to main content
QUICK REVIEW

[Paper Review] Unleashing Transformers: Parallel Token Prediction with Discrete Absorbing Diffusion for Fast High-Resolution Image Generation from Vector-Quantized Codes

Sam Bond-Taylor, Peter Hessey|arXiv (Cornell University)|Nov 24, 2021
Generative Adversarial Networks and Image SynthesisComputer Science74 references6 citations
TL;DR

This paper proposes a parallel, non-autoregressive diffusion model using a Transformer backbone to predict Vector-Quantized (VQ) tokens for fast, high-resolution image generation. By masking VQ tokens randomly and training a single Transformer to reconstruct them, the method enables fast, globally consistent image synthesis at resolutions exceeding training data, achieving state-of-the-art FID, Density, and Coverage scores while reducing computational cost.

ABSTRACT

Whilst diffusion probabilistic models can generate high quality image content, key limitations remain in terms of both generating high-resolution imagery and their associated high computational requirements. Recent Vector-Quantized image models have overcome this limitation of image resolution but are prohibitively slow and unidirectional as they generate tokens via element-wise autoregressive sampling from the prior. By contrast, in this paper we propose a novel discrete diffusion probabilistic model prior which enables parallel prediction of Vector-Quantized tokens by using an unconstrained Transformer architecture as the backbone. During training, tokens are randomly masked in an order-agnostic manner and the Transformer learns to predict the original tokens. This parallelism of Vector-Quantized token prediction in turn facilitates unconditional generation of globally consistent high-resolution and diverse imagery at a fraction of the computational expense. In this manner, we can generate image resolutions exceeding that of the original training set samples whilst additionally provisioning per-image likelihood estimates (in a departure from generative adversarial approaches). Our approach achieves state-of-the-art results in terms of Density (LSUN Bedroom: 1.51; LSUN Churches: 1.12; FFHQ: 1.20) and Coverage (LSUN Bedroom: 0.83; LSUN Churches: 0.73; FFHQ: 0.80), and performs competitively on FID (LSUN Bedroom: 3.64; LSUN Churches: 4.07; FFHQ: 6.11) whilst offering advantages in terms of both computation and reduced training set requirements.

Motivation & Objective

  • To overcome the slow, sequential sampling of autoregressive VQ-VAE models for high-resolution image generation.
  • To enable parallel prediction of VQ tokens using an unconstrained Transformer architecture, avoiding ordering biases.
  • To generate globally consistent, high-resolution images (even larger than training data) through context window aggregation.
  • To achieve state-of-the-art performance in likelihood-based metrics (Density, Coverage) and FID while reducing computational and data requirements.
  • To provide per-image likelihood estimates, unlike GAN-based methods, enabling better evaluation and potential for conditional generation.

Proposed method

  • A discrete absorbing diffusion process is used to gradually mask VQ tokens in a non-autoregressive, order-agnostic manner during training.
  • A single, non-autoregressive Transformer is trained to reconstruct the original VQ tokens from their masked versions, enabling parallel prediction.
  • The model is trained end-to-end to predict the full sequence of VQ tokens in parallel, leveraging self-attention for global context.
  • During inference, the model denoises from a fully masked state, generating high-resolution images by aggregating multiple context windows.
  • The method supports unconditional and conditional generation, including local image editing via targeted masking and denoising.
  • The approach uses a single Transformer backbone to optimize all diffusion steps simultaneously, reducing parameters and inference time compared to step-wise autoregressive diffusion.

Experimental results

Research questions

  • RQ1Can a non-autoregressive, parallel VQ token prediction mechanism outperform autoregressive models in speed and resolution for image generation?
  • RQ2Can a single Transformer model effectively reconstruct VQ tokens from randomly masked, order-agnostic inputs to enable high-quality image generation?
  • RQ3Can the model generate images larger than the original training resolution while maintaining global consistency?
  • RQ4Does the proposed method achieve state-of-the-art performance in both likelihood-based metrics (Density, Coverage) and FID, with reduced training and inference costs?
  • RQ5Can the model support local image editing and per-image likelihood estimation, unlike standard GAN-based approaches?

Key findings

  • The method achieves state-of-the-art Density scores of 1.51 on LSUN Bedroom, 1.12 on LSUN Churches, and 1.20 on FFHQ.
  • It achieves state-of-the-art Coverage scores of 0.83 on LSUN Bedroom, 0.73 on LSUN Churches, and 0.80 on FFHQ.
  • The model achieves competitive FID scores of 3.64 on LSUN Bedroom, 4.07 on LSUN Churches, and 6.11 on FFHQ, outperforming most baselines except StyleGAN2.
  • The model generates images at resolutions exceeding the original training set, enabled by context window aggregation and parallel token prediction.
  • The approach reduces computational cost and training data requirements compared to autoregressive VQ-VAE models, while enabling fast sampling and local image editing.
  • The method provides per-image likelihood estimates, a key advantage over GAN-based models, enabling better evaluation and potential for conditional generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.