Unified Discrete Diffusion for Simultaneous Vision-Language Generation

Minghui Hu, Chuanxia Zheng, Heliang Zheng, Tat-Jen Cham, Chaoyue Wang, Zuopeng Yang, Dacheng Tao, Ponnuthurai N. Suganthan · DOI

Introduction

Traditional generative models often operate as "one-way streets," specializing in either text-to-image synthesis (e.g., Stable Diffusion) or image-to-text captioning. These models typically treat the source modality as a fixed condition, failing to capture the true joint distribution of vision and language. This limitation prevents them from performing "multi-modality generation"—the simultaneous creation of synchronized image-caption pairs—and necessitates separate, computationally expensive models for different tasks.

Researchers have introduced UniD3, a unified discrete diffusion model designed to learn the joint distribution of images and text. UniD3 breaks these barriers, enabling bidirectional translation and the generation of coherent image-text pairs from scratch within a single framework.

Methodology

UniD3 employs a two-stage framework centered on discrete diffusion. First, images are compressed into discrete tokens via a Vector Quantized Variational AutoEncoder (VQ-VAE), while text is processed using Byte-Pair Encoding (BPE).

The core innovation lies in the Unified Discrete Diffusion stage, which predicts original tokens from noisy, masked versions. This is supported by two key technical components:

  1. Unified Transition Matrix: To manage token corruption over time, the authors designed a Markov transition matrix that prevents cross-modality token conversion. Both image and text tokens diffuse toward a shared [MASK] state, ensuring the model respects modality boundaries while operating in a unified latent space.
  2. Mutual Attention Mechanism: Instead of standard cross-attention, UniD3 utilizes a transformer block that decouples sequences to allow for mutual attention. This ensures the model captures the intricate linkages between pixels and words before coupling them back together.
Figure 4: The UniD3 framework supports both full generation from a mask and partial manipulation of existing content.

Experimental Results

The model was evaluated on the CUB-200-2011 and MSCOCO datasets. UniD3 demonstrated high flexibility across several tasks:

  • Simultaneous Pair Generation: The model successfully generates coherent image-caption pairs from scratch, achieving competitive CLIP similarity scores (0.280 on CUB, 0.301 on COCO).
  • Text-to-Image Synthesis: On the CUB-200 dataset, UniD3 reached an FID of 16.19, performing on par with specialized state-of-the-art models like DF-GAN.
  • Cross-Modal Manipulation: UniD3 excels at editing. By masking a portion of an image and updating the text description, the model can regenerate the masked area to align with the new semantic input.
Figure 2: Examples of zero-shot generation and cross-modal manipulation, showing the model's ability to adjust visual attributes based on text.

Discussion and Future Work

UniD3 proves that learning a joint distribution $p(image, text)$ provides a "Swiss Army Knife" capability for vision-language tasks. However, the authors note a slight performance gap compared to hyper-specialized models due to the "pressure" of multi-tasking. Additionally, the quality of output is constrained by the VQ-VAE bottleneck. Future research will focus on scaling this architecture to more modalities, such as audio, while addressing the quadratic complexity of transformer-based mutual attention.

Summary updated

BibTeX
@inproceedings{hu2023unified,
  author = {Minghui Hu and Chuanxia Zheng and Heliang Zheng and Tat-Jen Cham and Chaoyue Wang and Zuopeng Yang and Dacheng Tao and Ponnuthurai N. Suganthan},
  title = {{Unified Discrete Diffusion for Simultaneous Vision-Language Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=8JqINxA-2a},
}
Figure