---
id: 16685
lang: en
title: "Apple trained a diffusion model from scratch on 6.4 trillion tokens for text, images, and speech"
published_at: "2026-10-27 20:01:31"
source_name: "Apple ML Research"
source_url: "https://machinelearning.apple.com/research/tri-modal-masked-diffusion"
canonical_url: "https://news.hamidun.com/en/news/16685"
categories: ["research", "creative"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Apple trained a diffusion model from scratch on 6.4 trillion tokens for text, images, and speech

> **Краткая суть (BLUF):** Apple trained one model from scratch to write text, generate images from descriptions, and read text aloud, rather than fine-tuning an existing chatbot. Part of the data is hidden behind masks, like gaps in a dictation exercise, and the model learns to fill them in. The model has 3 billion parameters and was trained on 6.4 trillion tokens, where tokens are small pieces of words, image patches, or audio. For developers, the most useful part is the open breakdown of training settings.  - Part of the data is masked, and the model reconstructs the gaps - Batch size no longer has to be re-tuned for each team's own hardware - Data includes text, image–text pairs, and audio–text pairs

Imagine a dictation exercise where some words are replaced with blanks, and the student has to fill them in. That is how discrete diffusion models learn: they are shown data with masked fragments and asked to reconstruct what is hidden. This is an alternative to the familiar chat models that write one word at a time, from left to right. Apple ML Research has released a paper describing a model trained from scratch on three things at once: writing text, drawing images from descriptions, and turning text into speech. The model has 3 billion parameters (the number of adjustable "knobs" inside it), and training ran on 6.4 trillion tokens. A token is a small piece of data: part of a word, a fragment of an image, or a slice of audio. For comparison, 6.4 trillion is a very large amount of data for a model of this size.

## What Apple actually did

Previously, multimodal diffusion models were usually built by taking a finished text model and fine-tuning it on a second modality, such as images. Apple took a different route. The researchers pretrained what they describe as the first trimodal Masked Diffusion Models (MDMs) from scratch. The training mix included three kinds of data: plain text, image–text pairs, and audio–text pairs.

The resulting preliminary model showed strong results on three tasks: text generation, image creation from a description, and speech synthesis from text. The available description contains no benchmark figures, so the model cannot yet be compared with the best closed models. The authors themselves call the model preliminary: it demonstrates that a unified design works, not that it is a finished product.

## Which settings were examined

The main value of the work is that the authors systematically tested how different decisions affect the outcome. They studied:

- scaling laws for several data types, that is, how quality grows with model size and training volume;
- mixing ratios: how much text, image, and audio to include in the training mix;
- noise schedules: how aggressively to mask data at different stages of training;
- the effect of batch size;
- generation parameters, for which default values are proposed.

The authors describe this as the largest open systematic study of multimodal discrete diffusion to date. Such choices are usually made by trial and error, and each trial can cost weeks of cluster time. A ready-made map of settings saves those experiments.

## The batch size trick

The most practical part concerns the batch, the set of examples the model processes in one training step. Batch size is often chosen to fit the hardware: to fully load GPUs, to get the best efficiency per operation, or to meet a deadline. But the same size affects the noise in the gradients, that is, the signal the model learns from. That is why the optimal value had to be found separately, as recent work has noted.

Apple proposes rescaling parameters based on a stochastic differential equation (SDE). It separates the "physical" batch, chosen for computational constraints, from the "logical" batch, chosen to balance gradient noise. Put simply, an engineer can change the batch size to match their hardware without searching for the optimum again. The authors claim this removes the need to tune the optimal batch size.

## What this means in practice

First, it signals that diffusion for text is becoming a serious direction rather than a lab curiosity. When a major company spends 6.4 trillion tokens training such a model, it is a bid for an alternative to autoregressive models. Second, teams working with multimodal data will find the conclusions about data proportions and noise useful.

There are limitations. At 3 billion parameters, the model is not at flagship level. Quality is described in general terms, with no comparison table. The available text does not indicate whether the weights and code will be published. For now, treat the work as a reference guide to settings rather than a ready-to-run model you can download and launch.

---
- **Первоисточник:** [Apple ML Research](https://machinelearning.apple.com/research/tri-modal-masked-diffusion)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/16685
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
