Introduction
Diffusion Language Models (DLMs) have emerged as a compelling alternative to traditional Autoregressive (AR) architectures. By utilizing bidirectional attention and a denoising objective, DLMs offer unique capabilities such as parallel decoding and flexible generation order. However, while the scaling properties of AR models are well-understood through frameworks like the Chinchilla laws, the optimal training recipes for DLMs have remained largely unexplored. This paper introduces Quokka, a comprehensive set of scaling laws designed to guide the efficient training of large-scale DLMs.
Establishing Scaling Laws for DLMs
To determine how DLMs should scale with increasing compute, we conducted an extensive empirical study involving tens of thousands of models ranging from 7 million to 11 billion parameters. We focused on two primary regimes: compute-constrained and data-constrained scaling.
Compute-Constrained Scaling
Using the IsoFLOPs method, we identified the optimal model size for various compute budgets. By plotting training loss against model parameters for fixed FLOP counts, we observed clear minima that define the compute-optimal frontier. Our analysis reveals that DLMs follow a power-law relationship similar to AR models, with scaling exponents for parameters ($a$) and data ($b$) both approximately equal to 0.50.
Data-Constrained Scaling and Overfitting
In scenarios where unique data is scarce, models must undergo multi-epoch training. We developed a novel formula to predict the onset of overfitting in these regimes. Unlike previous models that assumed a simple plateau in validation loss, our "U-shaped" curve explicitly accounts for the exponential overfitting penalty that occurs after a certain number of epochs. We found that larger models tend to overfit more rapidly, while larger unique datasets provide a buffer against degradation.
Key Insights: The Data-Hungry Nature of Diffusion
The most significant finding of this work is the "multiplier shift" between AR and Diffusion models. While the scaling rates are similar, the absolute amount of data required for a DLM is substantially higher. For a given compute budget, a DLM should be smaller and trained on significantly more data than its AR counterpart.
Our results indicate that DLMs require 2.2x to 6.7x more tokens than prescribed by Chinchilla laws for the same parameter count. For example, a compute-optimal 10B parameter DLM requires approximately 825 billion tokens, whereas the Chinchilla law suggests only 205 billion tokens for an AR model of the same size. This increased data requirement stems from the corruption-denoising objective, which necessitates more exposure to information to achieve comparable performance.
Practical Training Guidelines
Beyond scaling laws, we investigated the impact of various architectural and optimization choices:
- Diffusion Kernels: Masked diffusion (absorbing state) consistently outperforms uniform diffusion across all benchmarks.
- Hyperparameters: Interestingly, optimal batch sizes and learning rates for AR models transfer effectively to DLMs, simplifying the transition for practitioners.
- Schedules: A linear diffusion schedule was found to be superior to cosine or polynomial alternatives.
- Weight Decay: While negligible for single-epoch runs, weight decay is essential for stability and preventing numerical collapse in long-duration, multi-epoch training.
Conclusion
The Quokka scaling laws provide the first systematic framework for training large-scale Diffusion Language Models. By identifying the unique data requirements and overfitting characteristics of DLMs, this work enables researchers to allocate compute resources more effectively. As DLMs continue to evolve, these laws will serve as a foundational guide for building the next generation of non-autoregressive language systems.
Summary updated