Study the paper
Scaling Laws for Neural Language Models
Lessons, visuals, quizzes, flashcards, and resources—organized in teaching order.
Overfitting and the Infinite Data Limit
Joint Scaling Law L(N,D)
Joint Scaling Law L(N,D)
Source equation
The joint scaling law models the simultaneous dependence of the cross-entropy loss on both the model parameter count and the dataset size . It captures how performance scales when both resources are finite, incorporating the effects of overfitting.
Sources
S1.E5
L(N,D)=[(NcN)αNαD+DcD]αD𝐿𝑁𝐷superscriptdelimited-[]superscriptsubscript𝑁𝑐𝑁subscript𝛼𝑁subscript𝛼𝐷subscript𝐷𝑐𝐷subscript𝛼𝐷L(N,D)=\left[\left(\frac{N_{c}}{N}\right)^{\frac{\alpha_{N}}{\alpha_{D}}}+\frac{D_{c}}{D}\right]^{\alpha_{D}} (1.5)
L(N,D)=\left[\left(\frac{N_{c}}{N}\right)^{\frac{\alpha_{N}}{\alpha_{D}}}+\frac{D_{c}}{D}\right]^{\alpha_{D}}Sources
S1.E5
L(N,D)=[(NcN)αNαD+DcD]αD𝐿𝑁𝐷superscriptdelimited-[]superscriptsubscript𝑁𝑐𝑁subscript𝛼𝑁subscript𝛼𝐷subscript𝐷𝑐𝐷subscript𝛼𝐷L(N,D)=\left[\left(\frac{N_{c}}{N}\right)^{\frac{\alpha_{N}}{\alpha_{D}}}+\frac{D_{c}}{D}\right]^{\alpha_{D}} (1.5)
L(N,D)=\left[\left(\frac{N_{c}}{N}\right)^{\frac{\alpha_{N}}{\alpha_{D}}}+\frac{D_{c}}{D}\right]^{\alpha_{D}}Illustrative Calculation
Let us compute with the following parameters:
- Model size
- Dataset size
- Critical model size
- Critical dataset size
- Scaling exponents ,
Step 1: Compute the exponent ratio
Step 2: Compute the model term
Step 3: Compute the dataset term
Step 4: Sum the terms and apply the outer exponent
Sources
S1.E5
L(N,D)=[(NcN)αNαD+DcD]αD𝐿𝑁𝐷superscriptdelimited-[]superscriptsubscript𝑁𝑐𝑁subscript𝛼𝑁subscript𝛼𝐷subscript𝐷𝑐𝐷subscript𝛼𝐷L(N,D)=\left[\left(\frac{N_{c}}{N}\right)^{\frac{\alpha_{N}}{\alpha_{D}}}+\frac{D_{c}}{D}\right]^{\alpha_{D}} (1.5)
L(N,D)=\left[\left(\frac{N_{c}}{N}\right)^{\frac{\alpha_{N}}{\alpha_{D}}}+\frac{D_{c}}{D}\right]^{\alpha_{D}}- Cross-entropy loss as a function of model size and dataset size · scalar
- Number of non-embedding model parameters · scalar
- Dataset size in tokens · scalar
- Critical model parameter scale constant · scalar
- Critical dataset token scale constant · scalar
- Power-law scaling exponent for model size · scalar
- Power-law scaling exponent for dataset size · scalar