TL;DR
Think of Chinchilla—the famous recipe book that taught us how to balance model size and dataset size for autoregressive (GPT-style) language models. Quokka is that exact recipe book, written from scratch for Diffusion Language Models (DLMs). It reveals that while diffusion models scale at the same proportional pace as their autoregressive cousins, they are 2–5$\times$ hungrier for data at a fixed compute budget—and gives us the first mathematical crystal ball to predict exactly when they will overfit when data runs dry.
What Problem Does This Paper Address?
Most language models today are autoregressive (AR): they read and write strictly left-to-right, one token at a time. Diffusion Language Models (DLMs), by contrast, generate text by starting with noise (or masks) and iteratively refining the whole sequence at once. Because they look at context bidirectionally and generate multiple tokens in parallel, DLMs are naturally suited for ultra-fast decoding and non-linear "back-and-forth" thinking like coding and math.
Here is the catch: nobody actually knew how to scale them optimally. Up until now, researchers training large DLMs from scratch were essentially flying blind—relying on heuristics or borrowing scaling rules directly from AR models. Whether you are bottlenecked by your GPU bill (compute-constrained) or by the impending "token crisis" where humanity runs out of high-quality text (data-constrained), there was no systematic guide on how big to make a DLM, how much data to feed it, or how many epochs to repeat that data before the model starts memorizing instead of learning.
Methods
To build the Quokka scaling laws, the authors ran massive empirical sweeps across two distinct regimes:
- Compute-Constrained Regime (Fixed FLOPs, Unlimited Data): Following the classic Chinchilla playbook, they trained single-epoch models ranging from under 7M to over 11B parameters on datasets from 1B to 260B+ tokens. They used two complementary methods: plotting IsoFLOP profiles (fixing compute and varying parameter/token ratios to find the loss valley) and fitting a parametric power-law loss function decomposing error into irreducible, model-capacity, and finite-data terms.
- Data-Constrained Regime (Fixed Unique Data, Unlimited Compute): Previous multi-epoch scaling laws assumed validation loss simply plateaus as you repeat data. In reality, models eventually overfit, causing validation loss to curve back up. Conducting over 23,000 training runs, the authors designed a novel 10-parameter formulation that replaces raw dataset size with an "effective dataset size" ($D'$). By pairing a power-law learning term with an exponential overfitting penalty, their equation captures the full U-shaped learning–overfitting cycle—and neatly reduces back to the standard single-epoch law when epochs $\le 1$.
- Design & Optimization Ablations: Beyond pure scaling, they systematically ablated core DLM mechanics, including transition kernels (how text is corrupted), noise schedules, loss objectives, and standard hyperparameters.
Datasets
Not discussed in the paper. (While the authors specify exact token counts—from 10M unique tokens in multi-epoch sweeps up to 260B+ tokens in compute-optimal runs—the specific pre-training corpora and downstream evaluation benchmarks are deferred to appendices outside the provided main text.)
Key Insights and Ideas
- DLMs are 2–5$\times$ more data-hungry per FLOP: Because DLMs learn by corrupting inputs and denoising them, each training example conveys slightly less direct information per pass than standard next-token prediction. Consequently, for the same compute budget, you should train a smaller model on a much larger dataset than Chinchilla would tell you to.
- Even pioneering DLMs were misallocated: Plotting existing models against Quokka's efficient frontier reveals that LLaDA (an 8B DLM trained on 2.3T tokens) was severely over-trained for its size. For that exact same compute budget ($1.1 \times 10^{23}$ FLOPs), the sweet spot would have been a 15B model trained on 1.2T tokens.
- Mapping the U-curve of overfitting: When repeating limited data, larger models overfit much faster, while larger unique datasets buy you more time. To get the absolute best performance out of a fixed pool of unique tokens, you shouldn't just crank up epochs or just crank up parameters—you have to scale both modestly together.
- Some AR rules transfer, others don't: Established AR scaling laws for batch size and learning rate transfer seamlessly to DLMs. Weight decay, however, turns out to be useless for single-epoch runs, yet essential for keeping multi-epoch runs numerically stable and regularized.
- Simpler diffusion mechanics win: Absorbing-mask transitions (replacing tokens with
[MASK]) beat uniform random token swaps; linear noise schedules are the most stable; easy-to-hard noise curricula speed up early learning; and principled diffusion ELBO losses eventually outperform heuristic MaskGIT losses despite starting slower.
Key Results
- Proportional Compute Scaling: Optimal parameters and tokens scale equally with compute: $N_{\mathrm{opt}} \propto C^{0.51}$ and $D_{\mathrm{opt}} \propto C^{0.49}$ (Approach 1), or $C^{0.50}$ for both (Approach 2). However, Quokka's data multiplier ($k_D$) is 2.2–6.7$\times$ larger than Chinchilla's. For example, a compute-optimal 10B DLM needs 825.2B tokens, whereas a 10B Chinchilla AR model needs only 205.1B.
- Higher Irreducible Loss: Extrapolated to infinite scale, DLMs hit an irreducible loss floor of 2.41 compared to 1.69 for AR models—a natural consequence of optimizing a variational upper bound (ELBO) rather than exact negative log-likelihood.
- Predicting the Overfitting Horizon: Across 23,145 multi-epoch runs, the optimal stopping epoch before validation loss degrades scales as $e_{\mathrm{opt}} \propto U_D^{0.39} / N^{0.55}$. Concretely, this predicts you can train a 10B DLM on 1T unique tokens for a maximum of 1,098 epochs before validation loss starts rising.
Limitations and Future Work
The authors highlight an important caveat in their data-constrained model: because the interaction of parameters in their 10-coefficient fit drives the irreducible loss term ($E$) to nearly zero, the contour plots predict extraordinarily low validation losses at extreme scales that may not be attainable in reality due to fitting error. More broadly, these laws map dense models trained from scratch; extending Quokka's framework to sparse architectures (like Mixture-of-Experts) or hybrid AR-diffusion paradigms remains open territory.
Summary updated