---
title: Chinchilla-Style Scaling Practices
url: https://www.emergentmind.com/topics/chinchilla-style-scaling-practices
type: topic
---

# Chinchilla-Style Scaling Practices

Chinchilla-style scaling practices refer to empirical methodologies for allocating compute budgets between model parameter count ($N$) and dataset size ($D$) when training transformer-based language models, with the aim of minimizing loss for a given amount of compute. Originating in Hoffmann et al. (2022) and subsequently rigorously replicated and extended, these practices are now foundational in large language model (LLM) development. The key insight is that performance scales optimally when $N$ and $D$ increase in tandem, typically $\propto C^{1/2}$ for compute budget $C$, yielding a characteristic “tokens-per-parameter” ratio. Precise loss-surface modeling, robust fitting procedures, and careful parameter counting are essential for consistency and reliable extrapolation.

## 1. Mathematical Formulation and Parametric Loss Laws

Chinchilla-style scaling models the pretraining cross-entropy loss ($L$) as a function of model size ($N$) and training tokens ($D$) using a power-law sum:

\[
L(N,D) = E + A N^{-\alpha} + B D^{-\beta}
\]

where $E$ is the irreducible loss floor, and $A, B$ scale the contributions from model size and data size. The exponents $\alpha$ and $\beta$ (both $\approx 0.33\!-\!0.37$ in typical natural language settings) are empirically determined through large sweeps and robust loss fitting, employing Huber minimization in log-space and bootstrap resampling for uncertainty quantification [2404.10102]. Robust fitting in log-space, with BFGS optimization and summation (not averaging) of per-point residuals, is essential to obtain valid confidence intervals and reproducible exponents.

Correct parameter estimation yields values such as:
- $A = 482.01 (\pm124.58)$
- $B = 2085.43 (\pm1293.23)$
- $E = 1.8172 (\pm0.03)$
- $\alpha = 0.3478 (\pm0.02)$
- $\beta = 0.3658 (\pm0.02)$

Thus, at scale:

\[
L(N,D) = 1.8172 + 482.01\,N^{-0.3478} + 2085.43\,D^{-0.3658}
\]

Under a compute budget $C$ (FLOPs, with $C \approx 6 N D$), minimizing $L(N,D)$ subject to $6ND=C$ yields the optimal allocation:

\[
N_{\rm opt} \propto C^{a}, \quad D_{\rm opt} \propto C^{1-a}
\]
with $a = \frac{\beta}{\alpha+\beta} \approx 0.513$. This enforces a near-constant ratio $D/N \approx 20$ at large scale [2404.10102, 2406.12907, 2203.15556].

## 2. Best Practices and Estimation Workflow

Accurate Chinchilla-style scaling requires:

- **Raw data reconstruction:** Careful digitization from primary plots, including color-bar sampling and estimation of digitization noise.
- **Log-space robust fitting:** Summing robust Huber penalties over residuals, never averaging, and verifying optimizer convergence.
- **Confidence interval reporting:** Full bootstrap on fitting objective; meaningful CIs on exponents $\lesssim 0.4$ may demand tens to hundreds of thousands of runs.
- **Parameter counting:** Always include all parameter counts (non-embedding and embedding layers) [2406.12907, 2406.19146].
- **Hyperparameter tuning:** Learning rate, batch size, and AdamW $\beta_2$ should be scaled with $N$; at small batch size, $\beta_2 = 0.99$ is recommended [2406.19146].
- **Architectural calibration:** Conditional scaling laws account for hidden size, MLP-to-attention ratio, and grouped-query attention, yielding Pareto-efficient designs with loss and inference cost jointly optimized [2510.18245].

## 3. Extensions: Sparse Training, Code LLMs, Data-Constrained Regimes

### Sparse Pretraining

Unified scaling laws using average parameter count $\bar{N}$ over the pretraining schedule yield accurate loss predictions and inference-time savings [2501.12486]:

\[
L(\bar N, D) = A \bar N^{-\alpha} + B D^{-\beta} + E
\]

where $\bar N = (1/T)\sum_{k=1}^T N_k$ is the average over pruning iterations. Typical 25%-50%-25% schedule (burn-in, iterative pruning, sparse recovery) achieves near-dense performance with smaller deployable models.

### Scaling Laws for Code LLMs

Empirical fits on code datasets show substantially more data-hungry regimes. For code LLMs:

\[
L(N, D) = 0.2193 + 534.374 N^{-0.4853} + 76.0743 D^{-0.2983}
\]

Optimal $D/N$ rises to O(100–300) at large compute, far greater than natural language ($\sim$20). Mixtures with NL regularize loss at low compute but degrade high-compute, code-centric training [2510.08702].

### Data-Constrained Scaling

In limited-data regimes, the effective data $D'$ and parameters $N'$ decay exponentially beyond critical numbers of epochs ($R_D^*$) or parameter excess ($R_N^*$):

\[
D' = U_D + U_D R_D^* \left(1 - e^{-R_D/R_D^*}\right)
\]
\[
N' = U_N + U_N R_N^* \left(1 - e^{-R_N/R_N^*}\right)
\]

Loss plateaus after $\sim$16 epochs on repeated data, recommending epoch increases over parameter growth up to this threshold [2305.16264].

## 4. Recent Developments: Farseer Law and Compute-Centric Scaling

