Measure comparable flatness for abstracts-control-s00-initial-r00
Browse filesFiles changed (20)
- README.md+5-3
- logs/adapter-geometry-20261125T172121Z-stderr.log+2
- logs/adapter-geometry-20261125T172121Z.log+2
- logs/dashboard-20261125T165607Z-stderr.log+22
- logs/study-20261125T165454Z-hybrid-stderr.log+59
- publication.json+80-60
- research/README.md+11-3
- research/docs/hub/archive.md+5-3
- research/docs/study.json
- research/reports/experiments/abstracts-control-s00-initial-r00/experiment.md+12
- research/reports/flatness.md+2-1
- research/reports/paper.pdf
- research/reports/progress.md+3-3
- research/results/abstracts-control-s00-initial-r00/flatness.jsonAdded+254
- research/results/abstracts-control-s00-initial-r00/score-flatness.jsonAdded+221
- research/src/thirdloss/checkpoint_flatness.py+7-4
- research/src/thirdloss/flatness_tables.py+12-2
- research/src/thirdloss/readme_comparisons.py+1-1
- research/src/thirdloss/report_records.py+2-1
- research/tests/test_flatness.py+28
21 unmodified lines222324252526272893 unmodified lines122123124125125126127128134 unmodified lines26326426526626626726826927021 unmodified lines
Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.
[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness statistics](#flatness-of-the-trained-checkpoints) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness by variant and baseline](#all-variants-and-baselines) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)
## Side-by-side comparisons
93 unmodified lines
| 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 || Initial checkpoint | 0 | 0 | 21.890 (1/1) | 0.69058 (1/1) | 1.086 (1/1) || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) || 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 |134 unmodified lines| Literature, preregistration, raw observations and reviews | [Reports](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/reports) · [Raw results](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/results) || Timestamped training output, full prompts and completions, operator transcripts | [Log archive](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/logs) || Fitted models, model cards, optimizer moments, data cursor and random state | [Full-weight models](https://huggingface.co/BurnyCoder/thirdloss-stories) · [Pythia adapters](https://huggingface.co/BurnyCoder/thirdloss-pythia-410m-adapters) · [Pinned pretrained backbone](https://huggingface.co/EleutherAI/pythia-410m/tree/9879c9b5f8bea9051dcb0e68dff21493d67e9d4f) || Prepared training and evaluation data, tokenizers and overlap audits | [TinyStories](https://huggingface.co/datasets/BurnyCoder/thirdloss-tinystories-tokens) · [arXiv abstracts](https://huggingface.co/datasets/BurnyCoder/thirdloss-arxiv-abstracts-2024-tokens) || Prepared training and evaluation data, tokenizers and overlap audits | [TinyStories](https://huggingface.co/datasets/BurnyCoder/thirdloss-tinystories-tokens) · [arXiv abstracts](https://huggingface.co/datasets/BurnyCoder/thirdloss-arxiv-abstracts-2024) |
From the research checkout, `uv run --locked thirdloss study --with-hybrid --with-flatness` reproduces both original stages, the hybrid comparisons and the weight- and score-space measurements. [Installation, data preparation and checkpoint loading](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/docs/runbook.md)
The publication receipt binds the Git commit to the verified file hashes across the collection. Run `uv run thirdloss audit-hub` from that checkout to independently compare the published objects. Log files are snapshots at publication time. Operational transcripts redact transport credentials and local account paths. [File digests and Git revision](publication.json)12
Loading weights: 0%| | 0/292 [00:00<?, ?it/s]
Loading weights: 3%|3 | 9/292 [00:00<00:03, 80.71it/s]
Loading weights: 6%|6 | 18/292 [00:00<00:03, 70.97it/s]
Loading weights: 9%|8 | 26/292 [00:00<00:09, 28.06it/s]
Loading weights: 11%|# | 31/292 [00:00<00:09, 26.22it/s]
Loading weights: 13%|#3 | 38/292 [00:01<00:08, 29.15it/s]
Loading weights: 15%|#4 | 43/292 [00:01<00:07, 31.95it/s]
Loading weights: 16%|#6 | 47/292 [00:01<00:07, 30.76it/s]
Loading weights: 18%|#8 | 54/292 [00:01<00:06, 35.76it/s]
Loading weights: 20%|#9 | 58/292 [00:01<00:08, 26.57it/s]
Loading weights: 22%|##1 | 63/292 [00:01<00:07, 30.05it/s]
Loading weights: 23%|##3 | 68/292 [00:02<00:08, 27.45it/s]
Loading weights: 25%|##5 | 74/292 [00:02<00:07, 31.14it/s]
Loading weights: 27%|##7 | 80/292 [00:02<00:06, 33.66it/s]
Loading weights: 29%|##8 | 84/292 [00:02<00:06, 33.37it/s]
Loading weights: 30%|### | 88/292 [00:02<00:06, 33.07it/s]
Loading weights: 32%|###1 | 92/292 [00:02<00:07, 25.44it/s]
Loading weights: 33%|###2 | 95/292 [00:03<00:08, 23.80it/s]
Loading weights: 36%|###6 | 106/292 [00:03<00:05, 32.17it/s]
Loading weights: 39%|###9 | 114/292 [00:03<00:04, 40.31it/s]
Loading weights: 41%|#### | 119/292 [00:03<00:04, 39.46it/s]
Loading weights: 43%|####3 | 126/292 [00:03<00:04, 36.96it/s]
Loading weights: 45%|####4 | 130/292 [00:04<00:04, 32.58it/s]
Loading weights: 46%|####5 | 134/292 [00:04<00:05, 28.74it/s]
Loading weights: 47%|####7 | 138/292 [00:04<00:07, 21.86it/s]
Loading weights: 50%|##### | 147/292 [00:04<00:04, 32.31it/s]
Loading weights: 52%|#####2 | 152/292 [00:04<00:04, 31.69it/s]
Loading weights: 53%|#####3 | 156/292 [00:05<00:05, 26.89it/s]
Loading weights: 55%|#####5 | 161/292 [00:05<00:05, 22.85it/s]
Loading weights: 59%|#####8 | 171/292 [00:05<00:03, 34.84it/s]
Loading weights: 60%|###### | 176/292 [00:05<00:03, 31.75it/s]
Loading weights: 63%|######2 | 183/292 [00:05<00:02, 37.71it/s]
Loading weights: 64%|######4 | 188/292 [00:05<00:03, 32.51it/s]
Loading weights: 66%|######5 | 192/292 [00:06<00:04, 23.76it/s]
Loading weights: 67%|######7 | 196/292 [00:06<00:03, 25.44it/s]
Loading weights: 72%|#######1 | 209/292 [00:06<00:02, 35.92it/s]
Loading weights: 75%|#######5 | 219/292 [00:06<00:01, 43.10it/s]
Loading weights: 77%|#######6 | 224/292 [00:06<00:01, 44.12it/s]
Loading weights: 78%|#######8 | 229/292 [00:07<00:01, 40.90it/s]
Loading weights: 80%|######## | 234/292 [00:07<00:01, 33.65it/s]
Loading weights: 82%|########1 | 238/292 [00:07<00:01, 33.86it/s]
Loading weights: 85%|########4 | 247/292 [00:07<00:01, 40.87it/s]
Loading weights: 86%|########6 | 252/292 [00:07<00:00, 40.15it/s]
Loading weights: 88%|########8 | 257/292 [00:07<00:01, 31.22it/s]
Loading weights: 90%|########9 | 262/292 [00:08<00:00, 32.01it/s]
Loading weights: 91%|#########1| 266/292 [00:08<00:01, 25.83it/s]
Loading weights: 93%|#########3| 273/292 [00:08<00:00, 32.02it/s]
Loading weights: 96%|#########5| 279/292 [00:08<00:00, 34.25it/s]
Loading weights: 97%|#########6| 283/292 [00:08<00:00, 25.48it/s]
Loading weights: 100%|##########| 292/292 [00:08<00:00, 32.72it/s]
findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.1232026-11-25T17:21:21+00:00 Reserved time for existing Pythia and unigram comparisons after stories-branch-s24-trunk-r01
2026-11-25T17:24:16+00:00 Previous geometry published. Measuring existing adapter checkpoints.
2026-11-25T17:24:23+00:00 Measuring flatness for abstracts-control-s00-initial-r00141 unmodified lines142143144145146147148149150151152153154155156157158159160161162163164165166141 unmodified lines127.0.0.1 - - [25/Nov/2026 18:23:43] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:23:54] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:24:04] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:24:15] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:24:26] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:24:36] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:24:47] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:24:57] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:25:08] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:25:19] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:25:29] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:25:40] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:25:51] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:26:01] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:26:12] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:26:23] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:26:33] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:26:44] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:26:55] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:27:06] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:27:17] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:27:27] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:27:38] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:27:49] "GET /live.json HTTP/1.1" 200 -
127.0.0.1 - - [25/Nov/2026 18:27:59] "GET /live.json HTTP/1.1" 200 -2432 unmodified lines243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942432 unmodified lines
Validating : ##########| 100%
: 100%|##########| 686kB / 686kB
findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
Processing Files (0 / 0) : | | 0.00B / 0.00B
New Data Upload : | | 0.00B / 0.00B [A
: 84%|########4 | 579kB / 686kB [A[A
: 84%|########4 | 579kB / 686kB [A[A
Processing Files (0 / 1) : 84%|########4 | 579kB / 686kB, ???B/s
: 84%|########4 | 579kB / 686kB [A[A
: 84%|########4 | 579kB / 686kB [A[A
: 84%|########4 | 579kB / 686kB [A[A
: 84%|########4 | 579kB / 686kB [A[A
: 84%|########4 | 579kB / 686kB [A[A
: 84%|########4 | 579kB / 686kB [A[A
: 84%|########4 | 579kB / 686kB [A[A
: 100%|##########| 686kB / 686kB [A[A
Processing Files (1 / 1) : 100%|##########| 686kB / 686kB, 63.5kB/s
New Data Upload : 100%|##########| 107kB / 107kB, 10.4kB/s [A
: 100%|##########| 686kB / 686kB [A[A
: 100%|##########| 686kB / 686kB [A[A
: 100%|##########| 686kB / 686kB [A[A
: 100%|##########| 686kB / 686kB [A[A
: 100%|##########| 686kB / 686kB [A[A
: 100%|##########| 686kB / 686kB [A[A
Validating : | 0% [A[A[A
Validating : | 0% [A[A[A
: 100%|##########| 686kB / 686kB [A[A
Validating : | 0% [A[A[A
: 100%|##########| 686kB / 686kB [A[A
Validating : ##########| 100% [A[A[A
: 100%|##########| 686kB / 686kB [A[A
Validating : ##########| 100% [A[A[A
Processing Files (1 / 1) : 100%|##########| 686kB / 686kB, 57.8kB/s
New Data Upload : 100%|##########| 107kB / 107kB, 9.45kB/s
Validating : ##########| 100%
: 100%|##########| 686kB / 686kB 123345684 unmodified lines919293949596949596979899991001011024 unmodified lines107108109110111112110111112113114115116117118119120121122123124125311 unmodified lines4374384394304404414424431440 unmodified lines18841885188618771878187918871888188918901891189256 unmodified lines1949195019511942194319441952195319541955195619471948194919571958195919601961196251 unmodified lines201420152016200720082009201720182019202020212022411 unmodified lines24342435243624272428242924372438243924402441244276 unmodified lines25192520252125122513251425222523252425252526252746 unmodified lines25742575257625672568256925772578257925802581258216 unmodified lines25992600260125922593259426022603260426052606260721 unmodified lines262926302631262226232624263226332634263526362637441 unmodified lines30793080308130723073307430823083308430853086308711 unmodified lines30993100310130923093309431023103310431053106310711 unmodified lines311931203121311231133122312331243125312631 unmodified lines3158315931603161316231633164316531663167316831693170317131723173317431753176317731781895 unmodified lines50745075507650575058505950775078507950805081508221 unmodified lines51045105510650875088508951075108510951105111511251 unmodified lines51645165516651475148514951675168516951705171517216 unmodified lines51895190519151725173517451925193519451955196519746 unmodified lines52445245524652275228522952475248524952505251525275 unmodified lines532853295330531153315332{ "collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378", "git_revision": "2e338f1016f98005c874a33a1e93d27b89af614d", "git_revision": "73a958eba7d0bae98cc7813c8408fb75019b45eb", "repositories": { "BurnyCoder/thirdloss-arxiv-abstracts-2024": { "files": {84 unmodified lines "size": 9809 }, "study.json": { "git_blob": "aff14536c15451d99072dbd0f8fab45d6c0d66f3", "sha256": "60e55b7ac51d9df36cdd9127473f24e60b0c31ba3bbbb8ff0aa86ef8e9b55d86", "size": 2758554 "git_blob": "c4b2f31b27abf2d2cc526470968d8eb68fc13b14", "sha256": "8f8efdddfaa40a8d134d9c24844870db1d6b6c77d2af9cafa4e11e0ccab08eaa", "size": 2760137 } }, "revision": "9ea753d61ede4396f7d0c5a244c6bef4d0f0ce02", "revision": "26bf589a1608f591776fac27490771c87ffee19f", "type": "space" }, "BurnyCoder/thirdloss-pythia-410m-adapters": {4 unmodified lines "size": 713 }, "runs/abstracts-control-s00-initial-r00/README.md": { "git_blob": "fe4f3d755d1966cdcf179ed199d463c55e9fcaac", "sha256": "fb662f9371556e46745354fc78bd235f360931dc4be71fdc0962f831dd1c6a17", "size": 1524 "git_blob": "131b2d5686524f7e1cc52d4f9171e10e093cc504", "sha256": "dc5941966f6e5d3385966333452f4041cb6ef3da48efb24b7287dfe1fd61f6ff", "size": 1864 }, "runs/abstracts-control-s00-initial-r00/flatness.json": { "git_blob": "6f1a0dad0035af759a93c9e7672681f6eedd867a", "sha256": "31accdffdd92398b163ba9107ad8c8b004975e6658f54143e089409424b3db10", "size": 6005 }, "runs/abstracts-control-s00-initial-r00/score-flatness.json": { "git_blob": "57cc25f79ae5921f9a4ff161bf7bc65ac8ea2885", "sha256": "03fe0a77b6c9e8eb26ea01e4e9d43a6b66c58be4ccce4c8d868f6b748806e4c2", "size": 5607 }, "runs/abstracts-control-s00-initial-r00/training_summary.json": { "git_blob": "d2fbb962a90be6ad994c95a58218d3d6ff37b659",311 unmodified lines "size": 1467 } }, "revision": "d0ea03bda5bd559a54598d07d51c0e263bf2ff65", "revision": "1804035b4b6a5d44df879a1436416ba7bceb8f81", "type": "model" }, "BurnyCoder/thirdloss-stories": {1440 unmodified lines "BurnyCoder/thirdloss-study": { "files": { "README.md": { "git_blob": "ea4ab5d35af37d343691787cf191619dafa17222", "sha256": "464f673dfd9835dbf6a181a6ecb1007171cba6b12875c1a0fadb0f02124a8a0d", "size": 23816 "git_blob": "7e54cb98425f44beba08621b5e311c0d11f29ac1", "sha256": "9eeac89b01d24aebee7523ece17a0d01543c03314d3a0278402a6254211c9f5d", "size": 24165 }, "logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": { "git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",56 unmodified lines "size": 3698 }, "logs/adapter-geometry-20261125T172121Z-stderr.log": { "git_blob": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "size": 0 "git_blob": "d2ffce252916d6583d0dfb7ba7dae778b93d5589", "sha256": "c9132bf0e3c1e88cb540f5155e9b33d62e9530b3011d8ac7c9d622122f0dbd3a", "size": 3403 }, "logs/adapter-geometry-20261125T172121Z.log": { "git_blob": "ad6f1a76ba67fff2980bc8ca368f8948f953fb2f", "sha256": "6ed2645208e430dba96440d943098164ebe46e65c8b650836d26b3c2e3add044", "size": 120 "git_blob": "840ee4212c4a06dcb444049e74d2be5273390f33", "sha256": "b5bc6e42cba670823ca556ac27d6597a1d240b99c116419b5a0191f1501e1543", "size": 300 }, "logs/adapter-initialization-check.log": { "git_blob": "f955f425d0001657d12be8c2acab9bf2c6056212",51 unmodified lines "size": 46 }, "logs/dashboard-20261125T165607Z-stderr.log": { "git_blob": "476cccf63909ecada6675498127621791794695b", "sha256": "fa53d3f5ac615b7f514e3e170379e8acef3d90ca8f5ca5e641965d3b7aeddda1", "size": 10076 "git_blob": "e7b5dbffbb7e47bebb2b234cde53a5c52a80ca43", "sha256": "dd9ac32c853cd2652f9edd91251ef1a93897e69ddc45521cc12936d9d7cf3f97", "size": 11616 }, "logs/dashboard-20261125T165607Z.log": { "git_blob": "2b28574b8ec0a2c690c454dd9457dab8668a315d",411 unmodified lines "size": 258241 }, "logs/study-20261125T165454Z-hybrid-stderr.log": { "git_blob": "78c5646fd524048deb6587fc19283e2e8d3b3188", "sha256": "9de792bd18646c28284617f9a457a1a9a5b99c232c263814249f02ee711c373e", "size": 117880 "git_blob": "67cd7fedf8ee2449cb5bea57ec5869b4dc6c09ef", "sha256": "4d6e488bb942c9c0ea96bb9d1ef183867e168b70469af3226ea091bc9d5b77e1", "size": 120600 }, "logs/transient-outage-recovery.log": { "git_blob": "e442d6a630c2557f3608a8db31739af52ecfba2f",76 unmodified lines "size": 786 }, "research/README.md": { "git_blob": "d71440fb4d765bcd334e3d47f76f4f4c3e546563", "sha256": "9603951afa2e54866b0fd2e233223c7b00d56af389b62c4e8aedb8c03d08969c", "size": 37353 "git_blob": "b1385af72501d7265fe6ccf45f47177ee16eedc7", "sha256": "7bb1d589a7a308950e7307cfba3a1d6da4523fdea52ca5ae68e9b735e6e8caa7", "size": 37582 }, "research/docs/data.md": { "git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",46 unmodified lines "size": 1583 }, "research/docs/hub/archive.md": { "git_blob": "ea4ab5d35af37d343691787cf191619dafa17222", "sha256": "464f673dfd9835dbf6a181a6ecb1007171cba6b12875c1a0fadb0f02124a8a0d", "size": 23816 "git_blob": "7e54cb98425f44beba08621b5e311c0d11f29ac1", "sha256": "9eeac89b01d24aebee7523ece17a0d01543c03314d3a0278402a6254211c9f5d", "size": 24165 }, "research/docs/hub/space.md": { "git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",16 unmodified lines "size": 10646 }, "research/docs/study.json": { "git_blob": "aff14536c15451d99072dbd0f8fab45d6c0d66f3", "sha256": "60e55b7ac51d9df36cdd9127473f24e60b0c31ba3bbbb8ff0aa86ef8e9b55d86", "size": 2758554 "git_blob": "c4b2f31b27abf2d2cc526470968d8eb68fc13b14", "sha256": "8f8efdddfaa40a8d134d9c24844870db1d6b6c77d2af9cafa4e11e0ccab08eaa", "size": 2760137 }, "research/docs/third-derivative-penalty.md": { "git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",21 unmodified lines "size": 3982 }, "research/reports/experiments/abstracts-control-s00-initial-r00/experiment.md": { "git_blob": "19b3a1eea2c5476e7566640a4a984dd60493b3dc", "sha256": "175000d3c2d2cf2f013084edb9f45365d88cdbb27eb123a5f649d7a9ef6408eb", "size": 2672 "git_blob": "6a5b6a4f6334a7d4a6bae9c2855cf9315add81d2", "sha256": "266af20581b27d9088b94e5fadf5987b036e2c1d8e510fa7560b7f4a6dfe9106", "size": 3352 }, "research/reports/experiments/abstracts-control-s00-initial-r00/learnings.md": { "git_blob": "9cf4415c993aedb00d271130bc3cda80298b9e02",441 unmodified lines "size": 236 }, "research/reports/flatness.md": { "git_blob": "06dbc52bad739d24378099957057c909e74a018f", "sha256": "694370c7d651f227af213eee15f3cfaefe3b2b17a155237529186b94b5431b06", "size": 17194 "git_blob": "bf06b475214c8f13bd13384c89a4fb7d0a7381bc", "sha256": "7018b145a69705c80ffdb8e89bd9d4eb5484d6aa6f3a2a32cbc2349676e94a8f", "size": 17525 }, "research/reports/hybrid/preregistration.md": { "git_blob": "0729e47d30933f401253bf21feac164c0217f7b4",11 unmodified lines "size": 7290 }, "research/reports/paper.pdf": { "git_blob": "ebe2288a4500710d49c8c2edb323ed9105bd9378", "sha256": "40c0fcb965303c80ee77897ebcb62e176f1e04b89a8d9dcd00fa716ba214cb8a", "size": 685615 "git_blob": "62e5afc7c3c17d1a60c165a7a845311005519297", "sha256": "d9572f1456c77daa721c41220118611bd8b3be5887dc6b2d5852433918f37e77", "size": 685633 }, "research/reports/plan.md": { "git_blob": "4eae157557dd5acb8376680b5bdcdf1a5ba71e69",11 unmodified lines "size": 5234 }, "research/reports/progress.md": { "git_blob": "515ea35fb3e90012dbbab55b7b501d8c4fde2be1", "sha256": "6bc313804a713959601b5a4abd59258ea80f25acfcad605be72d04893e5a3f25", "git_blob": "168341410244eba7218073fce67c5030f3aa16ac", "sha256": "b998d976e94267c788411182046f6c42779114ca302c511471a0c63e9e4a58bf", "size": 3300 }, "research/reports/reviews/adapter-verification.md": {31 unmodified lines "sha256": "8a81a3b4d7d6f88b2eadea280f0c7621074735dff982c55b77810d9922131554", "size": 2688 }, "research/results/abstracts-control-s00-initial-r00/flatness.json": { "git_blob": "6f1a0dad0035af759a93c9e7672681f6eedd867a", "sha256": "31accdffdd92398b163ba9107ad8c8b004975e6658f54143e089409424b3db10", "size": 6005 }, "research/results/abstracts-control-s00-initial-r00/samples.jsonl": { "git_blob": "00b49fd150619f16c09b93b46bfaad27a9e81ff2", "sha256": "daeb3971e0d06299793d423dacc6bba2a7b4c0d44d6a4e235442f8589ec63653", "size": 3024 }, "research/results/abstracts-control-s00-initial-r00/score-flatness.json": { "git_blob": "57cc25f79ae5921f9a4ff161bf7bc65ac8ea2885", "sha256": "03fe0a77b6c9e8eb26ea01e4e9d43a6b66c58be4ccce4c8d868f6b748806e4c2", "size": 5607 }, "research/results/abstracts-control-s00-initial-r00/summary.json": { "git_blob": "d2fbb962a90be6ad994c95a58218d3d6ff37b659", "sha256": "9517fd5a2d4c925a6460b465177afce584a485c9f4811846917942554e2a794b",1895 unmodified lines "size": 9767 }, "research/src/thirdloss/checkpoint_flatness.py": { "git_blob": "9ab5da02f241e3c987cef29c668b056ad115e6b2", "sha256": "c17dae2fef3fb7b9730c4bdcd2d3de4462160e0d00a5478b472c6080e5b4db0f", "size": 10026 "git_blob": "5f0e784a67742fa09631d1061bbcb0d0967afeda", "sha256": "31a901a8860542ea809dda2e1984fb18eaa8b6a23edbd133b2fc36c142f58888", "size": 10144 }, "research/src/thirdloss/cli.py": { "git_blob": "fa11ccb908839f87c184b6b2673880828b468ebd",21 unmodified lines "size": 2394 }, "research/src/thirdloss/flatness_tables.py": { "git_blob": "fd0034ff1de2201f109957b89aae789e06a20395", "sha256": "8a6e89f355766b65d5c30e8b95d98ed3faa9c69a341bda0762322e0b2ac79235", "size": 11782 "git_blob": "8acb8da7496468c1bb07becf3c5c024bf801c46f", "sha256": "be2e3882cced0a44dbeeec92eca4963ed1522d6861e3c235426a93ec1ed839b0", "size": 12370 }, "research/src/thirdloss/hub_archive.py": { "git_blob": "33fbff718fcc683b68d4b3f75900b70036134238",51 unmodified lines "size": 11974 }, "research/src/thirdloss/readme_comparisons.py": { "git_blob": "c66dbe09e167a56393697607b5c824fc000aca92", "sha256": "5f8f64b22498e9a18160535130c1bdfca6b2c16a8bc9d2f7cab9831c408bca88", "size": 23696 "git_blob": "ac0ca85e9531d2bbffcbdca43bdf06096d7bda4d", "sha256": "136e65d1b2facc477502f8ed65ac0caf90902dfe6d7ffa088d42613748a50d7a", "size": 23700 }, "research/src/thirdloss/records.py": { "git_blob": "a800de00d42944f13a89d8d2f91ce9b2103bbd45",16 unmodified lines "size": 36366 }, "research/src/thirdloss/report_records.py": { "git_blob": "63fb6adff6bb01d15fcb12841f3e299c5364ff4a", "sha256": "dec67007c3338c62f6479c9bd6de50a7db9688261bdfaab702664608381bda53", "size": 16009 "git_blob": "38e9dc08b01978b3c1c3491b556e96b7b65bc1ee", "sha256": "9bb8307332048f547f81c09e21b07a6d7dc308910eb6eb38a92ea018f6b012f6", "size": 16138 }, "research/src/thirdloss/reporting.py": { "git_blob": "ca5ebd108e5ae68dfa30754d98f35e70fc973edf",46 unmodified lines "size": 16607 }, "research/tests/test_flatness.py": { "git_blob": "5a624f1352171014f1b9dcc12e51f07bc02da0e5", "sha256": "f98fffc8ff5751a9d3bef7d9a79a73e00c6549d0f3d076800f26dca9962e3d09", "size": 7636 "git_blob": "cbeb22cb91a0b7949d2c2cfc127bda649573c92c", "sha256": "325b52d4cbbf537f8518342f511bbc737ad66fb288eb0897f08d13bc96e1af22", "size": 9235 }, "research/tests/test_hub_archive.py": { "git_blob": "32e45b399f8c49e880dcca18e4d9daa8c5321515",75 unmodified lines "type": "dataset" } }, "verified_at": "2026-11-25T17:24:05+00:00" "verified_at": "2026-11-25T17:28:06+00:00"}18 unmodified lines1920212222232425139 unmodified lines165166167168168169170171148 unmodified lines32032132232332332432532632732832933033133233333418 unmodified lines
Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.
[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness statistics](#flatness-of-the-trained-checkpoints) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](reports/summary.md)[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness by variant and baseline](#all-variants-and-baselines) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](reports/summary.md)
<!-- READOUT:END -->
139 unmodified lines
| 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 || Initial checkpoint | 0 | 0 | 21.890 (1/1) | 0.69058 (1/1) | 1.086 (1/1) || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) || 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 |148 unmodified lines
## Reproduce the study
Use Python 3.12, uv, and an NVIDIA GPU. Install with `uv sync --locked` and check the implementation with `uv run --locked thirdloss verify`. Run the original experiments and the six-arm follow-up with `uv run --locked thirdloss study --with-hybrid`. Once the TinyStories calibration and pilot selection exist, `uv run --locked thirdloss hybrid` runs the follow-up on its own. In another terminal run `uv run thirdloss dashboard --port 18765` for live accuracy, loss and curvature. Regenerate the paper, plots and tables with `uv run thirdloss report`. [Setup, checkpoints and CLI](docs/runbook.md) · [Document splits](docs/data.md) · [Model collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378)Use Python 3.12, uv, and an NVIDIA GPU. From the repository root, install the locked environment, verify the derivatives and start the study.
```shuv sync --lockeduv run --locked thirdloss verifyuv run --locked thirdloss study --with-hybrid --with-flatness```
This trains both model families, runs the six hybrid variants, evaluates the frozen models, and measures flatness for each checkpoint and reference. Repeating the study command resumes it. To measure existing saved models separately, run `uv run --locked thirdloss flatness --phase all`. In another terminal, `uv run --locked thirdloss dashboard --port 18765` serves live accuracy, loss and curvature. Regenerate the paper, plots and tables with `uv run --locked thirdloss report`. [Setup, checkpoint loading and publication](docs/runbook.md) · [Document splits](docs/data.md) · [Model collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378)
The pipeline pins the source texts, splits by document, learns the stories tokenizer using training documents, and freezes the evaluation definition. Identical initializations and document orders pair the competing objectives. The smaller model trains all weights. The pretrained model trains only attention adapters. Examine both improvement and deterioration across seeds and both computational budgets. [TinyStories](https://arxiv.org/pdf/2305.07759) · [Pythia](https://huggingface.co/EleutherAI/pythia-410m) · [Common Pile](https://huggingface.co/datasets/common-pile/arxiv_abstracts_filtered) · [LoRA](https://arxiv.org/pdf/2106.09685)
21 unmodified lines222324252526272893 unmodified lines122123124125125126127128134 unmodified lines26326426526626626726826927021 unmodified lines
Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.
[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness statistics](#flatness-of-the-trained-checkpoints) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness by variant and baseline](#all-variants-and-baselines) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)
## Side-by-side comparisons
93 unmodified lines
| 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 || Initial checkpoint | 0 | 0 | 21.890 (1/1) | 0.69058 (1/1) | 1.086 (1/1) || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) || 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 |134 unmodified lines| Literature, preregistration, raw observations and reviews | [Reports](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/reports) · [Raw results](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/results) || Timestamped training output, full prompts and completions, operator transcripts | [Log archive](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/logs) || Fitted models, model cards, optimizer moments, data cursor and random state | [Full-weight models](https://huggingface.co/BurnyCoder/thirdloss-stories) · [Pythia adapters](https://huggingface.co/BurnyCoder/thirdloss-pythia-410m-adapters) · [Pinned pretrained backbone](https://huggingface.co/EleutherAI/pythia-410m/tree/9879c9b5f8bea9051dcb0e68dff21493d67e9d4f) || Prepared training and evaluation data, tokenizers and overlap audits | [TinyStories](https://huggingface.co/datasets/BurnyCoder/thirdloss-tinystories-tokens) · [arXiv abstracts](https://huggingface.co/datasets/BurnyCoder/thirdloss-arxiv-abstracts-2024-tokens) || Prepared training and evaluation data, tokenizers and overlap audits | [TinyStories](https://huggingface.co/datasets/BurnyCoder/thirdloss-tinystories-tokens) · [arXiv abstracts](https://huggingface.co/datasets/BurnyCoder/thirdloss-arxiv-abstracts-2024) |
From the research checkout, `uv run --locked thirdloss study --with-hybrid --with-flatness` reproduces both original stages, the hybrid comparisons and the weight- and score-space measurements. [Installation, data preparation and checkpoint loading](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/docs/runbook.md)
The publication receipt binds the Git commit to the verified file hashes across the collection. Run `uv run thirdloss audit-hub` from that checkout to independently compare the published objects. Log files are snapshots at publication time. Operational transcripts redact transport credentials and local account paths. [File digests and Git revision](publication.json)9 unmodified lines1011121314151617181920212223242526279 unmodified lines
[Design and hyperparameter rationale](../../planned-runs.md) · [Saved configuration](../../../results/abstracts-control-s00-initial-r00/config.json)
## Checkpoint flatness
| Training-window measurement | Value | Interpretation || --- | --- | --- || Weight width | 21.890 | ↑ Wider is flatter in these weight coordinates || RMS weight curvature | 0.690576 | ↓ Lower means less local bending || Signed Hessian trace / parameter | 0.0011406 | No general better direction || Common score width | 1.086 | ↑ Wider tolerates larger changes in token scores || Mean directional score curvature | 0.700479 | ↓ Lower means less local bending in score space |
The connection between width and better held-out prediction is unknown. [Compare against every variant and baseline](../../flatness.md#every-variant-and-baseline).
The process working-set high-water mark was 3,309.3 MiB. This OS measure includes earlier work in the same interpreter.
## Fixed-prompt generations56 unmodified lines575859606061626321 unmodified lines8586878889909156 unmodified lines
| 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 || Initial checkpoint | 0 | 0 | 21.890 (1/1) | 0.69058 (1/1) | 1.086 (1/1) || Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) || 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 |21 unmodified lines
| 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 | control | 0 | Initial checkpoint | 0% | 21.890 | 21.676–22.687 | 0/32 | 0.690576 | +0.0011406 | 1.086 | 1.081–1.095 | 0/32 | 0.700479 | [Weight probes](../results/abstracts-control-s00-initial-r00/flatness.json) · [Score probes](../results/abstracts-control-s00-initial-r00/score-flatness.json) || abstracts | control | 0 | Unigram | 0% | N/A | N/A | N/A | N/A | N/A | 0.915 | 0.913–0.924 | 0/32 | 0.993798 | [Score probes](../results/abstracts-control-s00-unigram-r00/score-flatness.json) || 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 | Third derivative | 1% | 19.922 | 19.400–20.421 | 0/32 | 0.582266 | +0.00146738 | Pending | Pending | Pending | Pending | [Weight probes](../results/abstracts-pilot-s00-third-r01-fp64/flatness.json) |123345628 unmodified lines35363738383940414242434445# Study progress
Updated 2026-11-25T17:23:51+00:00.Updated 2026-11-25T17:27:52+00:00.
21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.
28 unmodified lines| Stage | Weight geometry | Shared score geometry | Median pilot cycle | Longest pilot cycle || --- | --- | --- | --- | --- || stories | 32/91 | 33/92 | 34 s | 37 s || abstracts | 3/36 | 1/37 | 193 s | 311 s || abstracts | 4/36 | 2/37 | 193 s | 311 s |
Weight geometry covers every neural checkpoint. Score geometry also covers the two unigram references. [All arms and their measurements](flatness.md#every-variant-and-baseline)
Giving each predictor still missing a measurement one complete native pilot cycle projects 2.49 additional hours at each stage’s median or 3.72 hours at its longest observed cycle. These scenarios include the observed reporting and upload time. Existing hybrid widths can be reused. The shared score calculation, archive growth and future interruptions can change the total. [Timestamped pilot measurements](../results/feasibility/flatness-pilot-wall-time.json) · [Archived timing log](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/logs/checkpoint-flatness-20261125T163331Z.log)Giving each predictor still missing a measurement one complete native pilot cycle projects 2.43 additional hours at each stage’s median or 3.63 hours at its longest observed cycle. These scenarios include the observed reporting and upload time. Existing hybrid widths can be reused. The shared score calculation, archive growth and future interruptions can change the total. [Timestamped pilot measurements](../results/feasibility/flatness-pilot-wall-time.json) · [Archived timing log](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/logs/checkpoint-flatness-20261125T163331Z.log)
## Monitoring
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254{ "run": "abstracts-control-s00-initial-r00", "checkpoint_file_sha256": null, "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", "width_device": "cuda", "split": "train", "probe_windows_sha256": "33355b4898d409b23633a21a839773f463c5771aaa3a8e2df9840aa647b37e4f", "timestamp": "2026-11-25T17:24:23+00:00", "reference": { "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", "verification": "recorded initial weight digest" }, "protocol": "checkpoint-flatness-v1", "width_windows": 8, "curvature_windows": 2, "width": { "baseline_nll": 3.0661816596984863, "delta_nll": 0.1, "directions": [ { "direction": 0, "positive": { "lower": 11.578125, "upper": 11.580078125 }, "negative": { "lower": 11.462890625, "upper": 11.46484375 } }, { "direction": 1, "positive": { "lower": 10.23046875, "upper": 10.232421875 }, "negative": { "lower": 10.94921875, "upper": 10.951171875 } }, { "direction": 2, "positive": { "lower": 10.876953125, "upper": 10.87890625 }, "negative": { "lower": 10.98828125, "upper": 10.990234375 } }, { "direction": 3, "positive": { "lower": 10.86328125, "upper": 10.865234375 }, "negative": { "lower": 11.03125, "upper": 11.033203125 } }, { "direction": 4, "positive": { "lower": 10.89453125, "upper": 10.896484375 }, "negative": { "lower": 11.203125, "upper": 11.205078125 } }, { "direction": 5, "positive": { "lower": 11.083984375, "upper": 11.0859375 }, "negative": { "lower": 10.796875, "upper": 10.798828125 } }, { "direction": 6, "positive": { "lower": 10.501953125, "upper": 10.50390625 }, "negative": { "lower": 10.439453125, "upper": 10.44140625 } }, { "direction": 7, "positive": { "lower": 10.810546875, "upper": 10.8125 }, "negative": { "lower": 10.919921875, "upper": 10.921875 } }, { "direction": 8, "positive": { "lower": 9.98828125, "upper": 9.990234375 }, "negative": { "lower": 10.92578125, "upper": 10.927734375 } }, { "direction": 9, "positive": { "lower": 10.8984375, "upper": 10.900390625 }, "negative": { "lower": 11.626953125, "upper": 11.62890625 } }, { "direction": 10, "positive": { "lower": 11.671875, "upper": 11.673828125 }, "negative": { "lower": 10.89453125, "upper": 10.896484375 } }, { "direction": 11, "positive": { "lower": 11.1796875, "upper": 11.181640625 }, "negative": { "lower": 12.8984375, "upper": 12.900390625 } }, { "direction": 12, "positive": { "lower": 13.771484375, "upper": 13.7734375 }, "negative": { "lower": 11.353515625, "upper": 11.35546875 } }, { "direction": 13, "positive": { "lower": 10.94921875, "upper": 10.951171875 }, "negative": { "lower": 10.8046875, "upper": 10.806640625 } }, { "direction": 14, "positive": { "lower": 11.83984375, "upper": 11.841796875 }, "negative": { "lower": 11.20703125, "upper": 11.208984375 } }, { "direction": 15, "positive": { "lower": 10.82421875, "upper": 10.826171875 }, "negative": { "lower": 10.681640625, "upper": 10.68359375 } } ], "width_lower": 21.8876953125, "width_upper": 21.8916015625, "width": 21.8896484375, "censored_rays": 0, "weights_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", "weights_restored": true, "seconds": 134.9972901000001 }, "curvature": { "dimensions": 786432, "draws": [ { "index": 0, "trace_per_parameter": 0.00019078998934647447, "squared_rms": 0.5570597606466218 }, { "index": 1, "trace_per_parameter": 0.0017951003376558653, "squared_rms": 0.43816261371319626 }, { "index": 2, "trace_per_parameter": 0.0007159733017515598, "squared_rms": 0.469473299727783 }, { "index": 3, "trace_per_parameter": 0.002082168139031911, "squared_rms": 0.39464092678921164 }, { "index": 4, "trace_per_parameter": 0.0010635839923581445, "squared_rms": 0.38509176661106764 }, { "index": 5, "trace_per_parameter": 0.0009547397662817266, "squared_rms": 0.28825198447255174 }, { "index": 6, "trace_per_parameter": 0.0011049338671442442, "squared_rms": 0.6530048603757258 }, { "index": 7, "trace_per_parameter": 0.0012175457936534396, "squared_rms": 0.6294758042313172 } ], "device": "cpu", "dtype": "torch.float64", "trace_per_parameter": 0.0011406043984029206, "rms_curvature": 0.6905759386707115 }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221{ "run": "abstracts-control-s00-initial-r00", "checkpoint_file_sha256": null, "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", "width_device": "cuda", "split": "train", "probe_windows_sha256": "33355b4898d409b23633a21a839773f463c5771aaa3a8e2df9840aa647b37e4f", "timestamp": "2026-11-25T17:24:23+00:00", "reference": { "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", "verification": "recorded initial weight digest" }, "protocol": "shared-logit-width-v1", "score": { "baseline_nll": 3.066181656223937, "delta_nll": 0.1, "units": "RMS logit displacement", "vocab": 50304, "targets": 1024, "direction_sha256": "e443214df5a81efed40c70404e134541fe0d24abc4b821aa690840a01823392e", "directions": [ { "direction": 0, "positive": { "lower": 0.494140625, "upper": 0.49420166015625 }, "negative": { "lower": 0.5927734375, "upper": 0.5928955078125 }, "curvature": 0.7018977951560352 }, { "direction": 1, "positive": { "lower": 0.5601806640625, "upper": 0.560302734375 }, "negative": { "lower": 0.5203857421875, "upper": 0.5205078125 }, "curvature": 0.7067574846086611 }, { "direction": 2, "positive": { "lower": 0.5618896484375, "upper": 0.56201171875 }, "negative": { "lower": 0.5179443359375, "upper": 0.51806640625 }, "curvature": 0.7060243778000308 }, { "direction": 3, "positive": { "lower": 0.496337890625, "upper": 0.49639892578125 }, "negative": { "lower": 0.58447265625, "upper": 0.5845947265625 }, "curvature": 0.7078643816733048 }, { "direction": 4, "positive": { "lower": 0.552001953125, "upper": 0.5521240234375 }, "negative": { "lower": 0.51953125, "upper": 0.5196533203125 }, "curvature": 0.7181993836946234 }, { "direction": 5, "positive": { "lower": 0.5863037109375, "upper": 0.58642578125 }, "negative": { "lower": 0.5096435546875, "upper": 0.509765625 }, "curvature": 0.6847322469265649 }, { "direction": 6, "positive": { "lower": 0.5277099609375, "upper": 0.52783203125 }, "negative": { "lower": 0.5555419921875, "upper": 0.5556640625 }, "curvature": 0.7008287453112245 }, { "direction": 7, "positive": { "lower": 0.48077392578125, "upper": 0.4808349609375 }, "negative": { "lower": 0.6033935546875, "upper": 0.603515625 }, "curvature": 0.7070652543279341 }, { "direction": 8, "positive": { "lower": 0.6591796875, "upper": 0.6593017578125 }, "negative": { "lower": 0.44342041015625, "upper": 0.4434814453125 }, "curvature": 0.6998961314600061 }, { "direction": 9, "positive": { "lower": 0.6041259765625, "upper": 0.604248046875 }, "negative": { "lower": 0.496337890625, "upper": 0.49639892578125 }, "curvature": 0.6901627347154013 }, { "direction": 10, "positive": { "lower": 0.49786376953125, "upper": 0.4979248046875 }, "negative": { "lower": 0.5831298828125, "upper": 0.583251953125 }, "curvature": 0.7086917049294278 }, { "direction": 11, "positive": { "lower": 0.5091552734375, "upper": 0.50927734375 }, "negative": { "lower": 0.58544921875, "upper": 0.5855712890625 }, "curvature": 0.6897651039057962 }, { "direction": 12, "positive": { "lower": 0.5445556640625, "upper": 0.544677734375 }, "negative": { "lower": 0.5400390625, "upper": 0.5401611328125 }, "curvature": 0.6999085174808966 }, { "direction": 13, "positive": { "lower": 0.6248779296875, "upper": 0.625 }, "negative": { "lower": 0.47027587890625, "upper": 0.4703369140625 }, "curvature": 0.6990882615801896 }, { "direction": 14, "positive": { "lower": 0.5299072265625, "upper": 0.530029296875 }, "negative": { "lower": 0.56396484375, "upper": 0.5640869140625 }, "curvature": 0.6863158440067865 }, { "direction": 15, "positive": { "lower": 0.4906005859375, "upper": 0.49066162109375 }, "negative": { "lower": 0.60009765625, "upper": 0.6002197265625 }, "curvature": 0.7004597406107207 } ], "width_lower": 1.08575439453125, "width_upper": 1.085968017578125, "width": 1.0858612060546875, "censored_rays": 0, "mean_directional_curvature": 0.7004786067617252 }}66 unmodified lines676869707071727373747475767677787980818266 unmodified lines
def _native_geometry(model,row,folder,inputs,targets): """Reuse a digest-matched registered hybrid width, then measure local curvature on the fixed batch.""" """Reuse registered widths with the same weights and direction backend, then measure local curvature.""" registered=folder/f"width-{row['steps']}.json" width=None if row["phase"] in {"hybrid","branch"}: width=read_json(registered) if width["weights_sha256"]!=trainable_digest(model) or not width["weights_restored"]: prior=read_json(registered) if prior["weights_sha256"]!=trainable_digest(model) or not prior["weights_restored"]: raise ValueError("Registered width belongs to different trained weights") else: if torch.device(row["device"]).type==inputs.device.type: width=prior if width is None: width=measure_width(model,lambda:token_loss(logits_of(model,inputs),targets)) if row["stage"]=="abstracts": model=widen_pythia(model.cpu())81 unmodified lines828384858687888990919293949596919297989910016 unmodified lines11711811912012112212312412512612781 unmodified lines "Middle 50% of final directions","Rays at limit / tested"])
def _weight_signature(point): """Seeds on different random-number backends need not yield the same weight-space directions.""" return (point["protocol"],point["probe_windows_sha256"],point["width_device"],point["hessian_device"], point.get("dimensions"),point.get("hessian_dtype"))
def primary_flatness_rows(pairs): """Compare the same measured seeds, trainable parameterization, training windows and probe backend.""" methods=("ce","trace","third") measured=[pair for pair in pairs if all("flatness" in pair[m] for m in methods)] if not measured: return [] signatures={(pair[m]["flatness"]["protocol"],pair[m]["flatness"]["probe_windows_sha256"], pair[m]["flatness"]["width_device"],pair[m]["flatness"]["hessian_device"]) for pair in measured for m in methods} signatures={_weight_signature(pair[m]["flatness"]) for pair in measured for m in methods} if len(signatures)!=1: raise ValueError("Matched flatness statistics require the same probes and arithmetic") groups=[[pair[m]["flatness"] for pair in measured] for m in methods]16 unmodified lines 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] native=[r["flatness"] for r in stage_runs if "flatness" in r] if len({_weight_signature(p) for p in native})>1: raise ValueError(f"The weight-space comparison for {stage} mixes probes, coordinates or arithmetic") if len({p["probe_windows_sha256"] for p in native+measured})>1: raise ValueError(f"The flatness comparison for {stage} mixes different training windows") 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):348 unmodified lines349350351352352353354355348 unmodified lines "from the lowest matched seed. These examples have no quality rating. The method names link to the raw generations.", *(panel for panel in samples if panel)]) quick.append("[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · " "[Flatness statistics](#flatness-of-the-trained-checkpoints) · " "[Flatness by variant and baseline](#all-variants-and-baselines) · " "[Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · " "[Paired tests and intervals](reports/summary.md)") if not any(o.get("complete") for o in study["stages"].values()):188 unmodified lines189190191192192193194195196188 unmodified lines record["flatness"]={**compact_width(diagnostic["width"]), **{k:diagnostic[k] for k in ("protocol","probe_windows_sha256","width_device")}, **{k:diagnostic["curvature"][k] for k in ("rms_curvature","trace_per_parameter")}, "hessian_device":diagnostic["curvature"]["device"]} "hessian_device":diagnostic["curvature"]["device"],"hessian_dtype":diagnostic["curvature"]["dtype"], "dimensions":diagnostic["curvature"]["dimensions"]} record["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"]})74 unmodified lines7576777879808182838485868788899091929394959697989910010110210310410510610710874 unmodified lines assert f"{(91*20+36*100)/3600:.2f} additional hours" in report
def test_all_model_table_rejects_mismatched_weight_probes_in_secondary_arms(tmp_path): from thirdloss.flatness_tables import all_arm_tables from thirdloss.report_records import study_snapshot study=study_snapshot(tmp_path) sample={"stage":"stories","phase":"pilot","seed":0,"tokens":2**21,"ratio":.01,"status":"complete"} probed={"protocol":"native","probe_windows_sha256":"same","width_device":"cuda", "hessian_device":"cuda:0","dimensions":100,"rms_curvature":.4} study["runs"]=[{**sample,"method":"sham","flatness":probed}, {**sample,"method":"combined","flatness":{**probed,"width_device":"cpu"}}] with pytest.raises(ValueError,match="weight-space"): all_arm_tables(study)
def test_hybrid_width_reuse_distinguishes_cpu_and_cuda_random_direction_streams(tmp_path,monkeypatch): from thirdloss import checkpoint_flatness as geometry from thirdloss.records import write_json model=torch.nn.Linear(2,3).double() inputs=torch.zeros(2,2,2,dtype=torch.float64) targets=torch.zeros(2,2,dtype=torch.long) row={"phase":"hybrid","steps":1,"stage":"stories","device":"cpu"} prior={"weights_sha256":geometry.trainable_digest(model),"weights_restored":True,"width":7.} write_json(tmp_path/"width-1.json",prior) monkeypatch.setattr(geometry,"measure_width",lambda model,loss:{"width":11.}) assert geometry._native_geometry(model,row,tmp_path,inputs,targets)["width"]["width"]==7. row["device"]="cuda" assert geometry._native_geometry(model,row,tmp_path,inputs,targets)["width"]["width"]==11.
def test_common_logit_probe_matches_direct_softmax_and_its_second_derivative(): from thirdloss.score_flatness import bias_response logits=torch.tensor([[.1,.2,-.3,1.],[-1.,2.,.7,-.3]],dtype=torch.float64)README.md+5-3
logs/adapter-geometry-20261125T172121Z-stderr.log+2
logs/adapter-geometry-20261125T172121Z.log+2
logs/dashboard-20261125T165607Z-stderr.log+22
logs/study-20261125T165454Z-hybrid-stderr.log+59
publication.json+80-60
research/README.md+11-3
research/docs/hub/archive.md+5-3
research/docs/study.json
research/reports/experiments/abstracts-control-s00-initial-r00/experiment.md+12
research/reports/flatness.md+2-1
research/reports/paper.pdf
research/reports/progress.md+3-3
research/results/abstracts-control-s00-initial-r00/flatness.jsonAdded+254
research/results/abstracts-control-s00-initial-r00/score-flatness.jsonAdded+221
research/src/thirdloss/checkpoint_flatness.py+7-4
research/src/thirdloss/flatness_tables.py+12-2
research/src/thirdloss/readme_comparisons.py+1-1
research/src/thirdloss/report_records.py+2-1
research/tests/test_flatness.py+28