TL;DR
This paper establishes the first explicit scaling laws for Diffusion Transformers (DiT), demonstrating that their performance follows a predictable power-law relationship with compute. By training models ranging from 1 million to 1 billion parameters, the authors show how to precisely calculate the optimal balance between model size and data quantity to maximize generation quality for any given compute budget.
The Missing Manual for DiT Scaling
In the realm of Large Language Models (LLMs), "scaling laws"—such as those established by the famous Chinchilla study—are the gold standard for efficiency. They provide researchers with exact formulas for how much data and how large a model are needed for a specific compute budget, preventing massive wastes of resources.
While Diffusion Transformers (DiT) have rapidly become the backbone of state-of-the-art image and video generators (like Sora or Flux), their scaling behavior has largely remained "observed but not accurately predicted." Until now, scaling DiT models involved expensive heuristic searches and guesswork. This paper fills that critical gap by providing a mathematical framework to predict how pretraining loss and synthesis quality (such as image fidelity) improve as you scale up FLOPs.
Methods: The IsoFLOP Approach
The researchers adopted the IsoFLOP analysis approach to systematically map out these scaling laws. They trained multiple DiT models of varying sizes (from 1M to 1B parameters) across a broad range of compute budgets ($10^{17}$ to $6 \times 10^{18}$ FLOPs).
Key technical choices included:
- Framework: The models utilized the Rectified Flow (RF) formulation with v-prediction, a method increasingly favored for its training stability and efficiency.
- Architecture: The primary testbed was a "Vanilla" In-Context Transformer (which concatenates text and image tokens), though it was also compared against Cross-Attention architectures.
- Optimization: For each fixed compute budget, the researchers plotted loss against model size to find the "parabola's minimum." This minimum represents the mathematically optimal allocation of parameters ($N$) and data ($D$) for that specific budget.
To validate their findings, the authors used their small-scale results to predict the performance of a 1-billion parameter model at a massive $1.5 \times 10^{21}$ FLOP budget. They then trained this model to confirm that the empirical results matched their mathematical predictions.
Datasets and Data Quality
The primary training data was a curated subset of 108 million image-text pairs from Laion-Aesthetic. Crucially, the researchers re-captioned these images using LLaVA 1.5 to provide dense, high-quality descriptions.
To test whether the scaling laws generalize, they evaluated the models on out-of-distribution (OOD) datasets including COCO 2014, Flickr30k, and JourneyDB. They also compared their dense-captioned dataset against a version using sparse tags to measure how data quality impacts the scaling exponent.
Key Insights and Ideas
- The Power-Law is Real: Just like LLMs, DiT pretraining loss follows a clean power-law: $L \propto C^k$. This means performance gains are mathematically inevitable and predictable, rather than coincidental.
- Loss is a Proxy for Beauty: One of the most significant findings is that pretraining loss correlates almost perfectly with generative metrics like FID (Fréchet Inception Distance) and GenEval. If the loss decreases according to the scaling law, the visual quality of the generated images improves at a matching rate.
- Dense Captions Scale Faster: Using dense, descriptive captions (via LLaVA) results in a steeper scaling exponent compared to sparse tags. Simply put, higher-quality data makes your compute "work harder" and yield better results faster.
- Architecture Matters for Scaling: In controlled experiments, Cross-Attention architectures showed a steeper decline in loss (better scaling) than the simple "In-Context" baseline.
Key Results
- Optimal Allocation Exponents: The authors derived specific exponents for DiT scaling. They found that the optimal model size ($N_{opt}$) grows slightly faster than the optimal data size ($D_{opt}$) as the budget increases ($N_{opt} \propto C^{0.5681}$ vs $D_{opt} \propto C^{0.4319}$).
- Successful Extrapolation: The derived scaling law accurately predicted the training loss of a 1B parameter model trained with $1.5 \times 10^{21}$ FLOPs. The empirical result landed exactly on the predicted curve.
- Robustness: These laws held true even when testing on out-of-domain data (e.g., training on Laion but testing on COCO), manifesting as a constant "vertical offset" in absolute loss values while maintaining the same scaling slope.
Limitations and Future Work
- Modality Limits: This study is strictly focused on text-to-image generation. It remains to be seen if these exact exponents hold for text-to-video or other multi-modal tasks.
- Data-Infinite Assumption: The experiments were conducted in a "compute-limited" regime where data was essentially infinite (each data point was seen only once). In real-world scenarios, we may eventually hit "data-constrained" regimes requiring multiple epochs, which typically degrades scaling efficiency.
- Hyperparameter Tuning: The authors used a single set of well-tuned hyperparameters for all models. They acknowledge that further efficiency gains might be possible if learning rates and schedules were custom-optimized for every single point on the scaling curve.
Summary updated