Causal Diffusion Transformers for Generative Modeling

Chaorui Deng, Deyao Zhu, Kunchang Li, Shi Guang, Haoqi Fan
12/16/2024
cs.CV

No official code found. Best implementation: causalfusion/causalfusion (197 stars, last commit 2024-12-17).

Abstract

We introduce Causal Diffusion as the autoregressive (AR) counterpart of Diffusion models. It is a next-token(s) forecasting framework that is friendly to both discrete and continuous modalities and compatible with existing next-token prediction models like LLaMA and GPT. While recent works attempt to combine diffusion with AR models, we show that introducing sequential factorization to a diffusion model can substantially improve its performance and enables a smooth transition between AR and diffusion generation modes. Hence, we propose CausalFusion - a decoder-only transformer that dual-factorizes data across sequential tokens and diffusion noise levels, leading to state-of-the-art results on the ImageNet generation benchmark while also enjoying the AR advantage of generating an arbitrary number of tokens for in-context reasoning. We further demonstrate CausalFusion's multimodal capabilities through a joint image generation and captioning model, and showcase CausalFusion's ability for zero-shot in-context image manipulations. We hope that this work could provide the community with a fresh perspective on training multimodal models over discrete and continuous data.

View on arXivView PDF

Code Implementations(1)

1974PythonDec 13, 20241 years ago

Similar Papers

Cite this paper

@article{deng2024causal,
  title  = {Causal Diffusion Transformers for Generative Modeling},
  author = {Chaorui Deng and Deyao Zhu and Kunchang Li and Shi Guang and Haoqi Fan},
  year   = {2024},
  eprint = {2412.12095},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.12095v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.12095.svg)](https://codeofpaper.com/paper/2412.12095)

Discussion