Publish the measured hybrid flatness and the protocol for primary checkpoints
Browse filesFiles changed (34)
- README.md+21-2
- logs/flatness-statistics-release.logAdded+99
- logs/flatness-statistics-render.logAdded+1
- logs/stories-hybrid-s23-always-r01-20261125T162919301106Z.jsonlAdded
- logs/study-20261125T162200Z-hybrid-confirmation.log
- logs/study-20261125T162200Z-hybrid-stderr.log+70
- publication.json+132-67
- research/README.md+22-3
- research/docs/figures/curves.png
- research/docs/hub/archive.md+21-2
- research/docs/runbook.md+4
- research/docs/study.json
- research/reports/experiments/experiments.md+1
- research/reports/experiments/learnings.md+2
- research/reports/experiments/stories-hybrid-s23-always-r01/experiment.mdAdded+11
- research/reports/experiments/stories-hybrid-s23-always-r01/learnings.mdAdded+5
- research/reports/flatness.mdAdded+20
- research/reports/paper.pdf
- research/reports/planned-runs.md+4
- research/reports/progress.md+1-1
- research/reports/summary.md+1-1
- research/results/stories-hybrid-s23-always-r01/config.jsonAdded+21
- research/results/stories-hybrid-s23-always-r01/events.jsonlAdded
- research/results/stories-hybrid-s23-always-r01/state.jsonAdded+4
- research/src/thirdloss/checkpoint_flatness.pyAdded+108
- research/src/thirdloss/cli.py+10-4
- research/src/thirdloss/flatness_stats.pyAdded+39
- research/src/thirdloss/flatness_tables.pyAdded+110
- research/src/thirdloss/readme_comparisons.py+30-1
- research/src/thirdloss/report_paper.py+14
- research/src/thirdloss/report_records.py+10-1
- research/src/thirdloss/reporting.py+2
- research/src/thirdloss/study.py+15-10
- research/tests/test_flatness.pyAdded+40
17 unmodified lines181920212223242526272836 unmodified lines65666768697017 unmodified lines| TinyStories pretraining · dev | one development pilot seed | 0.000045 lower | 0.000338 lower | 65.7% slower || Pythia-410M adapters · dev | one development pilot seed | 0.000300 higher | 0.000273 higher | 88.6% slower |**Adaptive vs fixed-ramp hybrid** · 3/8 paired seeds. Adaptive development NLL was 0.000204 lower. It retained 0.0542 less directional width after the switch. More width is better for the registered geometry test. Whether more width improves prediction is unknown.Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.[Side-by-side scores, accuracy, speed, memory and width](#side-by-side-comparisons) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)## Side-by-side comparisons36 unmodified linesThe equal-time row uses the last available fixed-window development score at or before the fastest run’s finish time in each seed. Full-split NLL uses every development target. Training speed includes regularizer probes. Adapter derivatives use CPU float64 with one GPU reserved. [Timing definitions and checkpoint lags](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)### TinyStories hybrid schedules**Adaptive vs fixed ramp · 3/8 paired seeds · 16,777,216 targets per run.** Both arms resume the same trace-trained checkpoint. Width change is final width minus width at the switch. A larger change means more width retained at the fixed loss tolerance. For two negative changes, the one closer to zero lost less width.17 unmodified lines181920212223242526272836 unmodified lines6566676869707172737475767778798081828384858687888917 unmodified lines| TinyStories pretraining · dev | one development pilot seed | 0.000045 lower | 0.000338 lower | 65.7% slower || Pythia-410M adapters · dev | one development pilot seed | 0.000300 higher | 0.000273 higher | 88.6% slower |**Adaptive vs fixed-ramp hybrid** · 3/8 paired seeds. Adaptive development NLL was 0.000204 lower. It retained 0.0542 less directional width after the switch. Median final widths were 13.157 (adaptive) and 13.215 (fixed). More width is better for the registered geometry test. Whether more width improves prediction is unknown.Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness statistics](#flatness-of-the-trained-checkpoints) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)## Side-by-side comparisons36 unmodified linesThe equal-time row uses the last available fixed-window development score at or before the fastest run’s finish time in each seed. Full-split NLL uses every development target. Training speed includes regularizer probes. Adapter derivatives use CPU float64 with one GPU reserved. [Timing definitions and checkpoint lags](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)### Flatness of the trained checkpointsHow far can the weights move before next-token loss rises by 0.1 nats on eight fixed training windows? We add the crossing distances on both sides of each of 16 unit directions, then take their median. **Wider is flatter** in these coordinates. Establishing a local minimum would also require a stationarity test. [Flat-minima paper](https://people.idsia.ch/~juergen/fm/node1.html) · [Coordinate dependence](https://proceedings.mlr.press/v70/dinh17b/dinh17b.pdf#page=2)**TinyStories hybrids** · Each row names the completed seeds. Switch and final widths are medians over those seeds. The final seed range shows the smallest and largest seed widths. The middle 50% column gives the medians of the within-seed directional quartiles. Spread has no preferred direction. A ray at the search limit supplies a lower bound.| Hybrid arm | Seeds | Switch width<br>↑ Wider is flatter | Final width<br>↑ Wider is flatter | Final seed range | Middle 50% of final directions | Rays at limit / tested || --- | --- | --- | --- | --- | --- | --- || Curvature-dependent hybrid | 21, 22, 23 | 15.143 | 13.157 | 13.048–13.215 | 12.984–13.368 | 0/96 || Fixed late hybrid | 21, 22, 23 | 15.143 | 13.215 | 13.103–13.268 | 13.036–13.411 | 0/96 || Hessian trace | 21, 22, 23 | 15.143 | 13.154 | 13.046–13.215 | 12.984–13.366 | 0/96 || Stronger trace | 21, 22, 23 | 15.143 | 13.175 | 13.069–13.233 | 13.002–13.387 | 0/96 || Cross-seed replay | 22 | 15.403 | 13.218 | One seed | 12.987–13.496 | 0/32 || Always-on hybrid | 21, 22 | 15.357 | 13.281 | 13.229–13.334 | 13.091–13.472 | 0/64 |Matched finite-width and Hessian measurements for the primary AdamW, trace and third-order checkpoints are pending.For the primary comparison, TinyStories uses all weights and Pythia uses the LoRA factors. Compare widths within each model. The link gives every run, directional bracket and Hessian probe. [Flatness statistics and raw files](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/flatness.md) · [Secondary measurement design](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/amendments/checkpoint-flatness.md)### TinyStories hybrid schedules**Adaptive vs fixed ramp · 3/8 paired seeds · 16,777,216 targets per run.** Both arms resume the same trace-trained checkpoint. Width change is final width minus width at the switch. A larger change means more width retained at the fixed loss tolerance. For two negative changes, the one closer to zero lost less width.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
Processing Files (0 / 0) : | | 0.00B / 0.00B
New Data Upload : | | 0.00B / 0.00B [A
: 44%|####3 | 131kB / 299kB [A[A
: 44%|####3 | 131kB / 299kB [A[A
Processing Files (0 / 1) : 44%|####3 | 131kB / 299kB, ???B/s
: 44%|####3 | 131kB / 299kB [A[A
: 44%|####3 | 131kB / 299kB [A[A
: 44%|####3 | 131kB / 299kB [A[A
: 44%|####3 | 131kB / 299kB [A[A
: 44%|####3 | 131kB / 299kB [A[A
: 44%|####3 | 131kB / 299kB [A[A
: 44%|####3 | 131kB / 299kB [A[A
: 100%|##########| 299kB / 299kB [A[A
Processing Files (1 / 1) : 100%|##########| 299kB / 299kB, 28.3kB/s
New Data Upload : 100%|##########| 167kB / 167kB, 16.3kB/s [A
: 100%|##########| 299kB / 299kB [A[A
: 100%|##########| 299kB / 299kB [A[A
: 100%|##########| 299kB / 299kB [A[A
: 100%|##########| 299kB / 299kB [A[A
: 100%|##########| 299kB / 299kB [A[A
: 100%|##########| 299kB / 299kB [A[A
: 100%|##########| 299kB / 299kB [A[A
: 100%|##########| 299kB / 299kB [A[A
Validating : | 0% [A[A[A
Validating : | 0% [A[A[A
: 100%|##########| 299kB / 299kB [A[A
Validating : | 0% [A[A[A
: 100%|##########| 299kB / 299kB [A[A
Validating : ##########| 100% [A[A[A
: 100%|##########| 299kB / 299kB [A[A
Validating : ##########| 100% [A[A[A
Processing Files (1 / 1) : 100%|##########| 299kB / 299kB, 25.4kB/s
New Data Upload : 100%|##########| 167kB / 167kB, 14.6kB/s
Validating : ##########| 100%
: 100%|##########| 299kB / 299kB 1findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.797 unmodified lines798799800797 unmodified linesNew Data Upload : 100%|##########| 274kB / 274kB, 23.6kB/sValidating : ##########| 100%: 100%|##########| 162kB / 162kB797 unmodified lines798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870797 unmodified linesNew Data Upload : 100%|##########| 274kB / 274kB, 23.6kB/sValidating : ##########| 100%: 100%|##########| 162kB / 162kBProcessing Files (0 / 0) : | | 0.00B / 0.00BNew Data Upload : | | 0.00B / 0.00B [A: 27%|##7 | 176kB / 651kB [A[A: 27%|##7 | 176kB / 651kB [A[A Processing Files (0 / 1) : 57%|#####7 | 636kB / 1.11MB, ???B/s: 27%|##7 | 176kB / 651kB [A[A: 100%|##########| 162kB / 162kB [A[A: 100%|##########| 298kB / 298kB [A[A: 100%|##########| 162kB / 162kB [A[A: 27%|##7 | 176kB / 651kB [A[A: 27%|##7 | 176kB / 651kB [A[A: 100%|##########| 298kB / 298kB [A[A: 100%|##########| 162kB / 162kB [A[A Processing Files (1 / 1) : 100%|##########| 1.11MB / 1.11MB, 104kB/sNew Data Upload : 100%|##########| 475kB / 475kB, 46.2kB/s [A: 100%|##########| 651kB / 651kB [A[A: 100%|##########| 298kB / 298kB [A[A: 100%|##########| 162kB / 162kB [A[A: 100%|##########| 651kB / 651kB [A[A: 100%|##########| 651kB / 651kB [A[A: 100%|##########| 651kB / 651kB [A[A: 100%|##########| 162kB / 162kB [A[A: 100%|##########| 298kB / 298kB [A[A: 100%|##########| 298kB / 298kB [A[AValidating : | 0% [A[A[AValidating : | 0% [A[A[A: 100%|##########| 651kB / 651kB [A[AValidating : | 0% [A[A[A: 100%|##########| 651kB / 651kB [A[AValidating : ##########| 100% [A[A[A: 100%|##########| 651kB / 651kB [A[AValidating : ##########| 100% [A[A[A: 100%|##########| 162kB / 162kB [A[AValidating : ##########| 100% [A[A[A Processing Files (1 / 1) : 100%|##########| 1.11MB / 1.11MB, 92.1kB/sNew Data Upload : 100%|##########| 475kB / 475kB, 40.8kB/sValidating : ##########| 100%: 100%|##########| 162kB / 162kB
12345664 unmodified lines71727374757677787911 unmodified lines9192939495969798991001011021281 unmodified lines13841385138613871388138913901391139295 unmodified lines148814891490149114921493219 unmodified lines171317141715171617171718120 unmodified lines1839184018411842184318441845184618471848184918501851185266 unmodified lines19191920192119221923192419251926192716 unmodified lines19441945194619471948194919501951195221 unmodified lines19741975197619771978197919801981198211 unmodified lines19941995199619971998199920002001200220032004200520062007126 unmodified lines21342135213621372138213921402141214221432144214521462147165 unmodified lines231323142315231623172318124 unmodified lines24432444244524462447244810 unmodified lines2459246024612462246324642465246624671 unmodified line2469247024712472247324742475247624771 unmodified line2479248024812482248324842485248617 unmodified lines250425052506250725082509251025111021 unmodified lines353335343535353635373538409 unmodified lines39483949395039513952395339543955395639575 unmodified lines39633964396539663967396850 unmodified lines40194020402140224023402440254026402711 unmodified lines40394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406230 unmodified lines40934094409540964097409874 unmodified lines41734174417541764177{"collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378","git_revision": "80b7dbbdea6bc793e06d675cb833b193d233784b","repositories": {"BurnyCoder/thirdloss-arxiv-abstracts-2024": {"files": {64 unmodified lines"size": 63324},"figures/curves.png": {"git_blob": "78320ae79b4de1dfb619b425dfc1221fb7d4bebc","sha256": "670de59d3ffd7346c45d0357f7f3077e6e0961e240e29e8cdcf55816415cf4e6","size": 298132},"figures/hybrid_width.png": {"git_blob": "ca22402781a45551e8a09dba91aa142c8e546686",11 unmodified lines"size": 9426},"study.json": {"git_blob": "c0ec3843eeba54394ea32167c649fc6dadb03252","sha256": "6e2addebe4658d288a418863a1f0fe1454ce788673215c7b18cc1cf607a9a800","size": 2374581}},"revision": "4682cbe6626766ea3301575a6e5b6c1726a00a91","type": "space"},"BurnyCoder/thirdloss-pythia-410m-adapters": {1281 unmodified lines"BurnyCoder/thirdloss-study": {"files": {"README.md": {"git_blob": "353ad8e01d6fc573b4cab4b6d4a91f185ccea24d","sha256": "be087f897703b309a4c9b733731a966644fcdcaa56576ff80c16aa7debc4a8f5","size": 14476},"logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": {"git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",95 unmodified lines"sha256": "1c73007c107dd521eed1fea4cd5cde00d25fca4863773228d18e29582eae50dd","size": 7536},"logs/hybrid-acceptance-after-release-recovery.log": {"git_blob": "ebc1e2b4c8e3f73dd0be49d41f58b0346cc1ac24","sha256": "caf0a0c1cf35f6902dc455d76545f82d302019198497abedcff33456443ad331",219 unmodified lines"sha256": "ba8375ec11a2601401130261a0737b69481ce2c0058a632e48297e99fe6c1166","size": 299647},"logs/stories-hybrid-s23-late-r01-20261125T161151415908Z.jsonl": {"git_blob": "7f694eeccaef3cb6c0a5df0bd167e66c697a3508","sha256": "0c17d371a4f967be26fface328f84af4b11ce2161c3254f29f011c7a7b3a7d4e",120 unmodified lines"size": 298981},"logs/study-20261125T162200Z-hybrid-confirmation.log": {"git_blob": "77a4513f94d355dce5847ed81faa87f3c369ead2","sha256": "ad8e9889cfb4a5040a3c59e172178d1e870757ea9942e2cde638c6333c5de6d0","size": 513529},"logs/study-20261125T162200Z-hybrid-stderr.log": {"git_blob": "8bd00561bf7a50bd3a1ba527d8d5141c9da71bcf","sha256": "0177e8d2cae89eed86c28edee92f45c8b184b0e2cf10136c3eaed98c65756c65","size": 47394},"logs/transient-outage-recovery.log": {"git_blob": "e442d6a630c2557f3608a8db31739af52ecfba2f",66 unmodified lines"size": 786},"research/README.md": {"git_blob": "97e252c326710752bef2ba2d24a7a7716b3636fd","sha256": "5b8e4cf6488e2e178de134b540bb29f9913706c3df63179f47d92dd0691ddf85","size": 28220},"research/docs/data.md": {"git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",16 unmodified lines"size": 63324},"research/docs/figures/curves.png": {"git_blob": "78320ae79b4de1dfb619b425dfc1221fb7d4bebc","sha256": "670de59d3ffd7346c45d0357f7f3077e6e0961e240e29e8cdcf55816415cf4e6","size": 298132},"research/docs/figures/hybrid_width.png": {"git_blob": "ca22402781a45551e8a09dba91aa142c8e546686",21 unmodified lines"size": 1583},"research/docs/hub/archive.md": {"git_blob": "353ad8e01d6fc573b4cab4b6d4a91f185ccea24d","sha256": "be087f897703b309a4c9b733731a966644fcdcaa56576ff80c16aa7debc4a8f5","size": 14476},"research/docs/hub/space.md": {"git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",11 unmodified lines"size": 9722},"research/docs/runbook.md": {"git_blob": "76247b9147dee26dea4c78f0ae5884149c4053fe","sha256": "d6432066f7679cbf07c71ef602b580297acfed7d0748b81df60c79919c216a91","size": 8150},"research/docs/study.json": {"git_blob": "c0ec3843eeba54394ea32167c649fc6dadb03252","sha256": "6e2addebe4658d288a418863a1f0fe1454ce788673215c7b18cc1cf607a9a800","size": 2374581},"research/docs/third-derivative-penalty.md": {"git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",126 unmodified lines"size": 231},"research/reports/experiments/experiments.md": {"git_blob": "7b172a700fc52fad6ace53d6da50bfa36ac7427a","sha256": "34edbdc00265b9ef34c16e29b73e4fdaab64fb64f800e6b0f00d27fec42a33a6","size": 8142},"research/reports/experiments/learnings.md": {"git_blob": "4eb484e6728a7b793d8085f778a9b4b68ffdfa70","sha256": "fbf89e313216a5d301bed1221f90b3a8a20dc12c2f4fc19d54ac1b5d291bb203","size": 10978},"research/reports/experiments/stories-branch-s21-trunk-r01/experiment.md": {"git_blob": "89dd0c1f4c4edd8fc49122a9b2f2076d744f9d27",165 unmodified lines"sha256": "897bb832a68259c2071020451676b65942eb1f6eb86906c4f914d9c4d0ceaad5","size": 239},"research/reports/experiments/stories-hybrid-s23-late-r01/experiment.md": {"git_blob": "f9baf26b8c22d00021f06c4ef80f91eda0d79f68","sha256": "c28d00bafafce72df091c83bac6afb107cbbe395bac90c84ecbcedfd131a1782",124 unmodified lines"sha256": "15c41a3c246321a34f5bded221d9c447f5066340d94a604a957ce1439b0a212f","size": 236},"research/reports/hybrid/preregistration.md": {"git_blob": "0729e47d30933f401253bf21feac164c0217f7b4","sha256": "ee367dea7be8b4dea20e364c45b5203f0613c172e015260fd3470ec1b96f5ea9",10 unmodified lines"size": 7290},"research/reports/paper.pdf": {"git_blob": "ac9fac3813d6806b5797ea4294d540d0e163851b","sha256": "3ba668763cacc49b8ee80acd80c91f47c5c6b18515c266a3f33512e424077513","size": 651174},"research/reports/plan.md": {"git_blob": "d15ec7b2f2324e3aedb389d2fd95208a31978596",1 unmodified line"size": 8376},"research/reports/planned-runs.md": {"git_blob": "d7435aa254c867979fd9a3edc26367af6809eb55","sha256": "23f3b3db66996723511d0e0572518c4a7f8d15c0131b71b70bd91d041731f1ad","size": 2440},"research/reports/preregistration.md": {"git_blob": "3411a501f8cb3f3be0d31b70ee410094dae5dd95",1 unmodified line"size": 5234},"research/reports/progress.md": {"git_blob": "5468d519cd3013ddfc36696fbcffa9550c1c528e","sha256": "7adc8e5351b57ef20bd474a10a544478e0fba315d8f5f544765e0f1021f330bf","size": 2289},"research/reports/reviews/adapter-verification.md": {17 unmodified lines"size": 1740},"research/reports/summary.md": {"git_blob": "2696df59c88bea2341cfd812d5c4b18fbcecd531","sha256": "1bb48a69c8d345cbe9e29c51d5827defa15152b89e0610903e4b8422303a0dac","size": 4222},"research/results/abstracts-control-s00-initial-r00/config.json": {1021 unmodified lines"sha256": "e406e39b78d6ca8de037d25d184988c5dc1666f74d71a7b1b87b1846179edf13","size": 3762},"research/results/stories-hybrid-s23-late-r01/config.json": {"git_blob": "b4ac20b62628bc70833cb299c8328b1741c16c4e","sha256": "8c5f344e258a1d58cc794b3873dd39b5cb7ef029058358804b814834c32a307e",409 unmodified lines"sha256": "a3c6fed1e4c506513f521823a59ff21174010552948dc09094649412176b14d9","size": 9767},"research/src/thirdloss/cli.py": {"git_blob": "a3b3e960f5705c22d2f519034bbf8c338909f52a","sha256": "5729736c62a35b893dff9839f7e235d04002006a81b2a9f09ca89888271e1622","size": 7175},"research/src/thirdloss/data.py": {"git_blob": "9b06438a0bce64f8d491cd65156ebe8aa04e8916",5 unmodified lines"sha256": "3484e9ff0337448c3c2dc068c20a4d48d8d02726fbe33a5df947df267d4a7307","size": 4522},"research/src/thirdloss/hub_archive.py": {"git_blob": "9a24c6c6f0f3f6e06fa43c775b47a5a03c1d12f6","sha256": "928d4a2bf9fb55094604ab1b1b070dd8c9ed62e8dc7336dd303e6b4d24ce13c9",50 unmodified lines"size": 11879},"research/src/thirdloss/readme_comparisons.py": {"git_blob": "56257d3d0605357957a088c3f820a5cc94b4f7a6","sha256": "353344b424625052e19301714b2b94bcfcf766b8a34ce7e40ffee8440d74abae","size": 19443},"research/src/thirdloss/records.py": {"git_blob": "a800de00d42944f13a89d8d2f91ce9b2103bbd45",11 unmodified lines"size": 10129},"research/src/thirdloss/report_paper.py": {"git_blob": "e892bfa4df31b981f6d7b1deff249ad8f5fab66c","sha256": "cf6c6b91435461816ec7a17747dcb1e7ac10053e39866e8b57154602f643f892","size": 33672},"research/src/thirdloss/report_records.py": {"git_blob": "2d8a9c6ec55e68db2e67d03dafd77d14e2608bc7","sha256": "8c7b10fe4b513fac752e8b3d581ecb034e8b8fd618a839830d968edb1294bc28","size": 13925},"research/src/thirdloss/reporting.py": {"git_blob": "b1008d0f0117894548fad2ddbb5498e7e21809fa","sha256": "0a356d46ca776acb3dfa4e71a9fcb7c7c08d33775e51e378da649b5d4fb58eef","size": 21439},"research/src/thirdloss/study.py": {"git_blob": "f614c1a8d70f4e8b5b2738d6e26633b0e9ee6f98","sha256": "5c50ceb57f85202e1c4c5a128e90c8166a0a0cf7e9a96c024160524ca8a2f2d6","size": 12180},"research/src/thirdloss/train.py": {"git_blob": "3c16d7419d10d1709d4a168ad7765909fbef77a6",30 unmodified lines"sha256": "46075bbd8d3b229367ac5ebfc7068552d2e4711c901967e7f28e315cd738c92f","size": 16607},"research/tests/test_hub_archive.py": {"git_blob": "4c8dc24e6eb5f0aa7fc5e63be56ba0efa3ad4ec4","sha256": "8482210735ca590533b325c5473d7b4483063c01efe16e8d97cd41e737466df4",74 unmodified lines"type": "dataset"}},"verified_at": "2026-11-25T16:29:12+00:00"}12345664 unmodified lines71727374757677787911 unmodified lines9192939495969798991001011021281 unmodified lines13841385138613871388138913901391139295 unmodified lines1488148914901491149214931494149514961497149814991500150115021503219 unmodified lines17231724172517261727172817291730173117321733120 unmodified lines1854185518561857185818591860186118621863186418651866186766 unmodified lines19341935193619371938193919401941194216 unmodified lines19591960196119621963196419651966196721 unmodified lines19891990199119921993199419951996199711 unmodified lines20092010201120122013201420152016201720182019202020212022126 unmodified lines21492150215121522153215421552156215721582159216021612162165 unmodified lines2328232923302331233223332334233523362337233823392340234123422343124 unmodified lines2468246924702471247224732474247524762477247810 unmodified lines2489249024912492249324942495249624971 unmodified line2499250025012502250325042505250625071 unmodified line2509251025112512251325142515251617 unmodified lines253425352536253725382539254025411021 unmodified lines356335643565356635673568356935703571357235733574357535763577357835793580358135823583409 unmodified lines3993399439953996399739983999400040014002400340044005400640075 unmodified lines401340144015401640174018401940204021402240234024402540264027402850 unmodified lines40794080408140824083408440854086408711 unmodified lines40994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412230 unmodified lines4153415441554156415741584159416041614162416374 unmodified lines42384239424042414242{"collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378","git_revision": "24dd4f047835f2fee6fa4f9f861e62098ccba704","repositories": {"BurnyCoder/thirdloss-arxiv-abstracts-2024": {"files": {64 unmodified lines"size": 63324},"figures/curves.png": {"git_blob": "e09b74ea4fda7716e11759509fd17472b0fab9bc","sha256": "71a940709aef0d4ccaa56e44157b00462cdc6577d5341300cd5cc782a32d747f","size": 298560},"figures/hybrid_width.png": {"git_blob": "ca22402781a45551e8a09dba91aa142c8e546686",11 unmodified lines"size": 9426},"study.json": {"git_blob": "4934960d29c24a259964c8d3ec50af7660aa61b4","sha256": "64f3b88527beacc9ff852eea47b6aa891d7db84217b774092b6537fc5eb2a99b","size": 2479444}},"revision": "96fe47249cb3fdd88445ba5df6a7c7b48d71b6b7","type": "space"},"BurnyCoder/thirdloss-pythia-410m-adapters": {1281 unmodified lines"BurnyCoder/thirdloss-study": {"files": {"README.md": {"git_blob": "abb8c1abe2b5be5734ab8a06752b65fbe7b0f066","sha256": "7f11e9892179cdca9b86baf6e9d7aeab6b87a4338a4877e24c1a959eea23684e","size": 16818},"logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": {"git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",95 unmodified lines"sha256": "1c73007c107dd521eed1fea4cd5cde00d25fca4863773228d18e29582eae50dd","size": 7536},"logs/flatness-statistics-release.log": {"git_blob": "2c365d0debe01e9d61910ea96d495e7ce92210ec","sha256": "9f59fe5d2cb44ce6a055e62750c48b18d69edb456c6583e696eb9adcbb59e260","size": 3008},"logs/flatness-statistics-render.log": {"git_blob": "37bbb4bdbd164007d9e8e84ddbdb5e73b2a11e1d","sha256": "2ae7e37a0d60013de1b3d6870314f24554d6f4af83d0ce06b372b1eed3a9b1c6","size": 79},"logs/hybrid-acceptance-after-release-recovery.log": {"git_blob": "ebc1e2b4c8e3f73dd0be49d41f58b0346cc1ac24","sha256": "caf0a0c1cf35f6902dc455d76545f82d302019198497abedcff33456443ad331",219 unmodified lines"sha256": "ba8375ec11a2601401130261a0737b69481ce2c0058a632e48297e99fe6c1166","size": 299647},"logs/stories-hybrid-s23-always-r01-20261125T162919301106Z.jsonl": {"git_blob": "519f15502b1b7737603207abf9a14925a07e685b","sha256": "b50ebec99759bb07a33d6d35c6d1d004cc75d2f1ca0d9212f987cb41bda2ce1a","size": 232853},"logs/stories-hybrid-s23-late-r01-20261125T161151415908Z.jsonl": {"git_blob": "7f694eeccaef3cb6c0a5df0bd167e66c697a3508","sha256": "0c17d371a4f967be26fface328f84af4b11ce2161c3254f29f011c7a7b3a7d4e",120 unmodified lines"size": 298981},"logs/study-20261125T162200Z-hybrid-confirmation.log": {"git_blob": "fa54880afe0f18268f65fd14619e52ddab02ae3c","sha256": "b0cd6d1e153968380f032c47b83c6bc79ea276fe92140dfc178cc8a790503896","size": 746382},"logs/study-20261125T162200Z-hybrid-stderr.log": {"git_blob": "c496508cca128ee67b6e0c8ef1d14da869a78c60","sha256": "be6368c3191866e0432221bf189b4bc57851ca2a7943f2b33a603f23ef78d099","size": 50538},"logs/transient-outage-recovery.log": {"git_blob": "e442d6a630c2557f3608a8db31739af52ecfba2f",66 unmodified lines"size": 786},"research/README.md": {"git_blob": "32312bfe5237a8962881c7a5c1d7edebb02917e5","sha256": "9e2dac8376164928b917801dc23faa792efd188382f1c290b1378c1c1c53d33e","size": 30424},"research/docs/data.md": {"git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",16 unmodified lines"size": 63324},"research/docs/figures/curves.png": {"git_blob": "e09b74ea4fda7716e11759509fd17472b0fab9bc","sha256": "71a940709aef0d4ccaa56e44157b00462cdc6577d5341300cd5cc782a32d747f","size": 298560},"research/docs/figures/hybrid_width.png": {"git_blob": "ca22402781a45551e8a09dba91aa142c8e546686",21 unmodified lines"size": 1583},"research/docs/hub/archive.md": {"git_blob": "abb8c1abe2b5be5734ab8a06752b65fbe7b0f066","sha256": "7f11e9892179cdca9b86baf6e9d7aeab6b87a4338a4877e24c1a959eea23684e","size": 16818},"research/docs/hub/space.md": {"git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",11 unmodified lines"size": 9722},"research/docs/runbook.md": {"git_blob": "8eba3ba417f5afe4f2e988e3a84b3f419e49228c","sha256": "830d2a91819b7af6c003ad3c9de767ff269726626f8d9393a45678a548f261da","size": 8770},"research/docs/study.json": {"git_blob": "4934960d29c24a259964c8d3ec50af7660aa61b4","sha256": "64f3b88527beacc9ff852eea47b6aa891d7db84217b774092b6537fc5eb2a99b","size": 2479444},"research/docs/third-derivative-penalty.md": {"git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",126 unmodified lines"size": 231},"research/reports/experiments/experiments.md": {"git_blob": "30ceba45f5d7169cfbe61cb136e660953ac341a4","sha256": "edc12303200395d6ef89bd117ad0b90c7b35fd2a449c1d86b30356ee480f2aaf","size": 8324},"research/reports/experiments/learnings.md": {"git_blob": "f5ba2ba5bc57ad53ad46cb4812202d8b2e7fbef6","sha256": "8a5244505377b865520701d0d861543a0fc20205c1d456c48c3595d9b2dc2214","size": 11235},"research/reports/experiments/stories-branch-s21-trunk-r01/experiment.md": {"git_blob": "89dd0c1f4c4edd8fc49122a9b2f2076d744f9d27",165 unmodified lines"sha256": "897bb832a68259c2071020451676b65942eb1f6eb86906c4f914d9c4d0ceaad5","size": 239},"research/reports/experiments/stories-hybrid-s23-always-r01/experiment.md": {"git_blob": "e2135815da44d432da481f3906200b750b245b54","sha256": "b8618d03570ec1f7fda341ec2a4bd63109bbf26531f9f94d04fe58f069c965a5","size": 732},"research/reports/experiments/stories-hybrid-s23-always-r01/learnings.md": {"git_blob": "906035924ee5319b04731e7b43157a04ac69b423","sha256": "0b90302f32c3b68d62211db74858d9757438a964339f43a8046a363b7491eef7","size": 236},"research/reports/experiments/stories-hybrid-s23-late-r01/experiment.md": {"git_blob": "f9baf26b8c22d00021f06c4ef80f91eda0d79f68","sha256": "c28d00bafafce72df091c83bac6afb107cbbe395bac90c84ecbcedfd131a1782",124 unmodified lines"sha256": "15c41a3c246321a34f5bded221d9c447f5066340d94a604a957ce1439b0a212f","size": 236},"research/reports/flatness.md": {"git_blob": "7cce4a367335bd1b7f9d4026e1e089a06718b9ea","sha256": "daabfbd09a7223429f77bac184f4b93fdc2c75feda39e18d47269d83438ab9f3","size": 1461},"research/reports/hybrid/preregistration.md": {"git_blob": "0729e47d30933f401253bf21feac164c0217f7b4","sha256": "ee367dea7be8b4dea20e364c45b5203f0613c172e015260fd3470ec1b96f5ea9",10 unmodified lines"size": 7290},"research/reports/paper.pdf": {"git_blob": "8169f84ad780653f8e6bd8832980decb3fa52e37","sha256": "a9d8d5119992be8e5a4ae98a1dffbe95feaadd2a0362e6efce6bb91faea08e18","size": 654170},"research/reports/plan.md": {"git_blob": "d15ec7b2f2324e3aedb389d2fd95208a31978596",1 unmodified line"size": 8376},"research/reports/planned-runs.md": {"git_blob": "0384622ea612424eb7ff96cf1221542561310aa2","sha256": "3beee743e90034cf859ae089548738826571c5d401142302a50018f134a8bef9","size": 2942},"research/reports/preregistration.md": {"git_blob": "3411a501f8cb3f3be0d31b70ee410094dae5dd95",1 unmodified line"size": 5234},"research/reports/progress.md": {"git_blob": "7461cdab37e998dd6f0997650a0bf0bcd7ff950a","sha256": "0fe59428f6404bf2a1bf9a3dd05ba84bd47520f966c16f6158adf59659058030","size": 2289},"research/reports/reviews/adapter-verification.md": {17 unmodified lines"size": 1740},"research/reports/summary.md": {"git_blob": "4a7bc843694892621453a031c404ec01d0b8d142","sha256": "10cf7554100641b6c14b01352d8aab56424a0ff2746914358cd898e9204fef2b","size": 4222},"research/results/abstracts-control-s00-initial-r00/config.json": {1021 unmodified lines"sha256": "e406e39b78d6ca8de037d25d184988c5dc1666f74d71a7b1b87b1846179edf13","size": 3762},"research/results/stories-hybrid-s23-always-r01/config.json": {"git_blob": "d96780398e0ae877171dc0f99aeee7e9ac7c4e54","sha256": "d8fe1880a7a3d91a3eb60228d2a3e58f65afe1e521ed39a91598cd127e61dc8f","size": 540},"research/results/stories-hybrid-s23-always-r01/events.jsonl": {"git_blob": "d39fa6575991e678e4c675dd9b9a240697c2bc14","sha256": "a8f7c19081e64b8155f1ff2825069e6b62008e790e364ead6b16b51ffcc966ba","size": 218670},"research/results/stories-hybrid-s23-always-r01/state.json": {"git_blob": "61a5eb894aee290a4a4bbc58f808853b1727914a","sha256": "7a1c71c2f4ddd75e67723dbb3dc93d512a5fae4376170330ba6020a672f30c50","size": 71},"research/results/stories-hybrid-s23-late-r01/config.json": {"git_blob": "b4ac20b62628bc70833cb299c8328b1741c16c4e","sha256": "8c5f344e258a1d58cc794b3873dd39b5cb7ef029058358804b814834c32a307e",409 unmodified lines"sha256": "a3c6fed1e4c506513f521823a59ff21174010552948dc09094649412176b14d9","size": 9767},"research/src/thirdloss/checkpoint_flatness.py": {"git_blob": "e983ebbf16c8059a2f793572432db6dfcea3d8bf","sha256": "6309ce5832b4d6818cf629c8d4d3a6ba53efb8a3dc30bf96d792caa12d35007e","size": 6022},"research/src/thirdloss/cli.py": {"git_blob": "34cc6eced796b43f30098c099d8793feabf0cf5b","sha256": "d565ffe0786ac64130dd0424ca4ec481c1c623517986ad5fa06b062c52235ca6","size": 7519},"research/src/thirdloss/data.py": {"git_blob": "9b06438a0bce64f8d491cd65156ebe8aa04e8916",5 unmodified lines"sha256": "3484e9ff0337448c3c2dc068c20a4d48d8d02726fbe33a5df947df267d4a7307","size": 4522},"research/src/thirdloss/flatness_stats.py": {"git_blob": "0069e0f952944d0f654ff50452806bd4cea46666","sha256": "496cd383749c625c1dd144140fbd5a2c8f9b6434abdad0eaa807e70bdfbb4d1e","size": 1671},"research/src/thirdloss/flatness_tables.py": {"git_blob": "394de00d7f372bf13a65c719da7aa7a4bd7e28f2","sha256": "004becde1c9f1fd973168f73c28546b2e947e6e4c5e2f8c2c36f5e6bf9292c67","size": 6080},"research/src/thirdloss/hub_archive.py": {"git_blob": "9a24c6c6f0f3f6e06fa43c775b47a5a03c1d12f6","sha256": "928d4a2bf9fb55094604ab1b1b070dd8c9ed62e8dc7336dd303e6b4d24ce13c9",50 unmodified lines"size": 11879},"research/src/thirdloss/readme_comparisons.py": {"git_blob": "5eb8cbe7f97614e9d51884ac2f3bf7469465467a","sha256": "0f809cc7f64294eea36134a02cde998207188f4260e9a75423c6d92765a7bdae","size": 21971},"research/src/thirdloss/records.py": {"git_blob": "a800de00d42944f13a89d8d2f91ce9b2103bbd45",11 unmodified lines"size": 10129},"research/src/thirdloss/report_paper.py": {"git_blob": "18bb353ecd39bcab4b206df072794d482c4ac822","sha256": "f611c0035f097b4f5e611a11e309b854fdc94d0481ef04b35d804218a5165f78","size": 34900},"research/src/thirdloss/report_records.py": {"git_blob": "bc616f783fbb2266b820cf3a25e173d6c2bb0561","sha256": "e1751c3597ff420a44e354e05fe90d9b73662ea27f5e65a8997a94cca6008c87","size": 14551},"research/src/thirdloss/reporting.py": {"git_blob": "206d59a27fae7713677392a8e9d32769a7437239","sha256": "68ff0fca6554c91c0a77318e2ada25ea821a725f4b683775a89bf787101586bc","size": 21553},"research/src/thirdloss/study.py": {"git_blob": "d3ef0cf8d4b40e1ce0f6996eedb8ee24415a86ab","sha256": "d5b1782a1a2ece89c5c0f11256a235dd3d004c2b536b4a4c2366111e6e981e19","size": 12406},"research/src/thirdloss/train.py": {"git_blob": "3c16d7419d10d1709d4a168ad7765909fbef77a6",30 unmodified lines"sha256": "46075bbd8d3b229367ac5ebfc7068552d2e4711c901967e7f28e315cd738c92f","size": 16607},"research/tests/test_flatness.py": {"git_blob": "199cdb9adbfc7975c963b72b82640b8251b3facb","sha256": "31df67a8ebcde21eeba0c42d9cb03eca88b30a4e2bcad0cfe9117d19e579778f","size": 2166},"research/tests/test_hub_archive.py": {"git_blob": "4c8dc24e6eb5f0aa7fc5e63be56ba0efa3ad4ec4","sha256": "8482210735ca590533b325c5473d7b4483063c01efe16e8d97cd41e737466df4",74 unmodified lines"type": "dataset"}},"verified_at": "2026-11-25T16:32:59+00:00"}
14 unmodified lines151617181920212223242582 unmodified lines10810911011111211377 unmodified lines19119219319419519619714 unmodified lines| TinyStories pretraining · dev | one development pilot seed | 0.000045 lower | 0.000338 lower | 65.7% slower || Pythia-410M adapters · dev | one development pilot seed | 0.000300 higher | 0.000273 higher | 88.6% slower |**Adaptive vs fixed-ramp hybrid** · 3/8 paired seeds. Adaptive development NLL was 0.000204 lower. It retained 0.0542 less directional width after the switch. More width is better for the registered geometry test. Whether more width improves prediction is unknown.Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.[Side-by-side scores, accuracy, speed, memory and width](#side-by-side-comparisons) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](reports/summary.md)<!-- READOUT:END -->82 unmodified linesThe equal-time row uses the last available fixed-window development score at or before the fastest run’s finish time in each seed. Full-split NLL uses every development target. Training speed includes regularizer probes. Adapter derivatives use CPU float64 with one GPU reserved. [Timing definitions and checkpoint lags](reports/summary.md)### TinyStories hybrid schedules**Adaptive vs fixed ramp · 3/8 paired seeds · 16,777,216 targets per run.** Both arms resume the same trace-trained checkpoint. Width change is final width minus width at the switch. A larger change means more width retained at the fixed loss tolerance. For two negative changes, the one closer to zero lost less width.77 unmodified lines[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 41 runs, including 40 with a completed summary.TinyStories hybrid follow-up: 15 of 48 full runs and 3 of 8 shared checkpoints complete. Geometric decision: awaiting eight paired width measurements. [Width measurements, scores and controls](reports/hybrid/results.md)14 unmodified lines151617181920212223242582 unmodified lines10810911011111211311411511611711811912012112212312412512612712812913013113277 unmodified lines21021121221321421521614 unmodified lines| TinyStories pretraining · dev | one development pilot seed | 0.000045 lower | 0.000338 lower | 65.7% slower || Pythia-410M adapters · dev | one development pilot seed | 0.000300 higher | 0.000273 higher | 88.6% slower |**Adaptive vs fixed-ramp hybrid** · 3/8 paired seeds. Adaptive development NLL was 0.000204 lower. It retained 0.0542 less directional width after the switch. Median final widths were 13.157 (adaptive) and 13.215 (fixed). More width is better for the registered geometry test. Whether more width improves prediction is unknown.Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness statistics](#flatness-of-the-trained-checkpoints) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](reports/summary.md)<!-- READOUT:END -->82 unmodified linesThe equal-time row uses the last available fixed-window development score at or before the fastest run’s finish time in each seed. Full-split NLL uses every development target. Training speed includes regularizer probes. Adapter derivatives use CPU float64 with one GPU reserved. [Timing definitions and checkpoint lags](reports/summary.md)### Flatness of the trained checkpointsHow far can the weights move before next-token loss rises by 0.1 nats on eight fixed training windows? We add the crossing distances on both sides of each of 16 unit directions, then take their median. **Wider is flatter** in these coordinates. Establishing a local minimum would also require a stationarity test. [Flat-minima paper](https://people.idsia.ch/~juergen/fm/node1.html) · [Coordinate dependence](https://proceedings.mlr.press/v70/dinh17b/dinh17b.pdf#page=2)**TinyStories hybrids** · Each row names the completed seeds. Switch and final widths are medians over those seeds. The final seed range shows the smallest and largest seed widths. The middle 50% column gives the medians of the within-seed directional quartiles. Spread has no preferred direction. A ray at the search limit supplies a lower bound.| Hybrid arm | Seeds | Switch width<br>↑ Wider is flatter | Final width<br>↑ Wider is flatter | Final seed range | Middle 50% of final directions | Rays at limit / tested || --- | --- | --- | --- | --- | --- | --- || Curvature-dependent hybrid | 21, 22, 23 | 15.143 | 13.157 | 13.048–13.215 | 12.984–13.368 | 0/96 || Fixed late hybrid | 21, 22, 23 | 15.143 | 13.215 | 13.103–13.268 | 13.036–13.411 | 0/96 || Hessian trace | 21, 22, 23 | 15.143 | 13.154 | 13.046–13.215 | 12.984–13.366 | 0/96 || Stronger trace | 21, 22, 23 | 15.143 | 13.175 | 13.069–13.233 | 13.002–13.387 | 0/96 || Cross-seed replay | 22 | 15.403 | 13.218 | One seed | 12.987–13.496 | 0/32 || Always-on hybrid | 21, 22 | 15.357 | 13.281 | 13.229–13.334 | 13.091–13.472 | 0/64 |Matched finite-width and Hessian measurements for the primary AdamW, trace and third-order checkpoints are pending.For the primary comparison, TinyStories uses all weights and Pythia uses the LoRA factors. Compare widths within each model. The link gives every run, directional bracket and Hessian probe. [Flatness statistics and raw files](reports/flatness.md) · [Secondary measurement design](reports/amendments/checkpoint-flatness.md)### TinyStories hybrid schedules**Adaptive vs fixed ramp · 3/8 paired seeds · 16,777,216 targets per run.** Both arms resume the same trace-trained checkpoint. Width change is final width minus width at the switch. A larger change means more width retained at the fixed loss tolerance. For two negative changes, the one closer to zero lost less width.77 unmodified lines[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 42 runs, including 40 with a completed summary.TinyStories hybrid follow-up: 15 of 48 full runs and 3 of 8 shared checkpoints complete. Geometric decision: awaiting eight paired width measurements. [Width measurements, scores and controls](reports/hybrid/results.md)
17 unmodified lines181920212223242526272836 unmodified lines65666768697017 unmodified lines| TinyStories pretraining · dev | one development pilot seed | 0.000045 lower | 0.000338 lower | 65.7% slower || Pythia-410M adapters · dev | one development pilot seed | 0.000300 higher | 0.000273 higher | 88.6% slower |**Adaptive vs fixed-ramp hybrid** · 3/8 paired seeds. Adaptive development NLL was 0.000204 lower. It retained 0.0542 less directional width after the switch. More width is better for the registered geometry test. Whether more width improves prediction is unknown.Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.[Side-by-side scores, accuracy, speed, memory and width](#side-by-side-comparisons) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)## Side-by-side comparisons36 unmodified linesThe equal-time row uses the last available fixed-window development score at or before the fastest run’s finish time in each seed. Full-split NLL uses every development target. Training speed includes regularizer probes. Adapter derivatives use CPU float64 with one GPU reserved. [Timing definitions and checkpoint lags](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)### TinyStories hybrid schedules**Adaptive vs fixed ramp · 3/8 paired seeds · 16,777,216 targets per run.** Both arms resume the same trace-trained checkpoint. Width change is final width minus width at the switch. A larger change means more width retained at the fixed loss tolerance. For two negative changes, the one closer to zero lost less width.17 unmodified lines181920212223242526272836 unmodified lines6566676869707172737475767778798081828384858687888917 unmodified lines| TinyStories pretraining · dev | one development pilot seed | 0.000045 lower | 0.000338 lower | 65.7% slower || Pythia-410M adapters · dev | one development pilot seed | 0.000300 higher | 0.000273 higher | 88.6% slower |**Adaptive vs fixed-ramp hybrid** · 3/8 paired seeds. Adaptive development NLL was 0.000204 lower. It retained 0.0542 less directional width after the switch. Median final widths were 13.157 (adaptive) and 13.215 (fixed). More width is better for the registered geometry test. Whether more width improves prediction is unknown.Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness statistics](#flatness-of-the-trained-checkpoints) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)## Side-by-side comparisons36 unmodified linesThe equal-time row uses the last available fixed-window development score at or before the fastest run’s finish time in each seed. Full-split NLL uses every development target. Training speed includes regularizer probes. Adapter derivatives use CPU float64 with one GPU reserved. [Timing definitions and checkpoint lags](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)### Flatness of the trained checkpointsHow far can the weights move before next-token loss rises by 0.1 nats on eight fixed training windows? We add the crossing distances on both sides of each of 16 unit directions, then take their median. **Wider is flatter** in these coordinates. Establishing a local minimum would also require a stationarity test. [Flat-minima paper](https://people.idsia.ch/~juergen/fm/node1.html) · [Coordinate dependence](https://proceedings.mlr.press/v70/dinh17b/dinh17b.pdf#page=2)**TinyStories hybrids** · Each row names the completed seeds. Switch and final widths are medians over those seeds. The final seed range shows the smallest and largest seed widths. The middle 50% column gives the medians of the within-seed directional quartiles. Spread has no preferred direction. A ray at the search limit supplies a lower bound.| Hybrid arm | Seeds | Switch width<br>↑ Wider is flatter | Final width<br>↑ Wider is flatter | Final seed range | Middle 50% of final directions | Rays at limit / tested || --- | --- | --- | --- | --- | --- | --- || Curvature-dependent hybrid | 21, 22, 23 | 15.143 | 13.157 | 13.048–13.215 | 12.984–13.368 | 0/96 || Fixed late hybrid | 21, 22, 23 | 15.143 | 13.215 | 13.103–13.268 | 13.036–13.411 | 0/96 || Hessian trace | 21, 22, 23 | 15.143 | 13.154 | 13.046–13.215 | 12.984–13.366 | 0/96 || Stronger trace | 21, 22, 23 | 15.143 | 13.175 | 13.069–13.233 | 13.002–13.387 | 0/96 || Cross-seed replay | 22 | 15.403 | 13.218 | One seed | 12.987–13.496 | 0/32 || Always-on hybrid | 21, 22 | 15.357 | 13.281 | 13.229–13.334 | 13.091–13.472 | 0/64 |Matched finite-width and Hessian measurements for the primary AdamW, trace and third-order checkpoints are pending.For the primary comparison, TinyStories uses all weights and Pythia uses the LoRA factors. Compare widths within each model. The link gives every run, directional bracket and Hessian probe. [Flatness statistics and raw files](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/flatness.md) · [Secondary measurement design](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/amendments/checkpoint-flatness.md)### TinyStories hybrid schedules**Adaptive vs fixed ramp · 3/8 paired seeds · 16,777,216 targets per run.** Both arms resume the same trace-trained checkpoint. Width change is final width minus width at the switch. A larger change means more width retained at the fixed loss tolerance. For two negative changes, the one closer to zero lost less width.
53 unmodified lines54555653 unmodified linesRun `uv run thirdloss audit-hub` at the Git revision in `publication.json` to verify every published object against its Git blob or large-file digest, including all tracked files. The archive uses committed bytes so Windows checkout line endings and local configuration cannot change the mirrored source. [Public verification receipt](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/publication.json)With `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)53 unmodified lines5455565758596053 unmodified linesRun `uv run thirdloss audit-hub` at the Git revision in `publication.json` to verify every published object against its Git blob or large-file digest, including all tracked files. The archive uses committed bytes so Windows checkout line endings and local configuration cannot change the mirrored source. [Public verification receipt](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/publication.json)With `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` to measure the selected models and fitted pilot controls. Use `--phase confirm` for the eight-seed checkpoints. Each call checks the training stream and exported weights, resumes from saved measurements and publishes each newly measured checkpoint. Schedule this command between timed training runs on the same GPU. Run `uv run --locked thirdloss report` to rebuild the statistics from the saved measurements. [Design](../reports/amendments/checkpoint-flatness.md) · [Results and raw probes](../reports/flatness.md)
33 unmodified lines34353637383933 unmodified lines| [stories-hybrid-s22-strong-r01](./stories-hybrid-s22-strong-r01/experiment.md) | TinyStories | Stronger trace | hybrid | 22 | 0.010 | 16,777,216 | 2.5464 | — | 60,263 | complete || [stories-hybrid-s22-trace-r01](./stories-hybrid-s22-trace-r01/experiment.md) | TinyStories | Hessian trace | hybrid | 22 | 0.010 | 16,777,216 | 2.5463 | — | 61,689 | complete || [stories-hybrid-s23-adaptive-r01](./stories-hybrid-s23-adaptive-r01/experiment.md) | TinyStories | Curvature-dependent hybrid | hybrid | 23 | 0.010 | 16,777,216 | 2.5423 | — | 37,872 | complete || [stories-hybrid-s23-late-r01](./stories-hybrid-s23-late-r01/experiment.md) | TinyStories | Fixed late hybrid | hybrid | 23 | 0.010 | 16,777,216 | 2.5425 | — | 40,662 | complete || [stories-hybrid-s23-strong-r01](./stories-hybrid-s23-strong-r01/experiment.md) | TinyStories | Stronger trace | hybrid | 23 | 0.010 | 16,777,216 | 2.5424 | — | 60,806 | complete || [stories-hybrid-s23-trace-r01](./stories-hybrid-s23-trace-r01/experiment.md) | TinyStories | Hessian trace | hybrid | 23 | 0.010 | 16,777,216 | 2.5423 | — | 59,471 | complete |33 unmodified lines3435363738394033 unmodified lines| [stories-hybrid-s22-strong-r01](./stories-hybrid-s22-strong-r01/experiment.md) | TinyStories | Stronger trace | hybrid | 22 | 0.010 | 16,777,216 | 2.5464 | — | 60,263 | complete || [stories-hybrid-s22-trace-r01](./stories-hybrid-s22-trace-r01/experiment.md) | TinyStories | Hessian trace | hybrid | 22 | 0.010 | 16,777,216 | 2.5463 | — | 61,689 | complete || [stories-hybrid-s23-adaptive-r01](./stories-hybrid-s23-adaptive-r01/experiment.md) | TinyStories | Curvature-dependent hybrid | hybrid | 23 | 0.010 | 16,777,216 | 2.5423 | — | 37,872 | complete || [stories-hybrid-s23-always-r01](./stories-hybrid-s23-always-r01/experiment.md) | TinyStories | Always-on hybrid | hybrid | 23 | 0.010 | 5,718,016 | 3.0052 | — | — | training || [stories-hybrid-s23-late-r01](./stories-hybrid-s23-late-r01/experiment.md) | TinyStories | Fixed late hybrid | hybrid | 23 | 0.010 | 16,777,216 | 2.5425 | — | 40,662 | complete || [stories-hybrid-s23-strong-r01](./stories-hybrid-s23-strong-r01/experiment.md) | TinyStories | Stronger trace | hybrid | 23 | 0.010 | 16,777,216 | 2.5424 | — | 60,806 | complete || [stories-hybrid-s23-trace-r01](./stories-hybrid-s23-trace-r01/experiment.md) | TinyStories | Hessian trace | hybrid | 23 | 0.010 | 16,777,216 | 2.5423 | — | 59,471 | complete |
61 unmodified lines62636465666761 unmodified lines- [stories-hybrid-s23-adaptive-r01](./stories-hybrid-s23-adaptive-r01/experiment.md) — Development NLL changed by -0.1848 nats per target token from 8,912,896 to 16,777,216 training targets. Attribution to the regularizer uses matched comparisons across seeds.- [stories-hybrid-s23-late-r01](./stories-hybrid-s23-late-r01/experiment.md) — Development NLL changed by -0.1847 nats per target token from 8,912,896 to 16,777,216 training targets. Attribution to the regularizer uses matched comparisons across seeds.- [stories-hybrid-s23-strong-r01](./stories-hybrid-s23-strong-r01/experiment.md) — Development NLL changed by -0.1847 nats per target token from 8,912,896 to 16,777,216 training targets. Attribution to the regularizer uses matched comparisons across seeds.61 unmodified lines626364656667686961 unmodified lines- [stories-hybrid-s23-adaptive-r01](./stories-hybrid-s23-adaptive-r01/experiment.md) — Development NLL changed by -0.1848 nats per target token from 8,912,896 to 16,777,216 training targets. Attribution to the regularizer uses matched comparisons across seeds.- [stories-hybrid-s23-always-r01](./stories-hybrid-s23-always-r01/experiment.md) — Development NLL changed by -3.0038 nats per target token from 524,288 to 5,242,880 training targets. Attribution to the regularizer uses matched comparisons across seeds.- [stories-hybrid-s23-late-r01](./stories-hybrid-s23-late-r01/experiment.md) — Development NLL changed by -0.1847 nats per target token from 8,912,896 to 16,777,216 training targets. Attribution to the regularizer uses matched comparisons across seeds.- [stories-hybrid-s23-strong-r01](./stories-hybrid-s23-strong-r01/experiment.md) — Development NLL changed by -0.1847 nats per target token from 8,912,896 to 16,777,216 training targets. Attribution to the regularizer uses matched comparisons across seeds.
1234567891011# TinyStories · Always-on hybrid
Run `stories-hybrid-s23-always-r01` · [raw records](../../../results/stories-hybrid-s23-always-r01/) · [registered design](../../preregistration.md)
| Stage | Method | Phase | Seed | Ratio | Train tokens | Dev NLL | Test NLL | Tokens/s | Status || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || TinyStories | Always-on hybrid | hybrid | 23 | 0.010 | 5,718,016 | 3.0052 | — | — | training |
Training time is 193.0 seconds. Peak allocated GPU memory is — MiB. Development token accuracy is 0.4076. Test token accuracy is —.
[Design and hyperparameter rationale](../../planned-runs.md) · [Saved configuration](../../../results/stories-hybrid-s23-always-r01/config.json)12345# Run learnings
Development NLL changed by -3.0038 nats per target token from 524,288 to 5,242,880 training targets. Attribution to the regularizer uses matched comparisons across seeds.
[Experiment and source records](experiment.md)1234567891011121314151617181920# Flatness at saved checkpoints
Widths are measured in each model’s trainable coordinates. A larger width is flatter at the specified training-loss tolerance. A smaller RMS curvature means less local bending. Opposite curvature signs can cancel in the normalized trace. [Measurement design](amendments/checkpoint-flatness.md)
## Registered TinyStories hybrids
| Hybrid arm | Seeds | Switch width<br>↑ Wider is flatter | Final width<br>↑ Wider is flatter | Final seed range | Middle 50% of final directions | Rays at limit / tested || --- | --- | --- | --- | --- | --- | --- || Curvature-dependent hybrid | 21, 22, 23 | 15.143 | 13.157 | 13.048–13.215 | 12.984–13.368 | 0/96 || Fixed late hybrid | 21, 22, 23 | 15.143 | 13.215 | 13.103–13.268 | 13.036–13.411 | 0/96 || Hessian trace | 21, 22, 23 | 15.143 | 13.154 | 13.046–13.215 | 12.984–13.366 | 0/96 || Stronger trace | 21, 22, 23 | 15.143 | 13.175 | 13.069–13.233 | 13.002–13.387 | 0/96 || Cross-seed replay | 22 | 15.403 | 13.218 | One seed | 12.987–13.496 | 0/32 || Always-on hybrid | 21, 22 | 15.357 | 13.281 | 13.229–13.334 | 13.091–13.472 | 0/64 |
The seed range and directional spread describe variability. The rays at the limit give measurement coverage. Compare matching seeds for differences between arms. [Every crossing and paired comparison](hybrid/results.md)
## Secondary checkpoint measurements
Awaiting the first saved primary-checkpoint measurement.18 unmodified lines19202118 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)18 unmodified lines1920212223242518 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 measurementsMeasure the saved AdamW, Hessian-trace and third-order checkpoints at the selected pilot horizon and the full confirmatory horizon in each stage. Include the three fitted pilot controls. Each evaluation records training-window perturbation widths and Hessian curvature in that stage’s trainable coordinates. This analysis was specified after early development results. [Measurement design](amendments/checkpoint-flatness.md) · [Measured statistics](flatness.md)
123456# Study progressUpdated 2026-11-25T16:28:36+00:00.21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.123456# Study progressUpdated 2026-11-25T16:32:44+00:00.21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.
123456# Study summaryRecorded 41 runs, including 40 with a completed summary.**TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets).123456# Study summaryRecorded 42 runs, including 40 with a completed summary.**TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets).
123456789101112131415161718192021{ "stage": "stories", "phase": "hybrid", "id": "stories-hybrid-s23-always-r01", "method": "always", "seed": 23, "ratio": 0.01, "token_budget": 16777216, "batch_windows": 32, "context": 128, "schedule_steps": 4096, "protocol": "hybrid-v1", "alpha": 9.169227719425724e-08, "cap": 3.0190450056526336e-14, "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00", "microbatch": 32, "coefficients": { "trace": 9.169227719425724e-08, "third": 3.0190450056526336e-14 }}1234{ "status": "training", "timestamp": "2026-11-25T16:29:19+00:00"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108"""Secondary training-window geometry of saved language-model checkpoints, outside timed training."""
import hashlibimport mathimport subprocessimport sysfrom statistics import mean
import torchfrom filelock import FileLock
from .models import logits_of,token_loss,widen_pythiafrom .penalties import inner,partials,random_signsfrom .records import HORIZONS,read_json,run_name,sha256,time_now,write_jsonfrom .study import load_trained_modelfrom .width import measure_widthfrom .windows import TrainingWindows,generator
PROTOCOL="checkpoint-flatness-v1"
def hessian_statistics(loss,parameters): """Estimate tr(H)/d and ||H||F/√d on one fixed loss; the signed trace can cancel.""" gradient=partials(loss,parameters) dimensions=sum(p.numel() for p in parameters) device=parameters[0].device draws=[] for index in range(8): z=random_signs(parameters,generator(device,88731,index,983)) hz=partials(inner(gradient,z),parameters,create_graph=False) signed=float(inner(z,hz))/dimensions square=float(inner(hz,hz))/dimensions if not math.isfinite(signed) or not math.isfinite(square): raise FloatingPointError("Nonfinite checkpoint Hessian product") draws.append({"index":index,"trace_per_parameter":signed,"squared_rms":square}) return {"dimensions":dimensions,"draws":draws,"device":str(device),"dtype":str(parameters[0].dtype), "trace_per_parameter":mean(r["trace_per_parameter"] for r in draws), "rms_curvature":math.sqrt(mean(r["squared_rms"] for r in draws))}
def measure_checkpoint(project,storage,row,device): """Restore one verified export and compute both local curvature and finite-radius width.""" corpus=storage/"data"/row["stage"] path=project/"results"/row["id"]/"flatness.json" identity={"protocol":PROTOCOL,"run":row["id"],"checkpoint_file_sha256":row["weights_sha256"], "data_manifest_sha256":sha256(corpus/"manifest.json"),"width_device":device.type} if identity["data_manifest_sha256"]!=row["data_manifest_sha256"]: raise ValueError(f"Training manifest changed for {row['id']}") if path.exists(): existing=read_json(path) if any(existing.get(k)!=v for k,v in identity.items()): raise ValueError(f"Saved flatness provenance differs for {row['id']}") return path print(f"{time_now()} Measuring checkpoint flatness for {row['id']}",flush=True) model=load_trained_model(storage,row,device).eval() inputs,targets=TrainingWindows(corpus/"train.bin",88731,8).get(0,device) fingerprint=hashlib.sha256(inputs.cpu().numpy().tobytes()+targets.cpu().numpy().tobytes()).hexdigest() width=measure_width(model,lambda:token_loss(logits_of(model,inputs),targets)) if row["stage"]=="abstracts": model=widen_pythia(model.cpu()) else: model=model.double() hessian_device=next(model.parameters()).device loss=token_loss(logits_of(model,inputs[:2].to(hessian_device)),targets[:2].to(hessian_device)) statistics=hessian_statistics(loss,tuple(p for p in model.parameters() if p.requires_grad)) write_json(path,{**identity,"timestamp":time_now(),"split":"train","probe_windows_sha256":fingerprint, "width_windows":8,"curvature_windows":2,"width":width,"curvature":statistics}) print(f"{time_now()} {row['id']} width={width['width']} RMS curvature={statistics['rms_curvature']:.6g}",flush=True) return path
def flatness_study(project,storage,stages,phase,device,publish): """Measure all available prespecified matches; resume from independently verified per-run records.""" from .release import publish_snapshot for stage in stages: data=storage/"data"/stage if (project/"results"/"selection"/f"{stage}.json").exists(): if sha256(data/"train.bin")!=read_json(data/"manifest.json")["artifacts"]["train.bin"]["sha256"]: raise ValueError(f"Training tokens differ from their registered digest for {stage}") for group in (("ce","trace","third"),("hessian_norm","sham","combined")): for stage in stages: selection=project/"results"/"selection"/f"{stage}.json" if not selection.exists(): continue ratios=read_json(selection)["ratios"] strength={"ce":0.,"hessian_norm":.03,"sham":ratios["third"],"combined":ratios["third"],**ratios} for kind in (("pilot","confirm") if phase=="all" else (phase,)): if kind=="confirm" and "ce" not in group: continue for seed in ((0,) if kind=="pilot" else range(1,9)): for method in group: run=run_name(stage,method,kind,seed,strength[method]) summary=project/"results"/run/"summary.json" if not summary.exists(): continue row=read_json(summary) if row["tokens"]!=(HORIZONS[stage]//8 if kind=="pilot" else HORIZONS[stage]): raise ValueError(f"Flatness comparison requires the complete registered horizon: {run}") with FileLock(str(storage/"locks"/(run+"-flatness.lock"))): measured=measure_checkpoint(project,storage,row,device) marker=storage/"releases"/("flatness-"+run+".json") digest=sha256(measured) if publish and (not marker.exists() or read_json(marker)["sha256"]!=digest): subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"], cwd=project,check=True) revision=publish_snapshot(project,f"Measure training-window flatness for {run}") write_json(marker,{"sha256":digest,"git_revision":revision})35 unmodified lines36373839404142434445464748497 unmodified lines5758596061626362 unmodified lines12612712812913013135 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","freeze","evaluate","report","dashboard","publish","audit-hub","audit-restart","progress","verify"):sub = parsers.add_parser(action)if action in {"prepare","study"}:sub.add_argument("--stage",choices=(*HORIZONS,"both"),default="both")if action in {"train","freeze"}:sub.add_argument("--stage",choices=HORIZONS,required=True)if action in {"train","study","hybrid","evaluate"}:sub.add_argument("--device",default="cuda")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=="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"}: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")62 unmodified linesreturnfrom .records import setup_devicedevice = setup_device(args.device)if args.action in {"study","hybrid"}:from contextlib import nullcontextfrom .live_hub import publish_live35 unmodified lines363738394041424344454647484950517 unmodified lines5960616263646562 unmodified lines12812913013113213313413513613735 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")if action in {"train","freeze"}:sub.add_argument("--stage",choices=HORIZONS,required=True)if action in {"train","study","hybrid","evaluate","flatness"}:sub.add_argument("--device",default="cuda")if action=="flatness":sub.add_argument("--phase",choices=("pilot","confirm","all"),default="all")if action=="study":sub.add_argument("--with-hybrid",action="store_true",help="Include the registered TinyStories hybrid follow-up on the same GPU")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")62 unmodified linesreturnfrom .records import setup_devicedevice = setup_device(args.device)if args.action=="flatness":from .checkpoint_flatness import flatness_studyflatness_study(project,storage,stages,args.phase,device,args.publish)returnif args.action in {"study","hybrid"}:from contextlib import nullcontextfrom .live_hub import publish_live
123456789101112131415161718192021222324252627282930313233343536373839"""Order statistics for two-sided perturbation widths with finite bisection and open upper bounds."""
import math
def _quantile(values, fraction): """Linear empirical quantile, including an unbounded upper endpoint when its weight is positive.""" ordered=sorted(values) position=(len(ordered)-1)*fraction lower=math.floor(position) upper=math.ceil(position) if lower==upper or ordered[lower]==ordered[upper]: return ordered[lower] return ordered[lower]+(ordered[upper]-ordered[lower])*(position-lower)
def quantile_bounds(bounds,fraction): """Monotonicity transfers the brackets on the individual widths to the same order statistic.""" low=_quantile([b[0] for b in bounds],fraction) high=_quantile([b[1] if b[1] is not None else math.inf for b in bounds],fraction) return [low,high if math.isfinite(high) else None]
def direction_summary(width): """Keep the per-direction middle half and denominator without copying raw rays into the dashboard.""" bounds=[] for ray in width.get("directions",[]): pos,neg=ray["positive"],ray["negative"] upper=None if pos["upper"] is None or neg["upper"] is None else pos["upper"]+neg["upper"] bounds.append([pos["lower"]+neg["lower"],upper]) if not bounds: return {} return {"direction_q1":quantile_bounds(bounds,.25),"direction_q3":quantile_bounds(bounds,.75), "ray_count":2*len(bounds)}
def compact_width(width): """Leave every individual ray in the linked raw file and retain summary statistics for rendering.""" return {**{k:v for k,v in width.items() if k!="directions"},**direction_summary(width)}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110"""Describe checkpoint widths, directional variation and local curvature without treating rays as seeds."""
from statistics import median
from .flatness_stats import quantile_boundsfrom .report_records import METHODS,completed,markdown_table
def _bound_text(interval,censored=False): low,high=interval if high is None: return f"≥{low:.3f}" if censored and f"{low:.3f}"!=f"{high:.3f}": return f"[{low:.3f}, {high:.3f}]" return f"{(low+high)/2:.3f}"
def _width_stat(points,fraction): """Use each registered midpoint when available and keep the lower bound of every censored seed.""" bounds=[[p["width"],p["width"]] if p["width"] is not None else [p["width_lower"],None] for p in points] return _bound_text(quantile_bounds(bounds,fraction),any(b[1] is None for b in bounds))
def _spread(points): if not all("direction_q1" in p for p in points): return "—" bounds=[quantile_bounds([p[key] for p in points],.5) for key in ("direction_q1","direction_q3")] return "–".join(_bound_text(b,any(p["censored_rays"] for p in points)) for b in bounds)
def _seed_range(points): return "One seed" if len(points)==1 else "–".join(_width_stat(points,q) for q in (0.,1.))
def _ray_count(points): if not all(p.get("ray_count") for p in points): return "—" return f"{sum(p['censored_rays'] for p in points)}/{sum(p['ray_count'] for p in points)}"
def hybrid_flatness_rows(runs): """Show which seeds contributed to each arm; their random directions are shared by design.""" rows=[] for arm in ("adaptive","late","trace","strong","replay","always"): subset=sorted((r for r in runs if r.get("phase")=="hybrid" and completed(r) and r["method"]==arm and all(str(step) in r.get("widths",{}) for step in (2048,4096))),key=lambda r:r["seed"]) if not subset: continue initial=[r["widths"]["2048"] for r in subset] final=[r["widths"]["4096"] for r in subset] rows.append([METHODS[arm],", ".join(str(r["seed"]) for r in subset),_width_stat(initial,.5), _width_stat(final,.5),_seed_range(final),_spread(final),_ray_count(final)]) return rows
def hybrid_flatness_table(runs): rows=hybrid_flatness_rows(runs) if not rows: return "Awaiting completed hybrid checkpoints." return markdown_table(rows,["Hybrid arm","Seeds","Switch width<br>↑ Wider is flatter","Final width<br>↑ Wider is flatter","Final seed range", "Middle 50% of final directions","Rays at limit / tested"])
def primary_flatness_table(pairs): """Compare the same measured seeds, trainable parameterization, training windows and probe backend.""" methods=("ce","trace","third") measured=[pair for pair in pairs if all("flatness" in pair[m] for m in methods)] if not measured: return "" for pair in measured: signatures={(pair[m]["flatness"]["protocol"],pair[m]["flatness"]["probe_windows_sha256"], pair[m]["flatness"]["width_device"],pair[m]["flatness"]["hessian_device"]) for m in methods} if len(signatures)!=1: raise ValueError("Matched flatness statistics require the same probes and arithmetic") groups=[[pair[m]["flatness"] for pair in measured] for m in methods] rows=[ ["Directional width<br>↑ Wider is flatter",*[_width_stat(g,.5) for g in groups]], ["Final width range across seeds<br>Descriptive spread",*[_seed_range(g) for g in groups]], ["Middle 50% of directions<br>Descriptive spread",*[_spread(g) for g in groups]], ["Rays at limit / tested<br>Measurement coverage",*[_ray_count(g) for g in groups]], ["Unperturbed probe NLL<br>↓ Lower fits these windows better",*[f"{median(p['baseline_nll'] for p in g):.5f}" for g in groups]], ["RMS Hessian curvature<br>↓ Lower means less local bending",*[f"{median(p['rms_curvature'] for p in g):.6g}" for g in groups]], ["Signed Hessian trace / parameter<br>No general better direction",*[f"{median(p['trace_per_parameter'] for p in g):+.6g}" for g in groups]], ] seeds=", ".join(str(pair["ce"]["seed"]) for pair in measured) return f"Seeds {seeds} · {measured[0]['ce']['tokens']:,} training targets per checkpoint.\n\n"+markdown_table( rows,["Flatness statistic","AdamW","Hessian trace","Third order"])
def flatness_ledger(study): """Provide one evidence link per measured checkpoint, including secondary controls and censored rays.""" rows=[] for r in study["runs"]: if "flatness" in r: p=r["flatness"] rows.append([r["stage"],r["phase"],r["seed"],METHODS[r["method"]],_width_stat([p],.5), _spread([p]),_ray_count([p]),f"{p['rms_curvature']:.6g}",f"{p['trace_per_parameter']:+.6g}", f"[All probes](../results/{r['id']}/flatness.json)"]) text=["# Flatness at saved checkpoints", "Widths are measured in each model’s trainable coordinates. A larger width is flatter at the specified " "training-loss tolerance. A smaller RMS curvature means less local bending. Opposite curvature signs " "can cancel in the normalized trace. [Measurement design](amendments/checkpoint-flatness.md)", "## Registered TinyStories hybrids",hybrid_flatness_table(study["runs"]), "The seed range and directional spread describe variability. The rays at the limit give measurement coverage. " "Compare matching seeds for differences between arms. [Every crossing and paired comparison](hybrid/results.md)", "## Secondary checkpoint measurements"] text.append(markdown_table(rows,["Stage","Horizon","Seed","Arm","Width ↑","Middle 50% of directions", "Rays at limit / tested","RMS curvature ↓","Signed trace / parameter","Evidence"]) if rows else "Awaiting the first saved primary-checkpoint measurement.") return "\n\n".join(text)+"\n"4 unmodified lines5678910168 unmodified lines17918018118218318418518618718856 unmodified lines2452462472482492505 unmodified lines25625725825926026140 unmodified lines3023033043053063073084 unmodified linesfrom statistics import medianfrom .analysis import _time_matchfrom .records import HORIZONSfrom .report_records import METHODS, completed, finite, markdown_table, verdict_text168 unmodified lines"""Return a short opening scorecard and the detailed, regenerable comparisons for the README."""top=[]samples=[]detail=["## Side-by-side comparisons","Each row states which direction is better for that metric. ""Bold highlights the best observed value at the displayed precision. A tie means the paired difference rounds to zero. ""NLL is negative log-likelihood in nats per target. Accuracy differences use percentage points (pp)."]for stage,name in STAGES.items():pairs=_paired_runs(study,stage,"confirm",PRIMARY)confirm=bool(pairs)if not confirm:56 unmodified lines"the fastest run’s finish time in each seed. Full-split NLL uses every development target. ""Training speed includes regularizer probes. Adapter derivatives use CPU float64 with one GPU reserved. ""[Timing definitions and checkpoint lags](reports/summary.md)")fixed=_hybrid_pairs(study,"late")detail.append("### TinyStories hybrid schedules")if fixed:5 unmodified linesgeometry="The two schedules retained equal width at the displayed precision."else:geometry=f"It retained {width_change.removesuffix(' retained')} directional width after the switch."loss_change=_effect(fixed,NLL,"adaptive","late")prediction=("The two schedules had equal development NLL at the displayed precision." if loss_change=="Tie"else f"Adaptive development NLL was {loss_change}.")40 unmodified linesdetail.extend(["### Same-prompt continuations","Each panel shows the first saved prompt and full continuations ""from the lowest matched seed. These examples have no quality rating. The method names link to the raw generations.",*(panel for panel in samples if panel)])quick.append("[Side-by-side scores, accuracy, speed, memory and width](#side-by-side-comparisons) · ""[Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · ""[Paired tests and intervals](reports/summary.md)")if not any(o.get("complete") for o in study["stages"].values()):4 unmodified lines567891011168 unmodified lines18018118218318418518618718818919019119219319419519656 unmodified lines2532542552562572582592602612622632642652662672682692702712722732742755 unmodified lines28128228328428528628728828940 unmodified lines3303313323333343353363374 unmodified linesfrom statistics import medianfrom .analysis import _time_matchfrom .flatness_tables import hybrid_flatness_table,primary_flatness_tablefrom .records import HORIZONSfrom .report_records import METHODS, completed, finite, markdown_table, verdict_text168 unmodified lines"""Return a short opening scorecard and the detailed, regenerable comparisons for the README."""top=[]samples=[]primary_geometry=[]detail=["## Side-by-side comparisons","Each row states which direction is better for that metric. ""Bold highlights the best observed value at the displayed precision. A tie means the paired difference rounds to zero. ""NLL is negative log-likelihood in nats per target. Accuracy differences use percentage points (pp)."]for stage,name in STAGES.items():for horizon in ("confirm","pilot"):table=primary_flatness_table(_paired_runs(study,stage,horizon,PRIMARY))if table:context="full-budget checkpoints" if horizon=="confirm" else "development pilots"primary_geometry.append(f"**{name} · {context}**\n\n{table}")breakpairs=_paired_runs(study,stage,"confirm",PRIMARY)confirm=bool(pairs)if not confirm:56 unmodified lines"the fastest run’s finish time in each seed. Full-split NLL uses every development target. ""Training speed includes regularizer probes. Adapter derivatives use CPU float64 with one GPU reserved. ""[Timing definitions and checkpoint lags](reports/summary.md)")detail.extend(["### Flatness of the trained checkpoints","How far can the weights move before next-token loss rises by 0.1 nats on eight fixed training windows? ""We add the crossing distances on both sides of each of 16 unit directions, then take their median. ""**Wider is flatter** in these coordinates. Establishing a local minimum would also require a stationarity test. ""[Flat-minima paper](https://people.idsia.ch/~juergen/fm/node1.html) · ""[Coordinate dependence](https://proceedings.mlr.press/v70/dinh17b/dinh17b.pdf#page=2)","**TinyStories hybrids** · Each row names the completed seeds. Switch and final widths are medians over those seeds. ""The final seed range shows the smallest and largest seed widths. The middle 50% column gives the medians of ""the within-seed directional quartiles. Spread has no preferred direction. A ray at the search limit supplies a lower bound.",hybrid_flatness_table(study["runs"])])if primary_geometry:detail.extend(primary_geometry)else:detail.append("Matched finite-width and Hessian measurements for the primary AdamW, trace and third-order checkpoints are pending.")detail.append("For the primary comparison, TinyStories uses all weights and Pythia uses the LoRA factors. ""Compare widths within each model. The link gives every run, directional bracket and Hessian probe. ""[Flatness statistics and raw files](reports/flatness.md) · [Secondary measurement design](reports/amendments/checkpoint-flatness.md)")fixed=_hybrid_pairs(study,"late")detail.append("### TinyStories hybrid schedules")if fixed:5 unmodified linesgeometry="The two schedules retained equal width at the displayed precision."else:geometry=f"It retained {width_change.removesuffix(' retained')} directional width after the switch."finals=[[pair[m]["widths"]["4096"]["width"] for pair in fixed] for m in ("adaptive","late")]if all(finite(w) for group in finals for w in group):geometry+=f" Median final widths were {median(finals[0]):.3f} (adaptive) and {median(finals[1]):.3f} (fixed)."loss_change=_effect(fixed,NLL,"adaptive","late")prediction=("The two schedules had equal development NLL at the displayed precision." if loss_change=="Tie"else f"Adaptive development NLL was {loss_change}.")40 unmodified linesdetail.extend(["### Same-prompt continuations","Each panel shows the first saved prompt and full continuations ""from the lowest matched seed. These examples have no quality rating. The method names link to the raw generations.",*(panel for panel in samples if panel)])quick.append("[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · ""[Flatness statistics](#flatness-of-the-trained-checkpoints) · ""[Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · ""[Paired tests and intervals](reports/summary.md)")if not any(o.get("complete") for o in study["stages"].values()):
327 unmodified lines328329330331332333334335336337338339327 unmodified lines"is 4/w<super>2</super> away from zero and grows toward the flat bottom. The final appendix ""specifies both schedules and the width test. "f"{_link(REPOSITORY + '/blob/main/reports/hybrid/preregistration.md', 'Frozen follow-up design')}")hybrid = study["hybrid"]if "hybrid_width" in figures:flow.append(_figure(figure_dir/figures["hybrid_width"],max_height=605))p(f"{hybrid['completed_arms']} of 48 full hybrid arms and {hybrid['completed_trunks']} of 8 shared "f"checkpoints have completed. Geometric endpoint: {hybrid['status']}. "f"{_link(REPOSITORY + '/blob/main/reports/hybrid/results.md', 'All observed widths, development scores and fit differences')}")for comparator,s in hybrid["comparisons"].items():lo,hi = s["median_ci"]p(f"Adaptive minus {METHODS[comparator]} median width gain {fmt(s['median_delta'],5)} "327 unmodified lines328329330331332333334335336337338339340341342343344345346347348349350351352353327 unmodified lines"is 4/w<super>2</super> away from zero and grows toward the flat bottom. The final appendix ""specifies both schedules and the width test. "f"{_link(REPOSITORY + '/blob/main/reports/hybrid/preregistration.md', 'Frozen follow-up design')}")from .flatness_tables import hybrid_flatness_rowshybrid = study["hybrid"]if "hybrid_width" in figures:flow.append(_figure(figure_dir/figures["hybrid_width"],max_height=605))p(f"{hybrid['completed_arms']} of 48 full hybrid arms and {hybrid['completed_trunks']} of 8 shared "f"checkpoints have completed. Geometric endpoint: {hybrid['status']}. "f"{_link(REPOSITORY + '/blob/main/reports/hybrid/results.md', 'All observed widths, development scores and fit differences')}")geometry=hybrid_flatness_rows(study["runs"])if geometry:p("Flatness at trained checkpoints","subheading")p("Switch and final widths are medians over the listed seeds. Larger widths tolerate greater weight ""displacement before the eight-window training loss rises by 0.1 nats. The directional interval ""summarizes the middle half of the 16 two-sided distances within each seed. The last column ""counts final rays whose crossing exceeded the search radius.")flow.append(_grid(styles,["Hybrid arm","Seeds","Switch width","Final width","Middle 50% of directions","Rays at limit"],[[r[i] for i in (0,1,2,3,5,6)] for r in geometry],[104,71,65,65,93,66]))p("Secondary diagnostics compare the fitted primary checkpoints within each trainable parameterization. ""The checkpoint ledger gives their finite widths, signed trace per parameter, RMS curvature and raw probes. "f"{_link(REPOSITORY + '/blob/main/reports/flatness.md','Flatness measurements')} · "f"{_link(REPOSITORY + '/blob/main/reports/amendments/checkpoint-flatness.md','Secondary protocol')}")for comparator,s in hybrid["comparisons"].items():lo,hi = s["median_ci"]p(f"Adaptive minus {METHODS[comparator]} median width gain {fmt(s['median_delta'],5)} "
8 unmodified lines91011121314159 unmodified lines1741751761771781791801811821831848 unmodified linesfrom tempfile import NamedTemporaryFilefrom .analysis import analyze_stagefrom .hybrid_results import hybrid_resultsfrom .records import GITHUB as REPOSITORY, PAGES159 unmodified linesrecord["widths"] = {}for path in sorted(folder.glob("width-*.json")):width = read_json(path)point = {k:v for k,v in width.items() if k!="directions"}record["widths"][str(width["step"])] = pointrecord["events"].append({"step":width["step"],"tokens":width["tokens"],"width":width["width"],"width_probe_nll":width["baseline_nll"]})record["events"].sort(key=lambda row:row.get("step",0))record["samples"] = read_lines(folder / "samples.jsonl")return record8 unmodified lines9101112131415159 unmodified lines1751761771781791801811821831841851861871881891901911921938 unmodified linesfrom tempfile import NamedTemporaryFilefrom .analysis import analyze_stagefrom .flatness_stats import compact_widthfrom .hybrid_results import hybrid_resultsfrom .records import GITHUB as REPOSITORY, PAGES159 unmodified linesrecord["widths"] = {}for path in sorted(folder.glob("width-*.json")):width = read_json(path)point = compact_width(width)record["widths"][str(width["step"])] = pointrecord["events"].append({"step":width["step"],"tokens":width["tokens"],"width":width["width"],"width_probe_nll":width["baseline_nll"]})record["events"].sort(key=lambda row:row.get("step",0))diagnostic=read_json(folder/"flatness.json")if diagnostic:if diagnostic["checkpoint_file_sha256"]!=record.get("weights_sha256"):raise ValueError(f"Geometry belongs to different checkpoint weights for {folder.name}")record["flatness"]={**compact_width(diagnostic["width"]),**{k:diagnostic[k] for k in ("protocol","probe_windows_sha256","width_device")},**{k:diagnostic["curvature"][k] for k in ("rms_curvature","trace_per_parameter")},"hessian_device":diagnostic["curvature"]["device"]}record["samples"] = read_lines(folder / "samples.jsonl")return record
6 unmodified lines789101112283 unmodified lines2962972982993003016 unmodified linesfrom urllib.parse import quotefrom .report_figures import build_figuresfrom .readme_comparisons import comparison_sectionsfrom .report_paper import write_paperfrom .report_records import (283 unmodified linesroot = Path(root).resolve()study = study_snapshot(root)hybrid = _hybrid_report(root,study)figures = build_figures(study, root / "docs" / "figures")study["figures"] = figuresstatic = json.dumps(study, ensure_ascii=False, allow_nan=False, separators=(",", ":"))6 unmodified lines78910111213283 unmodified lines2972982993003013023036 unmodified linesfrom urllib.parse import quotefrom .report_figures import build_figuresfrom .flatness_tables import flatness_ledgerfrom .readme_comparisons import comparison_sectionsfrom .report_paper import write_paperfrom .report_records import (283 unmodified linesroot = 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")study["figures"] = figuresstatic = json.dumps(study, ensure_ascii=False, allow_nan=False, separators=(",", ":"))
55 unmodified lines56575859606172 unmodified lines13413513613713813914014114214314414514614714814915015155 unmodified linesreturn pathdef parent_restart_file(storage,summary):"""Recover a missing branch trunk from the collection's pinned, content-addressed receipt."""import shutil72 unmodified linesif summary["freeze_id"]!=sealed["freeze_id"]:raise ValueError("Existing evaluation uses a different freeze")return summaryweights = weights_file(storage,summary)if sha256(data/"test.bin") != sealed["test_sha256"]:raise ValueError("Test stream differs from the frozen manifest")model = build_model(stage,summary["seed"],device,storage)state = load_file(str(weights),device="cpu")if stage=="stories":model.load_state_dict(state,strict=True)else:from peft import get_peft_model_state_dict,set_peft_model_state_dictif set(state)!=set(get_peft_model_state_dict(model)):raise ValueError("Adapter payload does not match the pinned backbone and target modules")set_peft_model_state_dict(model,state)recorder = Recorder(project,run_id)state = path.parent/"test_state.json"def report_progress(row):55 unmodified lines565758596061626364656667686970717273747572 unmodified lines14814915015115215315415515655 unmodified linesreturn pathdef load_trained_model(storage,summary,device):"""Load verified weights in the recorded coordinates, including only the adapter overlay for Pythia."""state=load_file(str(weights_file(storage,summary)),device="cpu")model=build_model(summary["stage"],summary["seed"],device,storage)if summary["stage"]=="stories":model.load_state_dict(state,strict=True)else:from peft import get_peft_model_state_dict,set_peft_model_state_dictif set(state)!=set(get_peft_model_state_dict(model)):raise ValueError("Adapter payload does not match the pinned backbone and target modules")set_peft_model_state_dict(model,state)return modeldef parent_restart_file(storage,summary):"""Recover a missing branch trunk from the collection's pinned, content-addressed receipt."""import shutil72 unmodified linesif summary["freeze_id"]!=sealed["freeze_id"]:raise ValueError("Existing evaluation uses a different freeze")return summaryif sha256(data/"test.bin") != sealed["test_sha256"]:raise ValueError("Test stream differs from the frozen manifest")model = load_trained_model(storage,summary,device)recorder = Recorder(project,run_id)state = path.parent/"test_state.json"def report_progress(row):
12345678910111213141516171819202122232425262728293031323334353637383940"""Verify geometry statistics, censoring and a Hessian known exactly in the chosen coordinates."""
import math
import pytestimport torch
def test_curvature_keeps_trace_signs_and_counts_negative_eigenvalues_in_rms(): from thirdloss.checkpoint_flatness import hessian_statistics p=torch.tensor([1.,2.,3.],dtype=torch.float64,requires_grad=True) diagonal=torch.tensor([-2.,0.,5.],dtype=torch.float64) result=hessian_statistics((diagonal*p.square()).sum()/2,(p,)) assert result["trace_per_parameter"]==pytest.approx(1.) assert result["rms_curvature"]==pytest.approx(math.sqrt(29/3)) assert len(result["draws"])==8 and result["dimensions"]==3
def test_direction_quantiles_propagate_open_bounds_without_dropping_rays(): from thirdloss.flatness_stats import direction_summary,quantile_bounds def direction(i,upper): return {"direction":i,"negative":{"lower":0.,"upper":0.},"positive":{"lower":float(i),"upper":upper}} data=direction_summary({"directions":[direction(1,1.),direction(2,2.),direction(3,3.),direction(4,None)]}) assert data["ray_count"]==8 and data["direction_q1"]==pytest.approx([1.75,1.75]) assert data["direction_q3"]==[3.25,None] assert quantile_bounds([[2.,None]],.5)==[2.,None]
def test_flatness_table_preserves_seed_count_and_geometry_units(): from thirdloss.flatness_tables import hybrid_flatness_table rows=[] for seed,method,initial,end in ((21,"adaptive",10.,8.),(22,"adaptive",11.,9.),(21,"late",10.,7.)): point={"width":end,"width_lower":end,"width_upper":end,"direction_q1":[5.,5.], "direction_q3":[9.,9.],"ray_count":32,"censored_rays":0,"baseline_nll":2.} rows.append({"stage":"stories","phase":"hybrid","method":method,"seed":seed,"status":"complete", "tokens":2**24,"widths":{"2048":{**point,"width":initial,"width_lower":initial,"width_upper":initial}, "4096":point}}) table=hybrid_flatness_table(rows) assert "21, 22" in table and "8.500" in table and "8.000–9.000" in table and "0/64" in table assert "5.000–9.000" in table and "21 |" in tableREADME.md+21-2
logs/flatness-statistics-release.logAdded+99
logs/flatness-statistics-render.logAdded+1
logs/stories-hybrid-s23-always-r01-20261125T162919301106Z.jsonlAdded
logs/study-20261125T162200Z-hybrid-confirmation.log
logs/study-20261125T162200Z-hybrid-stderr.log+70
publication.json+132-67
research/README.md+22-3
research/docs/figures/curves.png

Large File Pointer Details
- SHA256: 670de59d3ffd7346c45d0357f7f3077e6e0961e240e29e8cdcf55816415cf4e6
- Pointer size: 131 Bytes
- Size of remote file: 298 kB

Large File Pointer Details
- SHA256: 71a940709aef0d4ccaa56e44157b00462cdc6577d5341300cd5cc782a32d747f
- Pointer size: 131 Bytes
- Size of remote file: 299 kB
research/docs/hub/archive.md+21-2
research/docs/runbook.md+4
research/docs/study.json
research/reports/experiments/experiments.md+1
research/reports/experiments/learnings.md+2
research/reports/experiments/stories-hybrid-s23-always-r01/experiment.mdAdded+11
research/reports/experiments/stories-hybrid-s23-always-r01/learnings.mdAdded+5
research/reports/flatness.mdAdded+20
research/reports/paper.pdf
research/reports/planned-runs.md+4
research/reports/progress.md+1-1
research/reports/summary.md+1-1
research/results/stories-hybrid-s23-always-r01/config.jsonAdded+21
research/results/stories-hybrid-s23-always-r01/events.jsonlAdded
research/results/stories-hybrid-s23-always-r01/state.jsonAdded+4
research/src/thirdloss/checkpoint_flatness.pyAdded+108
research/src/thirdloss/cli.py+10-4
research/src/thirdloss/flatness_stats.pyAdded+39
research/src/thirdloss/flatness_tables.pyAdded+110
research/src/thirdloss/readme_comparisons.py+30-1
research/src/thirdloss/report_paper.py+14
research/src/thirdloss/report_records.py+10-1
research/src/thirdloss/reporting.py+2
research/src/thirdloss/study.py+15-10
research/tests/test_flatness.pyAdded+40