LLM Pre-Training Scaling Laws, Web Data Curation, Synthetic Textbooks, and Byte Latent Transformers (BLT) in 2026: Chinchilla Frontiers, Inference-Optimal Over-Training, FineWeb-Edu, DCLM, Phi-1, and Entropy Patching

LLM Pre-Training Scaling Laws, Web Data Curation, Synthetic Textbooks, and Byte Latent Transformers (BLT) in 2026: Chinchilla Frontiers, Inference-Optimal Over-Training, FineWeb-Edu, DCLM, Phi-1, and Entropy Patching

LLM Pre-Training Scaling Laws, Web Data Curation, Synthetic Textbooks, and Byte Latent Transformers (BLT) in 2026: Chinchilla Frontiers, Inference-Optimal Over-Training, FineWeb-Edu, DCLM, Phi-1, and Entropy Patching

What separates a frontier foundation model that reasons cleanly on compact consumer or single-node enterprise hardware from a bloated, undertrained multi-hundred-billion-parameter model that hallucinates basic facts and collapses on character-level noise? Between 2020 and 2026, the science of large language model (LLM) pre-training underwent four sequential paradigm shifts—moving from parameter-heavy scaling to compute-optimal parameter-to-token balancing, then to inference-adjusted extreme over-training, next to classifier-decanted web and synthetic textbook curricula, and finally to tokenizer-free dynamic byte patching.

