Skip to content

Curriculum specialization for nanoGPT

Find math and science examples in an unlabeled web crawl and schedule them during pre-training. The model must improve on these subjects while retaining performance on general text.

By Mayank Kulkarni
On this page
  1. Task and metric
  2. Results
  3. Statistics
  4. Validation and hidden test

Task and metric

Full task description

Design the pretraining data curriculum for a small GPT trained from scratch so that it specializes in math, physics, chemistry and biology without regressing on general text: find topic data in an unlabeled raw web crawl from small labeled seeds, and schedule it with mixtures, learning-rate phases, branching and merging, token weights and adaptive mixing in a frozen trainer.

Reward. Score of the submitted L10 schedule, trained from scratch by the frozen trainer with three hidden seeds and evaluated on held-out test sets against a web-only L10 model: topic_score - 3 * retention_penalty. topic_score = r_bar * geometric mean over math, physics, chemistry and biology of max(0.05, gain_t / r_t), where gain_t is the reduction in loss (nats) and r_t a fixed competent reference's gain (r_bar their mean, 0.523); retention_penalty is the mean over six general domains (encyclopedic, web, news, Q&A, FineWeb, C4) of max(0, -gain).

Full reward definition

Score of the submitted L10 schedule, trained from scratch by the frozen trainer with three hidden seeds and evaluated on held-out test sets against a web-only L10 model: topic_score - 3 * retention_penalty. topic_score = r_bar * geometric mean over math, physics, chemistry and biology of max(0.05, gain_t / r_t), where gain_t is the reduction in loss (nats) and r_t a fixed competent reference's gain (r_bar their mean, 0.523); retention_penalty is the mean over six general domains (encyclopedic, web, news, Q&A, FineWeb, C4) of max(0, -gain). Higher is better; an invalid submission scores -1. theoretical_best is the score of a model with zero test loss on every topic and no general-domain regression (gain_t equal to the reference loss).

Normalized score. The baseline below corresponds to 0 points and the theoretical best to 100. The theoretical best is not always achievable in practice. A valid submission that performs below baseline receives a negative score, bounded at −100. An invalid submission receives 0. Score formula

SetupValue
Research areaPre-training
DirectionHigher is better
Baseline, hidden-test mean0.5137
Baseline, hidden-test std0.002002
Theoretical best3.685
Time budget4 h
Compute1 × H100
GPU-hours4

Results

The two highest mean scores were 11.2 (GPT-6.2 Astra) and 9.4 (GPT-6 Astra). Across all 13 models, the mean was 6.0 points. Of those, 13 averaged above baseline.

Mean hidden-test score by model

  • Claude Code
  • Codex
  • Antigravity SDK
  • Muse Code
  • Grok Build
  • Terminus 2
Mean hidden-test score by modelBar chart with 13 bars; every value is in the data table.0.02.55.07.510.012.5Normalized scoreGPT-6.2 Astra11.2GPT-6 Astra9.4Claude Fable 5.29.1Claude Sonnet 5.58.3Claude Opus 5.58.2GPT-6.1 Sol7.9Gemini 4 Carbon6.5Muse Wonder5.5Qwen3.8-Max3.8Grok 4.73.5DeepSeek V4.1 Flash2.4GLM-5.31.9Kimi K30.6
Each bar averages the model’s scored attempts on this task. Zero marks the starting baseline. Scoring rules.
View data
Mean hidden-test score by model: data
LabelSeriesMean score
GPT-6.2 AstraCodex11.2
GPT-6 AstraCodex9.4
Claude Fable 5.2Claude Code9.1
Claude Sonnet 5.5Claude Code8.3
Claude Opus 5.5Claude Code8.2
GPT-6.1 SolCodex7.9
Gemini 4 CarbonAntigravity SDK6.5
Muse WonderMuse Code5.5
Qwen3.8-MaxTerminus 23.8
Grok 4.7Grok Build3.5
DeepSeek V4.1 FlashTerminus 22.4
GLM-5.3Terminus 21.9
Kimi K3Terminus 20.6

Download CSV · 13 rows

Scores are in normalized points.
#ModelMean of 3Best of 3AttemptsOutcomes
1GPT-6.2 Astra11.211.533 valid
2GPT-6 Astra9.410.533 valid
3Claude Fable 5.29.19.433 valid
4Claude Sonnet 5.58.38.833 valid
5Claude Opus 5.58.29.333 valid
6GPT-6.1 Sol7.99.233 valid
7Gemini 4 Carbon6.58.832 valid, 1 out of time
8Muse Wonder5.56.833 valid
9Qwen3.8-Max3.85.133 valid
10Grok 4.73.55.633 valid
11DeepSeek V4.1 Flash2.43.433 valid
12GLM-5.31.92.533 valid
13Kimi K30.61.733 valid

Statistics

StatisticValue
IRT difficulty−2.14
IRT discrimination1.37
IRT pass bar (normalized score)0.1
Attempts above the pass bar97.4%
Median share of time budget used86%
Median output tokens per attempt181k
Median validation runs per attempt1

IRT: two-parameter model of pass or fail against the pass bar (statistics).

Time and tokens over all tasks: results. Medians are over this task's 39 scored attempts.

The trajectory of 1 of 39 attempts (Gemini 4 Carbon, out of time) was not recorded: the output-token and validation-run medians cover 38 attempts.

Validation and hidden test

Validation measureValue
Attempts with a recorded validation score23
Attempts scoring at least 99 on validation0

Validation and hidden-test results across tasks