# Measuring Pretraining Perplexity Through a Black Box

> Source: <https://anpaure.github.io/pretraining-index/writeup.html>
> Published: 2026-11-27 23:38:15+00:00

**Recommendation:** Rank 8-choice continuations with zero chain-of-thought and score by pairwise rank AUC rather than raw logprobs, since raw API BPB correlated negatively (r = −0.136) with true pretraining quality on RL-tuned endpoints.
More in the playbook "Evals and testing for LLM apps": <https://wpnews.pro/playbooks/evals-testing>

# Measuring Pretraining Perplexity Through a Black Box

A zero-logprob, strictly zero-CoT continuation-ranking benchmark across 954 post-cutoff Nov-2026 items—placing 105 live open and closed endpoints from 18 labs on one scale with 0.85% within-OpenAI LOO and 3.41% cross-lab LOLO across 7 independent open labs.

    On November 22, 2026, OpenAI’s chief scientist Jakub Pachocki argued in [*Perplexity and Intelligence*](https://openai.com/index/perplexity-and-intelligence/) that base-model log-perplexity is the cleanest single-number measure of pretraining progress—but released no public dataset. Two days later, [Mercor](https://www.mercor.com/blog/a-simple-proxy-for-perplexity/) proposed averaging six public multiple-choice exams as a proxy, showing a `−0.98` Spearman correlation on nine OpenAI models and immediately raising the key question: *does a downstream exam average actually measure pretraining compression across labs, or mostly post-training and time trends?*

    We built the **Anpaure Pretraining Index (ANPI)**: a direct black-box **8-choice continuation-ranking** evaluation over `N = 954` provably post-cutoff November 2026 items (`908` unique source URLs, 5 domains) against neutral 24B cloud decoys, audited at strict `0 / 99,921` reasoning tokens across **105 live endpoints from 18 labs** (68 closed frontier endpoints + 37 open-weight endpoints, alongside 11 Elie-only open checkpoints for 116 ranked models total). Scoring models by zero-fit **Pairwise Rank AUC** and calibrating Thurstone Case V discriminability `d′ = √2 Φ` onto <sup>−1</sup>(AUC)`ln(BPB)` outperforms Mercor, `SimpleQA-Verified`, and `AA-Omniscience-Accuracy` on predictive error across both OpenAI and cross-lab open ground truth:
  

| Ground-Truth Test | ANPI (0-CoT AUC) | AA-Omniscience-Acc | SimpleQA-Verified | Mercor (6-MCQ) | 
|---|---|---|---|---|
| OpenAI 10-model `r / ρ` | +0.990 / +0.988 | +0.880 / +0.997 | +0.913 / +0.900 | +0.852 / +0.930 | 
| OpenAI 10-model blind LOO | 0.85% (max 1.8%) | 3.27% (max 6.4%) | 2.69% (max 6.0%) | 3.61% (max 7.0%) | 
| OpenAI 11-model LOO (incl. o3) | 0.88% (ρ +0.977) | 3.14% (ρ +0.977) | 2.95% (ρ +0.831) | 3.73% (ρ +0.895) | 
| OpenAI blind extrap (4o..5.6 → 6/6.2) | 1.44% | 8.55% | 7.27% | 8.68% | 
| Same-base: `o3` vs.`GPT-4.1` (0.902) | 0.76% gap | 3.44% (38.6 vs 27.8) | 5.18% (49.4 vs 31.1) | 6.89% (69.1 vs 48.1) | 
| Elie cross-lab (14 native-chat, 7 labs) | LOLO 3.41% (LOO 2.87%) | LOLO 4.72% (13 shared) | only 6 shared | untested | 
| CoT / effort purity | Strict 0 / 99,921 | +8–10 pt drift | Leaks CoT | Leaks CoT | 
| Frontier ceiling (Claude Fable 5.2) | 59.5% Top-1 / 0.855 | 79.1% | 94.0% (sat.) | 90.4% (sat.) | 
| Cost per frontier model | $1–$3 | — | — | $35–$88 | 

## 1. Why Direct Logprobs and MCQ Shortcuts Both Break

    On open weights, exact teacher-forced bits-per-byte (BPB) is straightforward—[Elie Bakouch’s Pre-training Index](https://eliebak.com/pretraining-index) measures it cleanly across 27 open checkpoints. On closed frontier APIs, direct logprob evaluation fails twice over: first, Anthropic and Google omit logprobs completely and OpenAI disables `echo=true` prompt-token logprobs; second, post-training RL sharpening collapses raw next-token logprob BPB. In our early logprob experiments (`pplx_protocol_a/`), raw API BPB correlated **negatively** (` r = −0.136`) with true pretraining quality across RL-tuned endpoints because overconfident wrong tokens blow up `−log p`.
  

    Downstream exam averages avoid logprobs but run into three opposite problems: **saturation** (`Claude Fable 5.2` already hits `90.4%` on Mercor and `94.0%` on `SimpleQA-Verified`), **reasoning leakage** (Mercor’s `o3` scores `69.1%` vs. identical-base `GPT-4.1` at `48.1%`), and **untested cross-lab validity**.
  

## 2. Method: Rank-Coded Continuation Ranking (ANPI v1)

1. **Provably post-cutoff 5-domain corpus (`N = 954`, `908` unique URLs):** Every source document carries a November 2026 timestamp across News/Speeches (`199` Hansard & BBC), Research Papers (`198` arXiv & bioRxiv), Essays (`198` Guardian & LessWrong), newly created Wikipedia articles (`197` ), and newly added single-line code blocks (`162` across 116 distinct Nov-2026 commits in CPython, Linux, Postgres, Go, LLVM, PyTorch, ClickHouse, FFmpeg, etc.).
2. **Neutral 24B cloud decoys (`K = 8`):** At each cut point, we keep the authentic next snippet (~6 prose words or ~36 bytes of code) and sample 7 distinct`T = 1.0` raw continuations from`mistral-small-24b-instruct-2501` via`/api/v1/completions` (fixing the trailing-space BPE boundary bug), with zero model-family overlap with any calibration anchor.
3. **Strict 8-letter permutation & RL sharpening nuance:** Each API receives the shuffled candidates`A..H` and must return an exact 8-distinct-letter permutation (`C,A,F,B,H,D,E,G` ). Global monotone sharpening preserves the ordering of candidate likelihoods`p(y|x)` —though note it does*not* preserve likelihood-ratio ordering`p(y|x)/q(y|x)` when`q` is nonuniform, and rankings alone require empirical anchor calibration to map onto absolute BPB.
4. **Strict Zero-CoT across all 105 live endpoints (`0 / 99,921` items):** Reasoning tokens are suppressed across every provider and verified with A/B zero-bias controls: explicit no-scratchpad prompting (100-item`Gemini 4 Argon` control,`p = 0.85` ); forced`tool_choice` on`o3` ,`GLM-5.3 Flash` , and`Inkling` ; 6-shot +`effort: minimal` on`Grok 4.7` (100-item`Grok 4.20` A/B`z = −0.85` );`named_tool` + empty thinking on`Grok 4.5 / 4.6` (`z = −1.06` );`{"order":"` assistant prefill on`Gemini 2.5 Pro` &`Step 5 Preview` (`Gemini 2.5 Flash` A/B`z = −1.18` ,`0/4` hard-math litmus); constant empty-ATEM header on`Meta Muse Wonder` (Vertex AI, byte-identical to`"Reply OK"` ); and raw`/completions` zero-think templates on 6 mandatory-reasoning open endpoints (badged`BYPASS` ).
5. **Automated 15-metric trace-health verification:** Every live model is checked by`tests/test_trace_health.py` and Section 7 of`audit_v1.py` for slot primacy/recency bias, permutation diversity, prompt-example echo, single-domain collapse, and tail-rank inversion—with all top-25 frontier models 100% pathology-free.

## 3. Why Pairwise AUC + Thurstone *d′* → ln(BPB)

    Testing 24 zero-extra-parameter linking functions and three 3-parameter scaling laws across **four independent datasets** (`Mistral-24B` 5-domain + our earlier `OLMo-1B` Hansard suite, crossed against both OpenAI and Elie ground truth) revealed three clean results:
  

### A. Real 8-way rank histograms follow Thurstone Case V (6.8× better than Plackett-Luce)

    Because each candidate snippet spans ~8–12 tokens, its log-probability `S` is a sum of token log-probs—<sub>m</sub>(y) = Σ log p<sub>m</sub>(y<sub>t</sub> | x, y<sub><t</sub>)**Gaussian by the Central Limit Theorem**, not Gumbel. Matching a single number (`AUC`) per model and predicting its full 8-bin rank histogram `P(r = 1..8)` across real rank rows gives mean `KL = 0.0057` nats under **Thurstone Case V** vs. `0.0391` nats under **Plackett-Luce** (**6.8× better fit**). Under Thurstone Case V, any global temperature scaling `β` cancels identically in Signal Detection Theory’s discriminability:
  <sub>m</sub>

<sub>m</sub>= (8 − r̄

<sub>m</sub>) / 7 = P(S

<sub>m</sub>(y

<sub>true</sub>) > S

<sub>m</sub>(y

<sub>decoy</sub>)), d′

<sub>m</sub>= √2 · Φ

<sup>−1</sup>(AUC

<sub>m</sub>)

### B. Tail ranks (`r ≥ 2`) carry massive independent BPB signal

    Even after controlling for Top-1 accuracy, a model’s conditional mean rank among misses (`r ≥ 2`) retains a partial correlation of **`+0.730`** on `24B-OpenAI`, **`+0.761`** on `1B-Elie`, and **`+0.734`** on `1B-OpenAI` with true BPB. `MRR` puts ~75% of its variance on `r = 1` vs. `r ≥ 2`—and binary MCQ throws away ranks `2–8` entirely. Switching from `−ln(MRR)` to pairwise `AUC` jumped our 10-model OpenAI Spearman correlation from `+0.891 → +0.988` and cut LOO error from `1.18% → 0.85%`.
  

### C. Eliminating compute in Ruan et al. (NeurIPS 2024) gives exact log-BPB linearity

    In [Ruan, Maddison & Hashimoto (NeurIPS 2024)](https://arxiv.org/abs/2405.10938), `ln(BPB) ∝ ln C` and `σ`. Eliminating compute yields the exact 2-parameter log-BPB law:
  <sup>−1</sup>(Acc) ∝ ln C

<sub>m</sub>) = a + b · (−d′

<sub>m</sub>) = a − b · √2 · Φ

<sup>−1</sup>(AUC

<sub>m</sub>)

    Across all 4 independent datasets (including `OLMo-1B` where frontier models hit `AUC = 0.94`), `probit_auc [logY]` ranked **#1 of 24 transforms** (`3.11%` 4-dataset average vs. `4.02%` for `−ln(MRR)`), showed **zero statistically significant curvature on all 4 datasets** (`mean |t`), and beat every 3-parameter literature curve (<sub>2</sub>| = 1.09[Gadre et al. ICLR 2025](https://arxiv.org/abs/2403.08540) Eq. 5, Ruan floor-sigmoid, Chinchilla `E`), all of which overfitted on <sub>0</sub>` n = 10–14` anchors.
  

## 4. Validation & Variance Decomposition

    On all **10 published OpenAI Nov-22 base models** (`GPT-4o → GPT-6.2 Astra`), ANPI achieves **` r = +0.9895`, `ρ = +0.9879`, and `0.85%` blind LOO error** (max `1.79%`; blind upward extrapolation from `GPT-4o..5.6 Sol` to `GPT-6 / 6.2 Astra`: **` 1.44%`**). Controlling for Epoch’s ECI across OpenAI models retains partial `r(ANPI, log OAI | ECI) = +0.967`; on Elie’s open models, controlling for the AA Intelligence Index retains partial `r(ANPI, Elie | AA Index) = +0.758` vs. `−0.049` for AA Index.
  

    On **Elie’s 14 native-chat open models across 7 labs**, we obtain **`r = +0.9113`, `ρ = +0.8418`, `LOO = 2.87%`, and 7-lab Leave-One-Lab-Out `LOLO = 3.41%`** (including the 3 visible Elie `BYPASS` models across 9 labs: `LOO = 3.27%`, `LOLO = 3.65%`). Decomposing total residual variance reveals why within-lab error is `~0.9%` while cross-lab error floors around `~3.2%`:
  

| Calibration Scale | Total Resid SD | Finite-N (954) Noise | Structural Mismatch | 
|---|---|---|---|
| Within-OpenAI (10 models) | 0.94% | **0.79%** (71.1% var) | 0.50% (28.9% var) | 
| Cross-Lab Elie (14 models, 7 labs) | 3.43% | 1.38% (16.2% var) | **3.14%** (83.8% var) | 

    Inside OpenAI, **71%** of our tiny `0.85%` error is simply finite-sample noise from `N = 954` items. Across labs, **84%** is a genuine family-level offset (between-family bias SD = `3.16%` vs. within-family scatter `1.96%`)—each lab’s domain mix and post-training style shifts its whole family by `~1–5%`.
  

## 5. Two Methodological Traps Exposed by Our Experiments

**Trap 1 — "Minimal reasoning" leaks CoT and flips frontier rankings:** Stripping hidden reasoning tokens to strict

`0` dropped `Gemini 4 Neon` (old `953/953` items had `r_tok > 0`) by `−0.0184` AUC / `−0.0261` MRR (
**),**

`p = 0.0004`` o3` by `−0.0203` AUC (`p = 0.029`), and `GLM-5.3 Flash` by `−0.0181` AUC (`p = 0.046`). With leaked CoT, Neon sat above `GPT-6.2 Astra` (matching Mercor); at strict 0-CoT, **.**

`GPT-6.2 Astra` cleanly beats `Gemini 4 Neon` (`p = 0.024`)
**Trap 2 — Optimizing benchmark combinations on OpenAI (SOCP /** Running an exact nonnegative SOCP and global

`|I| ≤ 3`) collapses cross-lab:`|I| ≤ 3` subset search on Epoch AI’s Nov-25 database (`90` CSVs; `8` complete `11/11` OpenAI benchmarks) picks **alone (**

`ARC-AGI-2`` r = +0.981` on OpenAI) or `0.74·ARC-AGI-2 + 0.18·SimpleQA + 0.08·Chess` (`r = +0.989`). Cross-lab on Elie’s exact BPB, **(**

`ARC-AGI-2` collapses to `r = +0.088``−0.210` at best effort), `Chess` and `AIME` go **negative**(

`−0.126`, `−0.251`), and `GPQA` drops to `+0.221`. Worse, searching `|I| ≤ 3` over 25–40 *pure Gaussian noise*columns on

`n = 11` targets produces fake `r = +0.81–+0.88` (SOCP: `+0.991`).
  ## 6. Headline Frontier Results (105 Live Models, 18 Labs)

| # | Model | Lab | AUC ↑ | Top-1 | MRR ↑ | OAI Scale ↓ | Elie Unch ↓ | 
|---|---|---|---|---|---|---|---|
| 1 | **Claude Fable 5.2** | Anthropic | **0.8552** | 59.5% | 0.7353 | 0.749 EX | 0.391 [0.344, 0.443] | 
| 2 | **Gemini 4 Carbon** |  | **0.8482** | 59.2% | 0.7300 | 0.756 EX | 0.397 [0.351, 0.449] | 
| 3 | **GPT-6.2 Astra** | OpenAI | **0.8444** | 55.8% | 0.7114 | **0.761** PUB | 0.400 [0.354, 0.451] | 
| 4 | **Gemini 4 Argon** |  | **0.8432** | 58.0% | 0.7206 | 0.760 | 0.401 [0.355, 0.452] | 
| 5 | **Gemini 4 Neon** |  | **0.8291** | 56.1% | 0.7073 | 0.772 | 0.412 [0.367, 0.463] | 
| 6 | **Claude Opus 5.5** | Anthropic | **0.8180** | 53.0% | 0.6859 | 0.781 | 0.421 [0.377, 0.470] | 
| 7 | **GPT-6 Astra** | OpenAI | **0.8169** | 52.8% | 0.6823 | **0.783** PUB | 0.422 [0.378, 0.471] | 
| 8 | **GPT-6.1 Sol** | OpenAI | **0.8119** | 50.6% | 0.6703 | 0.786 | 0.426 [0.382, 0.474] | 
| 9 | **Claude Fable 5.1** | Anthropic | **0.8080** | 52.7% | 0.6770 | 0.789 | 0.429 [0.386, 0.477] | 
| 10 | **Claude Fable 5** | Anthropic | **0.7929** | 47.2% | 0.6444 | 0.801 | 0.441 [0.398, 0.488] | 
| 11 | **Gemini 3.1 Pro** |  | **0.7904** | 46.2% | 0.6406 | 0.803 | 0.443 [0.400, 0.489] | 
| 12 | **GPT-6.2 Sol** | OpenAI | **0.7893** | 47.0% | 0.6398 | 0.804 | 0.443 [0.401, 0.490] | 
| 23 | **Kimi K3.1 Pro** #1 Open | Moonshot | **0.7520** | 39.9% | 0.5875 | 0.832 | **0.484** EXACT | 

    See the [interactive ANPI leaderboard](./index.html) for all **105 live models across 18 labs** (including `Kimi K3.1 Pro`, `Kimi K3`, `Qwen3.8 2.4T-A95B`, `Muse Spark Open`, `MiMo-V2.6-Pro`, `GLM-5.3 Prime`, `Grok 4.7`, `Meta Muse Wonder`, `Mistral Large 3`, `Tencent Hy4`, `MiniMax M3`, and `Step 5 Preview`), the OpenAI Base Perplexity Scale graph, and interactive head-to-head cluster-bootstrapped significance testing.
  

## 7. Honest Limitations & Roadmap to v2

- **Code length shortcut (`22.7%` vs. `12.5%` chance):** Symmetric`±10` -char decoy filtering centered gold length in Code (prose domains sit at chance). Removing all 162 Code items preserves`r = +0.9979, ρ = +0.9956` across all 105 live models, leaves the top-9 AUC set invariant, and leaves the top-9 MRR ordering 100% identical. Fixed in v2 by removing length filtering.
- **Mandatory-reasoning zero-think tax (`BYPASS`):** Six open endpoints (` Qwen3.8 2.4T-A95B` ,`Muse Spark Open` ,`Inkling 2 Small` ,`Reflection Beam 1.0` ,`gpt-oss-120b/20b` ) reject 0-CoT on standard chat APIs and required raw`/completions` zero-think templates—imposing a verified`−0.071` AUC cold-start tax (`z = 2.07` ). Kept visible on the leaderboard (badged`BYPASS` ) and excluded from the 14-anchor native-chat OLS fit by default (`17` -anchor sensitivity LOLO =`3.65%` across 9 labs).
- **Cross-lab rank order vs. `AA-Omniscience-Acc`:** While ANPI beats` AA-Omniscience-Acc` on predictive error across both OpenAI (`0.85%` vs.`3.27%` ) and Elie (`3.41%` 14-model /`3.70%` 13-shared vs.`4.72%` LOLO),`AA-Omniscience-Acc` slightly edges cross-lab Spearman`ρ` (`+0.901` vs.`+0.842` ).
- **ANPI v2 plan:** Scale to`N = 2,500` (1 item per URL, cutting the 71% finite-N floor to`~0.55%` ), replace single-model decoys with a 3–4 model*base* -checkpoint decoy ensemble, add fresh Fiction + multilingual slices (`ZH/DE/FR/JA` ), and run rolling monthly snapshots.

## 8. Reproduce Everything Locally ($0)

```
git clone https://github.com/anpaure/pretraining-index.git
cd pretraining-index
python3 build_anpaure_index_v1.py   # deterministic HTML + calibrated JSON rebuild
python3 audit_v1.py                 # 99,921-row raw trace replay, parity, EXTRAP, LOLO, health, secret scan
python3 -m unittest discover -s tests -v
```


