Global Context with Discrete Diffusion in Vector Quantised Modelling for Image Generation
Minghui Hu, Yujie Wang, Tat-Jen Cham, Jianfei Yang, P. N. Suganthan
TL;DR
The paper addresses the limited global context of autoregressive VQ-VAE image generation by introducing VQ-DDM, a two-stage framework that first compresses images into a discrete codebook and then learns a discrete diffusion prior over these codes. By employing a discrete diffusion process with a categorical transition on the codebook and a diffusion-based reverse model, the approach captures global structure while remaining computationally efficient. A key contribution is the ReFiT strategy, which rebuilds and fine-tunes the discrete codebook to dramatically improve code usage and reconstruction quality, enabling competitive performance with far fewer parameters. The proposed method delivers high-fidelity image generation and robust inpainting capabilities, with practical speed advantages over traditional diffusion models, and opens avenues for extending discrete diffusion to other data modalities.
Abstract
The integration of Vector Quantised Variational AutoEncoder (VQ-VAE) with autoregressive models as generation part has yielded high-quality results on image generation. However, the autoregressive models will strictly follow the progressive scanning order during the sampling phase. This leads the existing VQ series models to hardly escape the trap of lacking global information. Denoising Diffusion Probabilistic Models (DDPM) in the continuous domain have shown a capability to capture the global context, while generating high-quality images. In the discrete state space, some works have demonstrated the potential to perform text generation and low resolution image generation. We show that with the help of a content-rich discrete visual codebook from VQ-VAE, the discrete diffusion model can also generate high fidelity images with global context, which compensates for the deficiency of the classical autoregressive model along pixel space. Meanwhile, the integration of the discrete VAE with the diffusion model resolves the drawback of conventional autoregressive models being oversized, and the diffusion model which demands excessive time in the sampling process when generating images. It is found that the quality of the generated images is heavily dependent on the discrete visual codebook. Extensive experiments demonstrate that the proposed Vector Quantised Discrete Diffusion Model (VQ-DDM) is able to achieve comparable performance to top-tier methods with low complexity. It also demonstrates outstanding advantages over other vectors quantised with autoregressive models in terms of image inpainting tasks without additional training.
