Generative Multimodal Pretraining with Discrete Diffusion Timestep Tokens

Kaihang Pan, Wang Lin, Zhongqi Yue, Tenglong Ao, Liyu Jia, Wei Zhao, Juncheng Li, Siliang Tang, Hanwang Zhang

Abstract

Traditional Multimodal Large Language Models (MLLMs) often struggle with visual reasoning because they treat images as a grid of spatial patches—a format that lacks the recursive, hierarchical structure of human language. We introduce DDT-LLaMA, which replaces spatial patches with Discrete Diffusion Timestep (DDT) tokens. By representing images as a sequence of tokens that progressively reconstruct an image from noise, we create a "visual language" that LLMs can process natively. DDT-LLaMA achieves state-of-the-art performance in image understanding and generation, demonstrating superior alignment with complex textual attributes such as counting and spatial relationships.

Introduction: The "Impossible Language" of Spatial Tokens

Current MLLMs typically represent images using a "raster scan" of spatial patches. However, research suggests this is an ineffective representation for Large Language Models (LLMs). In natural language, structure is hierarchical; shuffling words destroys meaning. In contrast, shuffling spatial image patches often has minimal impact on an LLM's training convergence, suggesting the model is merely memorizing patterns rather than "reading" the visual data. This mismatch limits the model's ability to perform deep reasoning on visual attributes like color, quantity, and position.

Methodology: The DDT Tokenizer

To bridge this gap, we developed the Discrete Diffusion Timestep (DDT) Tokenizer. Instead of slicing an image into a grid, the model learns to describe it through a diffusion process.

Architecture of the Diffusion Timestep Tokenizer and MLLM training pipeline.

The process involves three main components:

  1. Recursive Encoder: A clean image is encoded into a sequence of tokens ($V_1, \dots, V_T$). Each token $V_t$ compensates for information lost at a specific diffusion timestep $t$.
  2. Discrete Quantization: These features are mapped to a codebook of 65,536 visual "words," allowing them to be treated as standard text tokens.
  3. Diffusion Decoder: A Diffusion Model (DM) uses these DDT tokens as a guide to reconstruct the original image from noise.

DDT-LLaMA integrates this tokenizer with a LLaMA3-8B backbone, trained on a unified next-token prediction task across 200 million image-text pairs.

Key Insights: Visual Language Verification

A critical finding of this work is that DDT tokens behave like human language. Unlike spatial tokens, disrupting the order of DDT tokens significantly degrades LLM performance. This confirms that the LLM utilizes the sequential, recursive structure of the tokens—where early tokens capture global structure and later tokens provide fine-grained detail—to truly "understand" the image.

Results and Evaluation

DDT-LLaMA sets a new benchmark for multimodal generalists. On GenEval, it achieved a score of 0.66, significantly outperforming specialized models like SDXL (0.55) and other MLLMs like Emu3 (0.54).

Qualitative results of DDT-LLaMA text-to-image generation compared to EMU3.

As shown in the qualitative results, DDT-LLaMA excels at following complex prompts involving counting (e.g., "three benches") and spatial positioning (e.g., "cat on the left of a dog"), areas where competing models often fail. Furthermore, the model demonstrates superior zero-shot image editing capabilities, outperforming specialist models like InsPix2Pix across multiple metrics including L1 and LPIPS.

Conclusion and Future Work

While DDT-LLaMA demonstrates exceptional instruction following and reasoning, its raw aesthetic quality is currently limited by the tokenizer's training resolution (256x256). Future work will focus on scaling the DDT tokenizer and the MLLM backbone to higher resolutions and larger parameter counts to close the aesthetic gap while maintaining superior multimodal reasoning.

Summary updated

BibTeX
@inproceedings{pan2025generative,
  author = {Kaihang Pan and Wang Lin and Zhongqi Yue and Tenglong Ao and Liyu Jia and Wei Zhao and Juncheng Li and Siliang Tang and Hanwang Zhang},
  title = {{Generative Multimodal Pretraining with Discrete Diffusion Timestep Tokens}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02434},
}
Figure