After studying this material, you should be able to:
Input: "The cat sat on the..."
Output: "mat" β predicts ONE token at a time, left to right
Limitations:
π‘ Key Question: Can we build ONE unified model that generates text, images, AND audio together?
Diffusion models work in two phases:
FORWARD PROCESS (Training):
Clean Data β Add Noise Gradually β Pure Noise
π± β π«οΈπ± β π«οΈπ«οΈπ«οΈ
REVERSE PROCESS (Generation):
Pure Noise β Remove Noise Gradually β Clean Data
π«οΈπ«οΈπ«οΈ β π«οΈπ± β π±
| Type | Works On | Example |
|---|---|---|
| Continuous Diffusion | Real-valued data | Images (pixel values) |
| Discrete Diffusion | Categorical tokens | Text, discrete image tokens |
π‘ Language is discrete (words/tokens), so we need Discrete Diffusion
Instead of adding Gaussian noise, MDMs use masking as their noise process:
FORWARD (Masking):
"The cat sat on the mat"
β "The [MASK] sat on [MASK] mat"
β "[MASK] [MASK] [MASK] [MASK] [MASK] [MASK]"
REVERSE (Unmasking):
"[MASK] [MASK] [MASK] [MASK] [MASK] [MASK]"
β "The [MASK] sat on [MASK] mat"
β "The cat sat on the mat"
| Feature | Autoregressive | MDM |
|---|---|---|
| Generation order | Fixed (leftβright) | Flexible/parallel |
| Speed | Slower | Potentially faster |
| Bidirectional context | β | β |
| Multi-modal unification | Hard | Natural |
UNIMODAL: Text only
π
BIMODAL: Text + Images
(Previous work) π + πΌοΈ
TRI-MODAL: Text + Images + Audio
(This paper) β π + πΌοΈ + π
Previous approaches:
Take existing text model β Fine-tune for images β Fine-tune for audio
(suboptimal β modalities added as afterthoughts)
This paper's approach:
Train on ALL THREE modalities simultaneously from the beginning
(modalities inform each other during learning)
π‘ Analogy: Learning Spanish by only translating from English vs. growing up speaking both languages simultaneously
What are scaling laws? Scaling laws describe how model performance improves as you increase:
Performance
β
| β 3B params
| β
| β
| β
|β
+----------------β Scale
Why it matters for multimodal:
Does adding more modalities help or hurt scaling efficiency? The paper systematically measures this.
The core question: How much of each modality should be in training data?
Option A: 80% Text, 10% Image-Text, 10% Audio-Text
Option B: 33% Text, 33% Image-Text, 33% Audio-Text
Option C: 60% Text, 30% Image-Text, 10% Audio-Text
Why this matters:
π‘ Analogy: A student studying for 3 exams must allocate study time wisely β too much time on one subject hurts the others
What is a noise schedule?
It controls how fast masking happens during training:
LINEAR SCHEDULE:
Time: 0% 25% 50% 75% 100%
Masked: 0% 25% 50% 75% 100%
COSINE SCHEDULE:
Time: 0% 25% 50% 75% 100%
Masked: 0% 5% 50% 95% 100%
(spends more time at intermediate noise levels)
Why it matters: Different schedules teach the model different things:
This is the most technically novel part of the paper.
In stochastic gradient descent (SGD):
SMALL BATCH:
- High gradient variance (noisy updates)
- More updates per epoch
- Better generalization sometimes
- Slower wall-clock time
LARGE BATCH:
- Low gradient variance (stable updates)
- Fewer updates per epoch
- Needs more careful tuning
- Faster wall-clock time (GPU efficient)
The tension:
Physical Batch Size β Logical Batch Size
(what fits on GPU) (what's optimal for learning)
Previous work required manually tuning which batch size gives best results β expensive!
A Stochastic Differential Equation describes how a system evolves with both deterministic and random components:
dx = f(x,t)dt + g(t)dW
β β
Deterministic Random/Stochastic
drift component
The insight: The masking process in MDMs can be described as an SDE. By reparameterizing through this SDE framework:
BEFORE (Old approach):
Physical Batch Size β affects gradient variance β need to tune separately
β (coupled)
Logical Batch Size β affects learning quality
AFTER (SDE Reparameterization):
Physical Batch Size ββ DECOUPLED ββ Logical Batch Size
(choose based on GPU) (choose based on optimization)
Engineer can now say:
"I have 8 A100 GPUs β Physical batch = 512 (for GPU efficiency)"
AND separately:
"Optimal learning needs logical batch = 2048"
The SDE reparameterization handles the translation automatically!
π‘ Analogy: Like having a car with automatic transmission β you choose your desired speed (logical), the transmission handles gear selection (physical) automatically
Model Scale: 3 Billion Parameters
Training Data: 6.4 Trillion Tokens
Modalities: Text + Image + Audio
| Task | Input | Output | Abbreviation |
|---|---|---|---|
| Text Generation | Prompt | Continuation | LM |
| Text-to-Image | Text description | Image | T2I |
| Text-to-Speech/Sound | Text description | Audio | T2S |
Previous SOTA approach: Separate specialized models per modality
πmodel πΌοΈmodel πmodel
This paper: ONE unified model
π€
achieving competitive results
across ALL THREE tasks
TRI-MODAL MDM DESIGN SPACE
DATA LAYER:
[Text Data] + [Image-Text Data] + [Audio-Text Data]
β β β
Mixing Ratio: (optimized through systematic study)
MODEL LAYER:
Masked Diffusion Model (3B parameters)
- Noise Schedule: (optimized)
- Batch Size: (handled by SDE reparameterization)
INFERENCE LAYER:
- Optimized sampling defaults provided
OUTPUT:
Text Generation | T2I | T2S
| Concept | One-Line Summary |
|---|---|
| MDM | Uses masking (not Gaussian noise) for discrete token diffusion |
| Tri-modal | First model pretrained from scratch on text + image + audio |
| Scaling Laws | Systematic study of how performance scales across modalities |
| Mixing Ratios | Optimal balance of training data across modalities |
| Noise Schedule | Controls masking speed during training |
| SDE Reparameterization | Decouples physical vs. logical batch size automatically |
| Scale | 3B params, 6.4T tokens β largest open study of its kind |