Measure training-window flatness for abstracts-pilot-s00-trace-r01-fp64
Browse filesFiles changed (27)
- README.md+67-1
- logs/all-model-flatness-release.logAdded+1
- logs/all-model-flatness-render.logAdded+1
- logs/checkpoint-flatness-20261125T163331Z-stderr.log+64
- logs/checkpoint-flatness-20261125T163331Z.log+2
- publication.json+97-77
- research/README.md+67-1
- research/docs/explorer.js+2
- research/docs/hub/archive.md+67-1
- research/docs/index.html+2
- research/docs/runbook.md+1-1
- research/docs/study.json
- research/reports/flatness.md+75-8
- research/reports/paper.pdf
- research/reports/planned-runs.md+2
- research/reports/progress.md+1-1
- research/results/abstracts-pilot-s00-trace-r01-fp64/flatness.jsonAdded+250
- research/src/thirdloss/checkpoint_flatness.py+115-58
- research/src/thirdloss/cli.py+3-2
- research/src/thirdloss/flatness_stats.py+14
- research/src/thirdloss/flatness_tables.py+79-8
- research/src/thirdloss/readme_comparisons.py+12-2
- research/src/thirdloss/report_paper.py+12
- research/src/thirdloss/report_records.py+11-1
- research/src/thirdloss/score_flatness.pyAdded+48
- research/src/thirdloss/width.py+2-11
- research/tests/test_flatness.py+42
79 unmodified lines80818283848546 unmodified lines13213313413513613713879 unmodified lines| Cross-seed replay | 22 | 15.403 | 13.218 | One seed | 12.987–13.496 | 0/32 || Always-on hybrid | 21, 22, 23 | 15.256 | 13.229 | 13.060–13.334 | 13.085–13.390 | 0/96 |**TinyStories pretraining · development pilots · seeds 0 · 2,097,152 training targets**| Flatness statistic | AdamW | Hessian trace | Third order |46 unmodified lines**Pythia-410M adapters** · Secondary pilot comparisons are pending.**Untrained references · zero training targets**| Stage | Initial NLL<br>↓ Lower is better | Unigram NLL<br>↓ Lower is better | Initial accuracy<br>↑ Higher is better | Unigram accuracy<br>↑ Higher is better || --- | --- | --- | --- | --- |79 unmodified lines808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015146 unmodified lines19819920020120220320479 unmodified lines| Cross-seed replay | 22 | 15.403 | 13.218 | One seed | 12.987–13.496 | 0/32 || Always-on hybrid | 21, 22, 23 | 15.256 | 13.229 | 13.060–13.334 | 13.085–13.390 | 0/96 |#### All variants and baselinesEach row uses the same fixed training windows and probe directions within its stage. Parentheses give measured / planned seeds for that cell. Targets count next-token examples used for optimizer updates in this study. The unigram uses counts from the full training split, and initial Pythia retains its pretrained backbone. Compare rows with matching targets and seeds. Larger **weight width** means greater tolerance to moving the model’s trainable parameters. Larger **common score width** means that all token scores can tolerate a larger shared bias before NLL rises by 0.1 nats, measured in RMS logit units. The unigram has zero trainable model weights and shares the score test with every neural predictor. Both widths have an unknown relationship to better held-out prediction. [All-model measurement design](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/amendments/all-model-flatness.md)**TinyStories · all model weights**| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Initial checkpoint | 0 | 0 | Pending | Pending | Pending || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | Pending || Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending || Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending || Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending || Squared Hessian norm (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending || Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending || Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Hessian trace · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Third derivative · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Shared trace checkpoint | 8,388,608 | 21–28 | 15.143 (3/8) | Pending | Pending || Curvature-dependent hybrid · hybrid study | 16,777,216 | 21–28 | 13.157 (3/8) | Pending | Pending || Fixed late hybrid · hybrid study | 16,777,216 | 21–28 | 13.215 (3/8) | Pending | Pending || Hessian trace · hybrid study | 16,777,216 | 21–28 | 13.154 (3/8) | Pending | Pending || Stronger trace · hybrid study | 16,777,216 | 21–28 | 13.175 (3/8) | Pending | Pending || Cross-seed replay · hybrid study | 16,777,216 | 21–28 | 13.218 (1/8) | Pending | Pending || Always-on hybrid · hybrid study | 16,777,216 | 21–28 | 13.229 (3/8) | Pending | Pending |<details><summary>TinyStories · all model weights · other pilot strengths and precision diagnostics</summary>| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Hessian trace (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Hessian trace (10%) | 2,097,152 | 0 | Pending | Pending | Pending || Third derivative (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Third derivative (10%) | 2,097,152 | 0 | Pending | Pending | Pending |</details>**Pythia-410M · adapter weights**| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Initial checkpoint | 0 | 0 | Pending | Pending | Pending || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | Pending || Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending || Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending || Third derivative (1%) | 65,536 | 0 | Pending | Pending | Pending || Squared Hessian norm (3%) | 65,536 | 0 | Pending | Pending | Pending || Randomized gradient signs (1%) | 65,536 | 0 | Pending | Pending | Pending || Trace + third derivative (1%) | 65,536 | 0 | Pending | Pending | Pending || Ordinary AdamW · confirmation | 524,288 | 1–8 | Pending | Pending | Pending || Hessian trace · confirmation | 524,288 | 1–8 | Pending | Pending | Pending || Third derivative · confirmation | 524,288 | 1–8 | Pending | Pending | Pending |<details><summary>Pythia-410M · adapter weights · other pilot strengths and precision diagnostics</summary>| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Hessian trace (3%) | 65,536 | 0 | Pending | Pending | Pending || Hessian trace (10%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (3%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (10%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (3%) · excluded precision diagnostic | 65,536 | 0 | Pending | Pending | Pending |</details>**TinyStories pretraining · development pilots · seeds 0 · 2,097,152 training targets**| Flatness statistic | AdamW | Hessian trace | Third order |46 unmodified lines**Pythia-410M adapters** · Secondary pilot comparisons are pending.**Zero-update references** · The unigram uses training-split frequencies. Initial Pythia uses its pretrained weights.| Stage | Initial NLL<br>↓ Lower is better | Unigram NLL<br>↓ Lower is better | Initial accuracy<br>↑ Higher is better | Unigram accuracy<br>↑ Higher is better || --- | --- | --- | --- | --- |
1findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.1findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.184 unmodified lines185186187184 unmodified lines: 100%|##########| 662kB / 662kBLoading weights: 0%| | 0/292 [00:00<?, ?it/s] Loading weights: 5%|4 | 14/292 [00:00<00:02, 118.50it/s] Loading weights: 9%|8 | 26/292 [00:00<00:05, 48.25it/s] Loading weights: 11%|#1 | 33/292 [00:00<00:07, 36.10it/s] Loading weights: 13%|#3 | 38/292 [00:01<00:09, 26.95it/s] Loading weights: 14%|#4 | 42/292 [00:01<00:08, 27.78it/s] Loading weights: 18%|#7 | 52/292 [00:01<00:06, 38.13it/s] Loading weights: 20%|#9 | 57/292 [00:01<00:07, 30.83it/s] Loading weights: 21%|## | 61/292 [00:01<00:07, 30.87it/s] Loading weights: 24%|##3 | 69/292 [00:02<00:07, 31.54it/s] Loading weights: 26%|##6 | 76/292 [00:02<00:05, 36.64it/s] Loading weights: 28%|##7 | 81/292 [00:02<00:06, 32.39it/s] Loading weights: 30%|### | 88/292 [00:02<00:05, 35.56it/s] Loading weights: 32%|###1 | 92/292 [00:02<00:05, 35.28it/s] Loading weights: 33%|###2 | 96/292 [00:02<00:05, 34.09it/s] Loading weights: 36%|###5 | 104/292 [00:03<00:05, 32.17it/s] Loading weights: 38%|###8 | 111/292 [00:03<00:05, 36.13it/s] Loading weights: 40%|###9 | 116/292 [00:03<00:05, 31.38it/s] Loading weights: 42%|####2 | 124/292 [00:03<00:04, 39.80it/s] Loading weights: 44%|####4 | 129/292 [00:03<00:05, 32.54it/s] Loading weights: 46%|####6 | 135/292 [00:03<00:04, 32.52it/s] Loading weights: 48%|####7 | 139/292 [00:04<00:04, 32.87it/s] Loading weights: 49%|####8 | 143/292 [00:04<00:04, 33.82it/s] Loading weights: 51%|#####1 | 150/292 [00:04<00:03, 40.18it/s] Loading weights: 53%|#####3 | 155/292 [00:04<00:04, 27.53it/s] Loading weights: 55%|#####5 | 162/292 [00:04<00:04, 30.33it/s] Loading weights: 57%|#####6 | 166/292 [00:04<00:04, 30.78it/s] Loading weights: 60%|#####9 | 174/292 [00:05<00:03, 35.42it/s] Loading weights: 61%|###### | 178/292 [00:05<00:03, 33.95it/s] Loading weights: 63%|######2 | 183/292 [00:05<00:02, 36.38it/s] Loading weights: 64%|######4 | 188/292 [00:05<00:03, 31.51it/s] Loading weights: 67%|######7 | 197/292 [00:05<00:02, 42.01it/s] Loading weights: 69%|######9 | 202/292 [00:05<00:02, 37.91it/s] Loading weights: 71%|####### | 207/292 [00:05<00:02, 37.67it/s] Loading weights: 73%|#######2 | 212/292 [00:06<00:02, 28.53it/s] Loading weights: 74%|#######3 | 216/292 [00:06<00:02, 29.91it/s] Loading weights: 77%|#######7 | 225/292 [00:06<00:01, 42.03it/s] Loading weights: 79%|#######9 | 231/292 [00:06<00:01, 35.40it/s] Loading weights: 81%|######## | 236/292 [00:06<00:02, 27.93it/s] Loading weights: 83%|########2 | 241/292 [00:07<00:01, 27.76it/s] Loading weights: 84%|########3 | 245/292 [00:07<00:01, 29.52it/s] Loading weights: 86%|########6 | 252/292 [00:07<00:01, 23.84it/s] Loading weights: 91%|#########1| 266/292 [00:07<00:00, 41.45it/s] Loading weights: 93%|#########3| 273/292 [00:08<00:00, 36.49it/s] Loading weights: 96%|#########5| 279/292 [00:08<00:00, 37.04it/s] Loading weights: 97%|#########7| 284/292 [00:08<00:00, 37.23it/s] Loading weights: 99%|#########8| 289/292 [00:08<00:00, 36.66it/s] Loading weights: 100%|##########| 292/292 [00:08<00:00, 34.52it/s]findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.184 unmodified lines185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251184 unmodified lines: 100%|##########| 662kB / 662kBLoading weights: 0%| | 0/292 [00:00<?, ?it/s] Loading weights: 5%|4 | 14/292 [00:00<00:02, 118.50it/s] Loading weights: 9%|8 | 26/292 [00:00<00:05, 48.25it/s] Loading weights: 11%|#1 | 33/292 [00:00<00:07, 36.10it/s] Loading weights: 13%|#3 | 38/292 [00:01<00:09, 26.95it/s] Loading weights: 14%|#4 | 42/292 [00:01<00:08, 27.78it/s] Loading weights: 18%|#7 | 52/292 [00:01<00:06, 38.13it/s] Loading weights: 20%|#9 | 57/292 [00:01<00:07, 30.83it/s] Loading weights: 21%|## | 61/292 [00:01<00:07, 30.87it/s] Loading weights: 24%|##3 | 69/292 [00:02<00:07, 31.54it/s] Loading weights: 26%|##6 | 76/292 [00:02<00:05, 36.64it/s] Loading weights: 28%|##7 | 81/292 [00:02<00:06, 32.39it/s] Loading weights: 30%|### | 88/292 [00:02<00:05, 35.56it/s] Loading weights: 32%|###1 | 92/292 [00:02<00:05, 35.28it/s] Loading weights: 33%|###2 | 96/292 [00:02<00:05, 34.09it/s] Loading weights: 36%|###5 | 104/292 [00:03<00:05, 32.17it/s] Loading weights: 38%|###8 | 111/292 [00:03<00:05, 36.13it/s] Loading weights: 40%|###9 | 116/292 [00:03<00:05, 31.38it/s] Loading weights: 42%|####2 | 124/292 [00:03<00:04, 39.80it/s] Loading weights: 44%|####4 | 129/292 [00:03<00:05, 32.54it/s] Loading weights: 46%|####6 | 135/292 [00:03<00:04, 32.52it/s] Loading weights: 48%|####7 | 139/292 [00:04<00:04, 32.87it/s] Loading weights: 49%|####8 | 143/292 [00:04<00:04, 33.82it/s] Loading weights: 51%|#####1 | 150/292 [00:04<00:03, 40.18it/s] Loading weights: 53%|#####3 | 155/292 [00:04<00:04, 27.53it/s] Loading weights: 55%|#####5 | 162/292 [00:04<00:04, 30.33it/s] Loading weights: 57%|#####6 | 166/292 [00:04<00:04, 30.78it/s] Loading weights: 60%|#####9 | 174/292 [00:05<00:03, 35.42it/s] Loading weights: 61%|###### | 178/292 [00:05<00:03, 33.95it/s] Loading weights: 63%|######2 | 183/292 [00:05<00:02, 36.38it/s] Loading weights: 64%|######4 | 188/292 [00:05<00:03, 31.51it/s] Loading weights: 67%|######7 | 197/292 [00:05<00:02, 42.01it/s] Loading weights: 69%|######9 | 202/292 [00:05<00:02, 37.91it/s] Loading weights: 71%|####### | 207/292 [00:05<00:02, 37.67it/s] Loading weights: 73%|#######2 | 212/292 [00:06<00:02, 28.53it/s] Loading weights: 74%|#######3 | 216/292 [00:06<00:02, 29.91it/s] Loading weights: 77%|#######7 | 225/292 [00:06<00:01, 42.03it/s] Loading weights: 79%|#######9 | 231/292 [00:06<00:01, 35.40it/s] Loading weights: 81%|######## | 236/292 [00:06<00:02, 27.93it/s] Loading weights: 83%|########2 | 241/292 [00:07<00:01, 27.76it/s] Loading weights: 84%|########3 | 245/292 [00:07<00:01, 29.52it/s] Loading weights: 86%|########6 | 252/292 [00:07<00:01, 23.84it/s] Loading weights: 91%|#########1| 266/292 [00:07<00:00, 41.45it/s] Loading weights: 93%|#########3| 273/292 [00:08<00:00, 36.49it/s] Loading weights: 96%|#########5| 279/292 [00:08<00:00, 37.04it/s] Loading weights: 97%|#########7| 284/292 [00:08<00:00, 37.23it/s] Loading weights: 99%|#########8| 289/292 [00:08<00:00, 36.66it/s] Loading weights: 100%|##########| 292/292 [00:08<00:00, 34.52it/s]findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.Processing Files (0 / 0) : | | 0.00B / 0.00BNew Data Upload : | | 0.00B / 0.00B [A: 95%|#########4| 627kB / 662kB [A[A: 95%|#########4| 627kB / 662kB [A[A Processing Files (0 / 1) : 95%|#########4| 627kB / 662kB, ???B/s: 95%|#########4| 627kB / 662kB [A[A: 95%|#########4| 627kB / 662kB [A[A: 95%|#########4| 627kB / 662kB [A[A: 95%|#########4| 627kB / 662kB [A[A: 95%|#########4| 627kB / 662kB [A[A: 95%|#########4| 627kB / 662kB [A[A: 95%|#########4| 627kB / 662kB [A[A: 100%|##########| 662kB / 662kB [A[A Processing Files (1 / 1) : 100%|##########| 662kB / 662kB, 60.9kB/sNew Data Upload : 100%|##########| 34.8kB / 34.8kB, 3.39kB/s [A: 100%|##########| 662kB / 662kB [A[A: 100%|##########| 662kB / 662kB [A[A: 100%|##########| 662kB / 662kB [A[A: 100%|##########| 662kB / 662kB [A[A: 100%|##########| 662kB / 662kB [A[AValidating : | 0% [A[A[AValidating : | 0% [A[A[A: 100%|##########| 662kB / 662kB [A[AValidating : | 0% [A[A[A: 100%|##########| 662kB / 662kB [A[AValidating : ##########| 100% [A[A[A: 100%|##########| 662kB / 662kB [A[AValidating : ##########| 100% [A[A[A: 100%|##########| 662kB / 662kB [A[AValidating : ##########| 100% [A[A[A Processing Files (1 / 1) : 100%|##########| 662kB / 662kB, 56.0kB/sNew Data Upload : 100%|##########| 34.8kB / 34.8kB, 3.12kB/sValidating : ##########| 100%: 100%|##########| 662kB / 662kBLoading weights: 0%| | 0/292 [00:00<?, ?it/s] Loading weights: 1%| | 2/292 [00:00<00:27, 10.38it/s] Loading weights: 1%|1 | 4/292 [00:00<00:22, 12.75it/s] Loading weights: 5%|5 | 15/292 [00:00<00:07, 35.41it/s] Loading weights: 7%|6 | 20/292 [00:00<00:10, 25.79it/s] Loading weights: 8%|8 | 24/292 [00:01<00:12, 21.54it/s] Loading weights: 9%|9 | 27/292 [00:01<00:14, 18.89it/s] Loading weights: 11%|# | 32/292 [00:01<00:13, 19.65it/s] Loading weights: 12%|#2 | 36/292 [00:02<00:18, 13.78it/s] Loading weights: 14%|#4 | 42/292 [00:02<00:14, 17.55it/s] Loading weights: 17%|#7 | 51/292 [00:02<00:08, 26.84it/s] Loading weights: 19%|#8 | 55/292 [00:02<00:09, 25.75it/s] Loading weights: 20%|## | 59/292 [00:02<00:10, 22.98it/s] Loading weights: 21%|##1 | 62/292 [00:02<00:10, 22.10it/s] Loading weights: 23%|##3 | 68/292 [00:03<00:09, 24.65it/s] Loading weights: 24%|##4 | 71/292 [00:03<00:09, 24.35it/s] Loading weights: 26%|##5 | 75/292 [00:03<00:09, 21.80it/s] Loading weights: 27%|##7 | 79/292 [00:03<00:09, 22.79it/s] Loading weights: 28%|##8 | 82/292 [00:03<00:10, 20.35it/s] Loading weights: 32%|###1 | 92/292 [00:04<00:08, 24.91it/s] Loading weights: 34%|###3 | 99/292 [00:04<00:06, 29.78it/s] Loading weights: 35%|###5 | 103/292 [00:04<00:06, 30.93it/s] Loading weights: 37%|###6 | 107/292 [00:04<00:06, 27.14it/s] Loading weights: 38%|###7 | 110/292 [00:04<00:08, 20.35it/s] Loading weights: 39%|###8 | 113/292 [00:05<00:09, 19.76it/s] Loading weights: 40%|###9 | 116/292 [00:05<00:08, 20.57it/s] Loading weights: 41%|####1 | 120/292 [00:05<00:08, 21.34it/s] Loading weights: 44%|####3 | 128/292 [00:05<00:05, 29.95it/s] Loading weights: 46%|####5 | 134/292 [00:05<00:05, 29.88it/s] Loading weights: 48%|####8 | 141/292 [00:05<00:04, 30.55it/s] Loading weights: 50%|##### | 147/292 [00:06<00:04, 35.45it/s] Loading weights: 52%|#####1 | 151/292 [00:06<00:04, 28.41it/s] Loading weights: 53%|#####3 | 155/292 [00:06<00:05, 25.41it/s] Loading weights: 54%|#####4 | 159/292 [00:06<00:06, 20.64it/s] Loading weights: 55%|#####5 | 162/292 [00:06<00:06, 19.44it/s] Loading weights: 60%|#####9 | 175/292 [00:07<00:03, 32.38it/s] Loading weights: 61%|######1 | 179/292 [00:07<00:03, 32.03it/s] Loading weights: 63%|######2 | 183/292 [00:07<00:03, 33.28it/s] Loading weights: 64%|######4 | 187/292 [00:07<00:03, 27.36it/s] Loading weights: 65%|######5 | 190/292 [00:07<00:03, 27.15it/s] Loading weights: 67%|######6 | 195/292 [00:07<00:03, 30.49it/s] Loading weights: 68%|######8 | 199/292 [00:08<00:03, 28.74it/s] Loading weights: 70%|######9 | 203/292 [00:08<00:03, 26.31it/s] Loading weights: 71%|####### | 206/292 [00:08<00:03, 26.02it/s] Loading weights: 72%|#######1 | 209/292 [00:08<00:03, 25.09it/s] Loading weights: 75%|#######4 | 218/292 [00:08<00:02, 28.88it/s] Loading weights: 77%|#######6 | 224/292 [00:08<00:02, 28.54it/s] Loading weights: 79%|#######8 | 230/292 [00:09<00:02, 25.38it/s] Loading weights: 80%|#######9 | 233/292 [00:09<00:02, 22.91it/s] Loading weights: 84%|########3 | 244/292 [00:09<00:01, 35.66it/s] Loading weights: 85%|########5 | 249/292 [00:09<00:01, 27.51it/s] Loading weights: 87%|########7 | 255/292 [00:10<00:01, 29.92it/s] Loading weights: 89%|########8 | 259/292 [00:10<00:01, 31.28it/s] Loading weights: 90%|######### | 263/292 [00:10<00:01, 24.26it/s] Loading weights: 91%|#########1| 266/292 [00:10<00:01, 24.71it/s] Loading weights: 93%|#########2| 271/292 [00:10<00:00, 23.38it/s] Loading weights: 95%|#########4| 276/292 [00:10<00:00, 28.11it/s] Loading weights: 96%|#########5| 280/292 [00:11<00:00, 26.61it/s] Loading weights: 97%|#########7| 284/292 [00:11<00:00, 20.08it/s] Loading weights: 100%|##########| 292/292 [00:11<00:00, 25.62it/s]findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
7 unmodified lines89107 unmodified lines2026-11-25T16:40:55+00:00 stories-pilot-s00-third-r01 width=15.64013671875 RMS curvature=0.4473942026-11-25T16:41:21+00:00 Measuring checkpoint flatness for abstracts-pilot-s00-ce-r002026-11-25T16:44:05+00:00 abstracts-pilot-s00-ce-r00 width=19.7841796875 RMS curvature=1.286847 unmodified lines891011127 unmodified lines2026-11-25T16:40:55+00:00 stories-pilot-s00-third-r01 width=15.64013671875 RMS curvature=0.4473942026-11-25T16:41:21+00:00 Measuring checkpoint flatness for abstracts-pilot-s00-ce-r002026-11-25T16:44:05+00:00 abstracts-pilot-s00-ce-r00 width=19.7841796875 RMS curvature=1.286842026-11-25T16:44:34+00:00 Measuring checkpoint flatness for abstracts-pilot-s00-trace-r01-fp642026-11-25T16:49:22+00:00 abstracts-pilot-s00-trace-r01-fp64 width=19.7509765625 RMS curvature=1.18181
12345654 unmodified lines61626364656667686916 unmodified lines86878889909192939495969798991001011021316 unmodified lines14191420142114221423142414251426142765 unmodified lines1493149414951496149714985 unmodified lines15041505150615071508150915101511151215131514151515161517471 unmodified lines1989199019911992199319941995199619976 unmodified lines20042005200620072008200920102011201231 unmodified lines2044204520462047204820492050205120526 unmodified lines2059206020612062206320642065206620672068206920702071207220732074207520762077451 unmodified lines25292530253125322533253425352536253711 unmodified lines2549255025512552255325542555255625571 unmodified line2559256025612562256325642565256625671 unmodified line25692570257125722573257425752576221 unmodified lines2798279928002801280228031300 unmodified lines410441054106410741084109411041114112411341144115411641176 unmodified lines4124412541264127412841294130413141324133413441354136413751 unmodified lines41894190419141924193419441954196419711 unmodified lines4209421042114212421342144215421642174218421942204221422242234224422542264227422810 unmodified lines42394240424142424243424442454246424716 unmodified lines42644265426642674268426942704271427275 unmodified lines43484349435043514352{"collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378","git_revision": "57c80c5b04695c1c670338b51d9b4c2319cc0b68","repositories": {"BurnyCoder/thirdloss-arxiv-abstracts-2024": {"files": {54 unmodified lines"size": 7098},"explorer.js": {"git_blob": "22799876fd3a245b596d1e5e7ee075892f1f109c","sha256": "7af9e6ebba73a742362aa1a290578367be2d3a365a8e956b05fc6cc0cf7740c1","size": 18510},"figures/architecture.png": {"git_blob": "2c41c712a9edfcc9f53e1ac8f76e751e54dc8924",16 unmodified lines"size": 156490},"index.html": {"git_blob": "6748c79821b0904714ac1971b101ab5928a597fc","sha256": "bc5010988105dd566c5c8450a9f5264c6695be221ff7a040079cf0d69064da23","size": 9629},"study.json": {"git_blob": "10e4fa3c2524673c3922b6bc051afd3270d4ff41","sha256": "9939629a88eb848fc4e131cd4d53854f3b137d956a2c99a51d50425ca353c1ec","size": 2499883}},"revision": "8437465e5e8f7b01ab7b5d0bc7433263ef98b142","type": "space"},"BurnyCoder/thirdloss-pythia-410m-adapters": {1316 unmodified lines"BurnyCoder/thirdloss-study": {"files": {"README.md": {"git_blob": "2a275bec5c200d2dfd02fdd076905b1790fb8b18","sha256": "0caa09009c7d634a41413e11adefdd5a8b87dcd6d17e03247a9773a0285f6708","size": 17525},"logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": {"git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",65 unmodified lines"sha256": "eef9ca7966fccfc27b3454cccd0107f2009ff422c2af5a4c54a694395d1e0bac","size": 1155},"logs/backfill-first-adapter.log": {"git_blob": "1a3a93a4c8f183b4dd24d429880022f4e6410290","sha256": "2088274297f663dab5fa0b48e33456396ee7946758ba91f8bd96cb1718ac3198",5 unmodified lines"size": 164140},"logs/checkpoint-flatness-20261125T163331Z-stderr.log": {"git_blob": "a8f28e6bf5f02395b1f5e8cf0c4ef87fc1be9bfb","sha256": "19c63faf741ca479d697d660e0f0fd2a03e520bc1e7124ccc48c13a941d78064","size": 11835},"logs/checkpoint-flatness-20261125T163331Z.log": {"git_blob": "4a680bd8e9b0d6d7350fece547a455e9bde2cda6","sha256": "510b33937ff83f55779f50d71e28236d8efe710255dc094cfd8442bd28d843d4","size": 889},"logs/dashboard-20261125T151603Z-errors.log": {"git_blob": "05368bd6bcb80dae3bb7fee1ce931ef41f1811fe",471 unmodified lines"size": 786},"research/README.md": {"git_blob": "afd5dcd5aeb8d48c43715d44a118996039017ad3","sha256": "14831b1b1c3ad2e655ebc052f096107d7416225dc3d9dbb8618cdfc758c816ab","size": 31131},"research/docs/data.md": {"git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",6 unmodified lines"size": 7098},"research/docs/explorer.js": {"git_blob": "22799876fd3a245b596d1e5e7ee075892f1f109c","sha256": "7af9e6ebba73a742362aa1a290578367be2d3a365a8e956b05fc6cc0cf7740c1","size": 18510},"research/docs/figures/architecture.png": {"git_blob": "2c41c712a9edfcc9f53e1ac8f76e751e54dc8924",31 unmodified lines"size": 1583},"research/docs/hub/archive.md": {"git_blob": "2a275bec5c200d2dfd02fdd076905b1790fb8b18","sha256": "0caa09009c7d634a41413e11adefdd5a8b87dcd6d17e03247a9773a0285f6708","size": 17525},"research/docs/hub/space.md": {"git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",6 unmodified lines"size": 1435},"research/docs/index.html": {"git_blob": "2dc4e5af5f48ff4f1df423136f875f2e6f43edeb","sha256": "cace84c8c8c8fcceb321db703d17e23729ac5d0e8d5075bd1c0c38f38a5b506c","size": 9925},"research/docs/runbook.md": {"git_blob": "ea48f635e9f0453e7ec601c56ca2f14ec7150d4e","sha256": "edf84a54a921d611af0e262d338457c4b82f29eabf1a3b0e05d41f31e72ef4c8","size": 9147},"research/docs/study.json": {"git_blob": "10e4fa3c2524673c3922b6bc051afd3270d4ff41","sha256": "9939629a88eb848fc4e131cd4d53854f3b137d956a2c99a51d50425ca353c1ec","size": 2499883},"research/docs/third-derivative-penalty.md": {"git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",451 unmodified lines"size": 236},"research/reports/flatness.md": {"git_blob": "e4cbeeab7feec16802158305367d48fad20d3ab9","sha256": "417ef45aaff4ba6457768338baa5bc8f083fdf37bd6fd7f3ceaa6de37fd923a5","size": 2298},"research/reports/hybrid/preregistration.md": {"git_blob": "0729e47d30933f401253bf21feac164c0217f7b4",11 unmodified lines"size": 7290},"research/reports/paper.pdf": {"git_blob": "246f5152a98637ca1ef5dddb95839bd509666aa9","sha256": "eeb9efd9d4d539ba00abb4df93f075f1fbdbb92cc3637d0ac0b55fbd148e9005","size": 661739},"research/reports/plan.md": {"git_blob": "d15ec7b2f2324e3aedb389d2fd95208a31978596",1 unmodified line"size": 8376},"research/reports/planned-runs.md": {"git_blob": "0384622ea612424eb7ff96cf1221542561310aa2","sha256": "3beee743e90034cf859ae089548738826571c5d401142302a50018f134a8bef9","size": 2942},"research/reports/preregistration.md": {"git_blob": "3411a501f8cb3f3be0d31b70ee410094dae5dd95",1 unmodified line"size": 5234},"research/reports/progress.md": {"git_blob": "6f3d8ebce072e9cd1cd723d838c5f2b55f1f8642","sha256": "a4edb498c8024715ab144ef315ae6b64a472dcd02eb48e4f96b737e0939619b2","size": 2289},"research/reports/reviews/adapter-verification.md": {221 unmodified lines"sha256": "ffdb6a19f4a109ea003c98e7b5acb598e8012765e043e06996e03019d911ca79","size": 9277},"research/results/abstracts-pilot-s00-trace-r01-fp64/samples.jsonl": {"git_blob": "95c97dc58c2266db68a67647645e41245266a7b4","sha256": "d2a99c73d4392f3b5ef547a36975c53afea90da977ad5983d18b82cb5e21376f",1300 unmodified lines"size": 9767},"research/src/thirdloss/checkpoint_flatness.py": {"git_blob": "e983ebbf16c8059a2f793572432db6dfcea3d8bf","sha256": "6309ce5832b4d6818cf629c8d4d3a6ba53efb8a3dc30bf96d792caa12d35007e","size": 6022},"research/src/thirdloss/cli.py": {"git_blob": "30fb1cc27083490d54849fc0fe11a20d5479ac58","sha256": "1f2780c809df053fafc628a8008d7a0101965ca406973be59811ec61c2551360","size": 7853},"research/src/thirdloss/data.py": {"git_blob": "9b06438a0bce64f8d491cd65156ebe8aa04e8916",6 unmodified lines"size": 4522},"research/src/thirdloss/flatness_stats.py": {"git_blob": "0069e0f952944d0f654ff50452806bd4cea46666","sha256": "496cd383749c625c1dd144140fbd5a2c8f9b6434abdad0eaa807e70bdfbb4d1e","size": 1671},"research/src/thirdloss/flatness_tables.py": {"git_blob": "964b675f55d3b927ecd8a580bc594546923cb8df","sha256": "c3f12cc36a351a1b2351ef6aed425117ba8d68cd0b05716b8e9fef898168a2b8","size": 5803},"research/src/thirdloss/hub_archive.py": {"git_blob": "9a24c6c6f0f3f6e06fa43c775b47a5a03c1d12f6",51 unmodified lines"size": 11879},"research/src/thirdloss/readme_comparisons.py": {"git_blob": "f13ff404573a6db0fd24619f76930caf755513e6","sha256": "65f970adc80408894c4de0e2fac89979ea7ef53b891eb82cf9d8ea63a1de11d1","size": 22476},"research/src/thirdloss/records.py": {"git_blob": "a800de00d42944f13a89d8d2f91ce9b2103bbd45",11 unmodified lines"size": 10129},"research/src/thirdloss/report_paper.py": {"git_blob": "989db9b040c8371cdd45bcee42c2e6528ef68207","sha256": "35e3ad2250698abc58da11aa7baec070e25873d1caebd27365693762a703646c","size": 35302},"research/src/thirdloss/report_records.py": {"git_blob": "ff096fcc23b557db64119ba2f0bbe74cfe1c22f8","sha256": "049780f002bef0c8ebc92d6eccc545476d23d94c08365ea4447644b0ff0669bd","size": 15122},"research/src/thirdloss/reporting.py": {"git_blob": "206d59a27fae7713677392a8e9d32769a7437239","sha256": "68ff0fca6554c91c0a77318e2ada25ea821a725f4b683775a89bf787101586bc","size": 21553},"research/src/thirdloss/study.py": {"git_blob": "d3ef0cf8d4b40e1ce0f6996eedb8ee24415a86ab","sha256": "d5b1782a1a2ece89c5c0f11256a235dd3d004c2b536b4a4c2366111e6e981e19",10 unmodified lines"size": 4135},"research/src/thirdloss/width.py": {"git_blob": "271ad17ba188a064e6ae5a98fa54281b72c55e8e","sha256": "aabe0f894cb7d90650e6ede6e34bb684ca0a1442bec2b630d2ea13aeca821501","size": 3357},"research/src/thirdloss/windows.py": {"git_blob": "2000a312e8326b97f88acead4b5c53e6d26eeab2",16 unmodified lines"size": 16607},"research/tests/test_flatness.py": {"git_blob": "c045f1d7aca3ee9e610d70a7aa4acf8e25f5c736","sha256": "8f4899df24688ee0da65f44d80ee02c55681dcdb13880ae28da04732a327781d","size": 2947},"research/tests/test_hub_archive.py": {"git_blob": "4c8dc24e6eb5f0aa7fc5e63be56ba0efa3ad4ec4",75 unmodified lines"type": "dataset"}},"verified_at": "2026-11-25T16:44:27+00:00"}12345654 unmodified lines61626364656667686916 unmodified lines86878889909192939495969798991001011021316 unmodified lines14191420142114221423142414251426142765 unmodified lines14931494149514961497149814991500150115021503150415051506150715085 unmodified lines15141515151615171518151915201521152215231524152515261527471 unmodified lines1999200020012002200320042005200620076 unmodified lines20142015201620172018201920202021202231 unmodified lines2054205520562057205820592060206120626 unmodified lines2069207020712072207320742075207620772078207920802081208220832084208520862087451 unmodified lines25392540254125422543254425452546254711 unmodified lines2559256025612562256325642565256625671 unmodified line2569257025712572257325742575257625771 unmodified line25792580258125822583258425852586221 unmodified lines280828092810281128122813281428152816281728181300 unmodified lines411941204121412241234124412541264127412841294130413141326 unmodified lines4139414041414142414341444145414641474148414941504151415251 unmodified lines42044205420642074208420942104211421211 unmodified lines422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424810 unmodified lines42594260426142624263426442654266426716 unmodified lines42844285428642874288428942904291429275 unmodified lines43684369437043714372{"collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378","git_revision": "f8c7ce90aed29b77911641f73716a41abaf877aa","repositories": {"BurnyCoder/thirdloss-arxiv-abstracts-2024": {"files": {54 unmodified lines"size": 7098},"explorer.js": {"git_blob": "cc8286c0876674074eefd770ddbb6f07a45c28a9","sha256": "a739ef1a7f33be360742878eb7ab666071e1ece2a1e8ccdd37e3041fe9d7d81d","size": 18706},"figures/architecture.png": {"git_blob": "2c41c712a9edfcc9f53e1ac8f76e751e54dc8924",16 unmodified lines"size": 156490},"index.html": {"git_blob": "8554a72cc5f8e4a5d659c47d9c324e69289080ae","sha256": "c73d7163008db3270b8d22cae81303db04454d90f2fb79ca0ab9d165bb8cd77a","size": 9809},"study.json": {"git_blob": "37092b9d2ea1aa45a7608ed9476a2355d2ce9135","sha256": "97b3ca72f40d4ae8f8e5fdee7da5801ded54e1112a745b9f3cfd8cfb8ae06a24","size": 2500700}},"revision": "00b4b4fc380451df6830fcd80328d9032ee7102b","type": "space"},"BurnyCoder/thirdloss-pythia-410m-adapters": {1316 unmodified lines"BurnyCoder/thirdloss-study": {"files": {"README.md": {"git_blob": "4ed969174922605e301d2d560fc35714ba731ecf","sha256": "8f28c1db751c92c71e17acf6a54a577fdc97e7bd44e697cbf1fe05791877cda0","size": 22775},"logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": {"git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",65 unmodified lines"sha256": "eef9ca7966fccfc27b3454cccd0107f2009ff422c2af5a4c54a694395d1e0bac","size": 1155},"logs/all-model-flatness-release.log": {"git_blob": "37bbb4bdbd164007d9e8e84ddbdb5e73b2a11e1d","sha256": "2ae7e37a0d60013de1b3d6870314f24554d6f4af83d0ce06b372b1eed3a9b1c6","size": 79},"logs/all-model-flatness-render.log": {"git_blob": "37bbb4bdbd164007d9e8e84ddbdb5e73b2a11e1d","sha256": "2ae7e37a0d60013de1b3d6870314f24554d6f4af83d0ce06b372b1eed3a9b1c6","size": 79},"logs/backfill-first-adapter.log": {"git_blob": "1a3a93a4c8f183b4dd24d429880022f4e6410290","sha256": "2088274297f663dab5fa0b48e33456396ee7946758ba91f8bd96cb1718ac3198",5 unmodified lines"size": 164140},"logs/checkpoint-flatness-20261125T163331Z-stderr.log": {"git_blob": "1e8f60d166cfa2c73ee3d3b79fee9c9efe003bb3","sha256": "aed9391275ea0df7a16acd93393030ec11bb7ebb9dd0ff3e260820bb0dafbf9d","size": 18700},"logs/checkpoint-flatness-20261125T163331Z.log": {"git_blob": "8b9a61e424d79cf58539351be75550f74fede645","sha256": "5d070059de19012a6b457e801d785ae106a085443b668b0457b6e9bb6d76220f","size": 1089},"logs/dashboard-20261125T151603Z-errors.log": {"git_blob": "05368bd6bcb80dae3bb7fee1ce931ef41f1811fe",471 unmodified lines"size": 786},"research/README.md": {"git_blob": "966e14f902454ef99813927004f32e572536f6f1","sha256": "02fd9bc4dc8a70f5b37d99f9ffd144bd7d1842344a39fea23c5f3e6154122c5e","size": 36312},"research/docs/data.md": {"git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",6 unmodified lines"size": 7098},"research/docs/explorer.js": {"git_blob": "cc8286c0876674074eefd770ddbb6f07a45c28a9","sha256": "a739ef1a7f33be360742878eb7ab666071e1ece2a1e8ccdd37e3041fe9d7d81d","size": 18706},"research/docs/figures/architecture.png": {"git_blob": "2c41c712a9edfcc9f53e1ac8f76e751e54dc8924",31 unmodified lines"size": 1583},"research/docs/hub/archive.md": {"git_blob": "4ed969174922605e301d2d560fc35714ba731ecf","sha256": "8f28c1db751c92c71e17acf6a54a577fdc97e7bd44e697cbf1fe05791877cda0","size": 22775},"research/docs/hub/space.md": {"git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",6 unmodified lines"size": 1435},"research/docs/index.html": {"git_blob": "7c1b5891c342f05d50874302e28759ab032d2ec4","sha256": "e9c612153e3c0137364f770bf87ff0c348ba96d4e104fd4d1d25b294472cb951","size": 10105},"research/docs/runbook.md": {"git_blob": "3d5a18e9b25fc4650b3c966263a211288e7b8664","sha256": "083ac2fd172314370536b9dbed1e329652a83380e41b7e885ff73593e64d6428","size": 9458},"research/docs/study.json": {"git_blob": "37092b9d2ea1aa45a7608ed9476a2355d2ce9135","sha256": "97b3ca72f40d4ae8f8e5fdee7da5801ded54e1112a745b9f3cfd8cfb8ae06a24","size": 2500700},"research/docs/third-derivative-penalty.md": {"git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",451 unmodified lines"size": 236},"research/reports/flatness.md": {"git_blob": "86881907dcee32bae5182cd6773635183a4a24de","sha256": "ca13fc692657bfe6cf04e30089477c9d7a3cc421e047fd609fadeb09e02e0294","size": 7244},"research/reports/hybrid/preregistration.md": {"git_blob": "0729e47d30933f401253bf21feac164c0217f7b4",11 unmodified lines"size": 7290},"research/reports/paper.pdf": {"git_blob": "f4bfe3b324c0131b45d754396896e60558aee582","sha256": "c12e007b8fee2f0031057680091480d92df03b5513977808805e0f73c8e024a5","size": 667675},"research/reports/plan.md": {"git_blob": "d15ec7b2f2324e3aedb389d2fd95208a31978596",1 unmodified line"size": 8376},"research/reports/planned-runs.md": {"git_blob": "3bbd81926ef3b2a14eeab1853ed76ba2ad720a5c","sha256": "8974a6b35f8ec3f6fe7f1d41b4113538458356f4395149c04232985e14b9f910","size": 3279},"research/reports/preregistration.md": {"git_blob": "3411a501f8cb3f3be0d31b70ee410094dae5dd95",1 unmodified line"size": 5234},"research/reports/progress.md": {"git_blob": "a0738665672ff72a00e88b6f62c38bbc031b959d","sha256": "774ee1fbb60d47e63f46d2a0150bf472c3cf54ab28a64eae1e7186a5dd69b7f3","size": 2289},"research/reports/reviews/adapter-verification.md": {221 unmodified lines"sha256": "ffdb6a19f4a109ea003c98e7b5acb598e8012765e043e06996e03019d911ca79","size": 9277},"research/results/abstracts-pilot-s00-trace-r01-fp64/flatness.json": {"git_blob": "d88a6f0305f1f4edd48a85f1d07df5d3ce4804b1","sha256": "693e9ee77ef25f179fc33b85a81572f341534e144d8878aaf38d170f2c31c3a3","size": 5841},"research/results/abstracts-pilot-s00-trace-r01-fp64/samples.jsonl": {"git_blob": "95c97dc58c2266db68a67647645e41245266a7b4","sha256": "d2a99c73d4392f3b5ef547a36975c53afea90da977ad5983d18b82cb5e21376f",1300 unmodified lines"size": 9767},"research/src/thirdloss/checkpoint_flatness.py": {"git_blob": "45909d2b16a195b46bacdbbcce2b4184d63ae64f","sha256": "e5a003bf9692737d029c957e8e88a2a4511d1b70ed558c5e274476bd62a377fe","size": 9070},"research/src/thirdloss/cli.py": {"git_blob": "56d46d00cce2a4a8cb0a1c89b07a16eaf0c4c315","sha256": "9ddb4e2802eb58be24ad0a67e6ce056686d06496a8c59c10ef1cd8bd6973fdff","size": 7982},"research/src/thirdloss/data.py": {"git_blob": "9b06438a0bce64f8d491cd65156ebe8aa04e8916",6 unmodified lines"size": 4522},"research/src/thirdloss/flatness_stats.py": {"git_blob": "8b700fff44c830264e264f301628720035862ba8","sha256": "d746679db10fc8d8cb1e2f75b25a7d6334a000992195fd95358225a89791f4d2","size": 2394},"research/src/thirdloss/flatness_tables.py": {"git_blob": "8631c395f6017144cc2e3db425db4999863c86b2","sha256": "63f96bf61c8f810a20bf6ef68770100d233a796c02b2deb85d1fc99a2c495550","size": 10613},"research/src/thirdloss/hub_archive.py": {"git_blob": "9a24c6c6f0f3f6e06fa43c775b47a5a03c1d12f6",51 unmodified lines"size": 11879},"research/src/thirdloss/readme_comparisons.py": {"git_blob": "c66dbe09e167a56393697607b5c824fc000aca92","sha256": "5f8f64b22498e9a18160535130c1bdfca6b2c16a8bc9d2f7cab9831c408bca88","size": 23696},"research/src/thirdloss/records.py": {"git_blob": "a800de00d42944f13a89d8d2f91ce9b2103bbd45",11 unmodified lines"size": 10129},"research/src/thirdloss/report_paper.py": {"git_blob": "6514a743800254bc6a2fedfe61cb232d786a5d6d","sha256": "02050e7488a0fa2a9b8df86f8958629dad4cc3d906c1e8f070fb0e617d2aef6b","size": 36366},"research/src/thirdloss/report_records.py": {"git_blob": "63fb6adff6bb01d15fcb12841f3e299c5364ff4a","sha256": "dec67007c3338c62f6479c9bd6de50a7db9688261bdfaab702664608381bda53","size": 16009},"research/src/thirdloss/reporting.py": {"git_blob": "206d59a27fae7713677392a8e9d32769a7437239","sha256": "68ff0fca6554c91c0a77318e2ada25ea821a725f4b683775a89bf787101586bc","size": 21553},"research/src/thirdloss/score_flatness.py": {"git_blob": "bc0df88c71f2ebef66bd546be84bb353aa25feee","sha256": "0fb9fde75fd83f6e00725dad04773c36747846ecc92ba095c571f27d5d593639","size": 2205},"research/src/thirdloss/study.py": {"git_blob": "d3ef0cf8d4b40e1ce0f6996eedb8ee24415a86ab","sha256": "d5b1782a1a2ece89c5c0f11256a235dd3d004c2b536b4a4c2366111e6e981e19",10 unmodified lines"size": 4135},"research/src/thirdloss/width.py": {"git_blob": "65eee35435beb909c7a217dd92ea68db3cac4fca","sha256": "f71e372f910606956a420983515b1021e8275d2b94b9c9a1e41501265deb406f","size": 2817},"research/src/thirdloss/windows.py": {"git_blob": "2000a312e8326b97f88acead4b5c53e6d26eeab2",16 unmodified lines"size": 16607},"research/tests/test_flatness.py": {"git_blob": "3ab0346c1456439a596832372403916b5a408b6b","sha256": "c5b21b092707e5ab3ae4db48833ff69fe870fb74aabaf6d3c4c7f1e83a73c29c","size": 5512},"research/tests/test_hub_archive.py": {"git_blob": "4c8dc24e6eb5f0aa7fc5e63be56ba0efa3ad4ec4",75 unmodified lines"type": "dataset"}},"verified_at": "2026-11-25T16:49:39+00:00"}
122 unmodified lines12312412512612712846 unmodified lines175176177178179180181122 unmodified lines| Cross-seed replay | 22 | 15.403 | 13.218 | One seed | 12.987–13.496 | 0/32 || Always-on hybrid | 21, 22, 23 | 15.256 | 13.229 | 13.060–13.334 | 13.085–13.390 | 0/96 |**TinyStories pretraining · development pilots · seeds 0 · 2,097,152 training targets**| Flatness statistic | AdamW | Hessian trace | Third order |46 unmodified lines**Pythia-410M adapters** · Secondary pilot comparisons are pending.**Untrained references · zero training targets**| Stage | Initial NLL<br>↓ Lower is better | Unigram NLL<br>↓ Lower is better | Initial accuracy<br>↑ Higher is better | Unigram accuracy<br>↑ Higher is better || --- | --- | --- | --- | --- |122 unmodified lines12312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319446 unmodified lines241242243244245246247122 unmodified lines| Cross-seed replay | 22 | 15.403 | 13.218 | One seed | 12.987–13.496 | 0/32 || Always-on hybrid | 21, 22, 23 | 15.256 | 13.229 | 13.060–13.334 | 13.085–13.390 | 0/96 |#### All variants and baselinesEach row uses the same fixed training windows and probe directions within its stage. Parentheses give measured / planned seeds for that cell. Targets count next-token examples used for optimizer updates in this study. The unigram uses counts from the full training split, and initial Pythia retains its pretrained backbone. Compare rows with matching targets and seeds. Larger **weight width** means greater tolerance to moving the model’s trainable parameters. Larger **common score width** means that all token scores can tolerate a larger shared bias before NLL rises by 0.1 nats, measured in RMS logit units. The unigram has zero trainable model weights and shares the score test with every neural predictor. Both widths have an unknown relationship to better held-out prediction. [All-model measurement design](reports/amendments/all-model-flatness.md)**TinyStories · all model weights**| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Initial checkpoint | 0 | 0 | Pending | Pending | Pending || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | Pending || Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending || Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending || Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending || Squared Hessian norm (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending || Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending || Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Hessian trace · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Third derivative · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Shared trace checkpoint | 8,388,608 | 21–28 | 15.143 (3/8) | Pending | Pending || Curvature-dependent hybrid · hybrid study | 16,777,216 | 21–28 | 13.157 (3/8) | Pending | Pending || Fixed late hybrid · hybrid study | 16,777,216 | 21–28 | 13.215 (3/8) | Pending | Pending || Hessian trace · hybrid study | 16,777,216 | 21–28 | 13.154 (3/8) | Pending | Pending || Stronger trace · hybrid study | 16,777,216 | 21–28 | 13.175 (3/8) | Pending | Pending || Cross-seed replay · hybrid study | 16,777,216 | 21–28 | 13.218 (1/8) | Pending | Pending || Always-on hybrid · hybrid study | 16,777,216 | 21–28 | 13.229 (3/8) | Pending | Pending |<details><summary>TinyStories · all model weights · other pilot strengths and precision diagnostics</summary>| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Hessian trace (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Hessian trace (10%) | 2,097,152 | 0 | Pending | Pending | Pending || Third derivative (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Third derivative (10%) | 2,097,152 | 0 | Pending | Pending | Pending |</details>**Pythia-410M · adapter weights**| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Initial checkpoint | 0 | 0 | Pending | Pending | Pending || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | Pending || Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending || Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending || Third derivative (1%) | 65,536 | 0 | Pending | Pending | Pending || Squared Hessian norm (3%) | 65,536 | 0 | Pending | Pending | Pending || Randomized gradient signs (1%) | 65,536 | 0 | Pending | Pending | Pending || Trace + third derivative (1%) | 65,536 | 0 | Pending | Pending | Pending || Ordinary AdamW · confirmation | 524,288 | 1–8 | Pending | Pending | Pending || Hessian trace · confirmation | 524,288 | 1–8 | Pending | Pending | Pending || Third derivative · confirmation | 524,288 | 1–8 | Pending | Pending | Pending |<details><summary>Pythia-410M · adapter weights · other pilot strengths and precision diagnostics</summary>| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Hessian trace (3%) | 65,536 | 0 | Pending | Pending | Pending || Hessian trace (10%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (3%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (10%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (3%) · excluded precision diagnostic | 65,536 | 0 | Pending | Pending | Pending |</details>**TinyStories pretraining · development pilots · seeds 0 · 2,097,152 training targets**| Flatness statistic | AdamW | Hessian trace | Third order |46 unmodified lines**Pythia-410M adapters** · Secondary pilot comparisons are pending.**Zero-update references** · The unigram uses training-split frequencies. Initial Pythia uses its pretrained weights.| Stage | Initial NLL<br>↓ Lower is better | Unigram NLL<br>↓ Lower is better | Initial accuracy<br>↑ Higher is better | Unigram accuracy<br>↑ Higher is better || --- | --- | --- | --- | --- |
17 unmodified lines18192021222317 unmodified lineswidth: ["Directional width", "Euclidean weight distance · wider is flatter"], width_probe_nll: ["Width-probe loss", "nats / target token"],checkpoint_rms: ["Checkpoint RMS curvature", "RMS curvature · lower means less bending"],checkpoint_signed_trace: ["Checkpoint signed trace / parameter", "mean signed curvature · no preferred direction"],curvature_rms: ["Rolling RMS curvature", "RMS Hessian eigenvalue estimate"],third_lambda: ["Third-derivative coefficient", "coefficient"], trace_lambda: ["Trace coefficient", "coefficient"],gradient_norm: ["Unclipped gradient norm", "Euclidean gradient norm"],17 unmodified lines181920212223242517 unmodified lineswidth: ["Directional width", "Euclidean weight distance · wider is flatter"], width_probe_nll: ["Width-probe loss", "nats / target token"],checkpoint_rms: ["Checkpoint RMS curvature", "RMS curvature · lower means less bending"],checkpoint_signed_trace: ["Checkpoint signed trace / parameter", "mean signed curvature · no preferred direction"],score_width: ["Common score width", "RMS logit distance · wider tolerates larger score changes"],score_curvature: ["Common score curvature", "mean local bending under shared logit biases"],curvature_rms: ["Rolling RMS curvature", "RMS Hessian eigenvalue estimate"],third_lambda: ["Third-derivative coefficient", "coefficient"], trace_lambda: ["Trace coefficient", "coefficient"],gradient_norm: ["Unclipped gradient norm", "Euclidean gradient norm"],
79 unmodified lines80818283848546 unmodified lines13213313413513613713879 unmodified lines| Cross-seed replay | 22 | 15.403 | 13.218 | One seed | 12.987–13.496 | 0/32 || Always-on hybrid | 21, 22, 23 | 15.256 | 13.229 | 13.060–13.334 | 13.085–13.390 | 0/96 |**TinyStories pretraining · development pilots · seeds 0 · 2,097,152 training targets**| Flatness statistic | AdamW | Hessian trace | Third order |46 unmodified lines**Pythia-410M adapters** · Secondary pilot comparisons are pending.**Untrained references · zero training targets**| Stage | Initial NLL<br>↓ Lower is better | Unigram NLL<br>↓ Lower is better | Initial accuracy<br>↑ Higher is better | Unigram accuracy<br>↑ Higher is better || --- | --- | --- | --- | --- |79 unmodified lines808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015146 unmodified lines19819920020120220320479 unmodified lines| Cross-seed replay | 22 | 15.403 | 13.218 | One seed | 12.987–13.496 | 0/32 || Always-on hybrid | 21, 22, 23 | 15.256 | 13.229 | 13.060–13.334 | 13.085–13.390 | 0/96 |#### All variants and baselinesEach row uses the same fixed training windows and probe directions within its stage. Parentheses give measured / planned seeds for that cell. Targets count next-token examples used for optimizer updates in this study. The unigram uses counts from the full training split, and initial Pythia retains its pretrained backbone. Compare rows with matching targets and seeds. Larger **weight width** means greater tolerance to moving the model’s trainable parameters. Larger **common score width** means that all token scores can tolerate a larger shared bias before NLL rises by 0.1 nats, measured in RMS logit units. The unigram has zero trainable model weights and shares the score test with every neural predictor. Both widths have an unknown relationship to better held-out prediction. [All-model measurement design](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/amendments/all-model-flatness.md)**TinyStories · all model weights**| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Initial checkpoint | 0 | 0 | Pending | Pending | Pending || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | Pending || Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending || Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending || Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending || Squared Hessian norm (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending || Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending || Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Hessian trace · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Third derivative · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Shared trace checkpoint | 8,388,608 | 21–28 | 15.143 (3/8) | Pending | Pending || Curvature-dependent hybrid · hybrid study | 16,777,216 | 21–28 | 13.157 (3/8) | Pending | Pending || Fixed late hybrid · hybrid study | 16,777,216 | 21–28 | 13.215 (3/8) | Pending | Pending || Hessian trace · hybrid study | 16,777,216 | 21–28 | 13.154 (3/8) | Pending | Pending || Stronger trace · hybrid study | 16,777,216 | 21–28 | 13.175 (3/8) | Pending | Pending || Cross-seed replay · hybrid study | 16,777,216 | 21–28 | 13.218 (1/8) | Pending | Pending || Always-on hybrid · hybrid study | 16,777,216 | 21–28 | 13.229 (3/8) | Pending | Pending |<details><summary>TinyStories · all model weights · other pilot strengths and precision diagnostics</summary>| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Hessian trace (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Hessian trace (10%) | 2,097,152 | 0 | Pending | Pending | Pending || Third derivative (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Third derivative (10%) | 2,097,152 | 0 | Pending | Pending | Pending |</details>**Pythia-410M · adapter weights**| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Initial checkpoint | 0 | 0 | Pending | Pending | Pending || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | Pending || Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending || Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending || Third derivative (1%) | 65,536 | 0 | Pending | Pending | Pending || Squared Hessian norm (3%) | 65,536 | 0 | Pending | Pending | Pending || Randomized gradient signs (1%) | 65,536 | 0 | Pending | Pending | Pending || Trace + third derivative (1%) | 65,536 | 0 | Pending | Pending | Pending || Ordinary AdamW · confirmation | 524,288 | 1–8 | Pending | Pending | Pending || Hessian trace · confirmation | 524,288 | 1–8 | Pending | Pending | Pending || Third derivative · confirmation | 524,288 | 1–8 | Pending | Pending | Pending |<details><summary>Pythia-410M · adapter weights · other pilot strengths and precision diagnostics</summary>| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Hessian trace (3%) | 65,536 | 0 | Pending | Pending | Pending || Hessian trace (10%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (3%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (10%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (3%) · excluded precision diagnostic | 65,536 | 0 | Pending | Pending | Pending |</details>**TinyStories pretraining · development pilots · seeds 0 · 2,097,152 training targets**| Flatness statistic | AdamW | Hessian trace | Third order |46 unmodified lines**Pythia-410M adapters** · Secondary pilot comparisons are pending.**Zero-update references** · The unigram uses training-split frequencies. Initial Pythia uses its pretrained weights.| Stage | Initial NLL<br>↓ Lower is better | Unigram NLL<br>↓ Lower is better | Initial accuracy<br>↑ Higher is better | Unigram accuracy<br>↑ Higher is better || --- | --- | --- | --- | --- |
51 unmodified lines52535455565751 unmodified lines<option value="width">Directional width</option><option value="width_probe_nll">Width-probe training NLL</option><option value="checkpoint_rms">Checkpoint RMS curvature (lower is flatter locally)</option><option value="checkpoint_signed_trace">Checkpoint signed trace per parameter</option><option value="curvature_rms">Rolling RMS curvature</option><option value="third_lambda">Third-derivative coefficient</option><option value="trace_lambda">Trace coefficient</option><option value="gradient_norm">Unclipped gradient norm</option></select></label>51 unmodified lines525354555657585951 unmodified lines<option value="width">Directional width</option><option value="width_probe_nll">Width-probe training NLL</option><option value="checkpoint_rms">Checkpoint RMS curvature (lower is flatter locally)</option><option value="checkpoint_signed_trace">Checkpoint signed trace per parameter</option><option value="score_width">Common score width (all model types)</option><option value="score_curvature">Common score curvature (all model types)</option><option value="curvature_rms">Rolling RMS curvature</option><option value="third_lambda">Third-derivative coefficient</option><option value="trace_lambda">Trace coefficient</option><option value="gradient_norm">Unclipped gradient norm</option></select></label>
56 unmodified lines57585960616256 unmodified lines## Checkpoint flatnessRun `uv run --locked thirdloss flatness --stage both --phase pilot --publish` to measure the selected models and fitted pilot controls. Use `--phase confirm` for the eight-seed checkpoints. Each call checks the training stream and exported weights, resumes from saved measurements and publishes each newly measured checkpoint. Schedule this command between timed training runs on the same GPU. Run `uv run --locked thirdloss report` to rebuild the statistics from the saved measurements. [Design](../reports/amendments/checkpoint-flatness.md) · [Results and raw probes](../reports/flatness.md)For a complete sequential run, use `uv run --locked thirdloss study --with-hybrid --with-flatness --publish`. The final flatness pass picks up any outstanding primary checkpoints. The explorer’s measurement menu includes directional width, checkpoint RMS curvature and signed trace per parameter. [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer)56 unmodified lines57585960616256 unmodified lines## Checkpoint flatnessRun `uv run --locked thirdloss flatness --stage both --phase pilot --publish` for all pilot strengths and zero-update controls. Use `--phase hybrid` for the shared trunks and six hybrid arms, `--phase confirm` for the eight-seed primary runs, or `--phase all` for the complete research ledger. `--run-id RUN` restricts the command to one checkpoint. Every predictor receives the common logit test, including the empirical unigram. Neural predictors also receive the weight-space width and Hessian tests. Each call checks the training stream and exported weights and resumes from its saved probe files. Run it between timed training runs on a shared GPU. Run `uv run --locked thirdloss report` to rebuild the comparisons. [Weight probes](../reports/amendments/checkpoint-flatness.md) · [All-model comparison](../reports/amendments/all-model-flatness.md) · [Results and raw probes](../reports/flatness.md)For a complete sequential run, use `uv run --locked thirdloss study --with-hybrid --with-flatness --publish`. The final flatness pass picks up any outstanding primary checkpoints. The explorer’s measurement menu includes directional width, checkpoint RMS curvature and signed trace per parameter. [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer)
14 unmodified lines151617181920212223242514 unmodified linesThe seed range and directional spread describe variability. The rays at the limit give measurement coverage. Compare matching seeds for differences between arms. [Every crossing and paired comparison](hybrid/results.md)## Secondary checkpoint measurements| Stage | Horizon | Seed | Arm | Width ↑ | Middle 50% of directions | Rays at limit / tested | RMS curvature ↓ | Signed trace / parameter | Evidence || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || abstracts | pilot | 0 | Ordinary AdamW | 19.784 | 19.185–20.320 | 0/32 | 1.28684 | +0.00312322 | [All probes](../results/abstracts-pilot-s00-ce-r00/flatness.json) || stories | pilot | 0 | Ordinary AdamW | 15.579 | 15.297–16.037 | 0/32 | 0.453288 | +0.0036281 | [All probes](../results/stories-pilot-s00-ce-r00/flatness.json) || stories | pilot | 0 | Third derivative | 15.640 | 15.382–16.118 | 0/32 | 0.447394 | +0.00357761 | [All probes](../results/stories-pilot-s00-third-r01/flatness.json) || stories | pilot | 0 | Hessian trace | 15.686 | 15.431–16.102 | 0/32 | 0.447721 | +0.00356145 | [All probes](../results/stories-pilot-s00-trace-r01/flatness.json) |14 unmodified lines15161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919214 unmodified linesThe seed range and directional spread describe variability. The rays at the limit give measurement coverage. Compare matching seeds for differences between arms. [Every crossing and paired comparison](hybrid/results.md)## Every variant and baselineParentheses give measured / planned seeds. A unigram has only the common score-space measurement. [Shared score perturbations](amendments/all-model-flatness.md)**TinyStories · all model weights**| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Initial checkpoint | 0 | 0 | Pending | Pending | Pending || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | Pending || Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending || Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending || Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending || Squared Hessian norm (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending || Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending || Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Hessian trace · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Third derivative · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending || Shared trace checkpoint | 8,388,608 | 21–28 | 15.143 (3/8) | Pending | Pending || Curvature-dependent hybrid · hybrid study | 16,777,216 | 21–28 | 13.157 (3/8) | Pending | Pending || Fixed late hybrid · hybrid study | 16,777,216 | 21–28 | 13.215 (3/8) | Pending | Pending || Hessian trace · hybrid study | 16,777,216 | 21–28 | 13.154 (3/8) | Pending | Pending || Stronger trace · hybrid study | 16,777,216 | 21–28 | 13.175 (3/8) | Pending | Pending || Cross-seed replay · hybrid study | 16,777,216 | 21–28 | 13.218 (1/8) | Pending | Pending || Always-on hybrid · hybrid study | 16,777,216 | 21–28 | 13.229 (3/8) | Pending | Pending |<details><summary>TinyStories · all model weights · other pilot strengths and precision diagnostics</summary>| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Hessian trace (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Hessian trace (10%) | 2,097,152 | 0 | Pending | Pending | Pending || Third derivative (3%) | 2,097,152 | 0 | Pending | Pending | Pending || Third derivative (10%) | 2,097,152 | 0 | Pending | Pending | Pending |</details>**Pythia-410M · adapter weights**| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Initial checkpoint | 0 | 0 | Pending | Pending | Pending || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | Pending || Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending || Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending || Third derivative (1%) | 65,536 | 0 | Pending | Pending | Pending || Squared Hessian norm (3%) | 65,536 | 0 | Pending | Pending | Pending || Randomized gradient signs (1%) | 65,536 | 0 | Pending | Pending | Pending || Trace + third derivative (1%) | 65,536 | 0 | Pending | Pending | Pending || Ordinary AdamW · confirmation | 524,288 | 1–8 | Pending | Pending | Pending || Hessian trace · confirmation | 524,288 | 1–8 | Pending | Pending | Pending || Third derivative · confirmation | 524,288 | 1–8 | Pending | Pending | Pending |<details><summary>Pythia-410M · adapter weights · other pilot strengths and precision diagnostics</summary>| Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance || --- | --- | --- | --- | --- | --- || Hessian trace (3%) | 65,536 | 0 | Pending | Pending | Pending || Hessian trace (10%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (3%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (10%) | 65,536 | 0 | Pending | Pending | Pending || Third derivative (3%) · excluded precision diagnostic | 65,536 | 0 | Pending | Pending | Pending |</details>## Per-run checkpoint measurements| Stage | Horizon | Seed | Arm | Strength | Weight width ↑ | Weight middle 50% | Weight rays at limit | RMS curvature ↓ | Signed trace / parameter | Score width ↑ | Score middle 50% | Score rays at limit | Mean score curvature | Evidence || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || abstracts | pilot | 0 | Ordinary AdamW | 0% | 19.784 | 19.185–20.320 | 0/32 | 1.28684 | +0.00312322 | Pending | Pending | Pending | Pending | [Weight probes](../results/abstracts-pilot-s00-ce-r00/flatness.json) || abstracts | pilot | 0 | Hessian trace | 1% | 19.751 | 19.179–20.260 | 0/32 | 1.18181 | +0.00404879 | Pending | Pending | Pending | Pending | [Weight probes](../results/abstracts-pilot-s00-trace-r01-fp64/flatness.json) || stories | pilot | 0 | Ordinary AdamW | 0% | 15.579 | 15.297–16.037 | 0/32 | 0.453288 | +0.0036281 | Pending | Pending | Pending | Pending | [Weight probes](../results/stories-pilot-s00-ce-r00/flatness.json) || stories | pilot | 0 | Third derivative | 1% | 15.640 | 15.382–16.118 | 0/32 | 0.447394 | +0.00357761 | Pending | Pending | Pending | Pending | [Weight probes](../results/stories-pilot-s00-third-r01/flatness.json) || stories | pilot | 0 | Hessian trace | 1% | 15.686 | 15.431–16.102 | 0/32 | 0.447721 | +0.00356145 | Pending | Pending | Pending | Pending | [Weight probes](../results/stories-pilot-s00-trace-r01/flatness.json) |
22 unmodified lines23242522 unmodified lines## Secondary flatness measurementsMeasure the saved AdamW, Hessian-trace and third-order checkpoints at the selected pilot horizon and the full confirmatory horizon in each stage. Include the three fitted pilot controls. Each evaluation records training-window perturbation widths and Hessian curvature in that stage’s trainable coordinates. This analysis was specified after early development results. [Measurement design](amendments/checkpoint-flatness.md) · [Measured statistics](flatness.md)22 unmodified lines232425262722 unmodified lines## Secondary flatness measurementsMeasure the saved AdamW, Hessian-trace and third-order checkpoints at the selected pilot horizon and the full confirmatory horizon in each stage. Include the three fitted pilot controls. Each evaluation records training-window perturbation widths and Hessian curvature in that stage’s trainable coordinates. This analysis was specified after early development results. [Measurement design](amendments/checkpoint-flatness.md) · [Measured statistics](flatness.md)The coverage extension also measures every other pilot strength, all hybrid arms and shared trunks, the two initial predictors and both unigram references. A common output-score perturbation is defined for all of them. The numerical diagnostic retains its separate label. [All-model flatness protocol](amendments/all-model-flatness.md)
123456# Study progressUpdated 2026-11-25T16:44:12+00:00.21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.123456# Study progressUpdated 2026-11-25T16:49:28+00:00.21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250{ "protocol": "checkpoint-flatness-v1", "run": "abstracts-pilot-s00-trace-r01-fp64", "checkpoint_file_sha256": "0ee7f88f1adea83b25390e405b4f4ff4f3ad0992068f85dd4c39d4c1c582c44e", "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", "width_device": "cuda", "timestamp": "2026-11-25T16:49:22+00:00", "split": "train", "probe_windows_sha256": "33355b4898d409b23633a21a839773f463c5771aaa3a8e2df9840aa647b37e4f", "width_windows": 8, "curvature_windows": 2, "width": { "baseline_nll": 2.9101760387420654, "delta_nll": 0.1, "directions": [ { "direction": 0, "positive": { "lower": 10.82421875, "upper": 10.826171875 }, "negative": { "lower": 10.193359375, "upper": 10.1953125 } }, { "direction": 1, "positive": { "lower": 8.400390625, "upper": 8.40234375 }, "negative": { "lower": 10.30078125, "upper": 10.302734375 } }, { "direction": 2, "positive": { "lower": 10.4453125, "upper": 10.447265625 }, "negative": { "lower": 9.310546875, "upper": 9.3125 } }, { "direction": 3, "positive": { "lower": 9.79296875, "upper": 9.794921875 }, "negative": { "lower": 9.142578125, "upper": 9.14453125 } }, { "direction": 4, "positive": { "lower": 10.35546875, "upper": 10.357421875 }, "negative": { "lower": 10.302734375, "upper": 10.3046875 } }, { "direction": 5, "positive": { "lower": 9.490234375, "upper": 9.4921875 }, "negative": { "lower": 9.951171875, "upper": 9.953125 } }, { "direction": 6, "positive": { "lower": 9.478515625, "upper": 9.48046875 }, "negative": { "lower": 9.51953125, "upper": 9.521484375 } }, { "direction": 7, "positive": { "lower": 9.15234375, "upper": 9.154296875 }, "negative": { "lower": 10.083984375, "upper": 10.0859375 } }, { "direction": 8, "positive": { "lower": 9.271484375, "upper": 9.2734375 }, "negative": { "lower": 9.5625, "upper": 9.564453125 } }, { "direction": 9, "positive": { "lower": 9.8203125, "upper": 9.822265625 }, "negative": { "lower": 9.921875, "upper": 9.923828125 } }, { "direction": 10, "positive": { "lower": 10.83203125, "upper": 10.833984375 }, "negative": { "lower": 9.29296875, "upper": 9.294921875 } }, { "direction": 11, "positive": { "lower": 10.064453125, "upper": 10.06640625 }, "negative": { "lower": 10.796875, "upper": 10.798828125 } }, { "direction": 12, "positive": { "lower": 12.94921875, "upper": 12.951171875 }, "negative": { "lower": 9.8671875, "upper": 9.869140625 } }, { "direction": 13, "positive": { "lower": 10.095703125, "upper": 10.09765625 }, "negative": { "lower": 9.78515625, "upper": 9.787109375 } }, { "direction": 14, "positive": { "lower": 10.109375, "upper": 10.111328125 }, "negative": { "lower": 9.884765625, "upper": 9.88671875 } }, { "direction": 15, "positive": { "lower": 9.689453125, "upper": 9.69140625 }, "negative": { "lower": 9.84375, "upper": 9.845703125 } } ], "width_lower": 19.7490234375, "width_upper": 19.7529296875, "width": 19.7509765625, "censored_rays": 0, "weights_sha256": "5df031f78ec677dc5fbd0a28e1643b5a17ddc1057567ea1b1ff793e6b5463468", "weights_restored": true, "seconds": 231.8875212999992 }, "curvature": { "dimensions": 786432, "draws": [ { "index": 0, "trace_per_parameter": 0.002017029226796575, "squared_rms": 0.30359075429894494 }, { "index": 1, "trace_per_parameter": 0.011375821833780692, "squared_rms": 5.558236726130382 }, { "index": 2, "trace_per_parameter": 0.003073199553484087, "squared_rms": 0.5580516212190562 }, { "index": 3, "trace_per_parameter": 0.005567907101112614, "squared_rms": 2.10054837866491 }, { "index": 4, "trace_per_parameter": 0.001637857362413852, "squared_rms": 0.28017183220599534 }, { "index": 5, "trace_per_parameter": 0.0033649399103422273, "squared_rms": 0.41735848689410354 }, { "index": 6, "trace_per_parameter": 0.002283413699140181, "squared_rms": 0.7363704887502874 }, { "index": 7, "trace_per_parameter": 0.003070116608722761, "squared_rms": 1.219143476473667 } ], "device": "cpu", "dtype": "torch.float64", "trace_per_parameter": 0.004048785661974124, "rms_curvature": 1.1818138476848494 }}1234562 unmodified lines9101112131415161721 unmodified lines3940414243444546474849505152535455565758596061621 unmodified line646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108"""Secondary training-window geometry of saved language-model checkpoints, outside timed training."""import hashlibimport mathimport subprocessimport sys2 unmodified linesimport torchfrom filelock import FileLockfrom .models import logits_of,token_loss,widen_pythiafrom .penalties import inner,partials,random_signsfrom .records import HORIZONS,read_json,run_name,sha256,time_now,write_jsonfrom .study import load_trained_modelfrom .width import measure_widthfrom .windows import TrainingWindows,generator21 unmodified lines"rms_curvature":math.sqrt(mean(r["squared_rms"] for r in draws))}def measure_checkpoint(project,storage,row,device):"""Restore one verified export and compute both local curvature and finite-radius width."""corpus=storage/"data"/row["stage"]path=project/"results"/row["id"]/"flatness.json"identity={"protocol":PROTOCOL,"run":row["id"],"checkpoint_file_sha256":row["weights_sha256"],"data_manifest_sha256":sha256(corpus/"manifest.json"),"width_device":device.type}if identity["data_manifest_sha256"]!=row["data_manifest_sha256"]:raise ValueError(f"Training manifest changed for {row['id']}")if path.exists():existing=read_json(path)if any(existing.get(k)!=v for k,v in identity.items()):raise ValueError(f"Saved flatness provenance differs for {row['id']}")return pathprint(f"{time_now()} Measuring checkpoint flatness for {row['id']}",flush=True)model=load_trained_model(storage,row,device).eval()inputs,targets=TrainingWindows(corpus/"train.bin",88731,8).get(0,device)fingerprint=hashlib.sha256(inputs.cpu().numpy().tobytes()+targets.cpu().numpy().tobytes()).hexdigest()width=measure_width(model,lambda:token_loss(logits_of(model,inputs),targets))if row["stage"]=="abstracts":model=widen_pythia(model.cpu())else:1 unmodified linehessian_device=next(model.parameters()).deviceloss=token_loss(logits_of(model,inputs[:2].to(hessian_device)),targets[:2].to(hessian_device))statistics=hessian_statistics(loss,tuple(p for p in model.parameters() if p.requires_grad))write_json(path,{**identity,"timestamp":time_now(),"split":"train","probe_windows_sha256":fingerprint,"width_windows":8,"curvature_windows":2,"width":width,"curvature":statistics})print(f"{time_now()} {row['id']} width={width['width']} RMS curvature={statistics['rms_curvature']:.6g}",flush=True)return pathdef flatness_study(project,storage,stages,phase,device,publish):"""Measure all available prespecified matches; resume from independently verified per-run records."""from .release import publish_snapshotfor stage in stages:data=storage/"data"/stageif (project/"results"/"selection"/f"{stage}.json").exists():if sha256(data/"train.bin")!=read_json(data/"manifest.json")["artifacts"]["train.bin"]["sha256"]:raise ValueError(f"Training tokens differ from their registered digest for {stage}")for group in (("ce","trace","third"),("hessian_norm","sham","combined")):for stage in stages:selection=project/"results"/"selection"/f"{stage}.json"if not selection.exists():continueratios=read_json(selection)["ratios"]strength={"ce":0.,"hessian_norm":.03,"sham":ratios["third"],"combined":ratios["third"],**ratios}for kind in (("pilot","confirm") if phase=="all" else (phase,)):if kind=="confirm" and "ce" not in group:continuefor seed in ((0,) if kind=="pilot" else range(1,9)):for method in group:run=run_name(stage,method,kind,seed,strength[method])summary=project/"results"/run/"summary.json"if not summary.exists():continuerow=read_json(summary)if row["tokens"]!=(HORIZONS[stage]//8 if kind=="pilot" else HORIZONS[stage]):raise ValueError(f"Flatness comparison requires the complete registered horizon: {run}")with FileLock(str(storage/"locks"/(run+"-flatness.lock"))):measured=measure_checkpoint(project,storage,row,device)marker=storage/"releases"/("flatness-"+run+".json")digest=sha256(measured)if publish and (not marker.exists() or read_json(marker)["sha256"]!=digest):subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"],cwd=project,check=True)revision=publish_snapshot(project,f"Measure training-window flatness for {run}")write_json(marker,{"sha256":digest,"git_revision":revision})12345672 unmodified lines101112131415161718192021 unmodified lines4243444546474849505152535455565758596061626364656667686970717273747576777879801 unmodified line828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165"""Secondary training-window geometry of saved language-model checkpoints, outside timed training."""import hashlibimport jsonimport mathimport subprocessimport sys2 unmodified linesimport torchfrom filelock import FileLockfrom .evaluation import unigram_distributionfrom .models import build_model,logits_of,token_loss,trainable_digest,widen_pythiafrom .penalties import inner,partials,random_signsfrom .records import read_json,sha256,time_now,write_jsonfrom .score_flatness import score_widthfrom .study import load_trained_modelfrom .width import measure_widthfrom .windows import TrainingWindows,generator21 unmodified lines"rms_curvature":math.sqrt(mean(r["squared_rms"] for r in draws))}def _initial_model(project,storage,corpus,row,device):"""Reconstruct zero-update weights, with an independent forward check for the earliest seed."""model=build_model(row["stage"],row["seed"],device,storage).eval()digest=trainable_digest(model)if row.get("initial_trainable_sha256"):if digest!=row["initial_trainable_sha256"]:raise ValueError("Reconstructed initial weights differ from their saved digest")return model,{"initial_trainable_sha256":digest,"verification":"recorded initial weight digest"}if row["stage"]!="stories" or row["seed"]!=0:raise ValueError("Missing initialization provenance for this reference")source="stories-pilot-s00-ce-r00"with (project/"results"/source/"events.jsonl").open(encoding="utf-8") as f:first=json.loads(next(f))inputs,targets=TrainingWindows(corpus/"train.bin",0,row["batch_windows"]).get(0,device)with torch.no_grad():logits=logits_of(model,inputs)loss=float(token_loss(logits,targets))accuracy=float((logits.argmax(-1)==targets).double().mean())if (first["step"]!=1 or targets.numel()!=first["tokens"] or abs(loss-first["loss"])>1e-5or abs(accuracy-first["accuracy"])>1e-8):raise ValueError("Reconstructed scratch reference differs on its recorded first training batch")return model,{"initial_trainable_sha256":digest,"first_update_source":source,"nll":loss,"accuracy":accuracy}def _native_geometry(model,row,folder,inputs,targets):"""Reuse a digest-matched registered hybrid width, then measure local curvature on the fixed batch."""registered=folder/f"width-{row['steps']}.json"if row["phase"] in {"hybrid","branch"}:width=read_json(registered)if width["weights_sha256"]!=trainable_digest(model) or not width["weights_restored"]:raise ValueError("Registered width belongs to different trained weights")else:width=measure_width(model,lambda:token_loss(logits_of(model,inputs),targets))if row["stage"]=="abstracts":model=widen_pythia(model.cpu())else:1 unmodified linehessian_device=next(model.parameters()).deviceloss=token_loss(logits_of(model,inputs[:2].to(hessian_device)),targets[:2].to(hessian_device))statistics=hessian_statistics(loss,tuple(p for p in model.parameters() if p.requires_grad))return {"width_windows":8,"curvature_windows":2,"width":width,"curvature":statistics}def measure_checkpoint(project,storage,row,device):"""Use shared output-score coordinates for every predictor and native coordinates where they exist."""folder=project/"results"/row["id"]corpus=storage/"data"/row["stage"]native,score=folder/"flatness.json",folder/"score-flatness.json"unigram=row["method"]=="unigram"if unigram:# A single frequency vector needs no network forward pass or GPU memory.device=torch.device("cpu")paths=[score] if unigram else [native,score]identity={"run":row["id"],"checkpoint_file_sha256":row.get("weights_sha256"),"data_manifest_sha256":sha256(corpus/"manifest.json"),"width_device":device.type}if identity["data_manifest_sha256"]!=row["data_manifest_sha256"]:raise ValueError(f"Training manifest changed for {row['id']}")for path in paths:if path.exists():saved=read_json(path)expected={**identity,"protocol":PROTOCOL if path==native else "shared-logit-width-v1"}if any(saved.get(k)!=v for k,v in expected.items()):raise ValueError(f"Saved flatness provenance differs for {row['id']}")if all(path.exists() for path in paths):return pathsprint(f"{time_now()} Measuring flatness for {row['id']}",flush=True)inputs,targets=TrainingWindows(corpus/"train.bin",88731,8).get(0,device)windows=hashlib.sha256(inputs.cpu().numpy().tobytes()+targets.cpu().numpy().tobytes()).hexdigest()common={**identity,"split":"train","probe_windows_sha256":windows,"timestamp":time_now()}if row["method"]=="initial":model,common["reference"]=_initial_model(project,storage,corpus,row,device)elif not unigram:model=load_trained_model(storage,row,device).eval()if not score.exists():with torch.no_grad():if unigram:distribution=unigram_distribution(corpus/"train.bin",read_json(corpus/"manifest.json")["model_vocab_size"])common["reference"]={"distribution_sha256":hashlib.sha256(distribution.tobytes()).hexdigest()}logits=torch.as_tensor(distribution,device=device).log()[None,:]else:logits=logits_of(model,inputs)output=score_width(logits,targets)del logitswrite_json(score,{**common,"protocol":"shared-logit-width-v1","score":output})if not unigram and not native.exists():data=_native_geometry(model,row,folder,inputs,targets)write_json(native,{**common,"protocol":PROTOCOL,**data})return pathsdef flatness_study(project,storage,stages,phase,device,publish,run_id=None):"""Visit saved study runs deterministically, including zero-update references and all strengths."""from .release import publish_snapshotphases={"pilot":{"pilot","control"},"confirm":{"confirm"},"hybrid":{"branch","hybrid"},"all":{"pilot","control","confirm","branch","hybrid"}}[phase]candidates=[read_json(p) for p in (project/"results").glob("*/summary.json")]rows=[r for r in candidates if r.get("stage") in stages and r.get("phase") in phases andr.get("status")=="complete" and (run_id is None or r["id"]==run_id)]if run_id is not None and not rows:raise ValueError(f"No completed study checkpoint matches {run_id}")for stage in {r["stage"] for r in rows}:data=storage/"data"/stageif sha256(data/"train.bin")!=read_json(data/"manifest.json")["artifacts"]["train.bin"]["sha256"]:raise ValueError(f"Training tokens differ from their registered digest for {stage}")# Show each kind of model early; the ordering is independent of every performance measurement.by_kind={}for r in sorted(rows,key=lambda r:(r["seed"],r["ratio"],r["id"])):by_kind.setdefault((r["stage"],r["phase"],r["method"]),[]).append(r)ordered=[items[i] for i in range(max(map(len,by_kind.values()),default=0)) for items in by_kind.values() if i<len(items)]for row in ordered:run=row["id"]if row["tokens"]!=row["token_budget"]:raise ValueError(f"Flatness comparison requires the complete registered horizon: {run}")with FileLock(str(storage/"locks"/(run+"-flatness.lock"))):paths=measure_checkpoint(project,storage,row,device)artifacts={p.name:sha256(p) for p in paths}marker=storage/"releases"/("flatness-"+run+".json")if publish and (not marker.exists() or read_json(marker).get("artifacts")!=artifacts):subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"],cwd=project,check=True)revision=publish_snapshot(project,f"Measure comparable flatness for {run}")write_json(marker,{"artifacts":artifacts,"git_revision":revision})
44 unmodified lines4546474849505179 unmodified lines13113213313413513613744 unmodified linesif action in {"train","study","hybrid","evaluate","flatness"}:sub.add_argument("--device",default="cuda")if action=="flatness":sub.add_argument("--phase",choices=("pilot","confirm","all"),default="all")if action=="study":sub.add_argument("--with-hybrid",action="store_true",help="Include the registered TinyStories hybrid follow-up on the same GPU")sub.add_argument("--with-flatness",action="store_true",help="Also measure training-window geometry at saved primary checkpoints")79 unmodified linesdevice = setup_device(args.device)if args.action=="flatness":from .checkpoint_flatness import flatness_studyflatness_study(project,storage,stages,args.phase,device,args.publish)returnif args.action in {"study","hybrid"}:from contextlib import nullcontext44 unmodified lines454647484950515279 unmodified lines13213313413513613713844 unmodified linesif action in {"train","study","hybrid","evaluate","flatness"}:sub.add_argument("--device",default="cuda")if action=="flatness":sub.add_argument("--phase",choices=("pilot","confirm","hybrid","all"),default="all")sub.add_argument("--run-id",help="Measure a single completed run in the selected phase")if action=="study":sub.add_argument("--with-hybrid",action="store_true",help="Include the registered TinyStories hybrid follow-up on the same GPU")sub.add_argument("--with-flatness",action="store_true",help="Also measure training-window geometry at saved primary checkpoints")79 unmodified linesdevice = setup_device(args.device)if args.action=="flatness":from .checkpoint_flatness import flatness_studyflatness_study(project,storage,stages,args.phase,device,args.publish,run_id=args.run_id)returnif args.action in {"study","hybrid"}:from contextlib import nullcontext
123456"""Order statistics for two-sided perturbation widths with finite bisection and open upper bounds."""import mathdef _quantile(values, fraction):1234567891011121314151617181920"""Order statistics for two-sided perturbation widths with finite bisection and open upper bounds."""import mathfrom statistics import mediandef width_statistics(rays):"""The registered endpoint uses the medians of both crossing brackets, including open ends."""lows,highs=[],[]for ray in rays:bounds=(ray["positive"],ray["negative"])lows.append(sum(b["lower"] for b in bounds))highs.append(sum(b["upper"] if b["upper"] is not None else math.inf for b in bounds))lower,upper=median(lows),median(highs)return {"directions":rays,"width_lower":lower,"width_upper":upper if math.isfinite(upper) else None,"width":(lower+upper)/2 if math.isfinite(upper) else None,"censored_rays":sum(ray[s]["upper"] is None for ray in rays for s in ("positive","negative"))}def _quantile(values, fraction):
2 unmodified lines34567874 unmodified lines8384858687888990919293949596971 unmodified line991001011021031041051062 unmodified linesfrom statistics import medianfrom .flatness_stats import quantile_boundsfrom .report_records import METHODS,completed,markdown_table74 unmodified lines]def flatness_ledger(study):"""Provide one evidence link per measured checkpoint, including secondary controls and censored rays."""rows=[]for r in study["runs"]:if "flatness" in r:p=r["flatness"]rows.append([r["stage"],r["phase"],r["seed"],METHODS[r["method"]],_width_stat([p],.5),_spread([p]),_ray_count([p]),f"{p['rms_curvature']:.6g}",f"{p['trace_per_parameter']:+.6g}",f"[All probes](../results/{r['id']}/flatness.json)"])text=["# Flatness at saved checkpoints","Widths are measured in each model’s trainable coordinates. A larger width is flatter at the specified ""training-loss tolerance. A smaller RMS curvature means less local bending. Opposite curvature signs "1 unmodified line"## Registered TinyStories hybrids",hybrid_flatness_table(study["runs"]),"The seed range and directional spread describe variability. The rays at the limit give measurement coverage. ""Compare matching seeds for differences between arms. [Every crossing and paired comparison](hybrid/results.md)","## Secondary checkpoint measurements"]text.append(markdown_table(rows,["Stage","Horizon","Seed","Arm","Width ↑","Middle 50% of directions","Rays at limit / tested","RMS curvature ↓","Signed trace / parameter","Evidence"])if rows else "Awaiting the first saved primary-checkpoint measurement.")return "\n\n".join(text)+"\n"2 unmodified lines345678974 unmodified lines848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651 unmodified line1671681691701711721731741751761772 unmodified linesfrom statistics import medianfrom .flatness_stats import quantile_boundsfrom .records import HORIZONS,RATIOSfrom .report_records import METHODS,completed,markdown_table74 unmodified lines]def all_arm_groups(study):"""Include every registered predictor, hyperparameter and control with explicit coverage denominators."""groups=[]for stage,name in (("stories","TinyStories · all model weights"),("abstracts","Pythia-410M · adapter weights")):ratios=study["context"][stage]["selection"].get("ratios",{})target=HORIZONS[stage]stage_runs=[r for r in study["runs"] if r.get("stage")==stage and completed(r)]measured=[r["score_flatness"] for r in stage_runs if "score_flatness" in r]if len({(p["protocol"],p["probe_windows_sha256"],p["direction_sha256"],p["vocab"]) for p in measured})>1:raise ValueError(f"The output-space comparison for {stage} mixes probes or vocabularies")def line(phase,method,ratio,budget,seeds,label=None):runs=[r for r in stage_runs if r["phase"]==phase and r["method"]==method and r["seed"] in seedsand r["tokens"]==budget and (ratio is None or r["ratio"]==ratio)]widths=[];curvature=[];scores=[]for r in runs:w=r.get("flatness") or r.get("widths",{}).get(str(r.get("steps")))if w and "width" in w:widths.append(w)if "flatness" in r:curvature.append(r["flatness"]["rms_curvature"])if "score_flatness" in r:scores.append(r["score_flatness"])def value(points,formatter):return (formatter(points)+f" ({len(points)}/{len(seeds)})") if points else "Pending"cohort=str(seeds[0]) if len(seeds)==1 else f"{seeds[0]}–{seeds[-1]}"native=value(widths,lambda items:_width_stat(items,.5)) if method!="unigram" else "N/A · no weights"rms=value(curvature,lambda items:f"{median(items):.5g}") if method!="unigram" else "N/A · no weights"return [label or METHODS[method],f"{budget:,}",cohort,native,rms,value(scores,lambda items:_width_stat(items,.5))]one=(0,); confirm=range(1,9); follow=range(21,29)rows=[line("control",m,0.,0,one) for m in ("initial","unigram")]arms={"ce":0.,"trace":ratios.get("trace"),"third":ratios.get("third"),"hessian_norm":.03,"sham":ratios.get("third"),"combined":ratios.get("third")}for m,r in arms.items():if r is not None:rows.append(line("pilot",m,r,target//8,one,METHODS[m]+(f" ({r:.0%})" if r else "")))for m in ("ce","trace","third"):rows.append(line("confirm",m,arms[m],target,confirm,METHODS[m]+" · confirmation"))if stage=="stories":rows.append(line("branch","trunk",.01,target//2,follow))for m in ("adaptive","late","trace","strong","replay","always"):rows.append(line("hybrid",m,.01,target,follow,METHODS[m]+" · hybrid study"))extra=[line("pilot",m,r,target//8,one,f"{METHODS[m]} ({r:.0%})") for m in ("trace","third")for r in RATIOS if r!=arms[m]]for row in stage_runs:if row["phase"]=="diagnostic":extra.append(line("diagnostic",row["method"],row["ratio"],row["tokens"],(row["seed"],),f"{METHODS[row['method']]} ({row['ratio']:.0%}) · excluded precision diagnostic"))groups.append((name,rows,extra))return groupsdef all_arm_tables(study):headers=["Variant","Training targets","Seed cohort","Weight width<br>↑ Wider is flatter","RMS weight curvature<br>↓ Less local bending","Common score width<br>↑ More score tolerance"]tables=[]for name,rows,extra in all_arm_groups(study):tables.extend([f"**{name}**",markdown_table(rows,headers)])tables.append(f"<details><summary>{name} · other pilot strengths and precision diagnostics</summary>\n\n"+markdown_table(extra,headers)+"\n\n</details>")return tablesdef flatness_ledger(study):"""Provide one evidence link per measured checkpoint, including secondary controls and censored rays."""rows=[]for r in study["runs"]:p=r.get("flatness")s=r.get("score_flatness")if p or s:base=f"../results/{r['id']}/"links=([f"[Weight probes]({base}flatness.json)"] if p else [])+([f"[Score probes]({base}score-flatness.json)"] if s else [])rows.append([r["stage"],r["phase"],r["seed"],METHODS[r["method"]],f"{r['ratio']:.0%}",*([_width_stat([p],.5),_spread([p]),_ray_count([p]),f"{p['rms_curvature']:.6g}",f"{p['trace_per_parameter']:+.6g}"] if p else ["N/A" if r["method"]=="unigram" else "Pending"]*5),*([_width_stat([s],.5),_spread([s]),_ray_count([s]),f"{s['mean_directional_curvature']:.6g}"] if s else ["Pending"]*4)," · ".join(links)])text=["# Flatness at saved checkpoints","Widths are measured in each model’s trainable coordinates. A larger width is flatter at the specified ""training-loss tolerance. A smaller RMS curvature means less local bending. Opposite curvature signs "1 unmodified line"## Registered TinyStories hybrids",hybrid_flatness_table(study["runs"]),"The seed range and directional spread describe variability. The rays at the limit give measurement coverage. ""Compare matching seeds for differences between arms. [Every crossing and paired comparison](hybrid/results.md)","## Every variant and baseline","Parentheses give measured / planned seeds. A unigram has only the common score-space measurement. ""[Shared score perturbations](amendments/all-model-flatness.md)",*all_arm_tables(study),"## Per-run checkpoint measurements"]text.append(markdown_table(rows,["Stage","Horizon","Seed","Arm","Strength","Weight width ↑","Weight middle 50%","Weight rays at limit","RMS curvature ↓","Signed trace / parameter","Score width ↑","Score middle 50%","Score rays at limit","Mean score curvature","Evidence"])if rows else "Awaiting the first saved primary-checkpoint measurement.")return "\n\n".join(text)+"\n"
4 unmodified lines567891011259 unmodified lines27127227327427527652 unmodified lines3293303313323333343354 unmodified linesfrom statistics import medianfrom .analysis import _time_matchfrom .flatness_tables import hybrid_flatness_table,primary_flatness_rowsfrom .records import HORIZONSfrom .report_records import METHODS, completed, finite, markdown_table, verdict_text259 unmodified lines"The final seed range shows the smallest and largest seed widths. The middle 50% column gives the medians of ""the within-seed directional quartiles. Spread has no preferred direction. A ray at the search limit supplies a lower bound.",hybrid_flatness_table(study["runs"])])if geometry_tables:detail.extend(geometry_tables)else:52 unmodified lineszero.append([name,*[f"{runs[m]['dev_nll']:.6f}" for m in ("initial","unigram")],*[f"{100*runs[m]['dev_accuracy']:.3f}%" for m in ("initial","unigram")]])if zero:controls+=["**Untrained references · zero training targets**",markdown_table(zero,["Stage","Initial NLL<br>"+NLL.direction,"Unigram NLL<br>"+NLL.direction,"Initial accuracy<br>"+ACCURACY.direction,"Unigram accuracy<br>"+ACCURACY.direction])]detail.append("<details><summary>Squared-Hessian, scrambled-gradient, combined and untrained controls</summary>\n\n"4 unmodified lines567891011259 unmodified lines27127227327427527627727827928028128228328428528652 unmodified lines3393403413423433443454 unmodified linesfrom statistics import medianfrom .analysis import _time_matchfrom .flatness_tables import all_arm_tables,hybrid_flatness_table,primary_flatness_rowsfrom .records import HORIZONSfrom .report_records import METHODS, completed, finite, markdown_table, verdict_text259 unmodified lines"The final seed range shows the smallest and largest seed widths. The middle 50% column gives the medians of ""the within-seed directional quartiles. Spread has no preferred direction. A ray at the search limit supplies a lower bound.",hybrid_flatness_table(study["runs"])])detail.extend(["#### All variants and baselines","Each row uses the same fixed training windows and probe directions within its stage. ""Parentheses give measured / planned seeds for that cell. Targets count next-token examples used for optimizer updates in this study. ""The unigram uses counts from the full training split, and initial Pythia retains its pretrained backbone. ""Compare rows with matching targets and seeds. ""Larger **weight width** means greater tolerance to moving the model’s trainable parameters. ""Larger **common score width** means that all token scores can tolerate a larger shared bias before NLL rises ""by 0.1 nats, measured in RMS logit units. The unigram has zero trainable model weights and shares the score test ""with every neural predictor. Both widths have an unknown relationship to better held-out prediction. ""[All-model measurement design](reports/amendments/all-model-flatness.md)",*all_arm_tables(study)])if geometry_tables:detail.extend(geometry_tables)else:52 unmodified lineszero.append([name,*[f"{runs[m]['dev_nll']:.6f}" for m in ("initial","unigram")],*[f"{100*runs[m]['dev_accuracy']:.3f}%" for m in ("initial","unigram")]])if zero:controls+=["**Zero-update references** · The unigram uses training-split frequencies. Initial Pythia uses its pretrained weights.",markdown_table(zero,["Stage","Initial NLL<br>"+NLL.direction,"Unigram NLL<br>"+NLL.direction,"Initial accuracy<br>"+ACCURACY.direction,"Unigram accuracy<br>"+ACCURACY.direction])]detail.append("<details><summary>Squared-Hessian, scrambled-gradient, combined and untrained controls</summary>\n\n"
407 unmodified lines408409410411412413407 unmodified lines"Individual CUDA kernel durations were not profiled.", "caption")flow.append(_grid(styles,["Corpus","Seed","Cutoff (s)","AdamW NLL (lag s)","Trace NLL (lag s)","Third NLL (lag s)"],nonhost,[82,34,65,98,98,98]))pair_rows = [[STAGES[stage], METHODS.get(base, base), pair["seed"],fmt(pair["third_nll"], 5), fmt(pair["baseline_nll"], 5), fmt(pair["delta"], 5)]for stage, outcome in study["stages"].items()407 unmodified lines408409410411412413414415416417418419420421422423424425407 unmodified lines"Individual CUDA kernel durations were not profiled.", "caption")flow.append(_grid(styles,["Corpus","Seed","Cutoff (s)","AdamW NLL (lag s)","Trace NLL (lag s)","Third NLL (lag s)"],nonhost,[82,34,65,98,98,98]))from .flatness_tables import all_arm_groupsp("Appendix · Flatness by model and reference","heading")p("Each entry gives a median and the measured/planned seed count. A wider interval of permitted weight or ""score displacement is flatter under its corresponding perturbation. Smaller RMS Hessian curvature indicates ""less local bending. Common score width uses identical token-level logit biases for every predictor within a ""stage, including the unigram. The retained strength-search and diagnostic measurements follow each stage. "f"{_link(REPOSITORY + '/blob/main/reports/amendments/all-model-flatness.md','Common measurement protocol')} · "f"{_link(REPOSITORY + '/blob/main/reports/flatness.md','Per-run evidence')}")for name,main_arms,other_arms in all_arm_groups(study):p(name,"subheading")flow.append(_grid(styles,["Variant","Training targets","Seeds","Weight width ↑","RMS curvature ↓","Score width ↑"],main_arms+other_arms,[124,71,45,79,79,78]))pair_rows = [[STAGES[stage], METHODS.get(base, base), pair["seed"],fmt(pair["third_nll"], 5), fmt(pair["baseline_nll"], 5), fmt(pair["delta"], 5)]for stage, outcome in study["stages"].items()
192 unmodified lines1931941951961971983 unmodified lines202203204205206207208192 unmodified linesrecord["events"].append({"step":record["steps"],"tokens":record["tokens"],"train_seconds":record["train_seconds"],"width":diagnostic["width"]["width"],"checkpoint_rms":diagnostic["curvature"]["rms_curvature"],"checkpoint_signed_trace":diagnostic["curvature"]["trace_per_parameter"]})record["samples"] = read_lines(folder / "samples.jsonl")return record3 unmodified linesif len(events) <= maximum:return eventskeep = {round(i * (len(events) - 1) / (maximum - 1)) for i in range(maximum)}keep.update(i for i, event in enumerate(events) if finite(event.get("dev_nll")) or "width" in event)return [events[i] for i in sorted(keep)]192 unmodified lines1931941951961971981992002012022032042052062072083 unmodified lines212213214215216217218192 unmodified linesrecord["events"].append({"step":record["steps"],"tokens":record["tokens"],"train_seconds":record["train_seconds"],"width":diagnostic["width"]["width"],"checkpoint_rms":diagnostic["curvature"]["rms_curvature"],"checkpoint_signed_trace":diagnostic["curvature"]["trace_per_parameter"]})output=read_json(folder/"score-flatness.json")if output:if (output["run"]!=folder.name or output["checkpoint_file_sha256"]!=record.get("weights_sha256")or output["split"]!="train" or output["data_manifest_sha256"]!=record.get("data_manifest_sha256")):raise ValueError(f"Output-score geometry provenance differs for {folder.name}")record["score_flatness"]={**compact_width(output["score"]),"probe_windows_sha256":output["probe_windows_sha256"],"protocol":output["protocol"]}record["events"].append({"step":record["steps"],"tokens":record["tokens"],"train_seconds":record["train_seconds"],"score_width":output["score"]["width"],"score_curvature":output["score"]["mean_directional_curvature"]})record["samples"] = read_lines(folder / "samples.jsonl")return record3 unmodified linesif len(events) <= maximum:return eventskeep = {round(i * (len(events) - 1) / (maximum - 1)) for i in range(maximum)}keep.update(i for i, event in enumerate(events) if finite(event.get("dev_nll")) or "width" in event or "score_width" in event)return [events[i] for i in sorted(keep)]
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748"""A shared output-space perturbation applies to a causal LM or an empirical unigram predictor."""
import hashlibfrom statistics import mean
import numpy as npimport torch
from .flatness_stats import width_statisticsfrom .width import crossingfrom .windows import generator
def bias_response(positive_mass,mean_target_sign): """Factor the log-softmax partition into the positive and negative sign groups on each target.""" mass=np.clip(positive_mass,0.,1.) with np.errstate(divide="ignore"): plus,minus=np.log(mass),np.log1p(-mass) def change(radius): return float(np.logaddexp(plus+radius,minus-radius).mean()-radius*mean_target_sign) return change,float(np.mean(4*mass*(1-mass)))
@torch.no_grad()def score_width(logits,targets): """Use exactly the same vocabulary signs for every predictor and RMS-logit units for its radius.""" vocab=logits.shape[-1] target=targets.reshape(-1) logp=logits.reshape(-1,vocab).double().log_softmax(-1) if logp.shape[0] not in (1,target.numel()): raise ValueError("A score probe requires one distribution per target or a single shared unigram") signs=torch.ones((vocab,16),dtype=torch.int8) for i in range(16): permutation=torch.randperm(vocab,generator=generator("cpu",88731,i,991)) signs[permutation[:vocab//2],i]=-1 digest=hashlib.sha256(signs.numpy().tobytes()).hexdigest() signs=signs.to(logp.device) plus=(logp.exp() @ (signs>0).double()).cpu().numpy() average_sign=signs[target].double().mean(0).cpu().tolist() selected=logp[0,target] if logp.shape[0]==1 else logp.gather(1,target[:,None]).squeeze(1) rays=[] for i,s in enumerate(average_sign): change,curvature=bias_response(plus[:,i],s) rays.append({"direction":i,"positive":crossing(change,.1),"negative":crossing(lambda r:change(-r),.1), "curvature":curvature}) return {"baseline_nll":float(-selected.mean()),"delta_nll":.1,"units":"RMS logit displacement", "vocab":vocab,"targets":target.numel(),"direction_sha256":digest,**width_statistics(rays), "mean_directional_curvature":mean(ray["curvature"] for ray in rays)}123456789101152 unmodified lines6465666768697071727374757677"""Directional width of an unregularized loss level set in the original weight coordinates."""import mathimport statisticsimport timeimport torchfrom .models import trainable_digestfrom .penalties import random_signsfrom .windows import generator52 unmodified linesmodule.training = modeif trainable_digest(model)!=digest:raise RuntimeError("Width measurement changed the training weights")lows,highs = [],[]for row in rays:bounds = [row["positive"],row["negative"]]lows.append(sum(x["lower"] for x in bounds))highs.append(sum(x["upper"] if x["upper"] is not None else math.inf for x in bounds))lower,upper = statistics.median(lows),statistics.median(highs)return {"baseline_nll":base,"delta_nll":.1,"directions":rays,"width_lower":lower,"width_upper":upper if math.isfinite(upper) else None,"width":(lower+upper)/2 if math.isfinite(upper) else None,"censored_rays":sum(ray[s]["upper"] is None for ray in rays for s in ("positive","negative")),"weights_sha256":digest,"weights_restored":True,"seconds":time.perf_counter()-started}123456789101152 unmodified lines6465666768"""Directional width of an unregularized loss level set in the original weight coordinates."""import mathimport timeimport torchfrom .flatness_stats import width_statisticsfrom .models import trainable_digestfrom .penalties import random_signsfrom .windows import generator52 unmodified linesmodule.training = modeif trainable_digest(model)!=digest:raise RuntimeError("Width measurement changed the training weights")return {"baseline_nll":base,"delta_nll":.1,**width_statistics(rays),"weights_sha256":digest,"weights_restored":True,"seconds":time.perf_counter()-started}
51 unmodified lines52535451 unmodified linesarm["flatness"]["probe_windows_sha256"]="different"with pytest.raises(ValueError,match="same probes"):primary_flatness_rows(pairs)51 unmodified lines52535455565758596061626364656667686970717273747576777879808182838485868788899091929394959651 unmodified linesarm["flatness"]["probe_windows_sha256"]="different"with pytest.raises(ValueError,match="same probes"):primary_flatness_rows(pairs)def test_common_logit_probe_matches_direct_softmax_and_its_second_derivative():from thirdloss.score_flatness import bias_responselogits=torch.tensor([[.1,.2,-.3,1.],[-1.,2.,.7,-.3]],dtype=torch.float64)target=torch.tensor([1,0])signs=torch.tensor([1.,-1.,-1.,1.],dtype=torch.float64)plus=logits.softmax(-1)[:,signs>0].sum(-1).numpy()loss=torch.nn.functional.cross_entropy(logits,target)delta,curvature=bias_response(plus,float(signs[target].mean()))for r in (-1.,.5):assert delta(r)==pytest.approx(float(torch.nn.functional.cross_entropy(logits+r*signs,target)-loss))radius=torch.tensor(0.,dtype=torch.float64,requires_grad=True)derivative=torch.autograd.grad(torch.nn.functional.cross_entropy(logits+radius*signs,target),radius,create_graph=True)[0]assert curvature==pytest.approx(float(torch.autograd.grad(derivative,radius)[0]))def test_unigram_uses_identical_score_coordinates_to_a_constant_neural_predictor():from thirdloss.score_flatness import score_widthlogits=torch.tensor([[0.,.25,.5,-.5]],dtype=torch.float64)targets=torch.tensor([3,1,3,2,1])table=score_width(logits,targets)network=score_width(logits.expand(targets.numel(),-1)+13,targets)assert table["width"]==network["width"] and table["direction_sha256"]==network["direction_sha256"]assert table["mean_directional_curvature"]==pytest.approx(network["mean_directional_curvature"])def test_all_arm_table_keeps_weightless_reference_and_every_control(tmp_path):from thirdloss.flatness_tables import all_arm_tablesfrom thirdloss.report_records import study_snapshotstudy=study_snapshot(tmp_path)for stage in study["context"].values():stage["selection"]={"ratios":{"trace":.01,"third":.03}}point={"width":.9,"width_lower":.8999,"width_upper":.9001,"direction_sha256":"same","protocol":"scores","probe_windows_sha256":"same","vocab":4096}study["runs"]=[{"stage":"stories","phase":"control","method":"unigram","status":"complete","ratio":0.,"seed":0,"tokens":0,"score_flatness":point}]text="\n".join(all_arm_tables(study))assert "| Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.900 (1/1) |" in textassert all(name in text for name in ("Squared Hessian norm","Randomized gradient signs","Trace + third derivative","Cross-seed replay","Shared trace checkpoint","Always-on hybrid"))assert "Hessian trace (10%)" in text and "Third derivative (1%)" in text
README.md+67-1
logs/all-model-flatness-release.logAdded+1
logs/all-model-flatness-render.logAdded+1
logs/checkpoint-flatness-20261125T163331Z-stderr.log+64
logs/checkpoint-flatness-20261125T163331Z.log+2
publication.json+97-77
research/README.md+67-1
research/docs/explorer.js+2
research/docs/hub/archive.md+67-1
research/docs/index.html+2
research/docs/runbook.md+1-1
research/docs/study.json
research/reports/flatness.md+75-8
research/reports/paper.pdf
research/reports/planned-runs.md+2
research/reports/progress.md+1-1
research/results/abstracts-pilot-s00-trace-r01-fp64/flatness.jsonAdded+250
research/src/thirdloss/checkpoint_flatness.py+115-58
research/src/thirdloss/cli.py+3-2
research/src/thirdloss/flatness_stats.py+14
research/src/thirdloss/flatness_tables.py+79-8
research/src/thirdloss/readme_comparisons.py+12-2
research/src/thirdloss/report_paper.py+12
research/src/thirdloss/report_records.py+11-1
research/src/thirdloss/score_flatness.pyAdded+48
research/src/thirdloss/width.py+2-11
research/tests/test_flatness.py+42