Understanding how modern foundation models are engineered in 2026 requires mastering five empirical milestones that govern every pre-training cluster:

  1. Compute-Optimal Parameter and Data Scaling (Chinchilla, Hoffmann et al., arXiv:2203.15556): Overturning the early Kaplan et al. (arXiv:2001.08361) scaling law ($N_{\text{opt}} \propto C^{0.73}, D_{\text{opt}} \propto C^{0.27}$) that drove the field to train 175B–530B models on a fixed ~300B-token corpus, Hoffmann et al. trained over 400 models (70M to 16B parameters on 5B to 500B tokens) to prove that model size $N$ and training tokens $D$ must scale in equal proportions ($a \approx 0.50, b \approx 0.50$, or roughly 20 tokens per parameter). Training the 70B-parameter Chinchilla model on 1.4 trillion tokens ($4\times$ smaller than Gopher-280B and $4\times$ more data at the identical $5.76 \times 10^{23}$ FLOP budget) lifted 5-shot MMLU to 67.5% (+7.5% over Gopher's 60.0%), BIG-bench across 62 tasks to 65.1% (+10.7% over Gopher's 54.4%), and 0-shot TruthfulQA to 43.6% (+14.1% over Gopher's 29.5%).
  2. Inference-Aware Over-Training Scaling Laws (Beyond Chinchilla-Optimal, Sardana et al., arXiv:2401.00448): Modifying the Chinchilla objective to minimize total lifetime training plus inference compute ($6 N D_{\text{tr}} + 2 N D_{\text{inf}}$) and real-world accelerator dollar cost across heterogeneous Model FLOPs Utilization (MFU) (50% training MFU vs. 1% autoregressive generation MFU). Across 47 MPT models (150M to 6B parameters) trained up to 10,000 tokens per parameter, validation loss and 5-category Evaluation Gauntlet accuracy continue improving monotonically without saturation—explaining why production models expecting billions of inference requests (Llama-3-8B trained on 15 trillion tokens, or 1,875 tokens/parameter) cut total lifetime compute by 17% to 28% and dollar cost by up to 36% compared to Chinchilla-sized models.
  3. Web-Scale Extraction, Per-Snapshot Deduplication, and Classifier Decanting (FineWeb-Edu, arXiv:2406.17557 & DataComp-LM / DCLM, arXiv:2406.11794): Proving across 80,000 H100 GPU hours of 1.71B-parameter ablations that extracting raw WARC HTML via trafilatura or resiliparse ($8\times$ faster) beats Common Crawl WET text by >2.5 Core percentage points; that global MinHash deduplication across 96 Common Crawl snapshots removes 90% of old dumps (like 2013-48) while actively degrading quality compared to independent per-snapshot MinHash deduplication (15T-token FineWeb); that filtering FineWeb with a Llama-3-70B-Instruct educational regressor (1.3T-token FineWeb-Edu, score $\ge 3$, 82% F1) boosts MMLU from 33% to 37% and ARC from 46% to 57% (reaching 33.6% MMLU at 38B tokens vs. Matrix's 300B tokens, an ~8x–10x token speedup); and that DCLM-Baseline (filtering a 240T-token pool with a fastText OpenHermes-2.5 + ELI5 top-10% classifier) trains a 7B model on 2.6T tokens to 64% MMLU—surpassing MAP-Neo by +6.6 percentage points with 40% less compute and matching Llama-3-8B across 53 tasks with 6.6x less compute.
  4. Synthetic Textbook Curricula (Textbooks Are All You Need / Phi-1, Gunasekar et al., arXiv:2306.11644): Demonstrating that data clarity, self-containment, and algorithmic density can bend scaling laws by two orders of magnitude. Pre-training a 1.3B-parameter transformer (Phi-1) on 6B filtered Stack+StackOverflow tokens plus <1B GPT-3.5 synthetic Python textbook tokens (CodeTextbook) and finetuning on ~180M synthetic docstring exercise tokens (CodeExercises)—in just 4 days on 8 A100 GPUs—achieves 50.6% pass@1 on HumanEval and 55.5% on MBPP (while the 350M-parameter phi-1-small reaches 45% HumanEval), outperforming StarCoder-15.5B (33.6%–40.8% HumanEval on 1T tokens) and PaLM-Coder-540B (35.9% HumanEval on 780B tokens).
  5. Tokenizer-Free Dynamic Entropy Patching (Byte Latent Transformer / BLT, Pagnoni et al., Meta FAIR, arXiv:2412.09871): Eliminating fixed-vocabulary Byte-Pair Encoding (BPE) tokenizers by grouping raw UTF-8 bytes ($V = 256$) into dynamic variable-length patches whenever a lightweight byte language model detects a spike in next-byte prediction uncertainty ($H(x_t) > \theta_g$ or $H(x_t) - H(x_{t-1}) > \theta_r$). Across FLOP-controlled scaling up to 8B parameters and 4.5T training bytes, BLT-Entropy outperforms BPE Llama-3-8B in average accuracy (61.1% vs. 60.0%, including 35.4% vs. 31.1% on HumanEval), slashes inference FLOPs by up to ~50% when scaling average patch size from 4.4 to 8 bytes, gains +7.4 points on Noisy HellaSwag (64.3% vs. 56.9%), and leaps from 27.5% (Llama-3) to 54.1% on CUTE (99.9% vs. 1.1% on character spelling).
📌 Key Takeaways & Empirical Pre-Training Scaling Benchmarks
  • ✓Chinchilla Compute-Optimal Scaling vs. Kaplan et al. (arXiv:2203.15556): Fitting $L(N, D) = 1.69 + 406.4 N^{-0.34} + 410.7 D^{-0.28}$ across >400 runs proves that optimal parameters and training tokens scale equally ($N_{\text{opt}} \propto C^{0.50}, D_{\text{opt}} \propto C^{0.50}$, ~20 tokens/parameter). At the Gopher compute budget ($5.76 \times 10^{23}$ FLOPs), Chinchilla (70B parameters, 1.4T tokens) achieves 67.5% MMLU (+7.5% over Gopher-280B) and 65.1% across 62 BIG-bench tasks (+10.7% over Gopher).
  • ✓Inference-Adjusted Over-Training & 10,000 Tokens/Param (arXiv:2401.00448): Because autoregressive generation runs at ~1% MFU vs. 40%–60% training MFU, minimizing lifetime cost requires training smaller models far longer. A 7B model over-trained for 2T inference tokens saves 17% total FLOPs ($1.7 \times 10^{22}$) over a 13B Chinchilla model, while a cost-optimal model cuts total dollar cost by 36% vs. Chinchilla-70B at 2T inference tokens (7.02B requests)—with zero loss plateau observed up to 10,000 tokens/parameter.
  • ✓FineWeb-Edu, DCLM-Baseline & Phi-1 Data Multiplier (arXiv:2406.17557, arXiv:2406.11794, arXiv:2306.11644): Filtering the 15T-token FineWeb corpus (96 Common Crawl dumps, per-dump MinHash) with a Llama-3-70B-Instruct educational regressor yields FineWeb-Edu (1.3T tokens, 82% F1 at threshold 3), boosting MMLU from 33% to 37% and ARC from 46% to 57% in ~10x fewer tokens. DCLM-Baseline (top-10% fastText OH-2.5 + ELI5 on a 240T-token pool) reaches 64% MMLU on a 7B model at 2.6T tokens (6.6x less compute than Llama-3-8B), while Phi-1 (1.3B, 7B tokens) hits 50.6% HumanEval and 55.5% MBPP.
  • ✓Byte Latent Transformer (BLT) Dynamic Entropy Patching (arXiv:2412.09871): Segmenting raw bytes dynamically via next-byte entropy thresholds matches or beats BPE Llama-3-8B at 8B scale (61.1% vs. 60.0% 7-task average; 35.4% vs. 31.1% HumanEval), saves nearly 50% inference FLOPs at patch size 8 bytes (vs. Llama-3's 4.4 bytes/token), and doubles orthographic reasoning on CUTE from 27.5% to 54.1%.
67.5% MMLU
Chinchilla-70B (1.4T Tokens)

+7.5% over Gopher-280B (300B tokens) at equal 5.76e23 FLOPs via 1:1 parameter-token scaling (arXiv:2203.15556).

-36% Cost / 10k
Inference-Optimal Over-Training

36% lifetime dollar savings at 2T inference tokens (1% generation MFU) and monotonic loss decline to 10,000 tok/param (arXiv:2401.00448).

46% → 57% ARC
FineWeb-Edu & Phi-1 (50.6%)

1.3T-token FineWeb-Edu jumps ARC +11 pts (~10x faster MMLU); 1.3B Phi-1 hits 50.6% HumanEval on 7B textbook tokens (arXiv:2406.17557).

~50% FLOP Cut
Byte Latent Transformer (BLT)

Dynamic 8-byte entropy patching cuts inference FLOPs ~50% while lifting CUTE character tasks from 27.5% to 54.1% (arXiv:2412.09871).


The Pre-Training Compute-Optimal Frontier: Kaplan vs. Chinchilla Scaling Laws and Parametric Risk Decomposition

Given a fixed pre-training compute budget $C$ measured in floating-point operations ($\text{FLOPs}(N, D) \approx 6 N D$, where $N$ is the non-embedding parameter count and $D$ is the number of training tokens), how should an engineering team trade off model size $N$ against dataset size $D$ to minimize final pre-training cross-entropy loss $L(N, D)$?

In 2020, Kaplan et al. (Scaling Laws for Neural Language Models, arXiv:2001.08361) concluded that optimal model size grows rapidly with compute ($N_{\text{opt}} \propto C^{0.73}$) while optimal training tokens grow slowly ($D_{\text{opt}} \propto C^{0.27}$). That single pair of exponents shaped an entire generation of massive, data-starved dense transformers (arXiv:2203.15556, Table 1): GPT-3 (175B parameters, 300B tokens), Jurassic-1 (178B parameters, 300B tokens), Gopher (280B parameters, 300B tokens), and Megatron-Turing NLG 530B (530B parameters, 270B tokens)—all trained near a static 300-billion-token ceiling while model weights expanded nearly threefold.

1. Why Kaplan et al. Overestimated Parameter Scaling—and How Hoffmann et al. Fixed the Cosine Schedule Trap

In Training Compute-Optimal Large Language Models (arXiv:2203.15556), Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Laurent Sifre, and colleagues at DeepMind exposed the methodological flaw in Kaplan et al.'s fit: Kaplan et al. used a fixed total training token horizon (and fixed learning rate schedule length) of $1.3 \times 10^5$ steps across all runs, extracting intermediate loss measurements along a single cosine schedule. As Hoffmann et al. prove in Appendix B of arXiv:2203.15556, decaying a cosine learning rate schedule by $10\times$ over a token horizon longer than the target evaluation step $D$ severely inflates the intermediate loss—producing the illusion that training for more tokens yields diminishing returns compared to adding parameters.

When every run's cosine learning rate decay cycle is matched to its exact target training token duration $D$ (decaying the learning rate by $10\times$ over $D$ tokens), evaluating over 400 transformer training runs spanning 70 million to over 16 billion parameters and 5 billion to 500 billion training tokens across three independent methodologies yields a near-1:1 scaling law (arXiv:2203.15556, Section 3 & Table 2):

  1. Approach 1 (Minimum Loss Envelope Over Training Curves): Training a fixed family of models (70M to 10B parameters), each across 4 distinct cosine cycle horizons varying by a factor of $16\times$, extracting the continuous lower loss envelope across 1,500 logarithmically spaced FLOP budgets, and fitting power laws $N_{\text{opt}} \propto C^a$ and $D_{\text{opt}} \propto C^b$ yields $a = 0.50\ (10\text{th–90th percentile: } 0.488, 0.502)$ and $b = 0.50\ (0.501, 0.512)$.
  2. Approach 2 (IsoFLOP Profiles): Fixing 9 training FLOP budgets ranging from $6 \times 10^{18}$ to $3 \times 10^{21}$ FLOPs, varying model sizes up to 16B parameters along each IsoFLOP slice, and fitting parabolas in log-parameter space to locate the valley minimum yields $a = 0.49\ (0.462, 0.534)$ and $b = 0.51\ (0.483, 0.529)$.
  3. Approach 3 (Parametric Risk Decomposition of the Loss): Inspired by classical statistical learning risk decomposition (arXiv:2203.15556, Section 3.3 & Appendix D.2), the expected cross-entropy loss $\hat{L}(N, D)$ decomposes into three additive terms:

$$\hat{L}(N, D) \triangleq E + \frac{A}{N^{\alpha}} + \frac{B}{D^{\beta}}$$

Here, $E$ represents the irreducible Bayes risk (the intrinsic entropy of natural text on the data distribution), $\frac{A}{N^\alpha}$ captures the functional approximation error of restricting an ideal predictor to a finite $N$-parameter transformer hypothesis space $\mathcal{H}_N$, and $\frac{B}{D^\beta}$ captures the finite-sample optimization suboptimality from observing only $D$ tokens in a single pass. Fitting $(A, B, E, \alpha, \beta)$ via L-BFGS minimization of the Huber loss ($\delta = 10^{-3}$) over the log-sum-exp ($\operatorname{LSE}$) objective:

$$\min_{a, b, e, \alpha, \beta} \sum_{\text{Run } i} \operatorname{Huber}_{\delta}\Big(\operatorname{LSE}\big(a - \alpha \log N_i,\; b - \beta \log D_i,\; e\big) - \log L_i\Big)$$

yields the canonical Chinchilla coefficients (arXiv:2203.15556, Equation 10):

$$E = 1.69, \qquad A = 406.4, \qquad B = 410.7, \qquad \alpha = 0.34, \qquad \beta = 0.28$$

Minimizing $\hat{L}(N, D)$ subject to the compute constraint $\text{FLOPs}(N, D) \approx 6 N D = C$ via Lagrange multipliers yields the closed-form compute-optimal frontier (arXiv:2203.15556, Equation 4):

$$N_{\text{opt}}(C) = G \left(\frac{C}{6}\right)^{a}, \qquad D_{\text{opt}}(C) = G^{-1} \left(\frac{C}{6}\right)^{b}, \qquad \text{where } G = \left(\frac{\alpha A}{\beta B}\right)^{\frac{1}{\alpha + \beta}}, \quad a = \frac{\beta}{\alpha + \beta} = 0.46, \quad b = \frac{\alpha}{\alpha + \beta} = 0.54$$

Verified Technical Lecture: LLM Scaling Laws Explained: Kaplan vs. Chinchilla vs. Inference-Optimal (Why We Over-Train LLMs now) by Ryan Rad (verified via live YouTube oEmbed HTTP 200).

2. The Chinchilla-70B Empirical Validation Against Gopher-280B and MT-NLG-530B

As shown in Table 3 of arXiv:2203.15556 (Approach 1 projections), the compute-optimal rule of thumb requires approximately 20 training tokens per parameter across every scale:

  • 400 Million parameters: $1.92 \times 10^{19}$ FLOPs ($1/29,968$ Gopher units) $\rightarrow$ 8.0 Billion tokens.
  • 1 Billion parameters: $1.21 \times 10^{20}$ FLOPs ($1/4,761$ Gopher units) $\rightarrow$ 20.2 Billion tokens.
  • 10 Billion parameters: $1.23 \times 10^{22}$ FLOPs ($1/46$ Gopher units) $\rightarrow$ 205.1 Billion tokens.
  • 67 Billion parameters: $5.76 \times 10^{23}$ FLOPs (1.0 Gopher unit) $\rightarrow$ 1.5 Trillion tokens.
  • 175 Billion parameters (GPT-3 size): $3.85 \times 10^{24}$ FLOPs (6.7 Gopher units) $\rightarrow$ 3.7 Trillion tokens (over $12\times$ the 300B tokens GPT-3 actually saw!).

When DeepMind trained Chinchilla (70B parameters) on 1.4 trillion tokens at the exact same $5.76 \times 10^{23}$ FLOP budget as Gopher (280B parameters, 300B tokens), Chinchilla decisively outperformed Gopher, GPT-3 (175B), Jurassic-1 (178B), and MT-NLG (530B) across almost every benchmark while cutting inference memory and FLOPs by $4\times$ (arXiv:2203.15556, Section 4.2):

  • MMLU (5-shot average across 57 subjects): 67.5% for Chinchilla vs. 60.0% for Gopher (+7.5% absolute improvement) and 43.9% for GPT-3.
  • BIG-bench (62 tasks): 65.1% average accuracy vs. 54.4% for Gopher (+10.7% absolute lift), outperforming Gopher on 58 out of 62 tasks.
  • Common Sense Reasoning (0-shot, Table 8): 80.8% HellaSWAG (vs. 79.2% Gopher, 78.9% GPT-3, 80.2% MT-NLG 530B), 81.8% PIQA, 74.9% Winogrande (vs. 70.1% Gopher, 73.0% MT-NLG 530B), 51.3% SIQA, and 83.7% BoolQ (vs. 79.3% Gopher, 60.5% GPT-3, 78.2% MT-NLG 530B).
  • TruthfulQA & Closed-Book QA: 43.6% (0-shot), 58.5% (5-shot), and 66.7% (10-shot) on TruthfulQA (vs. Gopher's 29.5% 0-shot and 43.7% 10-shot); 31.5% (5-shot) and 35.5% (64-shot) on Natural Questions dev (vs. Gopher's 24.5% and 28.2%); and 67.0% (0-shot) and 73.2% (5-shot) on unfiltered TriviaQA (vs. Gopher's 52.8% and 63.6%).
Model / Scaling FrameworkParameter Count ($N$)Training Tokens ($D_{\text{tr}}$)Tokens-per-Parameter Ratio ($D_{\text{tr}}/N$)Scaling Exponents ($N_{\text{opt}} \propto C^a, D_{\text{opt}} \propto C^b$)Headline Empirical ResultPrimary Reference
Kaplan et al. / Gopher-280B280 Billion (GPT-3: 175B; MT-NLG: 530B)300 Billion (MT-NLG: 270B)~1.07 tok/param (GPT-3: 1.71; MT-NLG: 0.51)$a = 0.73,\; b = 0.27$60.0% MMLU (Gopher), 54.4% BIG-bench, 29.5% 0-shot TruthfulQA at $5.76 \times 10^{23}$ FLOPsKaplan et al. (arXiv:2001.08361); Rae et al. (arXiv:2112.11446)
Chinchilla Compute-Optimal70 Billion ($4\times$ smaller than Gopher)1.4 Trillion ($4.67\times$ more than Gopher)20.0 tok/paramApproach 1: $a = 0.50, b = 0.50$<br>Approach 2: $a = 0.49, b = 0.51$<br>Approach 3: $a = 0.46, b = 0.54$67.5% MMLU (+7.5%), 65.1% BIG-bench (+10.7%), 43.6% 0-shot TruthfulQA (+14.1%) at equal FLOPsHoffmann et al. (arXiv:2203.15556)
Inference-Optimal Over-Training150M – 16B (47 MPT models; Llama-3-8B)Up to 15 Trillion (10 to 10,000 tok/param)200 – 10,000 tok/param (Llama-3-8B: 1,875)Minimizes $6 N D_{\text{tr}} + 2 N D_{\text{inf}}$ &amp; MFU-weighted cost at fixed loss $\ell$-17% to -28% total FLOPs (7B vs. 13B at 2T inf; 13.6B vs. 30B at 10T inf); -36% real-world dollar cost vs. Chinchilla-70BSardana et al. (arXiv:2401.00448)
FineWeb &amp; FineWeb-Edu1.71 Billion (70+ ablation models; 80k H100 hrs)15 Trillion (FineWeb) / 1.3 Trillion (FineWeb-Edu)Evaluated at 28B (~16x) and 350B (~205x) tokensPer-snapshot MinHash + custom heuristics + Llama-3-70B regressor ($\ge 3$, 82% F1)MMLU: 33% &rarr; 37% (+12% rel); ARC: 46% &rarr; 57% (+24% rel); hits 33.6% MMLU at 38B tokens vs. Matrix at 300BPenedo et al. (arXiv:2406.17557v2)
DataComp-LM (DCLM-Baseline)412M – 7 Billion (5 competition scales)240T Pool &rarr; 2.6T Tokens (7B model)~377 tok/param (at 2.6T tokens on 6.9B model)resiliparse ($8\times$ faster) + Bloom dedup + top-10% fastText OH-2.5 + ELI564% 5-shot MMLU (+6.6 pts over MAP-Neo with 40% less compute; matches Llama-3-8B with 6.6x less compute)Li et al. (arXiv:2406.11794v1)
Phi-1 Synthetic Textbooks1.3 Billion (phi-1-small: 350 Million)~7 Billion unique (~50B seen over 8 epochs + 180M SFT)~5.4 unique tok/param (~38.5 seen tok/param)6B filtered Stack/SO + &lt;1B GPT-3.5 CodeTextbook + 180M CodeExercises (8 A100s, 4 days)50.6% HumanEval &amp; 55.5% MBPP (phi-1-small 350M: 45% HumanEval), beating StarCoder-15.5B (33.6%–40.8% on 1T tokens)Gunasekar et al. (arXiv:2306.11644)
Byte Latent Transformer (BLT)400M – 8 Billion (raw UTF-8 bytes, $V=256$)Up to 4.5T – 6T Bytes (~1T BPE tokens)Dynamic byte patches (4.5 to 8.0 bytes/patch)Next-byte entropy $H(x_t) > \theta_g$ + hash $n$-grams ($n=3\dots 8$, 500k hashes) + Cross-Attn61.1% vs. 60.0% 7-task avg vs. Llama-3-8B (35.4% vs. 31.1% HumanEval); ~50% inference FLOP cut at ps=8; 54.1% vs. 27.5% CUTEPagnoni et al. (arXiv:2412.09871v1)

Beyond Chinchilla-Optimal: Accounting for Lifetime Inference Demand, MFU Asymmetry, and Extreme Over-Training

If Chinchilla proved that training compute is minimized at ~20 tokens per parameter, why was LLaMA-1-7B trained on 1 trillion tokens (~143 tokens/parameter), Llama-2-7B on 2 trillion tokens (~286 tokens/parameter), and Llama-3-8B on 15 trillion tokens (1,875 tokens/parameter—nearly $94\times$ the Chinchilla-optimal ratio)?

In Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Laws (arXiv:2401.00448), Nikhil Sardana, Jacob Portes, Sasha Doubov, and Jonathan Frankle (MosaicML / Databricks & Harvard) resolve this apparent contradiction by reformulating the scaling law optimization problem. Whereas Hoffmann et al. asked "Given a fixed pre-training FLOP budget $C$, what $(N, D_{\text{tr}})$ minimizes training loss?", real-world foundation model engineering solves the converse problem (arXiv:2401.00448, Section 2, Equations 2–3): "Given a target model quality (pre-training loss $L(N, D_{\text{tr}}) = \ell$) and an expected lifetime inference token volume $D_{\text{inf}} = \sum_i D_{\text{inf}}^{(i)}$, what parameter count $N^$ and training token budget $D_{\text{tr}}^$ minimize total combined training plus inference cost?"

1. The Lifetime FLOPs Objective and the Real-World MFU-Adjusted Dollar Cost Equation

Using the standard transformer compute approximations of $6 N$ FLOPs per training token and $2 N$ FLOPs per inference token (arXiv:2401.00448, Equation 3), minimizing total lifetime FLOPs subject to target loss $\ell$ is formulated as:

$$N^{}(\ell, D_{\text{inf}}),\; D_{\text{tr}}^{}(\ell, D_{\text{inf}}) = \operatorname*{arg\,min}{N, D{\text{tr}} \;\mid\; L(N, D_{\text{tr}}) = \ell} \Big( 6 N D_{\text{tr}} + 2 N D_{\text{inf}} \Big)$$

While analytically intractable for $D_{\text{inf}} > 0$, numerical optimization over the Chinchilla parametric loss function reveals dramatic compute savings whenever lifetime inference demand reaches billions of requests (arXiv:2401.00448, Figures 1 and 2):

  • 7B Over-Trained vs. 13B Chinchilla at 2 Trillion Inference Tokens: An engineering team targeting the quality of a 13B Chinchilla-optimal model that expects 2 trillion tokens of lifetime inference demand reduces total combined FLOPs by $1.7 \times 10^{22}$ FLOPs (a 17% total compute reduction) by instead training a 7B parameter model on far more pre-training tokens (arXiv:2401.00448, Figure 1).
  • 13.6B Over-Trained vs. 30B Chinchilla at $10^{13}$ (10 Trillion) Inference Tokens: Targeting a 30B-Chinchilla-quality model with $10^{13}$ lifetime inference tokens cuts total FLOPs by 28% by training a 13.6B model on $2.84\times$ the data (arXiv:2401.00448, Section 2/3).

Crucially, raw FLOP counts understate the true economic advantage of smaller, over-trained models because raw FLOPs ignore hardware utilization asymmetry (arXiv:2401.00448, Section 6). During dense pre-training and prompt prefill, large batch matrix-matrix multiplications achieve 40% to 60% Model FLOPs Utilization ($\operatorname{MFU}{\text{tr}} \approx 50\%$, $\operatorname{MFU}{\text{inp}} \approx 50\%$). By contrast, autoregressive token generation is sequentially memory-bandwidth-bound, causing output generation MFU to plunge to $\operatorname{MFU}{\text{out}} \approx 1\%$ (a $50\times$ utilization penalty per generated FLOP!). Incorporating per-FLOP accelerator hardware pricing ($C{\text{tr}}$ on A100-80GB and INT8-quantized $C_{\text{inf}}$ on A100-40GB) and distinct input/output MFUs yields the Real-World Cost-Optimal Scaling Objective (arXiv:2401.00448, Equation 6):

$$N^{}(\ell, D_{\text{inp}}, D_{\text{out}}),\; D_{\text{tr}}^{}(\ell, D_{\text{inp}}, D_{\text{out}}) = \operatorname*{arg\,min}{N, D{\text{tr}} \;\mid\; L(N, D_{\text{tr}}) = \ell} \left( \frac{6 N D_{\text{tr}} C_{\text{tr}}}{\operatorname{MFU}{\text{tr}}} + 2 N C{\text{inf}} \left[ \frac{D_{\text{inp}}}{\operatorname{MFU}{\text{inp}}} + \frac{D{\text{out}}}{\operatorname{MFU}_{\text{out}}} \right] \right)$$

Under realistic production request profiles (70 input tokens and 215 output tokens per request, $\operatorname{MFU}{\text{tr}} = 50\%, \operatorname{MFU}{\text{inp}} = 50\%, \operatorname{MFU}_{\text{out}} = 1\%$, arXiv:2401.00448, Figure 6):

  • For a 30B-Chinchilla-quality model expecting 1.5 billion inference requests, training a 16B model on 3.35 trillion tokens cuts real-world dollar cost by 17%.
  • At 2 trillion tokens of inference demand (7.02 billion requests), a Chinchilla-70B model requires only 1.3% extra raw FLOPs compared to an equal-quality FLOP-optimal model, but costs 36% more in real-world dollar expenditure than the MFU-adjusted cost-optimal model because of the $50\times$ lower MFU of autoregressive output token generation!

2. Empirical Validation Across 47 Models Up to 10,000 Tokens/Parameter—and the Extrapolation Curvature Flattening Discovery

Prior to Sardana et al., skeptics (e.g., De Vries, 2023) hypothesized a "critical model size" threshold (~30% of Chinchilla size) below which a transformer's capacity would saturate regardless of how many trillions of tokens it was fed. To test this empirically, Sardana et al. (arXiv:2401.00448, Sections 3–5) trained 47 MPT-architecture models ranging from 150M to 6B parameters across single-epoch data budgets spanning 10 to 10,000 tokens per parameter (10,000 tok/param on 150M; up to 1,000 tok/param on larger models; up to 500 tok/param on 2.5B) and evaluated every checkpoint across the 5-category MosaicML Evaluation Gauntlet (World Knowledge, Commonsense Reasoning, Reading Comprehension, Language Understanding, and Symbolic Problem Solving):

  1. Zero Evidence of a Saturation Plateau up to 10,000 Tokens/Parameter: Both pre-training cross-entropy loss (Figure 3a) and the normalized downstream Gauntlet Average (Figure 3b) improve continuously as tokens per parameter scale to 10,000, refuting the critical model size saturation hypothesis. Moreover, as loss decreases, each incremental reduction in cross-entropy loss translates into larger gains in downstream Gauntlet accuracy (Figure 3c), while log-log loss-vs.-FLOPs trendlines for all ratios $\ge 20$ tokens/parameter remain nearly parallel up to 500 tokens/parameter (Figure 4).
  2. Why Standard Chinchilla Coefficients Overestimate Extreme Over-Training Gains (arXiv:2401.00448, Table 1): Because Hoffmann et al. fit their 400 runs almost exclusively in the $\le 100$ tokens/parameter regime, extrapolating $(A=406.4, B=410.7, E=1.69, \alpha=0.34, \beta=0.28)$ to thousands of tokens per parameter overestimates the marginal loss reduction of additional tokens. When Sardana et al. re-fit the Huber-LSE objective across progressively higher token-to-parameter ratios (arXiv:2401.00448, Section 5, Table 1), the fitted curves systematically flatten and shift weight toward the irreducible floor $E$: - $\le 100$ tok/param subset: $\alpha = 0.08,\; \beta = 0.13,\; A = 7.199,\; B = 25.97,\; E = 0.17$ - $\le 250$ tok/param subset: $\alpha = 0.13,\; \beta = 0.16,\; A = 14.23,\; B = 39.54,\; E = 0.98$ - $\le 500$ tok/param subset: $\alpha = 0.13,\; \beta = 0.16,\; A = 17.07,\; B = 35.80,\; E = 0.95$ - All Data (up to 10,000 tok/param): $\alpha = 0.18,\; \beta = 0.24,\; A = 33.66,\; B = 138.9,\; E = 1.45$

Decanting the Web at 15-Trillion-Token Scale: The FineWeb and FineWeb-Edu Data Curation Architecture

Once inference-aware scaling laws pushed pre-training budgets from 300 billion tokens to 15 trillion tokens, raw token volume ceased to be the sole bottleneck; web corpus extraction, deduplication scope, and educational quality filtering became the dominant drivers of foundation model capability. In The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale (NeurIPS 2024 Datasets & Benchmarks Track, arXiv:2406.17557v2), Guilherme Penedo, Hynek Kydlíček, Loubna Ben Allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf at Hugging Face conducted over 70 controlled data ablation runs (consuming 80,000 H100 GPU hours with 1.71B-parameter Llama-architecture models at 28B and 350B tokens) across 96 Common Crawl snapshots (2013–2024) to build the 15-trillion-token FineWeb and 1.3-trillion-token FineWeb-Edu corpora.

1. WARC Trafilatura Extraction vs. Common Crawl WET Files and Base Filtering (36T Tokens)

Most first-generation open datasets (including C4, RedPajama-v1, and Dolma-v1) start from Common Crawl's pre-extracted WET (WARC Encapsulated Text) files produced by a basic htmlparser. Penedo et al. (arXiv:2406.17557v2, Section 3.2 & Figure 1) demonstrated that WET files retain massive quantities of navigation menus, sidebar boilerplate, and footer chrome. Re-extracting text directly from the raw WARC (Web ARChive) HTML files using the trafilatura library produces an immediate, statistically significant benchmark jump over WET across 28B-token ablations. Layering RefinedWeb-style base filtering (arXiv:2406.17557v2, Section 3.3)—UT1 adult URL blocklists, fastText English language identification retaining documents with score $\ge 0.65$, and MassiveText repetition/quality heuristics—condenses the 96 WARC snapshots into ~36 trillion GPT-2 tokens.

2. The Global vs. Per-Snapshot MinHash Deduplication Paradox (2013-48 Ablation)

To remove duplicate mirrors, SEO templates, and syndicated boilerplate, FineWeb uses fuzzy 5-gram word MinHash LSH deduplication with 112 hash functions partitioned into 14 buckets of 8 hashes each (targeting documents that are at least 75% similar and applying transitive clustering, arXiv:2406.17557v2, Section 3.4).

However, when the authors applied MinHash globally across all 96 snapshots chronologically from newest (2023-50) to oldest (2013-48), the dataset shrank from 36T to 4 trillion tokens—removing up to 90% of the oldest snapshots—yet a 350B-token model trained on the globally deduplicated corpus barely improved over non-deduplicated data and trailed RefinedWeb by a wide margin (arXiv:2406.17557v2, Figure 3)! To diagnose why global deduplication failed, Penedo et al. ran a head-to-head experiment on the 2013-48 snapshot (arXiv:2406.17557v2, Figure 4):

  • Slice A (Globally Kept Data — 10% retained, ~31B tokens): The 10% of 2013-48 that survived global deduplication against 95 newer crawls.
  • Slice B (Globally Removed Data, Individually Deduplicated — 90% removed, ~460B raw $\rightarrow$ 171B tokens): The 90% of 2013-48 that had been discarded by global deduplication, deduplicated only against itself.
  • The Result: Models trained on the 90% removed data (Slice B) decisively outperformed models trained on the 10% kept data (Slice A)! Why? Because high-value evergreen text appeared across multiple snapshots and was stripped from older dumps during global deduplication, whereas transient spam, ad lists, incoherent keyword dumps, and timestamps unique to 2013-48 survived global deduplication and became heavily upsampled. Switching to independent per-snapshot MinHash deduplication yielded 20 trillion tokens and immediately matched RefinedWeb (arXiv:2406.17557v2, Figure 5).

3. Systematic Histogram-Guided Custom Filters: Reaching the 15-Trillion-Token FineWeb Corpus

To match and surpass C4's strong HellaSwag performance without losing 30% of all tokens to C4's aggressive terminal_punct filter (arXiv:2406.17557v2, Section 3.5), Penedo et al. kept C4's lightweight filters (curly_bracket removing 2.8%, word_lengths removing 4.3%, plus lorem_ipsum, javascript, and cookie/terms-of-use policy rules each removing $<0.5\%$, totaling ~7% removal) and compared 50+ document statistics between their high-quality (individually deduplicated 2013-48) and low-quality (globally deduplicated 2013-48) distributions (arXiv:2406.17557v2, Section 3.6, Figures 7–8). From 16 candidate thresholds tested in 28B-token ablations, three custom document filters delivered the highest aggregate uplift while removing ~22% of tokens combined (yielding the final 15-trillion-token FineWeb corpus with regex PII anonymization of emails and public IPv4/IPv6 addresses):

  1. Line Punctuation Ratio Filter: Drop documents where the fraction of lines ending with terminal punctuation is $\le 0.12$ (10.14% of tokens removed, compared to 30% for C4's hard line drop).
  2. Duplicated Line Character Ratio Filter: Drop documents where the fraction of characters in duplicated lines is $\ge 0.10$ (12.47% of tokens removed, tightening MassiveText's original $\ge 0.20$ threshold).
  3. Short Line Fraction Filter: Drop documents where the fraction of lines shorter than 30 characters is $\ge 0.67$ (3.73% of tokens removed).

4. FineWeb-Edu: Llama-3-70B-Instruct Synthetic Annotations and Linear Embedding Classification

To match the closed educational classifiers rumored behind Llama 3 and Phi-3, Penedo et al. (arXiv:2406.17557v2, Section 4) used Llama-3-70B-Instruct with an additive 0-to-5 grading rubric (focused on grade-school and middle-school educational knowledge rather than dense arXiv boilerplate) to score 460,000 random web documents from CC-MAIN-2024-10. They then froze the Snowflake-arctic-embed-m encoder and trained a lightweight linear regression head on 410,000 samples for 20 epochs ($\text{lr} = 3 \times 10^{-4}$), validating on the remaining 50,000 samples:

  • Selecting a rounded classification cutoff of score $\ge 3$ achieved an 82% F1 score on the held-out validation set.
  • Running the frozen Snowflake-arctic-embed-m classifier across all 15 trillion tokens of FineWeb required 6,000 H100 GPU hours (a 2.5x speedup over all-MiniLM-L6-v2 alternatives in terms of quality-per-FLOP) and retained 1.3 trillion educational tokens (FineWeb-Edu).
  • In 350B-token pre-training ablations (arXiv:2406.17557v2, Figures 10–11), FineWeb-Edu crushed every open dataset in existence (FineWeb, Matrix-1.3T, Dolma-1.6/1.7, RefinedWeb, SlimPajama-627B, RedPajama-v2-20T, The Pile-340B, C4-172B), lifting MMLU from 33% to 37% (+12% relative), lifting ARC from 46% to 57% (+24% relative), and hitting 33.6% MMLU after just 38 billion training tokens—a score that the second-best open corpus (Matrix) required 300 billion tokens to reach (an ~8x–10x training token reduction).

Model-Based Data Filtering at 240-Trillion-Token Scale: DataComp-LM (DCLM) and fastText Quality Classifiers

While FineWeb-Edu demonstrated the power of neural embedding classifiers, Jeffrey Li, Alex Fang, Ludwig Schmidt, Vaishaal Shankar, and a multi-institution consortium introduced DataComp for Language Models (DCLM, arXiv:2406.11794v1)—the first standardized data-centric benchmark built on a massive 240-trillion-token raw Common Crawl pool (DCLM-Pool, 200 billion documents, 370TB gzip-compressed) evaluated across 53 downstream tasks and five Chinchilla-scaled compute tiers (400M-1x at 8.2B tokens / 26 H100 hours up to 7B-2x at 6.9B parameters, 276B tokens / 7,300 H100 hours, arXiv:2406.11794v1, Table 1), with high cross-scale rank correlation (Pearson $r = 0.885$ from 400M-1x to 7B-1x and $r = 0.919$ from 1B-1x to 7B-1x).

Four empirical findings from the construction of DCLM-Baseline (arXiv:2406.11794v1, Section 4, Tables 2–8) reshaped production data pipelines in 2026:

  1. resiliparse vs. trafilatura vs. WET HTML Extraction (Table 3): At the 1B-1x scale (1.4B parameters, 28.8B tokens), extracting raw HTML with resiliparse (24.1 Core, 13.4 Extended) or trafilatura (24.5 Core, 12.5 Extended) beats Common Crawl WET files (20.7 Core, 12.2 Extended) by 3.4 to 3.8 Core percentage points, while resiliparse runs $8\times$ faster than trafilatura, making it practical to extract all 200 billion documents in DCLM-Pool.
  2. CPU-Speed fastText Classifiers Beat BGE Embeddings, Perplexity, and AskLLM (Table 4): Comparing seven model-based quality filters at 1B-1x on top of RefinedWeb heuristics + near-duplicate Bloom filtering (27.5 Core baseline)—PageRank top-20% (26.1 Core), SemDedup (27.1 Core), linear classifier on BGE embeddings (27.2 Core), AskLLM (28.6 Core), 154M-transformer perplexity filtering (29.0 Core), and top-$k$ average logits (29.2 Core)—a simple supervised fastText binary classifier trained on 400,000 documents (200k positive, 200k negative from RefinedWeb) achieved the highest score of all: 30.2 Core and 15.4 Extended.
  3. Instruction + Conversational Reference Positives (OH-2.5 + ELI5 Top-10%, Table 5): What should the "positive" reference distribution for a pre-training quality classifier be? Historically, GPT-3 and RedPajama trained classifiers using Wikipedia, Books, and OpenWebText2 as positives. At the 7B-1x scale (6.9B parameters, 138B tokens), DCLM discovered that training fastText with OpenHermes 2.5 instruction pairs + high-scoring r/ExplainLikeImFive (ELI5) Reddit posts as the positive class and keeping the top 10% of documents reaches 41.0 Core, 29.2 MMLU, and 21.4 Extended—crushing Wikipedia top-10% (35.7 Core, 27.0 MMLU), OpenWebText2 top-10% (34.7 Core, 25.0 MMLU), and the GPT-3 Approx mix (37.5 Core, 24.4 MMLU) by +3.5 to +6.3 Core percentage points, while strictly outperforming looser 15% (39.8 Core, 27.2 MMLU) and 20% (38.7 Core, 24.2 MMLU) thresholds.
  4. Why Naively Mixing Wikipedia/Books Hurts Strongly Filtered Web Data (Table 6): When training on weakly filtered web corpora (1B-1x), mixing 67% Common Crawl with 33% curated sources (RPJ extras: Wikipedia, Books, StackExchange, arXiv, GitHub) boosts Core accuracy on C4 (23.7 $\rightarrow$ 25.9, +2.2), RedPajama-CC (24.0 $\rightarrow$ 25.7, +1.7), and RefinedWeb (25.1 $\rightarrow$ 26.5, +1.4). Yet on DCLM-Baseline, diluting the top-10% OH-2.5 + ELI5 web filter with 33% generic curated repositories actually degrades Core accuracy from 31.1 to 29.5 (-1.6 points)! Scaling a 7B model on 100% DCLM-Baseline for 2.6 trillion tokens achieves 64% 5-shot MMLU (+6.6 percentage points over MAP-Neo with 40% less compute, and matching Llama-3-8B's 66% MMLU / 53-task average with 6.6x less compute), while active MMLU last-sentence decontamination (7B-2x, Table 7) confirms zero contamination inflation (51.8% raw vs. 52.7% MMLU-removed).

Synthetic Data Curricula and "Textbooks Are All You Need": How Phi-1 Breaks Web-Data Scaling Laws

Even after aggressive classifier filtering (FineWeb-Edu and DCLM-Baseline), natural web and open-source code repositories suffer from structural pedagogical defects. In Textbooks Are All You Need (arXiv:2306.11644), Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Sébastien Bubeck, Ronen Eldan, Yin Tat Lee, Yuanzhi Li, and colleagues at Microsoft Research audited raw Python files from The Stack and StackOverflow (over 35 million files / 35B tokens) and identified four reasons why raw repository code learns inefficiently (arXiv:2306.11644, Section 2):

  • Non-Self-Contained Snippets: Functions depend on external project modules, custom class definitions, or configuration files absent from the context window.
  • Boilerplate Dominance: Large fractions of repository code consist of trivial constant declarations, UI layout coordinates, or repetitive wrapper plumbing rather than algorithmic logic.
  • Buried & Undocumented Reasoning: Complex algorithmic invariants are obscured inside monolithic functions without explanatory natural language rationales.
  • Skewed Concept Distribution: Web code heavily over-represents narrow framework boilerplate while under-representing foundational algorithmic primitives.

1. The Three-Stage CodeTextbook and CodeExercises Data Pipeline (<7B Tokens Total)

To test whether a clean, self-contained, balanced "textbook" curriculum can alter the slope of pre-training scaling laws, Gunasekar et al. constructed a three-part training corpus totaling less than 7 billion unique tokens (arXiv:2306.11644, Sections 2.1–2.2):

  1. Transformer-Filtered Web Code Subset (~6 Billion Tokens): The authors prompted GPT-4 on a small 100,000-sample subset of deduplicated Python from The Stack and StackOverflow to "determine its educational value for a student whose goal is to learn basic coding concepts", then trained a Random Forest classifier on top of output embeddings extracted from a pretrained CodeGen-350M-Mono model to filter the 35B-token corpus down to ~6B high-educational-value tokens. Even without synthetic data, training a 350M model on this filtered subset jumped HumanEval accuracy from 12.19% (unfiltered saturation after 96k steps / ~200B tokens) to 17.68% in just 36k steps!
  2. Synthetic Python Textbooks (<1 Billion Tokens, GPT-3.5): Generated via GPT-3.5 by interleaving natural language conceptual explanations with self-contained Python examples, injecting prompt diversity by dynamically constraining target algorithmic topics and target student audiences. Combining the 6B filtered web tokens with the <1B synthetic textbook tokens forms CodeTextbook (~7B tokens), lifting the 350M ablation model further to 20.12% on HumanEval.
  3. Synthetic Function Completion Exercises (CodeExercises, ~180 Million Tokens / ~879.5K Problems): Generated via GPT-3.5 as self-contained Python function docstrings paired with reference implementations, enforcing diversity by constraining function names.

2. Architecture, 770-A100-Hour Training Budget, and AST-Decontaminated Benchmarks

Using a conventional decoder-only transformer with parallel Multi-Head Attention + MLP blocks, FlashAttention, RoPE (rotary dimension 32), and the codegen-350M-mono tokenizer—with zero Fill-In-the-Middle (FIM) or Multi-Query Attention (MQA)—Microsoft Research trained two model scales on 8 NVIDIA A100 GPUs using FP16 DeepSpeed and sequence length 2,048 (arXiv:2306.11644, Section 2.3):

  • phi-1 (1.3B parameters): 24 layers, hidden dimension $d_{\text{model}} = 2048$, MLP inner dimension $8192$, 32 heads of dimension 64.
  • phi-1-small (350M parameters): 20 layers, hidden dimension $d_{\text{model}} = 1024$, MLP inner dimension $4096$, 16 heads of dimension 64.
  • Pre-Training (phi-1-base): Trained on CodeTextbook (<7B unique tokens) with effective batch size 1024, peak learning rate $10^{-3}$ (750 warmup steps), weight decay 0.1, selecting the 24,000-step checkpoint (~8 epochs, slightly over 50B total tokens seen) in under 4 days on 8 A100s (<768 A100 GPU hours)—already reaching 29% pass@1 on HumanEval.
  • Finetuning (phi-1): Finetuned phi-1-base on the ~180M-token CodeExercises dataset for 6,000 steps (batch size 256, peak learning rate $10^{-4}$, 50 warmup steps, weight decay 0.01) in just 7 hours on 8 A100s (56 A100 GPU hours)!

Look at how this 1.3B model trained on 7B unique tokens compares against models up to $415\times$ larger in parameters and $142\times$ larger in dataset size (arXiv:2306.11644, Table 1 & Table 2):

  • phi-1 (1.3B params, 7B tokens): 50.6% pass@1 on HumanEval, 55.5% pass@1 on MBPP, and 52% LLM-graded Understanding score on 50 brand-new, out-of-distribution unconventional coding problems written by an independent team.
  • phi-1-small (350M params, 7B tokens): 45.0% pass@1 on HumanEval and 45% on the 50 unconventional problems—outperforming StarCoder (15.5B params, 1T tokens, 33.6% HumanEval / 52.7% MBPP), StarCoder-Prompted (40.8% HumanEval / 49.5% MBPP), CodeGen-Mono-16.1B (577B tokens, 29.3% HumanEval / 35.3% MBPP), Codex-12B (100B tokens, 28.8% HumanEval), PaLM-Coder-540B (780B tokens, 35.9% HumanEval / 47.0% MBPP), and GPT-3.5 (175B params, 47% HumanEval)!
  • Strict Embedding + Abstract Syntax Tree (AST) Decontamination Proof (arXiv:2306.11644, Section 5, Table 3): Beyond 13-gram docstring checks (which found only 4 false-positive overlaps across all 164 HumanEval problems), the authors pruned CodeExercises (879.5K problems) using CodeGen-Mono-350M L2 embedding distance combined with AST string edit distance match rate thresholds $\tau \in \{0.95, 0.90, 0.85, 0.80\}$—removing between 42.5K ($\tau = 0.95$) and 354K ($\tau = 0.80$, over 40% of the entire dataset!) exercises and retraining phi-1 from scratch. Even after deleting 40.3% of CodeExercises ($\tau = 0.80$), the retrained phi-1 achieved 45.1% on HumanEval (50.6% at $\tau=0.95$, 45.1% at $\tau=0.90$, 46.3% at $\tau=0.85$), still decisively beating StarCoder-Prompted's 41.5%!

Breaking the Fixed-Vocabulary BPE Bottleneck: Byte Latent Transformer (BLT) and Dynamic Next-Byte Entropy Patching

Every model discussed so far—from Chinchilla and Llama 3 to Phi-1—still relies on a static heuristic preprocessing layer: Byte-Pair Encoding (BPE) subword tokenization. As Artidoro Pagnoni, Ram Pasunuru, Pedro Rodriguez, John Nguyen, Ari Holtzman, Srinivasan Iyer, and colleagues at Meta FAIR prove in Byte Latent Transformer: Patches Scale Better Than Tokens (arXiv:2412.09871v1), fixed-vocabulary BPE tokenizers impose three fundamental architectural bottlenecks:

  1. Uniform Compute Allocation Across Non-Uniform Information Density: A standard transformer expends the exact same $\mathcal{O}(N)$ forward-pass FLOPs on every token whether that token is a trivial deterministic suffix or a high-uncertainty branching decision at the start of a named entity or mathematical operator.
  2. The Vocabulary-vs.-Embedding Table Trap: To increase average token compression from 3.7 bytes/token (Llama 2, 32k vocab) to 4.4 bytes/token (Llama 3, 128k vocab), Llama 3 had to expand its input/output embedding projection tables by $4\times$, capping realistic BPE compression ratios (arXiv:2412.09871v1, Section 2.4).
  3. Orthographic Blindness and Noise Fragility: Because BPE hides raw UTF-8 bytes inside opaque token IDs, frontier BPE models collapse on character manipulation, spelling, phonology, noisy text, and low-resource scripts.

1. Dynamic Next-Byte Entropy Patching and the Incremental Patching Invariant

Instead of a static vocabulary, the Byte Latent Transformer (BLT) segments raw UTF-8 byte sequences $\mathbf{x} = \{x_1, \dots, x_n\}$ ($x_i \in \mathcal{V}, |\mathcal{V}| = 256$) dynamically into variable-length patches $\mathbf{p} = \{p_1, \dots, p_m\}$ ($m < n$). To decide where each patch ends and a new latent transformer step is invoked, BLT runs a lightweight causal Byte-Level Entropy Language Model ($\sim 100\text{M}$ parameters in main experiments, 8 layers, $d = 512$, context window 512 bytes) that computes the Shannon entropy $H(x_i)$ of the next-byte predictive distribution $p_e(x_i = v \mid \mathbf{x}_{<i})$ (arXiv:2412.09871v1, Section 2.3, Equation 1):

$$H(x_i) = -\sum_{v \in \mathcal{V}} p_e(x_i = v \mid \mathbf{x}{<i}) \log p_e(x_i = v \mid \mathbf{x}{<i})$$

A new patch boundary is triggered whenever the next byte's uncertainty spikes under either of two constraints:

  • Global Entropy Threshold Constraint: $H(x_t) > \theta_g$ (e.g., inside "George R.R. Martin", entropy spikes on the initial "G" and "e", creating a 1-byte patch at "G" and then grouping the predictable continuation "eorge R.R. Martin" into a single long patch without wasting global transformer steps!).
  • Approximate Monotonicity Constraint: $H(x_t) - H(x_{t-1}) > \theta_r$, detecting points that break monotonically decreasing uncertainty within a word or clause.

Crucially, unlike BPE—where adding characters to a string's continuation can retroactively alter the tokenization of its prefix—BLT's entropy segmentation satisfies the formal Incremental Patching Property (arXiv:2412.09871v1, Section 2.4):

$$f_p(\mathbf{x}{<i}) = f_p(\mathbf{x}){<i}$$

guaranteeing that autoregressive generation decides whether byte step $i$ triggers a global Latent Transformer step strictly from past bytes $\mathbf{x}_{<i}$ without lookahead!

2. The Three-Tier BLT Architecture: Local Byte Encoder (Hash $n$-Grams + Cross-Attention), Global Latent Transformer, and Local Byte Decoder

As detailed in Section 3 of arXiv:2412.09871v1, BLT decouples byte-level representation from heavyweight sequence reasoning across three modules:

  1. Lightweight Local Byte Encoder $\mathcal{E}$ ($l_{\mathcal{E}} \ll l_{\mathcal{G}}$, typically 1 to 3 layers with local block-causal window $w_{\mathcal{E}} = 512$ bytes): Each raw byte $b_i \in \{0, \dots, 255\}$ is embedded via $\mathbb{R}^{256 \times h_{\mathcal{E}}}$ into $x_i$ and enriched with Rolling Polynomial Hash $n$-Gram Embeddings across six byte-gram lengths $n \in \{3, 4, 5, 6, 7, 8\}$ mapped into 500,000 hash buckets (arXiv:2412.09871v1, Section 3.2.1, Equations 2–4):

$$e_i = \frac{1}{7}\left( x_i + \sum_{n=3}^{8} E_n^{\text{hash}}\big(\operatorname{RollPolyHash}(g_{i,n}) \bmod |E_n^{\text{hash}}|\big) \right), \qquad g_{i,n} = \{b_{i-n+1}, \dots, b_i\}$$

After each local encoder transformer layer, a Perceiver-style Multi-Head Cross-Attention block (initialized via max-pooling with patch representations as Queries and the patch's constituent byte representations as Keys/Values, $k=2$ heads) pools variable-length byte sequences into dense patch vectors $p_j$.

  1. Global Autoregressive Latent Transformer $\mathcal{G}$ ($l_{\mathcal{G}}$ layers): Consumes the bulk of training and inference FLOPs, operating exclusively on patch representations $p_j \mapsto o_j$ with block-causal document masking. Because $\mathcal{G}$ steps only once per patch, growing average patch size from 4.4 bytes (Llama 3 BPE) to 8 bytes slashes Global Latent Transformer inference FLOPs by nearly 50%!
  2. Lightweight Local Byte Decoder $\mathcal{D}$ ($l_{\mathcal{D}} \ll l_{\mathcal{G}}$ layers): Reverses the cross-attention roles—using byte representations as Queries and the transformed patch representations $o_j$ as Keys/Values—to decode the next sequence of raw UTF-8 bytes autoregressively.

3. FLOP-Matched 8B Benchmark Superiority, Simultaneous Patch-and-Model Scaling, and CUTE / FLORES-101 Gains

Across FLOP-matched 8B models trained on the BLT-1T dataset (1T Llama-3 tokens / 4.5T–6T UTF-8 bytes, arXiv:2412.09871v1, Section 5.2, Table 1), BLT-Entropy (trained at 4.5 bytes/patch with inference threshold tuned from $\theta_r = 0.6$ to $0.1$) outperforms BPE Llama-3-8B (128k vocabulary, 4.4 bytes/token) across standard classification and coding suites:

  • 7-Task Average (BLT-1T 8B, Table 1): 61.1% for BLT-Entropy vs. 60.0% for Llama-3-8B and 58.0% for BLT-Space (6.1 bytes/patch). Specifically, BLT-Entropy beats Llama-3-8B on ARC-Easy (79.6% vs. 77.6%), HellaSwag (80.6% vs. 79.1%), MBPP 3-shot (41.8% vs. 40.2%), and HumanEval 0-shot (35.4% vs. 31.1%, +4.3 points), while remaining within 0.1–1.2 points on PIQA (80.6% vs. 80.7%), MMLU (57.4% vs. 58.1%), and ARC-Challenge (52.1% vs. 53.3%).
  • Simultaneous Patch-Size and Model-Size Scaling (Patches Scale Better Than Tokens, Section 5.3, Table 2 & Figure 1): In BPE transformers, fixing the per-byte inference FLOP budget rigidly locks model parameter count ($470\text{M}$ Llama-2 / $450\text{M}$ Llama-3 at $3.1 \times 10^8$ FLOPs/byte; $3.6\text{B}$ Llama-2 / $3.9\text{B}$ Llama-3 at $2.1 \times 10^9$ FLOPs/byte). Because BLT's local encoder/decoder grows only $\sim 2\times$ when the global latent transformer grows $20\times$ (400M to 8B), BLT can increase average patch size to $6$ or $8$ bytes and reinvest those saved inference steps into a $1.2\times$ to $1.7\times$ larger global Latent Transformer ($6.6\text{B}$ non-embedding parameters at ps=8 vs. $3.6\text{B}$ Llama-2 at identical $2.1 \times 10^9$ inference FLOPs/byte!). Beyond just $2.5\times$ to $3\times$ the BPE compute-optimal training budget (150B bytes at the 400M class; 1T bytes at the 4B class), BLT-Entropy (ps=6 and ps=8) overtakes and pulls away from BPE Llama-2 and Llama-3 scaling laws.
  • Character Robustness, CUTE Orthography, and 27-Language FLORES-101 Translation (Section 6, Tables 3–4): On 5-strategy Noised HellaSwag (AntSpeak, Drop 10%, RandomCase, Repeat 20%, UpperCase), 8B BLT (1T tokens) scores 64.3%—crushing 8B Llama-3 (1T tokens) at 56.9% (+7.4 points) and matching Llama-3.1 (trained on 16T tokens—$16\times$ more data!) at 64.3%. On the CUTE character manipulation benchmark (Table 3), BLT leaps to 54.1% average versus 27.5% for Llama-3 (1T) and 20.0% for Llama-3.1 (16T)—scoring 99.9% on Spelling (vs. Llama-3's 1.1%), 99.9% on Spelling Inverse (vs. 30.1%), 55.9% on Contains Char (vs. 0.0% for both Llama-3 and Llama-3.1), and 48.7% on Substitute Char (vs. 0.4%). Across 27 languages on FLORES-101 (Table 4), BLT outperforms Llama-3 in both directions (14.0 vs. 12.1 average Language -> English and 6.4 vs. 5.9 English -> Language), with massive gains on low-resource scripts such as Armenian (6.3 vs. 1.7), Bengali (12.7 vs. 4.7), Georgian (7.4 vs. 1.7), and Khmer (9.5 vs. 4.4).
  • Byte-ifying Pretrained BPE Checkpoints (Section 6.2): Initializing BLT's global Latent Transformer directly from pretrained Llama-3.1-8B weights reduces the training tokens needed to converge a hybrid byte-patch model by up to $10\times$.

Reference Python Implementation: Chinchilla & Inference-Adjusted Scaling Law Solver and BLT Entropy Patcher

The self-contained Python 3 module below implements three production-ready mathematical primitives directly from our primary sources:

  1. Chinchilla Parametric Loss & Closed-Form Compute-Optimal Allocation (arXiv:2203.15556, Equations 2, 4, 10): Computes $\hat{L}(N, D)$, $N_{\text{opt}}(C)$, and $D_{\text{opt}}(C)$.
  2. Sardana et al. MFU-Adjusted Lifetime Cost Optimizer (arXiv:2401.00448, Equations 1, 3, 6): Solves for the over-trained parameter count $N^$ and training token budget $D_{\text{tr}}^$ that minimize real-world training + inference dollar cost at a fixed target loss $\ell = L(N_{\text{chin}}, D_{\text{chin}})$ given $\operatorname{MFU}{\text{tr}}, \operatorname{MFU}{\text{inp}}, \operatorname{MFU}_{\text{out}}$.
  3. BLT Incremental Next-Byte Entropy & Monotonicity Patcher (arXiv:2412.09871v1, Section 2.3–2.4, Equations 1–4): Computes Shannon byte entropies $H(x_t)$, segments raw UTF-8 bytes into dynamic patches under global ($H(x_t) > \theta_g$) or approximate monotonicity ($H(x_t) - H(x_{t-1}) > \theta_r$) constraints, and computes rolling polynomial hash $n$-gram indices ($n \in \{3, \dots, 8\}$).
from __future__ import annotations

from dataclasses import dataclass
import math
from typing import Dict, List, Sequence, Tuple

@dataclass(frozen=True)
class ChinchillaCoefficients:
    """Parametric loss coefficients L(N, D) = E + A / N^alpha + B / D^beta."""

    e_floor: float = 1.69
    a_param: float = 406.4
    b_data: float = 410.7
    alpha: float = 0.34
    beta: float = 0.28

def chinchilla_loss(
    n_params: float,
    d_tokens: float,
    coeffs: ChinchillaCoefficients = ChinchillaCoefficients(),
) -> float:
    """Evaluate Chinchilla parametric cross-entropy loss (arXiv:2203.15556, Eq. 10)."""
    if n_params <= 0.0 or d_tokens <= 0.0:
        raise ValueError("n_params and d_tokens must be strictly positive.")
    return (
        coeffs.e_floor
        + coeffs.a_param / (n_params ** coeffs.alpha)
        + coeffs.b_data / (d_tokens ** coeffs.beta)
    )

def chinchilla_compute_optimal(
    compute_flops: float,
    coeffs: ChinchillaCoefficients = ChinchillaCoefficients(),
) -> Tuple[float, float]:
    """Closed-form compute-optimal (N_opt, D_opt) for C = 6*N*D (arXiv:2203.15556, Eq. 4)."""
    if compute_flops <= 0.0:
        raise ValueError("compute_flops must be strictly positive.")
    a_exp = coeffs.beta / (coeffs.alpha + coeffs.beta)
    b_exp = coeffs.alpha / (coeffs.alpha + coeffs.beta)
    g_const = (
        (coeffs.alpha * coeffs.a_param) / (coeffs.beta * coeffs.b_data)
    ) ** (1.0 / (coeffs.alpha + coeffs.beta))
    c_over_6 = compute_flops / 6.0
    n_opt = g_const * (c_over_6 ** a_exp)
    d_opt = (c_over_6 ** b_exp) / g_const
    return n_opt, d_opt

def solve_inference_adjusted_optimal(
    target_loss: float,
    d_input_tokens: float,
    d_output_tokens: float,
    mfu_train: float = 0.50,
    mfu_input: float = 0.50,
    mfu_output: float = 0.01,
    cost_per_train_flop: float = 1.0,
    cost_per_inf_flop: float = 0.5,
    coeffs: ChinchillaCoefficients = ChinchillaCoefficients(),
) -> Dict[str, float]:
    """Minimize MFU-adjusted training + inference cost at fixed loss (arXiv:2401.00448, Eq. 6)."""
    if target_loss <= coeffs.e_floor:
        raise ValueError("target_loss must exceed irreducible entropy floor E.")

    # Minimum possible parameter count where D_tr -> infinity: A / N^alpha < target_loss - E
    n_min = (coeffs.a_param / (target_loss - coeffs.e_floor)) ** (1.0 / coeffs.alpha)
    best_cost = float("inf")
    best_n = n_min * 1.5
    best_d_tr = 0.0

    # Logarithmic grid search over parameter multipliers above the asymptote n_min
    for step in range(1, 2000):
        multiplier = 1.001 + (step / 2000.0) * 4.0
        n_cand = n_min * multiplier
        rem_loss = (target_loss - coeffs.e_floor) - (
            coeffs.a_param / (n_cand ** coeffs.alpha)
        )
        if rem_loss <= 1e-9:
            continue
        d_tr_cand = (coeffs.b_data / rem_loss) ** (1.0 / coeffs.beta)

        train_cost = (6.0 * n_cand * d_tr_cand * cost_per_train_flop) / mfu_train
        inf_cost = 2.0 * n_cand * cost_per_inf_flop * (
            (d_input_tokens / mfu_input) + (d_output_tokens / mfu_output)
        )
        total_cost = train_cost + inf_cost
        if total_cost < best_cost:
            best_cost = total_cost
            best_n = n_cand
            best_d_tr = d_tr_cand

    return {
        "optimal_params_n": best_n,
        "optimal_train_tokens_d": best_d_tr,
        "tokens_per_param": best_d_tr / best_n,
        "total_weighted_cost": best_cost,
        "total_raw_flops": 6.0 * best_n * best_d_tr
        + 2.0 * best_n * (d_input_tokens + d_output_tokens),
    }

def segment_bytes_by_entropy(
    raw_bytes: bytes,
    byte_entropies: Sequence[float],
    theta_global: float | None = 1.25,
    theta_monotonic: float | None = None,
) -> List[bytes]:
    """Segment raw UTF-8 bytes into dynamic BLT patches (arXiv:2412.09871, Sec. 2.3)."""
    if len(raw_bytes) != len(byte_entropies):
        raise ValueError("raw_bytes and byte_entropies must have identical length.")
    if not raw_bytes:
        return []

    patches: List[bytes] = []
    current_start = 0

    for idx in range(1, len(raw_bytes)):
        h_curr = byte_entropies[idx]
        h_prev = byte_entropies[idx - 1]
        is_boundary = False
        if theta_global is not None and h_curr > theta_global:
            is_boundary = True
        if theta_monotonic is not None and (h_curr - h_prev) > theta_monotonic:
            is_boundary = True

        if is_boundary:
            patches.append(raw_bytes[current_start:idx])
            current_start = idx

    patches.append(raw_bytes[current_start:])
    return patches

def blt_rolling_poly_hash_ngrams(
    raw_bytes: bytes,
    num_buckets: int = 500_000,
    prime_base: int = 257,
) -> List[Dict[int, int]]:
    """Compute BLT byte n-gram hash indices for n in {3..8} (arXiv:2412.09871, Sec. 3.2.1)."""
    per_byte_hashes: List[Dict[int, int]] = []
    for i in range(len(raw_bytes)):
        ngram_map: Dict[int, int] = {}
        for n in range(3, 9):
            if i + 1 >= n:
                h_val = 0
                for b_val in raw_bytes[i - n + 1 : i + 1]:
                    h_val = (h_val * prime_base + int(b_val) + 1) % num_buckets
                ngram_map[n] = h_val
        per_byte_hashes.append(ngram_map)
    return per_byte_hashes

Production Pre-Training Blueprint: Architecting Foundation Model Data and Compute Pipelines in 2026

When designing a foundation model pre-training run or domain-specialized continual pre-training pipeline in 2026, engineering teams can combine these five breakthroughs into a deterministic four-stage architecture:

  1. Stage 1 — Size the Model by Lifetime Inference MFU, Not Training-Only Chinchilla (arXiv:2401.00448): - Never size a production deployment model using the 20-tokens-per-parameter training-only rule ($D_{\text{inf}} = 0$). Plug your expected lifetime request volume ($D_{\text{inp}}, D_{\text{out}}$) and hardware utilization ($\operatorname{MFU}{\text{tr}} \approx 50\%$ vs. $\operatorname{MFU}{\text{out}} \approx 1\%$) into Sardana et al.'s Equation 6. For models serving $\ge 10^9$ requests ($>1\text{T}$ inference tokens), target 300 to 2,000+ training tokens per parameter (e.g., an 8B model trained on 15T tokens or a 7B model trained on 2.6T–4T high-grade tokens), and always match the cosine learning rate schedule horizon to the full token budget $D_{\text{tr}}$ (arXiv:2203.15556, Appendix B).
  2. Stage 2 — Extract From Raw WARC HTML and Deduplicate Per-Snapshot (arXiv:2406.17557, arXiv:2406.11794): - Discard Common Crawl WET files immediately; extract raw HTML from WARC archives using resiliparse ($8\times$ faster than trafilatura, +3.4 to +3.8 Core points over WET) or trafilatura. - Apply independent per-snapshot MinHash deduplication (5-grams, 112 hashes in 14 buckets of 8, 75% similarity threshold) or scalable near-duplicate Bloom filtering rather than aggressive chronological global MinHash across 90+ dumps, preserving high-value multi-snapshot educational documents while stripping massive intra-crawl template clusters. - Layer FineWeb's three histogram-calibrated custom document heuristics (line terminal punctuation fraction $> 0.12$, duplicated line character fraction $< 0.10$, and <30-character short-line fraction $< 0.67$) to gain C4-level quality while removing only ~22% of tokens instead of C4's 30%+.
  3. Stage 3 — Decant With Two-Tier Model Classifiers and Synthetic Textbooks (FineWeb-Edu, DCLM, Phi-1): - First, apply a CPU-speed fastText quality filter trained on instruction and explanatory positives (OpenHermes-2.5 + ELI5, keeping the top 10% of web text as in DCLM-Baseline) to prune noisy general crawls. - Second, score the surviving pool with a frozen embedding regressor (Snowflake-arctic-embed-m trained on Llama-3-70B-Instruct 0–5 additive educational rubrics at cutoff $\ge 3$, as in FineWeb-Edu) to isolate reasoning-dense tokens that accelerate MMLU and ARC convergence by up to 8x–10x. - Third, synthesize self-contained, diversity-constrained textbooks and docstring exercises (CodeTextbook + CodeExercises) for target reasoning and coding domains, and audit against benchmark leakage using embedding L2 distance + AST edit distance ($\tau = 0.80\text{--}0.95$) plus last-sentence MMLU overlap removal.
  4. Stage 4 — Evaluate Byte Latent Transformer (BLT) Entropy Patching for Multilingual, Noisy, or Inference-Constrained Workloads (arXiv:2412.09871): - When deploying models that must handle noisy user text, character-level manipulation (CUTE), non-Latin/low-resource scripts (FLORES-101), or strict inference FLOP budgets, replace fixed-vocabulary BPE with BLT dynamic entropy patching (or "byte-ify" an existing Llama-3 checkpoint in 10x fewer tokens per Section 6.2 of arXiv:2412.09871v1) and tune average patch size toward 6 to 8 bytes to cut global Latent Transformer inference FLOPs by up to ~50%.

Frequently Asked Questions (FAQ) on LLM Scaling Laws, Data Filtering, and Byte-Level Architectures

1. Why did Kaplan et al. (2020) conclude that model parameters should scale 2.7x faster than data ($C^{0.73}$ vs. $C^{0.27}$), whereas Chinchilla (2022) proved 1:1 scaling ($C^{0.50}$ vs. $C^{0.50}$)? In arXiv:2203.15556 (Section 3 & Appendix B), Hoffmann et al. showed that Kaplan et al. (arXiv:2001.08361) used a single fixed cosine learning rate schedule length ($1.3 \times 10^5$ steps) across runs and measured intermediate losses before the learning rate had decayed. Because failing to decay the cosine learning rate to $10\times$ below peak at the exact evaluation token horizon $D$ artificially inflates validation loss, shorter-horizon measurements looked worse than they truly were. When Hoffmann et al. matched the cosine cycle length to each run's exact target token count $D$ across over 400 models (70M to 16B parameters), all three estimation approaches converged on equal scaling ($a \approx 0.46\text{--}0.50, b \approx 0.50\text{--}0.54$, or ~20 tokens per parameter), allowing the 70B Chinchilla model (1.4T tokens) to beat the 280B Gopher model (300B tokens) by +7.5% on MMLU (67.5% vs. 60.0%) at the exact same $5.76 \times 10^{23}$ FLOP budget.

2. Why does a Chinchilla-70B model cost 36% more in real-world deployment dollars than an over-trained model at 2 trillion inference tokens even though its total raw FLOPs are only 1.3% higher? As proven by Sardana et al. in Section 6 of arXiv:2401.00448, raw FLOP counts treat 1 training FLOP and 1 autoregressive generation FLOP as equally expensive. In reality, training and prompt prefill execute large dense matrix-matrix multiplications at ~50% Model FLOPs Utilization ($\operatorname{MFU}{\text{tr}} = 50\%, \operatorname{MFU}{\text{inp}} = 50\%$), whereas autoregressive token generation is memory-bandwidth-bound and runs at ~1% MFU ($\operatorname{MFU}_{\text{out}} = 1\%$)—making each output generation FLOP $50\times$ more expensive in accelerator wall-clock time than a training FLOP. At 2 trillion inference tokens (7.02 billion requests averaging 70 input and 215 output tokens), optimizing Equation 6 for MFU-weighted hardware costs yields a smaller, heavily over-trained model that saves 36% in total training + inference dollar cost compared to Chinchilla-70B.

3. Why did global MinHash deduplication across all 96 Common Crawl snapshots hurt model quality in FineWeb compared to deduplicating each snapshot independently? In Section 3.4 and Figure 4 of arXiv:2406.17557v2, Penedo et al. applied 5-gram MinHash chronologically from 2023-50 back to 2013-48, shrinking 36T base-filtered tokens to 4T tokens and removing 90% of the oldest 2013-48 snapshot. When they trained separate models on the 10% retained slice (~31B tokens) versus the 90% removed slice individually deduplicated (~171B tokens) from 2013-48, the 90% removed data significantly outperformed the 10% kept data. Because high-quality informative web pages persist or reappear across multiple crawls, global deduplication strips almost all clean prose from older snapshots while leaving behind unique, single-occurrence noise (ads, broken formatting, and incoherent keyword lists). Independent per-snapshot MinHash deduplication (20T tokens, refined to 15T in FineWeb) removes massive intra-dump boilerplate clusters without enriching the long tail of unique garbage.

4. Why did mixing Wikipedia, Books, and GitHub (RPJ extras) improve C4 and RefinedWeb in DataComp-LM (DCLM), yet degrade DCLM-Baseline by 1.6 Core percentage points? In Section 4.5 and Table 6 of arXiv:2406.11794v1, Li et al. compared 100% filtered Common Crawl corpora against a 67% Common Crawl + 33% RPJ extras (Wikipedia, Books, StackExchange, arXiv, GitHub) mixture at the 1B-1x scale. On weakly filtered web datasets (C4, RedPajama-CC, RefinedWeb), the average quality of the web split is lower than curated repositories, so mixing in 33% curated sources lifts Core accuracy by +1.4 to +2.2 points. However, DCLM-Baseline filters raw Common Crawl with a fastText classifier trained on OpenHermes 2.5 + ELI5 keeping only the top 10% of documents (31.1 Core). Replacing 33% of that ultra-high-grade instructional web text with unfiltered bulk Wikipedia/Books/GitHub dilutes average explanatory density and drops Core accuracy to 29.5 (-1.6 points).

5. How did the 1.3B-parameter Phi-1 model outperform the 15.5B-parameter StarCoder on HumanEval while training on 142x fewer tokens (7B vs. 1T)? In arXiv:2306.11644 (Sections 2–5), Gunasekar et al. demonstrated that raw web code (The Stack) is dominated by non-self-contained module fragments and trivial boilerplate; a 350M model trained on unfiltered Stack Python saturates at 12.19% HumanEval even after 200B tokens. By filtering 35B tokens of The Stack + StackOverflow down to 6B high-educational-value tokens via a GPT-4-annotated CodeGen-350M-Mono Random Forest classifier, synthesizing <1B tokens of self-contained GPT-3.5 Python textbooks (CodeTextbook), and finetuning for just 7 hours on ~180M tokens of synthetic docstring exercises (CodeExercises), phi-1 (1.3B) reached 50.6% HumanEval and 55.5% MBPP (phi-1-small 350M reached 45.0% HumanEval) vs. StarCoder-15.5B's 33.6%–40.8% HumanEval. Strict AST edit-distance decontamination removing 354K of 879.5K exercises (40.3% of CodeExercises at $\tau = 0.80$) confirmed that retrained phi-1 still achieves 45.1% HumanEval.

6. How does the Byte Latent Transformer (BLT) cut inference FLOPs by up to ~50% while outperforming BPE Llama-3 on noisy text and character-level benchmarks? In arXiv:2412.09871v1 (Sections 2.3, 3, 5, and 6), Pagnoni et al. replace fixed-vocabulary BPE tokenization with a lightweight byte-level entropy LM that triggers a new patch boundary only when next-byte Shannon entropy $H(x_t)$ spikes ($H(x_t) > \theta_g$ or $H(x_t) - H(x_{t-1}) > \theta_r$). Because predictable byte continuations are grouped into long patches handled by lightweight local cross-attention encoder/decoder modules ($l_{\mathcal{E}}, l_{\mathcal{D}} \ll l_{\mathcal{G}}$) equipped with rolling polynomial hash $n$-gram embeddings ($n=3\dots 8$), the heavyweight global Latent Transformer $\mathcal{G}$ executes far fewer steps—cutting inference FLOPs by nearly 50% when scaling average patch size from 4.4 bytes (Llama-3 BPE) to 8 bytes. At the same time, direct access to raw UTF-8 bytes boosts Noisy HellaSwag by +7.4 points (64.3% vs. 56.9%) and doubles CUTE orthographic accuracy from 27.5% to 54.1% (99.9% vs. 1.1% on Spelling).


Primary Sources & Technical References

  1. Hoffmann, J., Borgeaud, S., Mensch, A., Buchatskaya, E., Cai, T., Rutherford, E., de Las Casas, D., Hendricks, L. A., Welbl, J., Clark, A., Hennigan, T., Noland, E., Millican, K., van den Driessche, G., Damoc, B., Guy, A., Osindero, S., Simonyan, K., Elsen, E., Rae, J. W., Vinyals, O., & Sifre, L. (2022). Training Compute-Optimal Large Language Models (Chinchilla). DeepMind, NeurIPS 2022 / arXiv:2203.15556. https://arxiv.org/abs/2203.15556 and https://ar5iv.labs.arxiv.org/html/2203.15556
  2. Sardana, N., Portes, J., Doubov, S., & Frankle, J. (2024). Beyond Chinchilla-Optimal: Accounting for Inference in Language Model Scaling Laws. MosaicML / Databricks & Harvard University, ICML 2024 / arXiv:2401.00448. https://arxiv.org/abs/2401.00448 and https://ar5iv.labs.arxiv.org/html/2401.00448
  3. Penedo, G., Kydlíček, H., Ben Allal, L., Lozhkov, A., Mitchell, M., Raffel, C., Von Werra, L., & Wolf, T. (2024). The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale. Hugging Face, NeurIPS 2024 Datasets and Benchmarks Track, arXiv:2406.17557v2. https://arxiv.org/abs/2406.17557 and https://arxiv.org/html/2406.17557v2
  4. Li, J., Fang, A., Smyrnis, G., Ivgi, M., Jordan, M., Gadre, S., Bansal, H., Guha, E., Keh, S., Arora, K., Garg, S., Xin, R., Muennighoff, N., Heckel, R., Mercat, J., Chen, M., Gururangan, S., Wortsman, M., Albalak, A., Bitton, Y., Nezhurina, M., Abbas, A., Hsieh, C.-Y., Ghosh, D., Gardner, J., Kilian, M., Zhang, H., Shao, R., Pratt, S., Sanyal, S., Ilharco, G., Daras, G., Marathe, K., Gokaslan, A., Zhang, J., Chandu, K., Nguyen, T., Vasiljevic, I., Kakade, S., Song, S., Sanghavi, S., Faghri, F., Oh, S., Zettlemoyer, L., Lo, K., El-Nouby, A., Pouransari, H., Toshev, A., Wang, S., Groeneveld, D., Soldaini, L., Koh, P. W., Jitsev, J., Kollar, T., Dimakis, A. G., Carmon, Y., Dave, A., Schmidt, L., & Shankar, V. (2024). DataComp-LM: In search of the next generation of training sets for language models. NeurIPS 2024, arXiv:2406.11794v1. https://arxiv.org/abs/2406.11794 and https://arxiv.org/html/2406.11794v1
  5. Gunasekar, S., Zhang, Y., Aneja, J., Mendes, C. C. T., Del Giorno, A., Gopi, S., Javaheripi, M., Kauffmann, P., de Rosa, G., Saarikivi, O., Salim, A., Shah, S., Behl, H. S., Wang, X., Bubeck, S., Eldan, R., Kalai, A. T., Lee, Y. T., & Li, Y. (2023). Textbooks Are All You Need (Phi-1). Microsoft Research, arXiv:2306.11644. https://arxiv.org/abs/2306.11644 and https://ar5iv.labs.arxiv.org/html/2306.11644
  6. Pagnoni, A., Pasunuru, R., Rodriguez, P., Nguyen, J., Muller, B., Li, M., Zhou, C., Yu, L., Weston, J., Zettlemoyer, L., Ghosh, G., Lewis, M., Holtzman, A., & Iyer, S. (2024). Byte Latent Transformer: Patches Scale Better Than Tokens. FAIR at Meta, University of Washington & University of Chicago, arXiv:2412.09871v1. https://arxiv.org/abs/2412.09871 and https://arxiv.org/html/2412.09871v1
🔗 Share Post

Reading next story...

العودة إلى المنشورات