Transfusion: Predict the Next Token and Diffuse Images with One Multi-Modal Model

Chunting Zhou, Lili Yu, Arun Babu, Kushal Tirumala, Michihiro Yasunaga +5 more
8/20/2024
cs.AIcs.CV

No official code found. Best implementation: lucidrains/transfusion-pytorch (1,382 stars, MIT, last commit 2026-01-27). 3 more below.

Abstract

We introduce Transfusion, a recipe for training a multi-modal model over discrete and continuous data. Transfusion combines the language modeling loss function (next token prediction) with diffusion to train a single transformer over mixed-modality sequences. We pretrain multiple Transfusion models up to 7B parameters from scratch on a mixture of text and image data, establishing scaling laws with respect to a variety of uni- and cross-modal benchmarks. Our experiments show that Transfusion scales significantly better than quantizing images and training a language model over discrete image tokens. By introducing modality-specific encoding and decoding layers, we can further improve the performance of Transfusion models, and even compress each image to just 16 patches. We further demonstrate that scaling our Transfusion recipe to 7B parameters and 2T multi-modal tokens produces a model that can generate images and text on a par with similar scale diffusion models and language models, reaping the benefits of both worlds.

View on arXivView PDF

Code Implementations(4)

MIT

Pytorch implementation of Transfusion, "Predict the Next Token and Diffuse Images with One Multi-Modal Model", from MetaAI

1,38273PythonAug 23, 20248 months agoMIT
artificial-intelligenceattentiondeep-learningflow-matchingmulti-modal+1 more
MIT

Transfusion: Predict the Next Token and Diffuse Images with One Multi-Modal Model

10Shell, PythonJun 14, 20258 months agoMIT
PyTorchMIT

PyTorch Implementation of Transfusion: Predict the Next Token and Diffuse Images with One Multi-Modal Model

285PythonAug 24, 20242 years agoMIT
aiartificial-intelligencedeep-learningmultimodal-large-language-modelsmultimodal-transformer+4 more
MIT

About Pytorch implementation of Transfusion, "Predict the Next Token and Diffuse Images with One Multi-Modal Model", from MetaAI

10Python, Jupyter NotebookFeb 10, 20251 years agoMIT

Similar Papers

Cite this paper

@article{zhou2024transfusion,
  title  = {Transfusion: Predict the Next Token and Diffuse Images with One Multi-Modal Model},
  author = {Chunting Zhou and Lili Yu and Arun Babu and Kushal Tirumala and Michihiro Yasunaga and Leonid Shamis and Jacob Kahn and Xuezhe Ma and Luke Zettlemoyer and Omer Levy},
  year   = {2024},
  eprint = {2408.11039},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.11039v1}
}

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/2408.11039.svg)](https://codeofpaper.com/paper/2408.11039)

Discussion