### Farseer Scaling Law

Farseer refines Chinchilla by letting the data-scaling exponent and coefficient be explicit functions of $N$, yielding better cross-scale extrapolation:

\[
L(N,D) = e^{a_3 N^\gamma + b_3} + e^{a_2 N^\beta + b_2} D^{-\exp(a_1 N^\alpha + b_1)}
\]

This captures nuances missed by fixed-exponent, additive models and predicts rising optimal $D/N$ for extreme budgets [2506.10972].

### Unified Compute Scaling

Independent empirical fits show that model performance (measured in bits-per-character) is log-linear in total training compute $C = N D$, largely agnostic to specific $D/N$ allocation:

\[
\mathrm{BPC}(N, D) = -0.031 \log(N D) + 0.572
\]

For inference efficiency, minimal $N$ with $D = C/N$ is optimal, subject to downstream quality [2404.19484].

## 5. Inference-Adjusted and Architecture-Aware Scaling

Recent work has incorporated inference demand and architectural constraints into scaling law optimization.

- **Inference penalty:** Lifetime compute (training + inference) is minimized by reducing $N$ and increasing $D$ for models expected to serve heavy inference loads, often pushing $D/N \gg 20$ [2401.00448, 2501.18107]. Closed-form optimization jointly over $N$, $D$, and model shape (depth/width).
- **Model shape:** Wider and shallower architectures (high hidden-size, low layer count) yield lower latency for fixed accuracy. Pareto-optimal accuracy/latency curves can be traced via penalized loss functions and hardware measurements [2501.18107, 2510.18245].

| Scaling Law                | Loss Formula                                      | Exponent Range   | Optimal D/N @ Large C | Application          |
|----------------------------|---------------------------------------------------|------------------|----------------------|----------------------|
| Chinchilla                 | $E + A N^{-\alpha} + B D^{-\beta}$               | $\alpha, \beta \sim 0.33$ | $\sim$20                | NL LLMs              |
| Chinchilla (Code)          | $E + A N^{-\alpha} + B D^{-\beta}$ (code values) | $\alpha \approx 0.48, \beta \approx 0.30$ | $100$–$300$          | Code LLMs            |
| Sparse Chinchilla          | $E + A \bar{N}^{-\alpha} + B D^{-\beta}$         | $\alpha$, $\beta$ Fitted  | $\bar{N}$                | Sparse training       |
| Farseer                    | $e^{a_3 N^\gamma + b_3} + e^{a_2 N^\beta + b_2} D^{-\exp(a_1 N^\alpha + b_1)}$ | Flexible          | $\uparrow$ with $C$      | Cross-scale, ablation |
| Compute-centric            | $\alpha \log(N D) + \beta$                       | $\alpha=-0.031$  | Any                  | Efficiency, hardware  |

## 6. Caveats, Pitfalls, and Regimes of Validity

- **Parameter counting:** Always count all parameters—including embeddings and head—especially at small scale to avoid exponent inflation [2406.12907, 2406.19146].
- **Confidence intervals:** Robust CIs require large bootstraps; overly narrow intervals frequently indicate misconfigured fitting (e.g., averaging losses) [2404.10102].
- **Architectural impact:** Non-standard shapes, large/small sequence lengths, or alternative modalities may break classic scaling and require retuning [2510.18245].
- **Extreme regimes:** Data-constrained and high-inference applications often deviate from standard Chinchilla ratios, requiring alternate formulations or regime identification.
- **Extrapolation:** Fixed-exponent models (Chinchilla) may over- or under-estimate at the boundaries; Farseer or differential piecewise fits are preferred for large-scale prediction.

## 7. Practical Recipe for Compute-Optimal Training

1. **Determine compute budget $C$ (FLOPs).**
2. **Parametric fitting:** Fit $L(N,D)$ from baseline experiments, ensuring full parameter counts and robust loss minimization.
3. **Allocate:** For NL LLMs,
   - $N_{\rm opt} = (\frac{C}{6 \times 20})^{1/2}$,
   - $D_{\rm opt} = 20 N$.
4. **Hyperparameter scaling:** Learning rate $\eta=0.022(N/10^6)^{-0.31}$, batch size $B=6 (N/10^6)^{0.67}$, AdamW $\beta_2=0.99$ for small $B$.
5. **Architectural optimization:** For inference efficiency, select hidden size, MLP/attn ratio, and GQA, employing conditional scaling laws and Pareto analysis.
6. **Sparse/pruned training:** Select initial width such that $\bar{N}$ matches the desired dense equivalent; schedule prune between 25–75% of budget [2501.12486].
7. **If code or limited data:** Fit code-specific exponents; allocate heavily to data ($D/N \gg 20$). In unique-text-starved regimes, repeat up to 16 epochs before returns diminish [2510.08702, 2305.16264].

Chinchilla-style scaling remains the central paradigm for efficient, predictable LLM training, supporting diverse contexts from sparse models through data-constrained and inference-optimized deployments. Consistency in data handling, parameter accounting, and robust statistical methods is essential for reproducibility and optimal resource utilization [2404.10102, 2406.12907, 2203.15556, 2506.10972, 2510.08702, 2305.16264, 2501.18107, 2406.19146].

Source: https://www.emergentmind.com/topics/chinchilla-style-scaling-practices