Get the latest tech news

Transfusion: Predict the next token and diffuse images with one multimodal model


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 a PDF of the paper titled Transfusion: Predict the Next Token and Diffuse Images with One Multi-Modal Model, by 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 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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of images

images

Photo of token

token

Photo of multimodal model

multimodal model

Related news:

News photo

SpyAgent Android Malware Steals Your Crypto Recovery Phrases From Images

News photo

SpyAgent Android malware steals your crypto recovery phrases from images

News photo

SpyAgent Android malware extracts crypto recovery phrases from images