Publish the revised queue, verified source and final seed-analysis gate
Browse filesFiles changed (28)
- README.md+2
- logs/dashboard-20261125T165607Z-stderr.log+41
- logs/seed-sensitivity-order-release.logAdded+1
- logs/study-20261125T165454Z-hybrid-stderr.log+61
- logs/study-20261125T182902Z-hybrid-confirmation.log+1
- publication.json+98-68
- research/README.md+4
- research/docs/hub/archive.md+2
- research/docs/runbook.md+4
- research/docs/study.json
- research/reports/amendments/seed-sensitivity-last.mdAdded+17
- research/reports/paper.pdf
- research/reports/plan.md+2
- research/reports/planned-runs.md+2
- research/reports/progress.md+4-2
- research/reports/seed-sensitivity.mdAdded+5
- research/reports/summary.md+1-1
- research/results/feasibility/remaining-work.json+2-2
- research/results/verification/seed-order-transition.jsonAdded+42
- research/results/verification/tests.json+98-58
- research/src/thirdloss/cli.py+10-6
- research/src/thirdloss/hybrid.py+5-3
- research/src/thirdloss/progress.py+6
- research/src/thirdloss/report_paper.py+14
- research/src/thirdloss/reporting.py+8-1
- research/src/thirdloss/seed_sensitivity.pyAdded+161
- research/src/thirdloss/study.py+21-7
- research/tests/test_seed_order.pyAdded+97
252 unmodified lines253254255256257258252 unmodified lines</details><!-- COMPARISONS:END -->## Research materials252 unmodified lines253254255256257258259260252 unmodified lines</details>Seed sensitivity is the final stage, after both primary test evaluations, all hybrid replications and checkpoint flatness. [Final seed-sensitivity report](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/seed-sensitivity.md)<!-- COMPARISONS:END -->## Research materials
509 unmodified lines510511512509 unmodified lines127.0.0.1 - - [25/Nov/2026 19:29:32] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:29:43] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:29:54] "GET /live.json HTTP/1.1" 200 -509 unmodified lines510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553509 unmodified lines127.0.0.1 - - [25/Nov/2026 19:29:32] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:29:43] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:29:54] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:30:05] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:30:16] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:30:26] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:30:37] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:30:48] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:30:59] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:31:10] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:31:21] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:31:32] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:31:43] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:31:53] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:32:04] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:32:15] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:32:26] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:32:37] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:32:48] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:32:58] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:33:09] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:33:20] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:33:31] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:33:42] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:33:53] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:34:04] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:34:14] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:34:25] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:34:36] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:34:47] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:34:58] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:35:09] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:35:20] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:35:30] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:35:41] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:35:52] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:36:03] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:36:14] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:36:25] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:36:35] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:36:46] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:36:57] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:37:08] "GET /live.json HTTP/1.1" 200 -127.0.0.1 - - [25/Nov/2026 19:37:19] "GET /live.json HTTP/1.1" 200 -
1findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.7011 unmodified lines7012701370147011 unmodified linesValidating : ##########| 100%: 100%|##########| 743kB / 743kBfindfont: Failed to find font weight semibold for DejaVu Sans, now using 700.7011 unmodified lines70127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757011 unmodified linesValidating : ##########| 100%: 100%|##########| 743kB / 743kBfindfont: 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: 86%|########5 | 636kB / 743kB [A[A: 86%|########5 | 636kB / 743kB [A[A Processing Files (0 / 1) : 86%|########5 | 636kB / 743kB, ???B/s: 86%|########5 | 636kB / 743kB [A[A: 86%|########5 | 636kB / 743kB [A[A: 86%|########5 | 636kB / 743kB [A[A: 86%|########5 | 636kB / 743kB [A[A: 86%|########5 | 636kB / 743kB [A[A: 86%|########5 | 636kB / 743kB [A[A: 86%|########5 | 636kB / 743kB [A[A: 100%|##########| 743kB / 743kB [A[A Processing Files (1 / 1) : 100%|##########| 743kB / 743kB, 68.6kB/sNew Data Upload : 100%|##########| 107kB / 107kB, 10.4kB/s [A: 100%|##########| 743kB / 743kB [A[A: 100%|##########| 743kB / 743kB [A[A: 100%|##########| 743kB / 743kB [A[A: 100%|##########| 743kB / 743kB [A[A: 100%|##########| 743kB / 743kB [A[A: 100%|##########| 743kB / 743kB [A[A: 100%|##########| 743kB / 743kB [A[AValidating : | 0% [A[A[AValidating : | 0% [A[A[A: 100%|##########| 743kB / 743kB [A[AValidating : | 0% [A[A[A: 100%|##########| 743kB / 743kB [A[AValidating : ##########| 100% [A[A[A: 100%|##########| 743kB / 743kB [A[AValidating : ##########| 100% [A[A[A Processing Files (1 / 1) : 100%|##########| 743kB / 743kB, 62.2kB/sNew Data Upload : 100%|##########| 107kB / 107kB, 9.43kB/sValidating : ##########| 100%: 100%|##########| 743kB / 743kB
12026-11-25T18:29:02+00:00 Reserved the next replication. Completing the existing seed-25 trunk publication.122026-11-25T18:29:02+00:00 Reserved the next replication. Completing the existing seed-25 trunk publication.2026-11-25T18:30:04+00:00 Trunk and geometry verified. Waiting for the published execution-order update.
12345684 unmodified lines9192939495969798991001011022161 unmodified lines226422652266226722682269227022712272121 unmodified lines239423952396239723982399240024012402160 unmodified lines256325642565256625672568280 unmodified lines2849285028512852285328542855285628572858285928602861286281 unmodified lines29442945294629472948294929502951295246 unmodified lines29993000300130023003300430053006300711 unmodified lines3019302030213022302330243025302630273028302930303031303220 unmodified lines305330543055305630573058535 unmodified lines35943595359635973598359936003601360236033604360536063607360836093610361136121 unmodified line36143615361636173618361936203621362210 unmodified lines363336343635363636373638363936403641364236433644364536463647421 unmodified lines406940704071407240734074407540761926 unmodified lines60036004600560066007600860096010601160126013601460156016601711 unmodified lines60296030603160326033603460356036603726 unmodified lines60646065606660676068606960706071607236 unmodified lines61096110611161126113611461156116611721 unmodified lines6139614061416142614361446145614661471 unmodified line614961506151615261536154615561566157615861596160616161626163616461656166616760 unmodified lines62286229623062316232623354 unmodified lines62886289629062916292{"collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378","git_revision": "79e7a294919d444723ceb9cb18c068573f845f34","repositories": {"BurnyCoder/thirdloss-arxiv-abstracts-2024": {"files": {84 unmodified lines"size": 9809},"study.json": {"git_blob": "8006f7e0c4c5884f810f8443ea389d96d6721e94","sha256": "01c00ad305887b494523bd31a7cfd0730ca7de701950b5553e8582367ea80215","size": 3557873}},"revision": "036607c628cd27df70f7a7f92730a59dd2a2e1a3","type": "space"},"BurnyCoder/thirdloss-pythia-410m-adapters": {2161 unmodified lines"BurnyCoder/thirdloss-study": {"files": {"README.md": {"git_blob": "6548f5b50dcfb09c7d54f86b045dfba8a903d4c8","sha256": "a9ab2bc5224f2bfa1498a0f0b26a13470fc0ee61a2b9f85a405ea256184cbe84","size": 24532},"logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": {"git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",121 unmodified lines"size": 46},"logs/dashboard-20261125T165607Z-stderr.log": {"git_blob": "a6523e8b63cb246f27909fc20afb1a44d9851c26","sha256": "92e2edf72d885e8b809b2c942e375387e9aec67367469aebae1c1c315137a6e3","size": 35836},"logs/dashboard-20261125T165607Z.log": {"git_blob": "2b28574b8ec0a2c690c454dd9457dab8668a315d",160 unmodified lines"sha256": "47454eb636e56dbc462939d61c50d1db0bae853976a60642dd26f32f49f8e2d3","size": 8744},"logs/stories-branch-s21-trunk-r01-20261125T103522576232Z.jsonl": {"git_blob": "1fa0317bc627e9cafc2ac47ee1257c5b660642e8","sha256": "b7d5167ae1005913ab1b46c0189ebebfc3231898c529badc59913c16ef0ee72f",280 unmodified lines"size": 2449541},"logs/study-20261125T165454Z-hybrid-stderr.log": {"git_blob": "5b8f18fcd4467dd8a7b5b048f4983fc988eac649","sha256": "79e41c2c1ef21c08a6f8f20cac741df0d02e86bb8037d7c4c9be4ab6ea661e8f","size": 363795},"logs/study-20261125T182902Z-hybrid-confirmation.log": {"git_blob": "42d5b3f6cc7709dda0a9c8e148eff0905e6c4e3f","sha256": "db6e4b49d8993a8bc8b8abdfa19fd909f7c7a401df7dd5392c84d6683015cb37","size": 109},"logs/study-20261125T182902Z-hybrid-stderr.log": {"git_blob": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",81 unmodified lines"size": 786},"research/README.md": {"git_blob": "8d53b96e6d7e00cb142dc6f8f92bb4c7f6cfebbb","sha256": "0a5a2f4de0f0058420bb4bf50e22a8d3a295704488c2d5f4621f52f2a282b8ee","size": 37880},"research/docs/data.md": {"git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",46 unmodified lines"size": 1583},"research/docs/hub/archive.md": {"git_blob": "6548f5b50dcfb09c7d54f86b045dfba8a903d4c8","sha256": "a9ab2bc5224f2bfa1498a0f0b26a13470fc0ee61a2b9f85a405ea256184cbe84","size": 24532},"research/docs/hub/space.md": {"git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",11 unmodified lines"size": 10105},"research/docs/runbook.md": {"git_blob": "76a6b8f5cc067ebc68a61eda435958840e5065f0","sha256": "1d08f9e9e46ecfde1f538eabd694495398b1be5196df5ef993ba824abdab8aec","size": 10646},"research/docs/study.json": {"git_blob": "8006f7e0c4c5884f810f8443ea389d96d6721e94","sha256": "01c00ad305887b494523bd31a7cfd0730ca7de701950b5553e8582367ea80215","size": 3557873},"research/docs/third-derivative-penalty.md": {"git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",20 unmodified lines"sha256": "041d54f3d730b54a64893923c668e71701282347a1bdfcdbd093bf93211d22e8","size": 3982},"research/reports/experiments/abstracts-control-s00-initial-r00/experiment.md": {"git_blob": "5da2cb6bf53958c7d289b6a0e8c2d458abf6cbba","sha256": "cf0771d7f13c20960b235e7b9fce67ce7008a7e84c9663be4e735ce485f99d1d",535 unmodified lines"size": 7290},"research/reports/paper.pdf": {"git_blob": "67562eadc7dcaca57becaeffaf9e16c0a3190cf0","sha256": "83b7c71570c5e66d2fd2b0c4238adbef4db28a76f7d5efd9672d2dcd0d63cb05","size": 742725},"research/reports/plan.md": {"git_blob": "4eae157557dd5acb8376680b5bdcdf1a5ba71e69","sha256": "8ba60a8842aa7b74fa3ff9b65f2cee70896742069c886c0b2c7e73c1df205386","size": 8189},"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": "ac1ad8e63a2ef58c1679843035ed3440cc9566cb","sha256": "32803b59bc1434d14c5e1db0e315840dbe3ae83cb50eb71ae6a9642af5c0273c","size": 4175},"research/reports/reviews/adapter-verification.md": {"git_blob": "1ad4e5807c9e22c39721e238af4c640f4537cf66",10 unmodified lines"sha256": "c6e09f0ae285b852f8651903545c5700afd757162c3fb581be6c87c437944dce","size": 4931},"research/reports/state-of-the-art-review.md": {"git_blob": "8f0c96d4ddee6dde8376c746a99f69387632448d","sha256": "3cb34f3f1b285aee018a8f618647301a5ebca089687a468475ae43df883a11e3","size": 1740},"research/reports/summary.md": {"git_blob": "067b13e5e228d1f0eaaf97c5685393873a75468c","sha256": "b9f0aa5d8a0b95e9216c6db56be8ebd007f1198d0ea2ba45ede98b6cdce14ab2","size": 4222},"research/results/abstracts-control-s00-initial-r00/config.json": {"git_blob": "0371479e1ad5f1c59b484eb112d315a86c82852d",421 unmodified lines"size": 3005},"research/results/feasibility/remaining-work.json": {"git_blob": "e8012eebac1d94cf0a895ade9aa9f9ac5def14ec","sha256": "c04f9d379697e1e39f8e9b4710ce97434b9f81f9d1b572a1b5b36510584efef4","size": 1169},"research/results/feasibility/stories.json": {1926 unmodified lines"sha256": "e80046d561e7142c1c00862361bdac1b2942027c5f9d10f7e74f8bd75918371e","size": 413},"research/results/verification/stories-full-gradient.json": {"git_blob": "331f53e147546252e212336c9deb82abe2ad7137","sha256": "a379a17e5d19b33a66805402859d4bfee149ae6b382d3ed3eff0a97cc07d0925","size": 459},"research/results/verification/tests.json": {"git_blob": "f0b0e5c91ceca364952193d223d50406b55cec78","sha256": "2c4fae330c2877c6f6b47b3df0f68e980ba5f03a8fcc88be25e192b3d72e9d6d","size": 12834},"research/src/thirdloss/__init__.py": {"git_blob": "f7abc1abaedf97f1f58ccbb3be45772d5556e65d",11 unmodified lines"size": 10144},"research/src/thirdloss/cli.py": {"git_blob": "fa11ccb908839f87c184b6b2673880828b468ebd","sha256": "f6f01ab3baff1e2ba1040e93d2e105b1961dd8a3d138584d11a463eb49b95f1d","size": 8095},"research/src/thirdloss/data.py": {"git_blob": "9b06438a0bce64f8d491cd65156ebe8aa04e8916",26 unmodified lines"size": 17909},"research/src/thirdloss/hybrid.py": {"git_blob": "9999fd6e162e0093c430b24e0329cd114efc475c","sha256": "c17935d62e457fa0fd8f7ea2a2e6edec43d824ec9e3b58c1f6c82afa9a49ff74","size": 11084},"research/src/thirdloss/hybrid_results.py": {"git_blob": "751742c1cb1ead31b4940e9c3b0c98a9c9fc17d4",36 unmodified lines"size": 6073},"research/src/thirdloss/progress.py": {"git_blob": "673fc6bcdec4da7e80c5fd540db7ce956d798372","sha256": "eb12548ca26b3b1c830c760b312c9e3a552f965dc0eaf3575a4b7eb71b8183ac","size": 12188},"research/src/thirdloss/readme_comparisons.py": {"git_blob": "b5d75394a1cc346e2adae9d48feedb18a3b1452d",21 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": "38e9dc08b01978b3c1c3491b556e96b7b65bc1ee",1 unmodified line"size": 16138},"research/src/thirdloss/reporting.py": {"git_blob": "ca5ebd108e5ae68dfa30754d98f35e70fc973edf","sha256": "12857f3a070fcf372d7219174abb257b0431edfcf8ec5b11b549e0f7c2dd863f","size": 21996},"research/src/thirdloss/score_flatness.py": {"git_blob": "bc0df88c71f2ebef66bd546be84bb353aa25feee","sha256": "0fb9fde75fd83f6e00725dad04773c36747846ecc92ba095c571f27d5d593639","size": 2205},"research/src/thirdloss/study.py": {"git_blob": "d1f98b90306c28d89dd2b117f515a095dc5f09e1","sha256": "ffe7441f4453e5692755e6e1d49fb0ba1c26b2d6961ef961c0387fe962f4d666","size": 12665},"research/src/thirdloss/train.py": {"git_blob": "3c16d7419d10d1709d4a168ad7765909fbef77a6",60 unmodified lines"sha256": "6a144d3dbae968da797bb4765c8c37b1543abc9e54d32e88f6de8ef8d9218bf5","size": 3211},"research/tests/test_training.py": {"git_blob": "e3086add8928f326d314c62fd9df09b49f15499c","sha256": "26495a4aca565bfd13224e8cb280c5be7626226fa16ceb5f416b1be9f21d61bf",54 unmodified lines"type": "dataset"}},"verified_at": "2026-11-25T18:29:55+00:00"}12345684 unmodified lines9192939495969798991001011022161 unmodified lines226422652266226722682269227022712272121 unmodified lines239423952396239723982399240024012402160 unmodified lines25632564256525662567256825692570257125722573280 unmodified lines2854285528562857285828592860286128622863286428652866286781 unmodified lines29492950295129522953295429552956295746 unmodified lines30043005300630073008300930103011301211 unmodified lines3024302530263027302830293030303130323033303430353036303720 unmodified lines30583059306030613062306330643065306630673068535 unmodified lines36043605360636073608360936103611361236133614361536163617361836193620362136221 unmodified line36243625362636273628362936303631363210 unmodified lines36433644364536463647364836493650365136523653365436553656365736583659366036613662421 unmodified lines408440854086408740884089409040911926 unmodified lines6018601960206021602260236024602560266027602860296030603160326033603460356036603711 unmodified lines60496050605160526053605460556056605726 unmodified lines60846085608660876088608960906091609236 unmodified lines61296130613161326133613461356136613721 unmodified lines6159616061616162616361646165616661671 unmodified line61696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619260 unmodified lines6253625462556256625762586259626062616262626354 unmodified lines63186319632063216322{"collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378","git_revision": "a5926cb4fe805a85ad6e192dca31dfd05d5b0b44","repositories": {"BurnyCoder/thirdloss-arxiv-abstracts-2024": {"files": {84 unmodified lines"size": 9809},"study.json": {"git_blob": "d979c390dd03a8c73ee0fbfa7987a166f1ee1fc1","sha256": "2df8fe7c72f4e7f81c182804f38c2e4ffde5daae2235fc5dec5d5d59d101d4a6","size": 3557897}},"revision": "74199a025e86069e0794186c01e2c9726adb2702","type": "space"},"BurnyCoder/thirdloss-pythia-410m-adapters": {2161 unmodified lines"BurnyCoder/thirdloss-study": {"files": {"README.md": {"git_blob": "5680c046fecfab15ed05e403973b4ff9d3c4f6a1","sha256": "eb53847835cb528369723a8ac6f83266c84d29a418302eb1dad30da61e8a1e8e","size": 24786},"logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": {"git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",121 unmodified lines"size": 46},"logs/dashboard-20261125T165607Z-stderr.log": {"git_blob": "6e0b404ff2f118ae7cf22ca69097bf1c6f22930b","sha256": "30509b6c23d9f697d75d024e8e959adfb7bcf6a9c75816e0b61b25f063639252","size": 38706},"logs/dashboard-20261125T165607Z.log": {"git_blob": "2b28574b8ec0a2c690c454dd9457dab8668a315d",160 unmodified lines"sha256": "47454eb636e56dbc462939d61c50d1db0bae853976a60642dd26f32f49f8e2d3","size": 8744},"logs/seed-sensitivity-order-release.log": {"git_blob": "37bbb4bdbd164007d9e8e84ddbdb5e73b2a11e1d","sha256": "2ae7e37a0d60013de1b3d6870314f24554d6f4af83d0ce06b372b1eed3a9b1c6","size": 79},"logs/stories-branch-s21-trunk-r01-20261125T103522576232Z.jsonl": {"git_blob": "1fa0317bc627e9cafc2ac47ee1257c5b660642e8","sha256": "b7d5167ae1005913ab1b46c0189ebebfc3231898c529badc59913c16ef0ee72f",280 unmodified lines"size": 2449541},"logs/study-20261125T165454Z-hybrid-stderr.log": {"git_blob": "4117e3b0c88da9fc821ef4401140cb602e0b6390","sha256": "d0255e8ca4ff578bccf39dda12a3120f866f27e5fecd62ca6110806c170d46ae","size": 366602},"logs/study-20261125T182902Z-hybrid-confirmation.log": {"git_blob": "e9bd02e9806ffe5c1a083731e26bd1eb6d0426dd","sha256": "a73ce473e4c9df211cccc9b690fc9cd0df15536f633628a173c20bd410065168","size": 215},"logs/study-20261125T182902Z-hybrid-stderr.log": {"git_blob": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",81 unmodified lines"size": 786},"research/README.md": {"git_blob": "84d823b7d6b7ac14deb7a8d192c7b718b0b9c9ab","sha256": "4b3cab338d9b651004668dcf99b55477bc36a0cc11c7e5f40f6c38ab9db81c54","size": 38498},"research/docs/data.md": {"git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",46 unmodified lines"size": 1583},"research/docs/hub/archive.md": {"git_blob": "5680c046fecfab15ed05e403973b4ff9d3c4f6a1","sha256": "eb53847835cb528369723a8ac6f83266c84d29a418302eb1dad30da61e8a1e8e","size": 24786},"research/docs/hub/space.md": {"git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",11 unmodified lines"size": 10105},"research/docs/runbook.md": {"git_blob": "84e225d85badf1e07e1f464f826b5bdc7a625d87","sha256": "356c2fca4cb50ccb1eed25fb183af13b585a694b973ed6fcaf38a548e40be1a9","size": 11344},"research/docs/study.json": {"git_blob": "d979c390dd03a8c73ee0fbfa7987a166f1ee1fc1","sha256": "2df8fe7c72f4e7f81c182804f38c2e4ffde5daae2235fc5dec5d5d59d101d4a6","size": 3557897},"research/docs/third-derivative-penalty.md": {"git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",20 unmodified lines"sha256": "041d54f3d730b54a64893923c668e71701282347a1bdfcdbd093bf93211d22e8","size": 3982},"research/reports/amendments/seed-sensitivity-last.md": {"git_blob": "a19a065d09773e1f7ec071d88c49f72e1473159f","sha256": "9c2faa46b4821eca4007fa9e4bbc8dea2902fd68ca577e392630a68ea0ee9f4c","size": 2983},"research/reports/experiments/abstracts-control-s00-initial-r00/experiment.md": {"git_blob": "5da2cb6bf53958c7d289b6a0e8c2d458abf6cbba","sha256": "cf0771d7f13c20960b235e7b9fce67ce7008a7e84c9663be4e735ce485f99d1d",535 unmodified lines"size": 7290},"research/reports/paper.pdf": {"git_blob": "387b250910c6392c89512bfadd09573f51f0dd0a","sha256": "484a71756abe22685e0bda9493c63f1abb2b98f513be9aa2217ef7ac0020d16e","size": 743248},"research/reports/plan.md": {"git_blob": "e8d0894e20d1d64edf47547451cb1cfeb6ac5a6b","sha256": "4e589689b5211e575bffbad712962d48a813d3085edade3836cd57bc1d08872e","size": 8660},"research/reports/planned-runs.md": {"git_blob": "d068af2669fb0650f40411189aa34f9f75aaeb92","sha256": "6860255a3494c7b63500044f94da69967c73ebe0de64622af4c877c8ad15094b","size": 3691},"research/reports/preregistration.md": {"git_blob": "3411a501f8cb3f3be0d31b70ee410094dae5dd95",1 unmodified line"size": 5234},"research/reports/progress.md": {"git_blob": "d1716a1938aaf29d718d6c208f6df43b30face86","sha256": "cf2ca99dc2b4577aba5b5fb43178559c8524da04c9ed1efdf3373c86d0b8236c","size": 4524},"research/reports/reviews/adapter-verification.md": {"git_blob": "1ad4e5807c9e22c39721e238af4c640f4537cf66",10 unmodified lines"sha256": "c6e09f0ae285b852f8651903545c5700afd757162c3fb581be6c87c437944dce","size": 4931},"research/reports/seed-sensitivity.md": {"git_blob": "9a7ebd018ff5b345de22e6fe3fdfda4e3eca9b6f","sha256": "326a51f98eacc7bfcab8c1ba864e1c18614068bddeea82fa3f205b0cee330e42","size": 270},"research/reports/state-of-the-art-review.md": {"git_blob": "8f0c96d4ddee6dde8376c746a99f69387632448d","sha256": "3cb34f3f1b285aee018a8f618647301a5ebca089687a468475ae43df883a11e3","size": 1740},"research/reports/summary.md": {"git_blob": "9e34c5e33d615c8fee374bd94d0ca814faee106f","sha256": "42c6ef37058b160cc0ea02a2c848406e34e2a577fb1f63985e1ed87e0fe6a6f9","size": 4271},"research/results/abstracts-control-s00-initial-r00/config.json": {"git_blob": "0371479e1ad5f1c59b484eb112d315a86c82852d",421 unmodified lines"size": 3005},"research/results/feasibility/remaining-work.json": {"git_blob": "e7abefd7a8f7b3ab381a82d483f041c289088794","sha256": "240757d5bf45f90e960528925c73f9862ef866f480cd903ed4995b8ee4c7ee11","size": 1169},"research/results/feasibility/stories.json": {1926 unmodified lines"sha256": "e80046d561e7142c1c00862361bdac1b2942027c5f9d10f7e74f8bd75918371e","size": 413},"research/results/verification/seed-order-transition.json": {"git_blob": "eea8ec1ba314bef6758fc04ff8976cc1131f3cec","sha256": "dc0ba1519b66222bc577faa62c6c615de7cf7b7660a3149db8a0765a1f0b6bfc","size": 1497},"research/results/verification/stories-full-gradient.json": {"git_blob": "331f53e147546252e212336c9deb82abe2ad7137","sha256": "a379a17e5d19b33a66805402859d4bfee149ae6b382d3ed3eff0a97cc07d0925","size": 459},"research/results/verification/tests.json": {"git_blob": "a8d86953c27cc17bc3215d7e9e13a40a8f13157f","sha256": "16136f56283ac3c19f7c3933ab23e816e5fda28caf6d7e68aee551291530a3f1","size": 14221},"research/src/thirdloss/__init__.py": {"git_blob": "f7abc1abaedf97f1f58ccbb3be45772d5556e65d",11 unmodified lines"size": 10144},"research/src/thirdloss/cli.py": {"git_blob": "235edfec5823ad91558041e37847938e0613f3cc","sha256": "f404b943140cbf6d40a178518c95e1e7366d5b20a1cb78d1e028a290651c9d15","size": 8385},"research/src/thirdloss/data.py": {"git_blob": "9b06438a0bce64f8d491cd65156ebe8aa04e8916",26 unmodified lines"size": 17909},"research/src/thirdloss/hybrid.py": {"git_blob": "6861936703d25832917383020a6b5fe32dc4f52b","sha256": "72430a9a464a0c410a915541a5e88b37019093db18e22d2fe88fd325cd21fc73","size": 11204},"research/src/thirdloss/hybrid_results.py": {"git_blob": "751742c1cb1ead31b4940e9c3b0c98a9c9fc17d4",36 unmodified lines"size": 6073},"research/src/thirdloss/progress.py": {"git_blob": "d1916b3e06e410dae11b603ab4043a5adaf0b9e7","sha256": "17907a15e83e446a8a33c4f05348119d53307391d914e71deb65b9e5a07a51e9","size": 12779},"research/src/thirdloss/readme_comparisons.py": {"git_blob": "b5d75394a1cc346e2adae9d48feedb18a3b1452d",21 unmodified lines"size": 10129},"research/src/thirdloss/report_paper.py": {"git_blob": "f7a528b566688ac87abcf8a498ae12b94d4187fc","sha256": "c8b638e53a9fa16683388fce41ca5cdeffdad6b0f7762b7c4dcd0b7b6943794b","size": 37289},"research/src/thirdloss/report_records.py": {"git_blob": "38e9dc08b01978b3c1c3491b556e96b7b65bc1ee",1 unmodified line"size": 16138},"research/src/thirdloss/reporting.py": {"git_blob": "1da6c2316c9a0410286d6bc31089f7e43784157c","sha256": "8c20e8ab5a108f742432c5fc065364299363b68dfb9cafc4ae75be972538ed27","size": 22636},"research/src/thirdloss/score_flatness.py": {"git_blob": "bc0df88c71f2ebef66bd546be84bb353aa25feee","sha256": "0fb9fde75fd83f6e00725dad04773c36747846ecc92ba095c571f27d5d593639","size": 2205},"research/src/thirdloss/seed_sensitivity.py": {"git_blob": "ee102a9c0fa421c42f459ef9b8b4bd0cd704755f","sha256": "979fe38b9194633d1692ca18a11853a28d2a77bc8fa0969949d31671d0f87d25","size": 9291},"research/src/thirdloss/study.py": {"git_blob": "f4b9c87888b2a76ada7a99b9c8f24fe5f83ee03f","sha256": "9bc29cea7cda12dc1bd430cce7ab42ed2123a107e87a5bb07b291cd2ca334206","size": 13383},"research/src/thirdloss/train.py": {"git_blob": "3c16d7419d10d1709d4a168ad7765909fbef77a6",60 unmodified lines"sha256": "6a144d3dbae968da797bb4765c8c37b1543abc9e54d32e88f6de8ef8d9218bf5","size": 3211},"research/tests/test_seed_order.py": {"git_blob": "a0a3e6abd12ffb19c6ee5630b8d98da6dbd53af9","sha256": "8f5d12170bd59ac82de0f6b2f642a0be9fa25f319cf7636c090e3dffb2fe02f2","size": 5500},"research/tests/test_training.py": {"git_blob": "e3086add8928f326d314c62fd9df09b49f15499c","sha256": "26495a4aca565bfd13224e8cb280c5be7626226fa16ceb5f416b1be9f21d61bf",54 unmodified lines"type": "dataset"}},"verified_at": "2026-11-25T18:37:25+00:00"}
295 unmodified lines29629729829930030132 unmodified lines334335336337338339295 unmodified lines</details>[Explore the results](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) · [Hugging Face explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Hugging Face collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378) · [Paper](reports/paper.pdf) · [Run ledger](reports/experiments/experiments.md)Recorded 51 runs, including 50 with a completed summary.32 unmodified lines## Milestones- Publish the protocol, references and analysis decisions.- Verify the scalar objective and its training gradient on analytical functions and a small Transformer.- Train the pilot, publish throughput and establish feasibility on the local GPU.295 unmodified lines29629729829930030130230332 unmodified lines336337338339340341342343295 unmodified lines</details>Seed sensitivity is the final stage, after both primary test evaluations, all hybrid replications and checkpoint flatness. [Final seed-sensitivity report](reports/seed-sensitivity.md)[Explore the results](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) · [Hugging Face explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Hugging Face collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378) · [Paper](reports/paper.pdf) · [Run ledger](reports/experiments/experiments.md)Recorded 51 runs, including 50 with a completed summary.32 unmodified lines## Milestones**Seed sensitivity runs last.** Both stages complete their single-seed variants, controls and first full-budget comparison before the remaining primary confirmations. After the frozen tests, hybrid replications and checkpoint flatness, the final report measures how much the outcomes change across seeds. [Execution order](reports/amendments/seed-sensitivity-last.md) · [Final seed-sensitivity report](reports/seed-sensitivity.md)- Publish the protocol, references and analysis decisions.- Verify the scalar objective and its training gradient on analytical functions and a small Transformer.- Train the pilot, publish throughput and establish feasibility on the local GPU.
252 unmodified lines253254255256257258252 unmodified lines</details><!-- COMPARISONS:END -->## Research materials252 unmodified lines253254255256257258259260252 unmodified lines</details>Seed sensitivity is the final stage, after both primary test evaluations, all hybrid replications and checkpoint flatness. [Final seed-sensitivity report](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/seed-sensitivity.md)<!-- COMPARISONS:END -->## Research materials
54 unmodified lines55565758596054 unmodified linesWith `study --publish`, the local trainer sends active loss, accuracy, probe estimates, calibration progress and examples to the public explorer about every two minutes. GitHub Pages and the Hugging Face Space read that feed between full releases. The local dashboard reads the training records directly. [Public live feed](https://huggingface.co/BurnyCoder/thirdloss-study/resolve/main/live.json)## 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)54 unmodified lines5556575859606162636454 unmodified linesWith `study --publish`, the local trainer sends active loss, accuracy, probe estimates, calibration progress and examples to the public explorer about every two minutes. GitHub Pages and the Hugging Face Space read that feed between full releases. The local dashboard reads the training records directly. [Public live feed](https://huggingface.co/BurnyCoder/thirdloss-study/resolve/main/live.json)## Execution orderThe complete study defers seed sensitivity to the end. Both stages’ pilot variants and controls and a full-budget first seed per stage come first. The remaining primary comparisons, frozen test scores, hybrid replications and all checkpoint geometry precede the final seed analysis. `uv run --locked thirdloss seed-sensitivity` reruns that final stage from a complete checkout. Once the inputs are sealed, `uv run --locked thirdloss report` also regenerates the seed summaries. For a standalone hybrid example use `thirdloss hybrid --cohort example`. The deferred replay uses its registered donor. [Ordering and prerequisites](../reports/amendments/seed-sensitivity-last.md)## 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)
1234567891011121314151617# Seed sensitivity is the final stage
25 November 2026. The execution order changed after the initial development pilots and several TinyStories hybrid replications. The next hybrid arm was held at a published shared checkpoint. The historical ledger records the completed jobs at the transition. Both official test sets were sealed at that time. The primary and hybrid preregistrations govern the seed assignments, token horizons, comparison arms, decision rules and replay donors. [Transition record](../../results/verification/seed-order-transition.json) · [Primary preregistration](../preregistration.md) · [Hybrid preregistration](../hybrid/preregistration.md)
## Execution order
1. Complete both corpora’s single-seed pilots, strength searches, free references and trained controls. Finish the initial and fitted checkpoint geometry. The standalone hybrid example uses the first registered hybrid seed and the five arms whose inputs already exist.2. Train and measure the first full-budget paired seed for AdamW, Hessian trace and third order in **both** model families. These runs count toward the original registered sample of eight.3. Complete the other seven paired primary seeds per model family. Freeze every stage’s checkpoints before evaluating its test corpus. Report and publish the original primary comparisons as specified.4. Finish the remaining registered hybrid replications. The first hybrid seed’s replay consumes the last seed’s schedule and runs after that donor. Reconcile all checkpoint flatness and publication milestones.5. Seal the exact summaries, stage freezes, geometry and hybrid width records. **Run the seed-sensitivity analysis last.** The same reporting command then regenerates its results from the seal. [Study coordinator](../../src/thirdloss/study.py) · [Final analysis](../../src/thirdloss/seed_sensitivity.py)
## Final descriptive analysis
For each registered primary arm, report the median, sample standard deviation and observed range of full-corpus test NLL and weight-space width across seeds. For each hybrid, report the same summaries of development NLL and final weight width. For the prespecified primary NLL contrasts and the adaptive-versus-fixed and adaptive-versus-replay contrasts, form the difference within each seed before summarizing. Report the eight medians obtained by leaving out each complete seed pair in turn and their range. Keep a censored width explicit whenever a finite summary is unidentified. A single-seed control contributes its observed outcome to the study ledger.
A seed jointly controls initialization, document order and stochastic probes. The spread describes joint run-to-run variation on these fixed corpora. The final sensitivity summaries supplement the registered sign tests and median intervals. [Paired ML benchmarking](https://proceedings.mlsys.org/paper_files/paper/2021/file/0184b0cd3cfb185989f858a1d9f5c1eb-Abstract.html) · [Analysis protocol](../preregistration.md)13 unmodified lines14151617181913 unmodified linesThe dated progress record gives completed milestones and outstanding work. Source code, token-stream digests, restartable checkpoint settings and reload instructions are available from the reproduction guide. [Progress](progress.md) · [Reproduction guide](../docs/runbook.md)## Late third-derivative regularizationThe fixed late ramp, curvature-dependent rule, cross-seed replay and controls are now registered for execution. [Hybrid preregistration and run matrix](hybrid/preregistration.md)13 unmodified lines141516171819202113 unmodified linesThe dated progress record gives completed milestones and outstanding work. Source code, token-stream digests, restartable checkpoint settings and reload instructions are available from the reproduction guide. [Progress](progress.md) · [Reproduction guide](../docs/runbook.md)Seed sensitivity is the final analysis. Complete all single-seed variants and controls in both model families, run the first full-budget paired seed in each, finish the registered primary studies and their frozen tests, and then finish the pending hybrid replications. After every checkpoint has its geometry, seal the inputs and summarize variability across seeds. [Execution-order amendment](amendments/seed-sensitivity-last.md) · [Final report](seed-sensitivity.md)## Late third-derivative regularizationThe fixed late ramp, curvature-dependent rule, cross-seed replay and controls are now registered for execution. [Hybrid preregistration and run matrix](hybrid/preregistration.md)
17 unmodified lines18192021222317 unmodified lines## Registered hybrid follow-upThe six TinyStories arms share eight paired seeds. Five branch from a common trace-trained checkpoint and one uses both penalties from initialization. Directional width is measured at three token counts. The curvature rule, replay donors, cap, stronger-trace calibration and decision threshold were fixed before follow-up outcomes. [Hybrid run matrix and decision rule](hybrid/preregistration.md) · [Research question](plan.md#curvature-dependent-penalty-weight)## Secondary flatness measurements17 unmodified lines181920212223242517 unmodified lines## Registered hybrid follow-upThe full queue completes both stages’ pilots and trained controls before additional seed replication. Both families receive a full-budget first seed before the remaining primary confirmations. The remaining hybrid seeds and cyclic replay follow the original test evaluations. The dedicated seed-sensitivity analysis runs last. [Execution order and descriptive statistics](amendments/seed-sensitivity-last.md)The six TinyStories arms share eight paired seeds. Five branch from a common trace-trained checkpoint and one uses both penalties from initialization. Directional width is measured at three token counts. The curvature rule, replay donors, cap, stronger-trace calibration and decision threshold were fixed before follow-up outcomes. [Hybrid run matrix and decision rule](hybrid/preregistration.md) · [Research question](plan.md#curvature-dependent-penalty-weight)## Secondary flatness measurements
12345638 unmodified lines45464748495051# Study progressUpdated 2026-11-25T18:29:39+00:00.21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.38 unmodified linesAcross training, references, final tests, hybrid runs and flatness evaluations, **99/305 milestones are complete (32.5%)** and 206 remain. Each milestone has equal weight in this count. Data preparation, software and publications are recorded separately.Projected remaining machine time is **29.64–31.08 hours**, including model publication and geometry. There are 156.29 hours left in the original week. These are two timing scenarios. They use the recorded pilot rates, whole remaining hybrid seed blocks, the longest primary pilot as a proxy for each remaining secondary pilot, and median or slower diagnostic and release cycles. Machine or network interruptions can extend them. [Cost by task](../results/feasibility/remaining-work.json) · [Observed release times](../results/feasibility/checkpoint-publication-time.json)## Monitoring12345638 unmodified lines454647484950515253# Study progressUpdated 2026-11-25T18:37:11+00:00.21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.38 unmodified linesAcross training, references, final tests, hybrid runs and flatness evaluations, **99/305 milestones are complete (32.5%)** and 206 remain. Each milestone has equal weight in this count. Data preparation, software and publications are recorded separately.Projected remaining machine time is **29.64–31.08 hours**, including model publication and geometry. There are 156.17 hours left in the original week. These are two timing scenarios. They use the recorded pilot rates, whole remaining hybrid seed blocks, the longest primary pilot as a proxy for each remaining secondary pilot, and median or slower diagnostic and release cycles. Machine or network interruptions can extend them. [Cost by task](../results/feasibility/remaining-work.json) · [Observed release times](../results/feasibility/checkpoint-publication-time.json)The final seed-sensitivity analysis is pending. The queue completes both stages’ single-seed comparisons and original frozen test evaluations before the remaining hybrid replications. All checkpoint measurements precede the final across-seed analysis. [Queue amendment](amendments/seed-sensitivity-last.md) · [Final report](seed-sensitivity.md)## Monitoring
12345# Final seed-sensitivity analysis
[Execution order and descriptive analysis](amendments/seed-sensitivity-last.md) · [Timestamped study progress](progress.md)
Scheduled last, after both primary test matrices, the complete hybrid follow-up and all checkpoint geometry.7 unmodified lines8910111213147 unmodified linesTinyStories hybrid follow-up: 23 of 48 full runs and 5 of 8 shared checkpoints complete. Geometric decision: awaiting eight paired width measurements. [Hybrid outcomes](hybrid/results.md)[Interactive explorer](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) · [Per-run ledger](experiments/experiments.md) · [Preregistration](preregistration.md) · [Paper](paper.pdf)## Development observations7 unmodified lines8910111213147 unmodified linesTinyStories hybrid follow-up: 23 of 48 full runs and 5 of 8 shared checkpoints complete. Geometric decision: awaiting eight paired width measurements. [Hybrid outcomes](hybrid/results.md)[Interactive explorer](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) · [Per-run ledger](experiments/experiments.md) · [Final seed sensitivity](seed-sensitivity.md) · [Preregistration](preregistration.md) · [Paper](paper.pdf)## Development observations
123456789{"as_of": "2026-11-25T18:29:39+00:00","completed": 99,"planned": 305,"remaining": 206,"remaining_hours_in_week": 156.29472222222222,"hybrid_blocks_left_including_partial": 4,"replays_left": 5,"remaining_primary_publications": 99,123456789{"as_of": "2026-11-25T18:37:11+00:00","completed": 99,"planned": 305,"remaining": 206,"remaining_hours_in_week": 156.16916666666665,"hybrid_blocks_left_including_partial": 4,"replays_left": 5,"remaining_primary_publications": 99,
123456789101112131415161718192021222324252627282930313233343536373839404142{ "recorded_at": "2026-11-25T18:34:30+00:00", "paused_after": "stories-branch-s25-trunk-r01", "next_deferred_replication": "stories-hybrid-s25-adaptive-r01", "prior_geometry_git_revision": "79e7a294919d444723ceb9cb18c068573f845f34", "registered_primary_training_and_controls": 21, "primary_confirmation_runs": 0, "primary_test_scores": 0, "hybrid_full_runs": 23, "shared_trunks": 5, "completed_hybrid_checkpoints": [ "stories-branch-s21-trunk-r01", "stories-branch-s22-trunk-r01", "stories-branch-s23-trunk-r01", "stories-branch-s24-trunk-r01", "stories-branch-s25-trunk-r01", "stories-hybrid-s21-adaptive-r01", "stories-hybrid-s21-always-r01", "stories-hybrid-s21-late-r01", "stories-hybrid-s21-strong-r01", "stories-hybrid-s21-trace-r01", "stories-hybrid-s22-adaptive-r01", "stories-hybrid-s22-always-r01", "stories-hybrid-s22-late-r01", "stories-hybrid-s22-replay-r01", "stories-hybrid-s22-strong-r01", "stories-hybrid-s22-trace-r01", "stories-hybrid-s23-adaptive-r01", "stories-hybrid-s23-always-r01", "stories-hybrid-s23-late-r01", "stories-hybrid-s23-replay-r01", "stories-hybrid-s23-strong-r01", "stories-hybrid-s23-trace-r01", "stories-hybrid-s24-adaptive-r01", "stories-hybrid-s24-always-r01", "stories-hybrid-s24-late-r01", "stories-hybrid-s24-replay-r01", "stories-hybrid-s24-strong-r01", "stories-hybrid-s24-trace-r01" ], "open_stage_freezes": []}1234563 unmodified lines1011121314151617181920213 unmodified lines2526272829303118 unmodified lines50515253545556575859606113 unmodified lines75767778798081828384858687888990918 unmodified lines1001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401418 unmodified lines1501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801817 unmodified lines1891901911921931941951961971981992003 unmodified lines2042052062072082092103 unmodified lines2142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492503 unmodified lines2542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503 unmodified lines3543553563573583593603613623633643653663673683693703713723733743753 unmodified lines379380381382383384385{"checked_at": "2026-11-25T17:14:26+00:00","git_revision": "3d62150e872edeb819bde3b6a8aad8b8dafc171e","exit_code": 0,"cases": [{3 unmodified lines},{"test": "tests.test_analysis.test_second_comparator_failure_and_ties_count_separately","seconds": 0.002,"outcome": "passed"},{"test": "tests.test_analysis.test_holm_step_down_tie_handling_and_exact_boundary","seconds": 0.001,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_analysis.test_partial_or_mismatched_results_never_unlock_primary_inference[missing]","seconds": 0.001,"outcome": "passed"},{18 unmodified lines},{"test": "tests.test_analysis.test_partial_or_mismatched_results_never_unlock_primary_inference[wrong configured budget]","seconds": 0.002,"outcome": "passed"},{"test": "tests.test_analysis.test_partial_or_mismatched_results_never_unlock_primary_inference[nonfinite]","seconds": 0.002,"outcome": "passed"},{13 unmodified lines},{"test": "tests.test_analysis.test_exploratory_arms_and_other_stages_do_not_enter_paired_matrix","seconds": 0.001,"outcome": "passed"},{"test": "tests.test_analysis.test_elapsed_time_uses_latest_actual_validation_before_shared_cutoff","seconds": 0.001,"outcome": "passed"},{"test": "tests.test_analysis.test_adapter_time_comparisons_keep_allocated_device_and_host_excluded_clocks_distinct","seconds": 0.001,"outcome": "passed"},{8 unmodified lines},{"test": "tests.test_data.test_prefix_candidates_match_exhaustive_jaccard_including_boundary","seconds": 0.066,"outcome": "passed"},{"test": "tests.test_data.test_abstract_submission_month_and_base_id_grouping","seconds": 0.033,"outcome": "passed"},{"test": "tests.test_data.test_prepare_from_parquet_proves_train_only_fit_packing_and_repair","seconds": 0.114,"outcome": "passed"},{"test": "tests.test_derivatives.test_gpu_production_decoder_third_order_update_matches_cpu","seconds": 3.678,"outcome": "passed"},{"test": "tests.test_derivatives.test_quartic_penalty_retains_fourth_derivative","seconds": 0.003,"outcome": "passed"},{"test": "tests.test_derivatives.test_mixed_cubic_exactly_averages_to_tensor_norm","seconds": 0.054,"outcome": "passed"},{"test": "tests.test_derivatives.test_random_probe_generator_gives_independent_directions","seconds": 0.211,"outcome": "passed"},{"test": "tests.test_derivatives.test_penalty_supports_linear_loss_and_unused_coordinates[third]","seconds": 0.002,"outcome": "passed"},{8 unmodified lines},{"test": "tests.test_derivatives.test_quadratic_has_curvature_and_zero_third_derivative","seconds": 0.002,"outcome": "passed"},{"test": "tests.test_derivatives.test_signed_hessian_trace_and_squared_norm_have_correct_gradients","seconds": 0.004,"outcome": "passed"},{"test": "tests.test_derivatives.test_tiny_transformer_against_dense_tensor_and_finite_differences","seconds": 2.355,"outcome": "passed"},{"test": "tests.test_derivatives.test_actual_adamw_update_responds_to_the_third_order_term","seconds": 0.006,"outcome": "passed"},{"test": "tests.test_derivatives.test_production_story_model_exposes_full_weight_penalty_gradient","seconds": 0.052,"outcome": "passed"},{"test": "tests.test_derivatives.test_pythia_adapter_fourth_derivative_and_portable_checkpoint","seconds": 6.165,"outcome": "passed","measurements": {"adapter_directional_autograd": "9035.374247002468",7 unmodified lines},{"test": "tests.test_derivatives.test_sequential_windows_reproduce_joint_penalty_and_training_gradient","seconds": 0.238,"outcome": "passed"},{"test": "tests.test_flatness.test_curvature_keeps_trace_signs_and_counts_negative_eigenvalues_in_rms","seconds": 0.025,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_flatness.test_flatness_table_preserves_seed_count_and_geometry_units","seconds": 0.002,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_flatness.test_geometry_forecast_counts_the_unigram_and_preserves_observed_publication_time","seconds": 0.03,"outcome": "passed"},{"test": "tests.test_flatness.test_common_logit_probe_matches_direct_softmax_and_its_second_derivative","seconds": 0.003,"outcome": "passed"},{"test": "tests.test_flatness.test_unigram_uses_identical_score_coordinates_to_a_constant_neural_predictor","seconds": 0.013,"outcome": "passed"},{"test": "tests.test_flatness.test_all_arm_table_keeps_weightless_reference_and_every_control","seconds": 0.008,"outcome": "passed"},{"test": "tests.test_flatness.test_geometry_milestone_retries_missing_receipt_and_skips_a_verified_unigram","seconds": 0.024,"outcome": "passed"},{"test": "tests.test_hub_archive.test_archive_uses_committed_blobs_including_dotfiles","seconds": 0.464,"outcome": "passed"},{"test": "tests.test_hub_archive.test_remote_sha_matches_git_and_large_file_storage","seconds": 0.008,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_hub_archive.test_model_repository_compares_fitted_and_weightless_predictors_from_the_same_records","seconds": 0.033,"outcome": "passed"},{"test": "tests.test_hub_archive.test_packed_files_match_manifest_and_release_test_only_after_both_gates","seconds": 0.032,"outcome": "passed"},{"test": "tests.test_hub_archive.test_live_feed_retains_active_and_latest_completed_runs","seconds": 0.003,"outcome": "passed"},{"test": "tests.test_hub_archive.test_result_publisher_merges_concurrent_documentation_without_losing_either","seconds": 3.283,"outcome": "passed"},{"test": "tests.test_hub_archive.test_result_publication_retries_outages_without_rewriting_history","seconds": 0.005,"outcome": "passed"},{"test": "tests.test_hybrid.test_lagged_rms_latch_and_replay_survive_checkpoint","seconds": 0.002,"outcome": "passed"},{"test": "tests.test_hybrid.test_fixed_and_stronger_trace_apply_only_after_switch","seconds": 0.002,"outcome": "passed"},{"test": "tests.test_hybrid.test_width_exact_crossing_censor_and_bitwise_restoration","seconds": 0.006,"outcome": "passed"},{"test": "tests.test_hybrid.test_branch_restores_adam_moments_rng_cursor_and_monitor","seconds": 0.033,"outcome": "passed"},{"test": "tests.test_hybrid.test_width_inference_requires_eight_pairs_and_keeps_censoring","seconds": 0.002,"outcome": "passed"},{"test": "tests.test_hybrid.test_missing_parent_uses_pinned_hub_revision_and_checks_bytes","seconds": 0.042,"outcome": "passed"},{"test": "tests.test_hybrid.test_joint_week_forecast_counts_shared_prefix_once_and_all_eight_replays","seconds": 0.085,"outcome": "passed"},{"test": "tests.test_hybrid.test_restart_timing_distinguishes_real_elapsed_time_from_repeated_outages","seconds": 0.007,"outcome": "passed"},{"test": "tests.test_hybrid.test_restart_audit_replays_only_uncommitted_logged_updates","seconds": 0.04,"outcome": "passed"},{"test": "tests.test_readme_comparisons.test_pilot_comparison_excludes_unselected_runs_and_unsealed_scores","seconds": 0.006,"outcome": "passed"},{"test": "tests.test_readme_comparisons.test_hybrid_effects_use_each_comparators_own_pairs_and_width_gains","seconds": 0.01,"outcome": "passed"},{"test": "tests.test_readme_comparisons.test_final_scorecard_uses_all_eight_seeds_and_shows_holm_and_median_interval","seconds": 0.007,"outcome": "passed"},{"test": "tests.test_readme_comparisons.test_output_panel_requires_identical_prompts_and_escapes_generated_markup","seconds": 0.013,"outcome": "passed"},{"test": "tests.test_readme_comparisons.test_legacy_stories_pilots_require_matching_first_update_when_initial_hash_is_absent","seconds": 0.012,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_reporting.test_snapshot_keeps_full_score_and_trace_semantics","seconds": 0.039,"outcome": "passed"},{"test": "tests.test_reporting.test_report_before_first_run_keeps_readme_and_emits_protocol_paper","seconds": 1.703,"outcome": "passed"},{"test": "tests.test_training.test_randomized_control_preserves_coordinate_magnitudes_and_zero_is_noop","seconds": 0.115,"outcome": "passed"},{"test": "tests.test_training.test_step_recovery_matches_uninterrupted_weights","seconds": 2.084,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_training.test_evaluator_requires_measured_schedule_before_test_reads","seconds": 0.023,"outcome": "passed"}]1234563 unmodified lines1011121314151617181920213 unmodified lines2526272829303118 unmodified lines50515253545556575859606113 unmodified lines75767778798081828384858687888990918 unmodified lines1001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401418 unmodified lines1501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801817 unmodified lines1891901911921931941951961971981992003 unmodified lines2042052062072082092103 unmodified lines2142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642653 unmodified lines2692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703 unmodified lines3743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144153 unmodified lines419420421422423424425{"checked_at": "2026-11-25T18:36:50+00:00","git_revision": "e02cc3197ac2a13733194a157bc50faecfaae35c","exit_code": 0,"cases": [{3 unmodified lines},{"test": "tests.test_analysis.test_second_comparator_failure_and_ties_count_separately","seconds": 0.001,"outcome": "passed"},{"test": "tests.test_analysis.test_holm_step_down_tie_handling_and_exact_boundary","seconds": 0.002,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_analysis.test_partial_or_mismatched_results_never_unlock_primary_inference[missing]","seconds": 0.002,"outcome": "passed"},{18 unmodified lines},{"test": "tests.test_analysis.test_partial_or_mismatched_results_never_unlock_primary_inference[wrong configured budget]","seconds": 0.001,"outcome": "passed"},{"test": "tests.test_analysis.test_partial_or_mismatched_results_never_unlock_primary_inference[nonfinite]","seconds": 0.001,"outcome": "passed"},{13 unmodified lines},{"test": "tests.test_analysis.test_exploratory_arms_and_other_stages_do_not_enter_paired_matrix","seconds": 0.002,"outcome": "passed"},{"test": "tests.test_analysis.test_elapsed_time_uses_latest_actual_validation_before_shared_cutoff","seconds": 0.002,"outcome": "passed"},{"test": "tests.test_analysis.test_adapter_time_comparisons_keep_allocated_device_and_host_excluded_clocks_distinct","seconds": 0.002,"outcome": "passed"},{8 unmodified lines},{"test": "tests.test_data.test_prefix_candidates_match_exhaustive_jaccard_including_boundary","seconds": 0.061,"outcome": "passed"},{"test": "tests.test_data.test_abstract_submission_month_and_base_id_grouping","seconds": 0.034,"outcome": "passed"},{"test": "tests.test_data.test_prepare_from_parquet_proves_train_only_fit_packing_and_repair","seconds": 0.275,"outcome": "passed"},{"test": "tests.test_derivatives.test_gpu_production_decoder_third_order_update_matches_cpu","seconds": 4.192,"outcome": "passed"},{"test": "tests.test_derivatives.test_quartic_penalty_retains_fourth_derivative","seconds": 0.004,"outcome": "passed"},{"test": "tests.test_derivatives.test_mixed_cubic_exactly_averages_to_tensor_norm","seconds": 0.057,"outcome": "passed"},{"test": "tests.test_derivatives.test_random_probe_generator_gives_independent_directions","seconds": 0.237,"outcome": "passed"},{"test": "tests.test_derivatives.test_penalty_supports_linear_loss_and_unused_coordinates[third]","seconds": 0.004,"outcome": "passed"},{8 unmodified lines},{"test": "tests.test_derivatives.test_quadratic_has_curvature_and_zero_third_derivative","seconds": 0.003,"outcome": "passed"},{"test": "tests.test_derivatives.test_signed_hessian_trace_and_squared_norm_have_correct_gradients","seconds": 0.005,"outcome": "passed"},{"test": "tests.test_derivatives.test_tiny_transformer_against_dense_tensor_and_finite_differences","seconds": 2.641,"outcome": "passed"},{"test": "tests.test_derivatives.test_actual_adamw_update_responds_to_the_third_order_term","seconds": 0.011,"outcome": "passed"},{"test": "tests.test_derivatives.test_production_story_model_exposes_full_weight_penalty_gradient","seconds": 0.056,"outcome": "passed"},{"test": "tests.test_derivatives.test_pythia_adapter_fourth_derivative_and_portable_checkpoint","seconds": 8.038,"outcome": "passed","measurements": {"adapter_directional_autograd": "9035.374247002468",7 unmodified lines},{"test": "tests.test_derivatives.test_sequential_windows_reproduce_joint_penalty_and_training_gradient","seconds": 0.174,"outcome": "passed"},{"test": "tests.test_flatness.test_curvature_keeps_trace_signs_and_counts_negative_eigenvalues_in_rms","seconds": 0.04,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_flatness.test_flatness_table_preserves_seed_count_and_geometry_units","seconds": 0.001,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_flatness.test_geometry_forecast_counts_the_unigram_and_preserves_observed_publication_time","seconds": 0.04,"outcome": "passed"},{"test": "tests.test_flatness.test_all_model_table_rejects_mismatched_weight_probes_in_secondary_arms","seconds": 0.004,"outcome": "passed"},{"test": "tests.test_flatness.test_hybrid_width_reuse_distinguishes_cpu_and_cuda_random_direction_streams","seconds": 0.031,"outcome": "passed"},{"test": "tests.test_flatness.test_common_logit_probe_matches_direct_softmax_and_its_second_derivative","seconds": 0.013,"outcome": "passed"},{"test": "tests.test_flatness.test_unigram_uses_identical_score_coordinates_to_a_constant_neural_predictor","seconds": 0.014,"outcome": "passed"},{"test": "tests.test_flatness.test_all_arm_table_keeps_weightless_reference_and_every_control","seconds": 0.006,"outcome": "passed"},{"test": "tests.test_flatness.test_score_card_keeps_small_width_differences_and_outward_bisection_bounds","seconds": 0.001,"outcome": "passed"},{"test": "tests.test_flatness.test_geometry_milestone_retries_missing_receipt_and_skips_a_verified_unigram","seconds": 0.023,"outcome": "passed"},{"test": "tests.test_hub_archive.test_archive_uses_committed_blobs_including_dotfiles","seconds": 0.469,"outcome": "passed"},{"test": "tests.test_hub_archive.test_remote_sha_matches_git_and_large_file_storage","seconds": 0.007,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_hub_archive.test_model_repository_compares_fitted_and_weightless_predictors_from_the_same_records","seconds": 0.053,"outcome": "passed"},{"test": "tests.test_hub_archive.test_packed_files_match_manifest_and_release_test_only_after_both_gates","seconds": 0.06,"outcome": "passed"},{"test": "tests.test_hub_archive.test_live_feed_retains_active_and_latest_completed_runs","seconds": 0.005,"outcome": "passed"},{"test": "tests.test_hub_archive.test_result_publisher_merges_concurrent_documentation_without_losing_either","seconds": 3.147,"outcome": "passed"},{"test": "tests.test_hub_archive.test_result_publication_retries_outages_without_rewriting_history","seconds": 0.004,"outcome": "passed"},{"test": "tests.test_hybrid.test_lagged_rms_latch_and_replay_survive_checkpoint","seconds": 0.001,"outcome": "passed"},{"test": "tests.test_hybrid.test_fixed_and_stronger_trace_apply_only_after_switch","seconds": 0.001,"outcome": "passed"},{"test": "tests.test_hybrid.test_width_exact_crossing_censor_and_bitwise_restoration","seconds": 0.008,"outcome": "passed"},{"test": "tests.test_hybrid.test_branch_restores_adam_moments_rng_cursor_and_monitor","seconds": 0.039,"outcome": "passed"},{"test": "tests.test_hybrid.test_width_inference_requires_eight_pairs_and_keeps_censoring","seconds": 0.001,"outcome": "passed"},{"test": "tests.test_hybrid.test_missing_parent_uses_pinned_hub_revision_and_checks_bytes","seconds": 0.07,"outcome": "passed"},{"test": "tests.test_hybrid.test_joint_week_forecast_counts_shared_prefix_once_and_all_eight_replays","seconds": 0.113,"outcome": "passed"},{"test": "tests.test_hybrid.test_restart_timing_distinguishes_real_elapsed_time_from_repeated_outages","seconds": 0.006,"outcome": "passed"},{"test": "tests.test_hybrid.test_restart_audit_replays_only_uncommitted_logged_updates","seconds": 0.032,"outcome": "passed"},{"test": "tests.test_progress.test_remaining_primary_work_keeps_frozen_tests_after_training_and_removes_scored_tests","seconds": 0.001,"outcome": "passed"},{"test": "tests.test_readme_comparisons.test_pilot_comparison_excludes_unselected_runs_and_unsealed_scores","seconds": 0.005,"outcome": "passed"},{"test": "tests.test_readme_comparisons.test_hybrid_effects_use_each_comparators_own_pairs_and_width_gains","seconds": 0.005,"outcome": "passed"},{"test": "tests.test_readme_comparisons.test_final_scorecard_uses_all_eight_seeds_and_shows_holm_and_median_interval","seconds": 0.005,"outcome": "passed"},{"test": "tests.test_readme_comparisons.test_output_panel_requires_identical_prompts_and_escapes_generated_markup","seconds": 0.006,"outcome": "passed"},{"test": "tests.test_readme_comparisons.test_legacy_stories_pilots_require_matching_first_update_when_initial_hash_is_absent","seconds": 0.008,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_reporting.test_snapshot_keeps_full_score_and_trace_semantics","seconds": 0.036,"outcome": "passed"},{"test": "tests.test_reporting.test_report_before_first_run_keeps_readme_and_emits_protocol_paper","seconds": 1.678,"outcome": "passed"},{"test": "tests.test_seed_order.test_full_study_finishes_single_seed_work_before_replications_and_analyzes_seeds_last","seconds": 0.01,"outcome": "passed"},{"test": "tests.test_seed_order.test_seed_sensitivity_is_unavailable_for_an_incomplete_study","seconds": 0.005,"outcome": "passed"},{"test": "tests.test_seed_order.test_leave_one_seed_out_uses_each_seed_once_and_keeps_censoring","seconds": 0.002,"outcome": "passed"},{"test": "tests.test_seed_order.test_final_report_requires_a_seal_and_rejects_changed_inputs","seconds": 2.67,"outcome": "passed"},{"test": "tests.test_training.test_randomized_control_preserves_coordinate_magnitudes_and_zero_is_noop","seconds": 0.123,"outcome": "passed"},{"test": "tests.test_training.test_step_recovery_matches_uninterrupted_weights","seconds": 2.168,"outcome": "passed"},{3 unmodified lines},{"test": "tests.test_training.test_evaluator_requires_measured_schedule_before_test_reads","seconds": 0.033,"outcome": "passed"}]
35 unmodified lines363738394041426 unmodified lines4950515253547 unmodified lines626364656667689 unmodified lines78798081828358 unmodified lines14214314414514614714814915015115215335 unmodified linesp = argparse.ArgumentParser(description=__doc__)p.add_argument("--project",type=Path,default=Path.cwd())parsers = p.add_subparsers(dest="action",required=True)for action in ("prepare","train","study","hybrid","flatness","freeze","evaluate","report","dashboard","publish","audit-hub","audit-restart","progress","verify"):sub = parsers.add_parser(action)if action in {"prepare","study","flatness"}:sub.add_argument("--stage",choices=(*HORIZONS,"both"),default="both")6 unmodified linessub.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")if action in {"study","hybrid"}:sub.add_argument("--with-flatness",action="store_true",help="Measure comparable training-window geometry at each completed checkpoint")if action=="verify":7 unmodified linessub.add_argument("--seed",type=int,default=0)sub.add_argument("--ratio",type=float,default=0.03)sub.add_argument("--microbatch",type=int)if action in {"train","study","hybrid","evaluate","flatness"}:sub.add_argument("--publish",action="store_true",help="Publish results to the configured project accounts")if action in {"evaluate","audit-restart"}:sub.add_argument("run_id")9 unmodified linesargs = parser().parse_args(argv)project = args.project.resolve()storage = storage_root(project)if args.action=="audit-hub":from .hub_archive import audit_archiveprint(json.dumps(audit_archive(project),indent=2))58 unmodified linesif args.action=="hybrid":from .hybrid import run_hybridsprepare_stage(project,storage,"stories")run_hybrids(project,storage,device,args.publish,with_flatness=args.with_flatness)else:run_study(project,storage,stages,device,args.publish,with_hybrid=args.with_hybrid,with_flatness=args.with_flatness)if args.with_flatness:from .checkpoint_flatness import flatness_studyflatness_study(project,storage,stages,"all",device,args.publish)returnif args.action=="evaluate":summary = evaluate_one(project,storage,args.run_id,device)35 unmodified lines363738394041426 unmodified lines4950515253545556577 unmodified lines656667686970719 unmodified lines8182838485868788899058 unmodified lines14915015115215315415515615735 unmodified linesp = argparse.ArgumentParser(description=__doc__)p.add_argument("--project",type=Path,default=Path.cwd())parsers = p.add_subparsers(dest="action",required=True)for action in ("prepare","train","study","hybrid","flatness","freeze","evaluate","seed-sensitivity","report","dashboard","publish","audit-hub","audit-restart","progress","verify"):sub = parsers.add_parser(action)if action in {"prepare","study","flatness"}:sub.add_argument("--stage",choices=(*HORIZONS,"both"),default="both")6 unmodified linessub.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")if action=="hybrid":sub.add_argument("--cohort",choices=("example","replications","all"),default="all",help="Run the first seed, the remaining seeds and cyclic replay, or the standalone full follow-up")if action in {"study","hybrid"}:sub.add_argument("--with-flatness",action="store_true",help="Measure comparable training-window geometry at each completed checkpoint")if action=="verify":7 unmodified linessub.add_argument("--seed",type=int,default=0)sub.add_argument("--ratio",type=float,default=0.03)sub.add_argument("--microbatch",type=int)if action in {"train","study","hybrid","evaluate","flatness","seed-sensitivity"}:sub.add_argument("--publish",action="store_true",help="Publish results to the configured project accounts")if action in {"evaluate","audit-restart"}:sub.add_argument("run_id")9 unmodified linesargs = parser().parse_args(argv)project = args.project.resolve()storage = storage_root(project)if args.action=="seed-sensitivity":from .seed_sensitivity import finish_seed_sensitivityfinish_seed_sensitivity(project,args.publish)returnif args.action=="audit-hub":from .hub_archive import audit_archiveprint(json.dumps(audit_archive(project),indent=2))58 unmodified linesif args.action=="hybrid":from .hybrid import run_hybridsprepare_stage(project,storage,"stories")run_hybrids(project,storage,device,args.publish,with_flatness=args.with_flatness,cohort=args.cohort)else:run_study(project,storage,stages,device,args.publish,with_hybrid=args.with_hybrid,with_flatness=args.with_flatness)returnif args.action=="evaluate":summary = evaluate_one(project,storage,args.run_id,device)
170 unmodified lines17117217317417517617729 unmodified lines207208209210211212213214215170 unmodified linesreturn deltadef run_hybrids(project,storage,device,publish,with_flatness=False):"""Run each trunk once; delay seed 21 replay until seed 28 has published its schedule."""from .study import milestone, parent_restart_filefrom .train import run_config29 unmodified linesreplay = read_json(path)["changes"]row = run_config(project,storage,config,device,protocol=HybridProtocol(project,storage,config,replay))milestone(project,storage,row,publish,device if with_flatness else None)for seed in SEEDS:for arm in ("trunk","adaptive","late","trace","strong","always"):run(seed,arm)if seed!=SEEDS.start:run(seed,"replay")run(SEEDS.start,"replay")170 unmodified lines17117217317417517617729 unmodified lines207208209210211212213214215216217170 unmodified linesreturn deltadef run_hybrids(project,storage,device,publish,with_flatness=False,cohort="all"):"""Run each trunk once; delay seed 21 replay until seed 28 has published its schedule."""from .study import milestone, parent_restart_filefrom .train import run_config29 unmodified linesreplay = read_json(path)["changes"]row = run_config(project,storage,config,device,protocol=HybridProtocol(project,storage,config,replay))milestone(project,storage,row,publish,device if with_flatness else None)seeds={"example":SEEDS[:1],"replications":SEEDS[1:],"all":SEEDS}[cohort]for seed in seeds:for arm in ("trunk","adaptive","late","trace","strong","always"):run(seed,arm)if seed!=SEEDS.start:run(seed,"replay")if cohort!="example":run(SEEDS.start,"replay")
115 unmodified lines116117118119120121115 unmodified lineslines += geometry_progress(project,study)lines += ["## Overall completion and remaining time",*remaining_work(project,study,schedule,extra,normal,len(done)+len(tests),total)]lines += ["## Monitoring","Inspect runs lasting over 10, 30 and 60 minutes at 5, 15 and 30 minute intervals ""respectively. The live dashboard refreshes between those checks. ""[Study design](plan.md) · [Run matrix](planned-runs.md) · [Experiment ledger](experiments/experiments.md)"]115 unmodified lines116117118119120121122123124125126127115 unmodified lineslines += geometry_progress(project,study)lines += ["## Overall completion and remaining time",*remaining_work(project,study,schedule,extra,normal,len(done)+len(tests),total)]final=(project/"results"/"analysis"/"seed-sensitivity.json").is_file()lines.append(("The final seed-sensitivity analysis is complete." if final else"The final seed-sensitivity analysis is pending. The queue completes both stages’ single-seed ""comparisons and original frozen test evaluations before the remaining hybrid replications. ""All checkpoint measurements precede the final across-seed analysis.")+" [Queue amendment](amendments/seed-sensitivity-last.md) · [Final report](seed-sensitivity.md)")lines += ["## Monitoring","Inspect runs lasting over 10, 30 and 60 minutes at 5, 15 and 30 minute intervals ""respectively. The live dashboard refreshes between those checks. ""[Study design](plan.md) · [Run matrix](planned-runs.md) · [Experiment ledger](experiments/experiments.md)"]
491 unmodified lines492493494495496497491 unmodified lines"at matched token counts. Held-out development loss tests prediction separately. "f"{_link(REPOSITORY + '/blob/main/docs/third-derivative-penalty.md#weighting-the-penalty-by-curvature', 'Derivation')} · "f"{_link(REPOSITORY + '/blob/main/reports/plan.md#curvature-dependent-penalty-weight', 'Controls and readouts')}")p("AI statement", "subheading")p("Codex wrote the codebase and paper from the exact specification provided by a human. ""Human cleanup and rewriting are in progress.", "caption")491 unmodified lines492493494495496497498499500501502503504505506507508509510511491 unmodified lines"at matched token counts. Held-out development loss tests prediction separately. "f"{_link(REPOSITORY + '/blob/main/docs/third-derivative-penalty.md#weighting-the-penalty-by-curvature', 'Derivation')} · "f"{_link(REPOSITORY + '/blob/main/reports/plan.md#curvature-dependent-penalty-weight', 'Controls and readouts')}")p("Final seed sensitivity", "subheading")sensitivity=study.get("seed_sensitivity")if sensitivity:rows=[]for r in sensitivity["rows"]:if r["metric"] in {"Δtest NLL","Δwidth retained"}:loo=r.get("leave_one_out_medians")rows.append([STAGES[r["stage"]],r["arm"],r["metric"],f"{r['sample_sd']:.5g}" if loo else "Censored",f"{min(loo):.5g} to {max(loo):.5g}" if loo else "Censored"])flow.append(_grid(styles,["Corpus","Paired contrast","Metric","Seed SD","Leave-one-out median range"],rows,[83,130,68,67,116]))else:p("The final seed analysis follows the original frozen test evaluations, hybrid replications and checkpoint geometry.", "caption")p(f"{_link(REPOSITORY+'/blob/main/reports/seed-sensitivity.md','Full seed results and execution order')}", "caption")p("AI statement", "subheading")p("Codex wrote the codebase and paper from the exact specification provided by a human. ""Human cleanup and rewriting are in progress.", "caption")
299 unmodified lines3003013023033043056 unmodified lines31231331431531631731812 unmodified lines331332333334335336299 unmodified lines"""Regenerate README results, PDF, experiment ledger, figures and the static dashboard."""root = Path(root).resolve()study = study_snapshot(root)hybrid = _hybrid_report(root,study)atomic_text(root/"reports"/"flatness.md",flatness_ledger(study))figures = build_figures(study, root / "docs" / "figures")6 unmodified linescounts = len(study["runs"])done = sum(completed(run) for run in study["runs"])overview = f"Recorded {counts} runs, including {done} with a completed summary."documents = [f"[Interactive explorer]({PAGES})", "[Per-run ledger](experiments/experiments.md)","[Preregistration](preregistration.md)", "[Paper](paper.pdf)"]summary = ["# Study summary", overview, _stage_summary(study), hybrid+" [Hybrid outcomes](hybrid/results.md)", " · ".join(documents)]pilots = _pilot_summary(study)12 unmodified lines"[Hugging Face collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378) · ""[Paper](reports/paper.pdf) · [Run ledger](reports/experiments/experiments.md)")opening,side_by_side=comparison_sections(study)readme = [side_by_side,badge,overview,hybrid+" [Width measurements, scores and controls](reports/hybrid/results.md)","[Full score table, strength search and per-seed test differences](reports/summary.md)"]if "hybrid_width" in figures:299 unmodified lines3003013023033043053063073086 unmodified lines31531631731831932032112 unmodified lines334335336337338339340341342343299 unmodified lines"""Regenerate README results, PDF, experiment ledger, figures and the static dashboard."""root = Path(root).resolve()study = study_snapshot(root)from .seed_sensitivity import render_seed_sensitivitysensitivity=render_seed_sensitivity(root,study)study["seed_sensitivity"]=sensitivityhybrid = _hybrid_report(root,study)atomic_text(root/"reports"/"flatness.md",flatness_ledger(study))figures = build_figures(study, root / "docs" / "figures")6 unmodified linescounts = len(study["runs"])done = sum(completed(run) for run in study["runs"])overview = f"Recorded {counts} runs, including {done} with a completed summary."documents = [f"[Interactive explorer]({PAGES})", "[Per-run ledger](experiments/experiments.md)", "[Final seed sensitivity](seed-sensitivity.md)","[Preregistration](preregistration.md)", "[Paper](paper.pdf)"]summary = ["# Study summary", overview, _stage_summary(study), hybrid+" [Hybrid outcomes](hybrid/results.md)", " · ".join(documents)]pilots = _pilot_summary(study)12 unmodified lines"[Hugging Face collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378) · ""[Paper](reports/paper.pdf) · [Run ledger](reports/experiments/experiments.md)")opening,side_by_side=comparison_sections(study)seed_status=("The final seed analysis is complete. It gives the across-seed spread and the range of medians ""when each paired seed is omitted in turn." if sensitivity else"Seed sensitivity is the final stage, after both primary test evaluations, all hybrid replications and checkpoint flatness.")side_by_side+="\n\n"+seed_status+" [Final seed-sensitivity report](reports/seed-sensitivity.md)"readme = [side_by_side,badge,overview,hybrid+" [Width measurements, scores and controls](reports/hybrid/results.md)","[Full score table, strength search and per-seed test differences](reports/summary.md)"]if "hybrid_width" in figures:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161"""Seal the complete research inputs and measure between-seed variation as the final stage."""
import hashlibimport jsonimport mathimport subprocessimport sysfrom statistics import median,stdev
from .records import HORIZONS,RATIOS,read_json,run_name,time_now,write_jsonfrom .report_records import METHODS,STAGES,atomic_text,completed,markdown_table,study_snapshot
def _planned_ids(study): """Use the registered IDs, including the cyclic replay and the available precision diagnostic.""" ids={r["id"] for r in study["runs"] if r["phase"]=="diagnostic"} for stage in STAGES: selected=study["context"][stage]["selection"]["ratios"] ids.update(run_name(stage,m,"control",0,0) for m in ("initial","unigram")) ids.add(run_name(stage,"ce","pilot",0,0)) ids.update(run_name(stage,m,"pilot",0,ratio) for m in ("trace","third") for ratio in RATIOS) ids.update(run_name(stage,m,"pilot",0,ratio) for m,ratio in (("hessian_norm",.03),("sham",selected["third"]),("combined",selected["third"]))) ids.update(run_name(stage,m,"confirm",s,selected.get(m,0)) for s in range(1,9) for m in ("ce","trace","third")) for s in range(21,29): ids.add(run_name("stories","trunk","branch",s,.01)) ids.update(run_name("stories",m,"hybrid",s,.01) for m in ("adaptive","late","trace","strong","always","replay")) return ids
def _input_digests(project,study): """Bind the final analysis to both stage freezes and all scheduled model and geometry records.""" if not all(study["stages"][stage]["complete"] for stage in STAGES): raise ValueError("The final stage requires both frozen eight-seed primary test matrices") root=project/"results" indexed={r["id"]:r for r in study["runs"] if completed(r)} files=[] for stage in STAGES: path=root/"freeze"/f"{stage}.json" frozen=read_json(path) for method in ("ce","trace","third"): for seed in range(1,9): matched=[r for r in indexed.values() if r["stage"]==stage and r["phase"]=="confirm" and r["method"]==method and r["seed"]==seed] if len(matched)!=1: raise ValueError(f"The final stage requires each registered {stage} seed and arm") row=matched[0] if (frozen["runs"].get(row["id"])!=row["weights_sha256"] or row["freeze_id"]!=frozen["freeze_id"] or row["tokens"]!=HORIZONS[stage] or row["test_manifest_sha256"]!=frozen["test_sha256"]): raise ValueError(f"Frozen test provenance differs for {row['id']}") files.append(path) for run in sorted(_planned_ids(study)): r=indexed.get(run) if not r or "score_flatness" not in r or (r["method"]!="unigram" and "flatness" not in r): raise ValueError(f"The final stage awaits the completed checkpoint and flatness probes for {run}") folder=root/run files.extend([folder/"summary.json",folder/"score-flatness.json"]) if r["method"]!="unigram": files.append(folder/"flatness.json") if r["phase"] in {"hybrid","branch"}: files.extend(folder/f"width-{step}.json" for step in ((2048,) if r["phase"]=="branch" else (2048,3072,4096))) # Canonical JSON hashes survive a clone with different Git line-ending settings. return {p.relative_to(root).as_posix():hashlib.sha256(json.dumps(read_json(p),sort_keys=True,allow_nan=False, ensure_ascii=False,separators=(",",":")).encode()).hexdigest() for p in files}
def seal_inputs(project,study): """Only the final command creates this seal. Subsequent reports verify every input before reuse.""" path=project/"results"/"freeze"/"seed-sensitivity.json" digests=_input_digests(project,study) if path.exists(): seal=read_json(path) if seal["inputs"]!=digests: raise ValueError("The final seed analysis inputs changed after sealing") return seal seal={"sealed_at":time_now(),"protocol":"final-seed-sensitivity-v1","inputs":digests} write_json(path,seal) return seal
def sensitivity(values): """Leave one whole paired seed out in turn. Preserve an unidentified endpoint when a width is censored.""" observed=[v for v in values if v is not None and math.isfinite(v)] result={"n":len(values),"finite":len(observed)} if len(observed)==len(values): result.update(median=median(values),min=min(values),max=max(values),sample_sd=stdev(values), leave_one_out_medians=[median(values[:i]+values[i+1:]) for i in range(len(values))]) return result
def _rows(study): rows=[] def add(stage,arm,metric,seeds,values): rows.append({"stage":stage,"arm":arm,"metric":metric,"seeds":list(seeds),"values":values,**sensitivity(values)}) confirm=range(1,9) for stage in STAGES: for method in ("ce","trace","third"): runs=sorted((r for r in study["runs"] if r["stage"]==stage and r["phase"]=="confirm" and r["method"]==method and r["seed"] in confirm), key=lambda r:r["seed"]) add(stage,METHODS[method],"Test NLL",confirm,[r["test_nll"] for r in runs]) add(stage,METHODS[method],"Weight width",confirm,[r["flatness"]["width"] for r in runs]) for comparator,result in study["stages"][stage]["comparisons"].items(): pairs=sorted(result["pairs"],key=lambda p:p["seed"]) add(stage,"Third order − "+METHODS[comparator],"Δtest NLL",confirm,[p["delta"] for p in pairs]) follow=range(21,29) for method in ("adaptive","late","trace","strong","replay","always"): runs=sorted((r for r in study["runs"] if r["phase"]=="hybrid" and r["method"]==method and r["seed"] in follow),key=lambda r:r["seed"]) add("stories",METHODS[method]+" · hybrid","Dev NLL",follow,[r["dev_nll"] for r in runs]) add("stories",METHODS[method]+" · hybrid","Final weight width",follow,[r["widths"]["4096"]["width"] for r in runs]) for comparator in ("late","replay"): pairs=sorted((p for p in study["hybrid"]["pairs"] if p["comparator"]==comparator),key=lambda p:p["seed"]) arm="Adaptive − "+METHODS[comparator] add("stories",arm,"Δwidth retained",follow,[p["delta"] for p in pairs]) add("stories",arm,"Δdev NLL",follow,[p["dev_nll_delta"] for p in pairs]) return rows
def render_seed_sensitivity(project,study): """The ordinary reporting command can regenerate the final results only from the sealed inputs.""" body=["# Final seed-sensitivity analysis", "[Execution order and descriptive analysis](amendments/seed-sensitivity-last.md) · " "[Timestamped study progress](progress.md)"] seal=project/"results"/"freeze"/"seed-sensitivity.json" if not seal.is_file(): body.append("Scheduled last, after both primary test matrices, the complete hybrid follow-up and all checkpoint geometry.") atomic_text(project/"reports"/"seed-sensitivity.md","\n\n".join(body)+"\n") return None frozen=seal_inputs(project,study) rows=_rows(study) result={"sealed_at":frozen["sealed_at"],"protocol":frozen["protocol"],"rows":rows} write_json(project/"results"/"analysis"/"seed-sensitivity.json",result) body+=["The unit of replication is one training seed, including its initialization, document order and probes. " "For each paired contrast, omit one complete seed pair at a time and recompute the median. Lower NLL is better. " "A positive width-retention difference favors the adaptive schedule. Dispersion measures have no general better direction. " "The strength and training-control pilots use one seed and do not estimate across-seed variation.", "[Sealed input hashes](../results/freeze/seed-sensitivity.json) · " "[Every seed value and leave-one-out median](../results/analysis/seed-sensitivity.json)"] for stage,name in STAGES.items(): table=[] for r in rows: if r["stage"]!=stage: continue data=["Censored"]*4 if "median" in r: loo=r["leave_one_out_medians"] data=[f"{r['median']:.6g}",f"{r['sample_sd']:.6g}",f"{r['min']:.6g} to {r['max']:.6g}", f"{min(loo):.6g} to {max(loo):.6g}"] table.append([r["arm"],r["metric"],f"{r['finite']}/{r['n']}",*data]) body.extend([f"## {name}",markdown_table(table,["Arm or paired contrast","Metric","Finite seeds","Median", "Sample SD","Across-seed range","Leave-one-out median range"])]) atomic_text(project/"reports"/"seed-sensitivity.md","\n\n".join(body)+"\n") return result
def finish_seed_sensitivity(project,publish): """The full study reaches this entry point after all training, evaluation and geometry milestones.""" seal_inputs(project,study_snapshot(project)) subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"],cwd=project,check=True) if publish: from .release import publish_snapshot publish_snapshot(project,"Publish the final seed-sensitivity analysis")204 unmodified lines20520620720820921021114 unmodified lines226227228229230231232233234235236237238239240241242204 unmodified linesdef run_study(project,storage,stages,device,publish,with_hybrid=False,with_flatness=False):"""Retry-safe complete study. Cached milestones allow continuation after reboot or network loss."""def run(stage,method,phase,seed,ratio):row = run_one(project,storage,stage,method,phase,seed,ratio,device)milestone(project,storage,row,publish,device if with_flatness else None)14 unmodified linesfeasibility(project,stage)for method,ratio in (("hessian_norm",0.03),("sham",selected["third"]),("combined",selected["third"])):run(stage,method,"pilot",0,ratio)if with_hybrid and stage=="stories":from .hybrid import run_hybridsrun_hybrids(project,storage,device,publish,with_flatness=with_flatness)for stage in stages:selected = select(project,stage)for seed in range(1,9):for method in ("third","ce","trace"):run(stage,method,"confirm",seed,selected.get(method,0))sealed = freeze(project,storage,stage)if publish:publish_snapshot(project,f"Freeze all {stage} confirmatory checkpoints before test evaluation")for run_id in sealed["runs"]:row = evaluate_one(project,storage,run_id,device)milestone(project,storage,row,publish,device if with_flatness else None)204 unmodified lines20520620720820921021114 unmodified lines226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256204 unmodified linesdef run_study(project,storage,stages,device,publish,with_hybrid=False,with_flatness=False):"""Finish the single-seed comparisons across both families before the final replication work."""def run(stage,method,phase,seed,ratio):row = run_one(project,storage,stage,method,phase,seed,ratio,device)milestone(project,storage,row,publish,device if with_flatness else None)14 unmodified linesfeasibility(project,stage)for method,ratio in (("hessian_norm",0.03),("sham",selected["third"]),("combined",selected["third"])):run(stage,method,"pilot",0,ratio)if with_flatness:from .checkpoint_flatness import flatness_studyflatness_study(project,storage,stages,"pilot",device,publish)if with_hybrid and "stories" in stages:from .hybrid import run_hybridsrun_hybrids(project,storage,device,publish,with_flatness=with_flatness,cohort="example")def full_seed(stage,seed,selected):for method in ("third","ce","trace"):run(stage,method,"confirm",seed,selected.get(method,0))for stage in stages:full_seed(stage,1,select(project,stage))for stage in stages:selected = select(project,stage)for seed in range(2,9):full_seed(stage,seed,selected)sealed = freeze(project,storage,stage)if publish:publish_snapshot(project,f"Freeze all {stage} confirmatory checkpoints before test evaluation")for run_id in sealed["runs"]:row = evaluate_one(project,storage,run_id,device)milestone(project,storage,row,publish,device if with_flatness else None)if with_hybrid and "stories" in stages:run_hybrids(project,storage,device,publish,with_flatness=with_flatness,cohort="replications")if with_flatness:flatness_study(project,storage,stages,"all",device,publish)if with_hybrid and with_flatness and set(stages)==set(HORIZONS):from .seed_sensitivity import finish_seed_sensitivityfinish_seed_sensitivity(project,publish)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697"""Verify the research queue and the numerical summary of sensitivity to the paired training seed."""
import pytest
def test_full_study_finishes_single_seed_work_before_replications_and_analyzes_seeds_last(tmp_path,monkeypatch): from thirdloss import checkpoint_flatness,hybrid,study from thirdloss import seed_sensitivity from thirdloss.records import write_json events=[] write_json(tmp_path/"results/verification/pythia-scoring-batches.json",{}) monkeypatch.setattr(study,"prepare_stage",lambda *a:None) monkeypatch.setattr(study,"feasibility",lambda *a:None) monkeypatch.setattr(study,"select",lambda *a:{"trace":.01,"third":.01}) def run(project,storage,stage,method,phase,seed,*unused): events.append((phase,stage,method,seed)) return {"id":events[-1]} monkeypatch.setattr(study,"run_one",run) monkeypatch.setattr(study,"milestone",lambda *a:None) monkeypatch.setattr(study,"freeze",lambda p,s,stage:{"runs":[stage]}) monkeypatch.setattr(study,"evaluate_one",lambda p,s,run,d:events.append(("test",run)) or {}) monkeypatch.setattr(hybrid,"run_hybrids",lambda *a,cohort,**kw:events.append(("hybrid",cohort))) monkeypatch.setattr(checkpoint_flatness,"flatness_study",lambda p,s,st,phase,*a:events.append(("geometry",phase))) monkeypatch.setattr(seed_sensitivity,"finish_seed_sensitivity",lambda *a:events.append(("seed-sensitivity",))) study.run_study(tmp_path,tmp_path,["stories","abstracts"],"cpu",False,with_hybrid=True,with_flatness=True) single=[i for i,e in enumerate(events) if e[0] in {"pilot","control"} or e==("hybrid","example") or (e[0]=="confirm" and e[3]==1)] repeats=[i for i,e in enumerate(events) if e[0]=="confirm" and e[3]>1] assert max(single)<min(repeats) assert sum(e[0]=="confirm" for e in events)==48 assert events.index(("test","abstracts"))<events.index(("hybrid","replications")) assert events[-2:]==[("geometry","all"),("seed-sensitivity",)]
def test_seed_sensitivity_is_unavailable_for_an_incomplete_study(tmp_path): from thirdloss.seed_sensitivity import seal_inputs from thirdloss.report_records import study_snapshot with pytest.raises(ValueError,match="final stage"): seal_inputs(tmp_path,study_snapshot(tmp_path)) assert not (tmp_path/"results/freeze/seed-sensitivity.json").exists()
def test_leave_one_seed_out_uses_each_seed_once_and_keeps_censoring(): from thirdloss.seed_sensitivity import sensitivity values=[-4.,-3.,-2.,-1.,1.,2.,3.,4.] result=sensitivity(values) assert result["median"]==0 and result["min"]==-4 and result["max"]==4 assert result["leave_one_out_medians"]==[1.]*4+[-1.]*4 assert result["sample_sd"]==pytest.approx((60/7)**.5) assert sensitivity([None]+values[1:])=={"n":8,"finite":7}
def test_final_report_requires_a_seal_and_rejects_changed_inputs(tmp_path): from thirdloss.records import HORIZONS,write_json from thirdloss.seed_sensitivity import _planned_ids,render_seed_sensitivity,seal_inputs root=tmp_path/"results" study={"context":{s:{"selection":{"ratios":{"trace":.01,"third":.03}}} for s in HORIZONS}, "stages":{},"runs":[],"hybrid":{"pairs":[]}} for stage in HORIZONS: pairs=[{"seed":i,"delta":i/100} for i in range(1,9)] study["stages"][stage]={"complete":True,"comparisons":{m:{"pairs":pairs} for m in ("ce","trace")}} for seed in range(21,29): study["hybrid"]["pairs"].extend({"seed":seed,"comparator":m,"delta":-.02,"dev_nll_delta":.001} for m in ("late","replay")) weights={s:{} for s in HORIZONS} for run in sorted(_planned_ids(study)): stage,phase,seed,method,*_=run.split("-") seed=int(seed[1:]) summary={"id":run,"stage":stage,"phase":phase,"seed":seed,"method":method,"status":"complete", "tokens":HORIZONS[stage],"dev_nll":2+seed/1000} folder=root/run if phase=="confirm": summary.update(test_nll=2+seed/1000,weights_sha256=run,freeze_id=stage,test_manifest_sha256=stage) weights[stage][run]=run write_json(folder/"summary.json",summary) row={**summary,"score_flatness":{"width":1.}} write_json(folder/"score-flatness.json",row["score_flatness"]) if method!="unigram": row["flatness"]={"width":3.} write_json(folder/"flatness.json",row["flatness"]) if phase in ("branch","hybrid"): row["widths"]={} for step in ((2048,) if phase=="branch" else (2048,3072,4096)): row["widths"][str(step)]={"width":3.} write_json(folder/f"width-{step}.json",row["widths"][str(step)]) study["runs"].append(row) for stage in HORIZONS: write_json(root/"freeze"/f"{stage}.json",{"runs":weights[stage],"freeze_id":stage,"test_sha256":stage}) assert render_seed_sensitivity(tmp_path,study) is None assert not (root/"analysis/seed-sensitivity.json").exists() seal_inputs(tmp_path,study) result=render_seed_sensitivity(tmp_path,study) assert len(result["rows"])==32 and all(r["n"]==8 for r in result["rows"]) assert "Leave-one-out median range" in (tmp_path/"reports/seed-sensitivity.md").read_text(encoding="utf-8") write_json(root/"stories-confirm-s01-ce-r00"/"score-flatness.json",{"width":9.}) with pytest.raises(ValueError,match="inputs changed"): render_seed_sensitivity(tmp_path,study)README.md+2
logs/dashboard-20261125T165607Z-stderr.log+41
logs/seed-sensitivity-order-release.logAdded+1
logs/study-20261125T165454Z-hybrid-stderr.log+61
logs/study-20261125T182902Z-hybrid-confirmation.log+1
publication.json+98-68
research/README.md+4
research/docs/hub/archive.md+2
research/docs/runbook.md+4
research/docs/study.json
research/reports/amendments/seed-sensitivity-last.mdAdded+17
research/reports/paper.pdf
research/reports/plan.md+2
research/reports/planned-runs.md+2
research/reports/progress.md+4-2
research/reports/seed-sensitivity.mdAdded+5
research/reports/summary.md+1-1
research/results/feasibility/remaining-work.json+2-2
research/results/verification/seed-order-transition.jsonAdded+42
research/results/verification/tests.json+98-58
research/src/thirdloss/cli.py+10-6
research/src/thirdloss/hybrid.py+5-3
research/src/thirdloss/progress.py+6
research/src/thirdloss/report_paper.py+14
research/src/thirdloss/reporting.py+8-1
research/src/thirdloss/seed_sensitivity.pyAdded+161
research/src/thirdloss/study.py+21-7
research/tests/test_seed_order.pyAdded+97