BurnyCoder commited on
Commit
28daf5b
·
verified ·
1 Parent(s): 4e5a820

Measure comparable flatness for abstracts-control-s00-initial-r00

Browse files
README.md CHANGED
@@ -22,7 +22,7 @@ Does penalizing changes in loss curvature improve next-token prediction? The stu
22
 
23
  Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.
24
 
25
- [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)
26
 
27
  ## Side-by-side comparisons
28
 
@@ -122,7 +122,7 @@ Each row uses the same fixed training windows and probe directions within its st
122
 
123
  | Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance |
124
  | --- | --- | --- | --- | --- | --- |
125
- | Initial checkpoint | 0 | 0 | Pending | Pending | Pending |
126
  | Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) |
127
  | Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending |
128
  | Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending |
@@ -263,6 +263,8 @@ Each panel shows the first saved prompt and full continuations from the lowest m
263
  | Literature, preregistration, raw observations and reviews | [Reports](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/reports) · [Raw results](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/results) |
264
  | Timestamped training output, full prompts and completions, operator transcripts | [Log archive](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/logs) |
265
  | Fitted models, model cards, optimizer moments, data cursor and random state | [Full-weight models](https://huggingface.co/BurnyCoder/thirdloss-stories) · [Pythia adapters](https://huggingface.co/BurnyCoder/thirdloss-pythia-410m-adapters) · [Pinned pretrained backbone](https://huggingface.co/EleutherAI/pythia-410m/tree/9879c9b5f8bea9051dcb0e68dff21493d67e9d4f) |
266
- | Prepared training and evaluation data, tokenizers and overlap audits | [TinyStories](https://huggingface.co/datasets/BurnyCoder/thirdloss-tinystories-tokens) · [arXiv abstracts](https://huggingface.co/datasets/BurnyCoder/thirdloss-arxiv-abstracts-2024-tokens) |
 
 
267
 
268
  The publication receipt binds the Git commit to the verified file hashes across the collection. Run `uv run thirdloss audit-hub` from that checkout to independently compare the published objects. Log files are snapshots at publication time. Operational transcripts redact transport credentials and local account paths. [File digests and Git revision](publication.json)
 
22
 
23
  Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.
24
 
25
+ [Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness by variant and baseline](#all-variants-and-baselines) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)
26
 
27
  ## Side-by-side comparisons
28
 
 
122
 
123
  | Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance |
124
  | --- | --- | --- | --- | --- | --- |
125
+ | Initial checkpoint | 0 | 0 | 21.890 (1/1) | 0.69058 (1/1) | 1.086 (1/1) |
126
  | Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) |
127
  | Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending |
128
  | Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending |
 
263
  | Literature, preregistration, raw observations and reviews | [Reports](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/reports) · [Raw results](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/results) |
264
  | Timestamped training output, full prompts and completions, operator transcripts | [Log archive](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/logs) |
265
  | Fitted models, model cards, optimizer moments, data cursor and random state | [Full-weight models](https://huggingface.co/BurnyCoder/thirdloss-stories) · [Pythia adapters](https://huggingface.co/BurnyCoder/thirdloss-pythia-410m-adapters) · [Pinned pretrained backbone](https://huggingface.co/EleutherAI/pythia-410m/tree/9879c9b5f8bea9051dcb0e68dff21493d67e9d4f) |
266
+ | Prepared training and evaluation data, tokenizers and overlap audits | [TinyStories](https://huggingface.co/datasets/BurnyCoder/thirdloss-tinystories-tokens) · [arXiv abstracts](https://huggingface.co/datasets/BurnyCoder/thirdloss-arxiv-abstracts-2024) |
267
+
268
+ From the research checkout, `uv run --locked thirdloss study --with-hybrid --with-flatness` reproduces both original stages, the hybrid comparisons and the weight- and score-space measurements. [Installation, data preparation and checkpoint loading](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/docs/runbook.md)
269
 
270
  The publication receipt binds the Git commit to the verified file hashes across the collection. Run `uv run thirdloss audit-hub` from that checkout to independently compare the published objects. Log files are snapshots at publication time. Operational transcripts redact transport credentials and local account paths. [File digests and Git revision](publication.json)
logs/adapter-geometry-20261125T172121Z-stderr.log CHANGED
@@ -0,0 +1,2 @@
 
 
 
1
+
2
+ findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
logs/adapter-geometry-20261125T172121Z.log CHANGED
@@ -1 +1,3 @@
1
  2026-11-25T17:21:21+00:00 Reserved time for existing Pythia and unigram comparisons after stories-branch-s24-trunk-r01
 
 
 
1
  2026-11-25T17:21:21+00:00 Reserved time for existing Pythia and unigram comparisons after stories-branch-s24-trunk-r01
2
+ 2026-11-25T17:24:16+00:00 Previous geometry published. Measuring existing adapter checkpoints.
3
+ 2026-11-25T17:24:23+00:00 Measuring flatness for abstracts-control-s00-initial-r00
logs/dashboard-20261125T165607Z-stderr.log CHANGED
@@ -142,3 +142,25 @@
142
  127.0.0.1 - - [25/Nov/2026 18:23:43] "GET /live.json HTTP/1.1" 200 -
143
  127.0.0.1 - - [25/Nov/2026 18:23:54] "GET /live.json HTTP/1.1" 200 -
144
  127.0.0.1 - - [25/Nov/2026 18:24:04] "GET /live.json HTTP/1.1" 200 -
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  127.0.0.1 - - [25/Nov/2026 18:23:43] "GET /live.json HTTP/1.1" 200 -
143
  127.0.0.1 - - [25/Nov/2026 18:23:54] "GET /live.json HTTP/1.1" 200 -
144
  127.0.0.1 - - [25/Nov/2026 18:24:04] "GET /live.json HTTP/1.1" 200 -
145
+ 127.0.0.1 - - [25/Nov/2026 18:24:15] "GET /live.json HTTP/1.1" 200 -
146
+ 127.0.0.1 - - [25/Nov/2026 18:24:26] "GET /live.json HTTP/1.1" 200 -
147
+ 127.0.0.1 - - [25/Nov/2026 18:24:36] "GET /live.json HTTP/1.1" 200 -
148
+ 127.0.0.1 - - [25/Nov/2026 18:24:47] "GET /live.json HTTP/1.1" 200 -
149
+ 127.0.0.1 - - [25/Nov/2026 18:24:57] "GET /live.json HTTP/1.1" 200 -
150
+ 127.0.0.1 - - [25/Nov/2026 18:25:08] "GET /live.json HTTP/1.1" 200 -
151
+ 127.0.0.1 - - [25/Nov/2026 18:25:19] "GET /live.json HTTP/1.1" 200 -
152
+ 127.0.0.1 - - [25/Nov/2026 18:25:29] "GET /live.json HTTP/1.1" 200 -
153
+ 127.0.0.1 - - [25/Nov/2026 18:25:40] "GET /live.json HTTP/1.1" 200 -
154
+ 127.0.0.1 - - [25/Nov/2026 18:25:51] "GET /live.json HTTP/1.1" 200 -
155
+ 127.0.0.1 - - [25/Nov/2026 18:26:01] "GET /live.json HTTP/1.1" 200 -
156
+ 127.0.0.1 - - [25/Nov/2026 18:26:12] "GET /live.json HTTP/1.1" 200 -
157
+ 127.0.0.1 - - [25/Nov/2026 18:26:23] "GET /live.json HTTP/1.1" 200 -
158
+ 127.0.0.1 - - [25/Nov/2026 18:26:33] "GET /live.json HTTP/1.1" 200 -
159
+ 127.0.0.1 - - [25/Nov/2026 18:26:44] "GET /live.json HTTP/1.1" 200 -
160
+ 127.0.0.1 - - [25/Nov/2026 18:26:55] "GET /live.json HTTP/1.1" 200 -
161
+ 127.0.0.1 - - [25/Nov/2026 18:27:06] "GET /live.json HTTP/1.1" 200 -
162
+ 127.0.0.1 - - [25/Nov/2026 18:27:17] "GET /live.json HTTP/1.1" 200 -
163
+ 127.0.0.1 - - [25/Nov/2026 18:27:27] "GET /live.json HTTP/1.1" 200 -
164
+ 127.0.0.1 - - [25/Nov/2026 18:27:38] "GET /live.json HTTP/1.1" 200 -
165
+ 127.0.0.1 - - [25/Nov/2026 18:27:49] "GET /live.json HTTP/1.1" 200 -
166
+ 127.0.0.1 - - [25/Nov/2026 18:27:59] "GET /live.json HTTP/1.1" 200 -
logs/study-20261125T165454Z-hybrid-stderr.log CHANGED
@@ -2433,3 +2433,62 @@ findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
2433
 
2434
 
2435
  : 100%|##########| 686kB / 686kB
2436
  findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
 
 
 
 
2437
  : 84%|########4 | 579kB / 686kB 
 
 
2438
  : 84%|########4 | 579kB / 686kB 
 
 
2439
  : 84%|########4 | 579kB / 686kB 
 
 
2440
  : 84%|########4 | 579kB / 686kB 
 
 
2441
  : 84%|########4 | 579kB / 686kB 
 
 
2442
  : 84%|########4 | 579kB / 686kB 
 
 
2443
  : 84%|########4 | 579kB / 686kB 
 
 
2444
  : 84%|########4 | 579kB / 686kB 
 
 
2445
  : 84%|########4 | 579kB / 686kB 
 
 
2446
  : 100%|##########| 686kB / 686kB 
 
 
 
2447
  : 100%|##########| 686kB / 686kB 
 
 
2448
  : 100%|##########| 686kB / 686kB 
 
 
2449
  : 100%|##########| 686kB / 686kB 
 
 
2450
  : 100%|##########| 686kB / 686kB 
 
 
2451
  : 100%|##########| 686kB / 686kB 
 
 
2452
  : 100%|##########| 686kB / 686kB 
 
 
 
 
 
 
 
 
2453
  : 100%|##########| 686kB / 686kB 
 
 
 
 
 
2454
  : 100%|##########| 686kB / 686kB 
 
 
 
 
 
2455
  : 100%|##########| 686kB / 686kB 
 
 
 
 
 
 
2456
  : 100%|##########| 686kB / 686kB
 
2433
 
2434
 
2435
  : 100%|##########| 686kB / 686kB
2436
  findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
2437
+
2438
+
2439
+
2440
+
2441
  : 84%|########4 | 579kB / 686kB 
2442
+
2443
+
2444
  : 84%|########4 | 579kB / 686kB 
2445
+
2446
+
2447
  : 84%|########4 | 579kB / 686kB 
2448
+
2449
+
2450
  : 84%|########4 | 579kB / 686kB 
2451
+
2452
+
2453
  : 84%|########4 | 579kB / 686kB 
2454
+
2455
+
2456
  : 84%|########4 | 579kB / 686kB 
2457
+
2458
+
2459
  : 84%|########4 | 579kB / 686kB 
2460
+
2461
+
2462
  : 84%|########4 | 579kB / 686kB 
2463
+
2464
+
2465
  : 84%|########4 | 579kB / 686kB 
2466
+
2467
+
2468
  : 100%|##########| 686kB / 686kB 
2469
+
2470
+
2471
+
2472
  : 100%|##########| 686kB / 686kB 
2473
+
2474
+
2475
  : 100%|##########| 686kB / 686kB 
2476
+
2477
+
2478
  : 100%|##########| 686kB / 686kB 
2479
+
2480
+
2481
  : 100%|##########| 686kB / 686kB 
2482
+
2483
+
2484
  : 100%|##########| 686kB / 686kB 
2485
+
2486
+
2487
  : 100%|##########| 686kB / 686kB 
2488
+
2489
+
2490
+
2491
+
2492
+
2493
+
2494
+
2495
+
2496
  : 100%|##########| 686kB / 686kB 
2497
+
2498
+
2499
+
2500
+
2501
+
2502
  : 100%|##########| 686kB / 686kB 
2503
+
2504
+
2505
+
2506
+
2507
+
2508
  : 100%|##########| 686kB / 686kB 
2509
+
2510
+
2511
+
2512
+
2513
+
2514
+
2515
  : 100%|##########| 686kB / 686kB
publication.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378",
3
- "git_revision": "2e338f1016f98005c874a33a1e93d27b89af614d",
4
  "repositories": {
5
  "BurnyCoder/thirdloss-arxiv-abstracts-2024": {
6
  "files": {
@@ -91,12 +91,12 @@
91
  "size": 9809
92
  },
93
  "study.json": {
94
- "git_blob": "aff14536c15451d99072dbd0f8fab45d6c0d66f3",
95
- "sha256": "60e55b7ac51d9df36cdd9127473f24e60b0c31ba3bbbb8ff0aa86ef8e9b55d86",
96
- "size": 2758554
97
  }
98
  },
99
- "revision": "9ea753d61ede4396f7d0c5a244c6bef4d0f0ce02",
100
  "type": "space"
101
  },
102
  "BurnyCoder/thirdloss-pythia-410m-adapters": {
@@ -107,9 +107,19 @@
107
  "size": 713
108
  },
109
  "runs/abstracts-control-s00-initial-r00/README.md": {
110
- "git_blob": "fe4f3d755d1966cdcf179ed199d463c55e9fcaac",
111
- "sha256": "fb662f9371556e46745354fc78bd235f360931dc4be71fdc0962f831dd1c6a17",
112
- "size": 1524
 
 
 
 
 
 
 
 
 
 
113
  },
114
  "runs/abstracts-control-s00-initial-r00/training_summary.json": {
115
  "git_blob": "d2fbb962a90be6ad994c95a58218d3d6ff37b659",
@@ -427,7 +437,7 @@
427
  "size": 1467
428
  }
429
  },
430
- "revision": "d0ea03bda5bd559a54598d07d51c0e263bf2ff65",
431
  "type": "model"
432
  },
433
  "BurnyCoder/thirdloss-stories": {
@@ -1874,9 +1884,9 @@
1874
  "BurnyCoder/thirdloss-study": {
1875
  "files": {
1876
  "README.md": {
1877
- "git_blob": "ea4ab5d35af37d343691787cf191619dafa17222",
1878
- "sha256": "464f673dfd9835dbf6a181a6ecb1007171cba6b12875c1a0fadb0f02124a8a0d",
1879
- "size": 23816
1880
  },
1881
  "logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": {
1882
  "git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",
@@ -1939,14 +1949,14 @@
1939
  "size": 3698
1940
  },
1941
  "logs/adapter-geometry-20261125T172121Z-stderr.log": {
1942
- "git_blob": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
1943
- "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
1944
- "size": 0
1945
  },
1946
  "logs/adapter-geometry-20261125T172121Z.log": {
1947
- "git_blob": "ad6f1a76ba67fff2980bc8ca368f8948f953fb2f",
1948
- "sha256": "6ed2645208e430dba96440d943098164ebe46e65c8b650836d26b3c2e3add044",
1949
- "size": 120
1950
  },
1951
  "logs/adapter-initialization-check.log": {
1952
  "git_blob": "f955f425d0001657d12be8c2acab9bf2c6056212",
@@ -2004,9 +2014,9 @@
2004
  "size": 46
2005
  },
2006
  "logs/dashboard-20261125T165607Z-stderr.log": {
2007
- "git_blob": "476cccf63909ecada6675498127621791794695b",
2008
- "sha256": "fa53d3f5ac615b7f514e3e170379e8acef3d90ca8f5ca5e641965d3b7aeddda1",
2009
- "size": 10076
2010
  },
2011
  "logs/dashboard-20261125T165607Z.log": {
2012
  "git_blob": "2b28574b8ec0a2c690c454dd9457dab8668a315d",
@@ -2424,9 +2434,9 @@
2424
  "size": 258241
2425
  },
2426
  "logs/study-20261125T165454Z-hybrid-stderr.log": {
2427
- "git_blob": "78c5646fd524048deb6587fc19283e2e8d3b3188",
2428
- "sha256": "9de792bd18646c28284617f9a457a1a9a5b99c232c263814249f02ee711c373e",
2429
- "size": 117880
2430
  },
2431
  "logs/transient-outage-recovery.log": {
2432
  "git_blob": "e442d6a630c2557f3608a8db31739af52ecfba2f",
@@ -2509,9 +2519,9 @@
2509
  "size": 786
2510
  },
2511
  "research/README.md": {
2512
- "git_blob": "d71440fb4d765bcd334e3d47f76f4f4c3e546563",
2513
- "sha256": "9603951afa2e54866b0fd2e233223c7b00d56af389b62c4e8aedb8c03d08969c",
2514
- "size": 37353
2515
  },
2516
  "research/docs/data.md": {
2517
  "git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",
@@ -2564,9 +2574,9 @@
2564
  "size": 1583
2565
  },
2566
  "research/docs/hub/archive.md": {
2567
- "git_blob": "ea4ab5d35af37d343691787cf191619dafa17222",
2568
- "sha256": "464f673dfd9835dbf6a181a6ecb1007171cba6b12875c1a0fadb0f02124a8a0d",
2569
- "size": 23816
2570
  },
2571
  "research/docs/hub/space.md": {
2572
  "git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",
@@ -2589,9 +2599,9 @@
2589
  "size": 10646
2590
  },
2591
  "research/docs/study.json": {
2592
- "git_blob": "aff14536c15451d99072dbd0f8fab45d6c0d66f3",
2593
- "sha256": "60e55b7ac51d9df36cdd9127473f24e60b0c31ba3bbbb8ff0aa86ef8e9b55d86",
2594
- "size": 2758554
2595
  },
2596
  "research/docs/third-derivative-penalty.md": {
2597
  "git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",
@@ -2619,9 +2629,9 @@
2619
  "size": 3982
2620
  },
2621
  "research/reports/experiments/abstracts-control-s00-initial-r00/experiment.md": {
2622
- "git_blob": "19b3a1eea2c5476e7566640a4a984dd60493b3dc",
2623
- "sha256": "175000d3c2d2cf2f013084edb9f45365d88cdbb27eb123a5f649d7a9ef6408eb",
2624
- "size": 2672
2625
  },
2626
  "research/reports/experiments/abstracts-control-s00-initial-r00/learnings.md": {
2627
  "git_blob": "9cf4415c993aedb00d271130bc3cda80298b9e02",
@@ -3069,9 +3079,9 @@
3069
  "size": 236
3070
  },
3071
  "research/reports/flatness.md": {
3072
- "git_blob": "06dbc52bad739d24378099957057c909e74a018f",
3073
- "sha256": "694370c7d651f227af213eee15f3cfaefe3b2b17a155237529186b94b5431b06",
3074
- "size": 17194
3075
  },
3076
  "research/reports/hybrid/preregistration.md": {
3077
  "git_blob": "0729e47d30933f401253bf21feac164c0217f7b4",
@@ -3089,9 +3099,9 @@
3089
  "size": 7290
3090
  },
3091
  "research/reports/paper.pdf": {
3092
- "git_blob": "ebe2288a4500710d49c8c2edb323ed9105bd9378",
3093
- "sha256": "40c0fcb965303c80ee77897ebcb62e176f1e04b89a8d9dcd00fa716ba214cb8a",
3094
- "size": 685615
3095
  },
3096
  "research/reports/plan.md": {
3097
  "git_blob": "4eae157557dd5acb8376680b5bdcdf1a5ba71e69",
@@ -3109,8 +3119,8 @@
3109
  "size": 5234
3110
  },
3111
  "research/reports/progress.md": {
3112
- "git_blob": "515ea35fb3e90012dbbab55b7b501d8c4fde2be1",
3113
- "sha256": "6bc313804a713959601b5a4abd59258ea80f25acfcad605be72d04893e5a3f25",
3114
  "size": 3300
3115
  },
3116
  "research/reports/reviews/adapter-verification.md": {
@@ -3148,11 +3158,21 @@
3148
  "sha256": "8a81a3b4d7d6f88b2eadea280f0c7621074735dff982c55b77810d9922131554",
3149
  "size": 2688
3150
  },
 
 
 
 
 
3151
  "research/results/abstracts-control-s00-initial-r00/samples.jsonl": {
3152
  "git_blob": "00b49fd150619f16c09b93b46bfaad27a9e81ff2",
3153
  "sha256": "daeb3971e0d06299793d423dacc6bba2a7b4c0d44d6a4e235442f8589ec63653",
3154
  "size": 3024
3155
  },
 
 
 
 
 
3156
  "research/results/abstracts-control-s00-initial-r00/summary.json": {
3157
  "git_blob": "d2fbb962a90be6ad994c95a58218d3d6ff37b659",
3158
  "sha256": "9517fd5a2d4c925a6460b465177afce584a485c9f4811846917942554e2a794b",
@@ -5054,9 +5074,9 @@
5054
  "size": 9767
5055
  },
5056
  "research/src/thirdloss/checkpoint_flatness.py": {
5057
- "git_blob": "9ab5da02f241e3c987cef29c668b056ad115e6b2",
5058
- "sha256": "c17dae2fef3fb7b9730c4bdcd2d3de4462160e0d00a5478b472c6080e5b4db0f",
5059
- "size": 10026
5060
  },
5061
  "research/src/thirdloss/cli.py": {
5062
  "git_blob": "fa11ccb908839f87c184b6b2673880828b468ebd",
@@ -5084,9 +5104,9 @@
5084
  "size": 2394
5085
  },
5086
  "research/src/thirdloss/flatness_tables.py": {
5087
- "git_blob": "fd0034ff1de2201f109957b89aae789e06a20395",
5088
- "sha256": "8a6e89f355766b65d5c30e8b95d98ed3faa9c69a341bda0762322e0b2ac79235",
5089
- "size": 11782
5090
  },
5091
  "research/src/thirdloss/hub_archive.py": {
5092
  "git_blob": "33fbff718fcc683b68d4b3f75900b70036134238",
@@ -5144,9 +5164,9 @@
5144
  "size": 11974
5145
  },
5146
  "research/src/thirdloss/readme_comparisons.py": {
5147
- "git_blob": "c66dbe09e167a56393697607b5c824fc000aca92",
5148
- "sha256": "5f8f64b22498e9a18160535130c1bdfca6b2c16a8bc9d2f7cab9831c408bca88",
5149
- "size": 23696
5150
  },
5151
  "research/src/thirdloss/records.py": {
5152
  "git_blob": "a800de00d42944f13a89d8d2f91ce9b2103bbd45",
@@ -5169,9 +5189,9 @@
5169
  "size": 36366
5170
  },
5171
  "research/src/thirdloss/report_records.py": {
5172
- "git_blob": "63fb6adff6bb01d15fcb12841f3e299c5364ff4a",
5173
- "sha256": "dec67007c3338c62f6479c9bd6de50a7db9688261bdfaab702664608381bda53",
5174
- "size": 16009
5175
  },
5176
  "research/src/thirdloss/reporting.py": {
5177
  "git_blob": "ca5ebd108e5ae68dfa30754d98f35e70fc973edf",
@@ -5224,9 +5244,9 @@
5224
  "size": 16607
5225
  },
5226
  "research/tests/test_flatness.py": {
5227
- "git_blob": "5a624f1352171014f1b9dcc12e51f07bc02da0e5",
5228
- "sha256": "f98fffc8ff5751a9d3bef7d9a79a73e00c6549d0f3d076800f26dca9962e3d09",
5229
- "size": 7636
5230
  },
5231
  "research/tests/test_hub_archive.py": {
5232
  "git_blob": "32e45b399f8c49e880dcca18e4d9daa8c5321515",
@@ -5308,5 +5328,5 @@
5308
  "type": "dataset"
5309
  }
5310
  },
5311
- "verified_at": "2026-11-25T17:24:05+00:00"
5312
  }
 
1
  {
2
  "collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378",
3
+ "git_revision": "73a958eba7d0bae98cc7813c8408fb75019b45eb",
4
  "repositories": {
5
  "BurnyCoder/thirdloss-arxiv-abstracts-2024": {
6
  "files": {
 
91
  "size": 9809
92
  },
93
  "study.json": {
94
+ "git_blob": "c4b2f31b27abf2d2cc526470968d8eb68fc13b14",
95
+ "sha256": "8f8efdddfaa40a8d134d9c24844870db1d6b6c77d2af9cafa4e11e0ccab08eaa",
96
+ "size": 2760137
97
  }
98
  },
99
+ "revision": "26bf589a1608f591776fac27490771c87ffee19f",
100
  "type": "space"
101
  },
102
  "BurnyCoder/thirdloss-pythia-410m-adapters": {
 
107
  "size": 713
108
  },
109
  "runs/abstracts-control-s00-initial-r00/README.md": {
110
+ "git_blob": "131b2d5686524f7e1cc52d4f9171e10e093cc504",
111
+ "sha256": "dc5941966f6e5d3385966333452f4041cb6ef3da48efb24b7287dfe1fd61f6ff",
112
+ "size": 1864
113
+ },
114
+ "runs/abstracts-control-s00-initial-r00/flatness.json": {
115
+ "git_blob": "6f1a0dad0035af759a93c9e7672681f6eedd867a",
116
+ "sha256": "31accdffdd92398b163ba9107ad8c8b004975e6658f54143e089409424b3db10",
117
+ "size": 6005
118
+ },
119
+ "runs/abstracts-control-s00-initial-r00/score-flatness.json": {
120
+ "git_blob": "57cc25f79ae5921f9a4ff161bf7bc65ac8ea2885",
121
+ "sha256": "03fe0a77b6c9e8eb26ea01e4e9d43a6b66c58be4ccce4c8d868f6b748806e4c2",
122
+ "size": 5607
123
  },
124
  "runs/abstracts-control-s00-initial-r00/training_summary.json": {
125
  "git_blob": "d2fbb962a90be6ad994c95a58218d3d6ff37b659",
 
437
  "size": 1467
438
  }
439
  },
440
+ "revision": "1804035b4b6a5d44df879a1436416ba7bceb8f81",
441
  "type": "model"
442
  },
443
  "BurnyCoder/thirdloss-stories": {
 
1884
  "BurnyCoder/thirdloss-study": {
1885
  "files": {
1886
  "README.md": {
1887
+ "git_blob": "7e54cb98425f44beba08621b5e311c0d11f29ac1",
1888
+ "sha256": "9eeac89b01d24aebee7523ece17a0d01543c03314d3a0278402a6254211c9f5d",
1889
+ "size": 24165
1890
  },
1891
  "logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": {
1892
  "git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",
 
1949
  "size": 3698
1950
  },
1951
  "logs/adapter-geometry-20261125T172121Z-stderr.log": {
1952
+ "git_blob": "d2ffce252916d6583d0dfb7ba7dae778b93d5589",
1953
+ "sha256": "c9132bf0e3c1e88cb540f5155e9b33d62e9530b3011d8ac7c9d622122f0dbd3a",
1954
+ "size": 3403
1955
  },
1956
  "logs/adapter-geometry-20261125T172121Z.log": {
1957
+ "git_blob": "840ee4212c4a06dcb444049e74d2be5273390f33",
1958
+ "sha256": "b5bc6e42cba670823ca556ac27d6597a1d240b99c116419b5a0191f1501e1543",
1959
+ "size": 300
1960
  },
1961
  "logs/adapter-initialization-check.log": {
1962
  "git_blob": "f955f425d0001657d12be8c2acab9bf2c6056212",
 
2014
  "size": 46
2015
  },
2016
  "logs/dashboard-20261125T165607Z-stderr.log": {
2017
+ "git_blob": "e7b5dbffbb7e47bebb2b234cde53a5c52a80ca43",
2018
+ "sha256": "dd9ac32c853cd2652f9edd91251ef1a93897e69ddc45521cc12936d9d7cf3f97",
2019
+ "size": 11616
2020
  },
2021
  "logs/dashboard-20261125T165607Z.log": {
2022
  "git_blob": "2b28574b8ec0a2c690c454dd9457dab8668a315d",
 
2434
  "size": 258241
2435
  },
2436
  "logs/study-20261125T165454Z-hybrid-stderr.log": {
2437
+ "git_blob": "67cd7fedf8ee2449cb5bea57ec5869b4dc6c09ef",
2438
+ "sha256": "4d6e488bb942c9c0ea96bb9d1ef183867e168b70469af3226ea091bc9d5b77e1",
2439
+ "size": 120600
2440
  },
2441
  "logs/transient-outage-recovery.log": {
2442
  "git_blob": "e442d6a630c2557f3608a8db31739af52ecfba2f",
 
2519
  "size": 786
2520
  },
2521
  "research/README.md": {
2522
+ "git_blob": "b1385af72501d7265fe6ccf45f47177ee16eedc7",
2523
+ "sha256": "7bb1d589a7a308950e7307cfba3a1d6da4523fdea52ca5ae68e9b735e6e8caa7",
2524
+ "size": 37582
2525
  },
2526
  "research/docs/data.md": {
2527
  "git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",
 
2574
  "size": 1583
2575
  },
2576
  "research/docs/hub/archive.md": {
2577
+ "git_blob": "7e54cb98425f44beba08621b5e311c0d11f29ac1",
2578
+ "sha256": "9eeac89b01d24aebee7523ece17a0d01543c03314d3a0278402a6254211c9f5d",
2579
+ "size": 24165
2580
  },
2581
  "research/docs/hub/space.md": {
2582
  "git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",
 
2599
  "size": 10646
2600
  },
2601
  "research/docs/study.json": {
2602
+ "git_blob": "c4b2f31b27abf2d2cc526470968d8eb68fc13b14",
2603
+ "sha256": "8f8efdddfaa40a8d134d9c24844870db1d6b6c77d2af9cafa4e11e0ccab08eaa",
2604
+ "size": 2760137
2605
  },
2606
  "research/docs/third-derivative-penalty.md": {
2607
  "git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",
 
2629
  "size": 3982
2630
  },
2631
  "research/reports/experiments/abstracts-control-s00-initial-r00/experiment.md": {
2632
+ "git_blob": "6a5b6a4f6334a7d4a6bae9c2855cf9315add81d2",
2633
+ "sha256": "266af20581b27d9088b94e5fadf5987b036e2c1d8e510fa7560b7f4a6dfe9106",
2634
+ "size": 3352
2635
  },
2636
  "research/reports/experiments/abstracts-control-s00-initial-r00/learnings.md": {
2637
  "git_blob": "9cf4415c993aedb00d271130bc3cda80298b9e02",
 
3079
  "size": 236
3080
  },
3081
  "research/reports/flatness.md": {
3082
+ "git_blob": "bf06b475214c8f13bd13384c89a4fb7d0a7381bc",
3083
+ "sha256": "7018b145a69705c80ffdb8e89bd9d4eb5484d6aa6f3a2a32cbc2349676e94a8f",
3084
+ "size": 17525
3085
  },
3086
  "research/reports/hybrid/preregistration.md": {
3087
  "git_blob": "0729e47d30933f401253bf21feac164c0217f7b4",
 
3099
  "size": 7290
3100
  },
3101
  "research/reports/paper.pdf": {
3102
+ "git_blob": "62e5afc7c3c17d1a60c165a7a845311005519297",
3103
+ "sha256": "d9572f1456c77daa721c41220118611bd8b3be5887dc6b2d5852433918f37e77",
3104
+ "size": 685633
3105
  },
3106
  "research/reports/plan.md": {
3107
  "git_blob": "4eae157557dd5acb8376680b5bdcdf1a5ba71e69",
 
3119
  "size": 5234
3120
  },
3121
  "research/reports/progress.md": {
3122
+ "git_blob": "168341410244eba7218073fce67c5030f3aa16ac",
3123
+ "sha256": "b998d976e94267c788411182046f6c42779114ca302c511471a0c63e9e4a58bf",
3124
  "size": 3300
3125
  },
3126
  "research/reports/reviews/adapter-verification.md": {
 
3158
  "sha256": "8a81a3b4d7d6f88b2eadea280f0c7621074735dff982c55b77810d9922131554",
3159
  "size": 2688
3160
  },
3161
+ "research/results/abstracts-control-s00-initial-r00/flatness.json": {
3162
+ "git_blob": "6f1a0dad0035af759a93c9e7672681f6eedd867a",
3163
+ "sha256": "31accdffdd92398b163ba9107ad8c8b004975e6658f54143e089409424b3db10",
3164
+ "size": 6005
3165
+ },
3166
  "research/results/abstracts-control-s00-initial-r00/samples.jsonl": {
3167
  "git_blob": "00b49fd150619f16c09b93b46bfaad27a9e81ff2",
3168
  "sha256": "daeb3971e0d06299793d423dacc6bba2a7b4c0d44d6a4e235442f8589ec63653",
3169
  "size": 3024
3170
  },
3171
+ "research/results/abstracts-control-s00-initial-r00/score-flatness.json": {
3172
+ "git_blob": "57cc25f79ae5921f9a4ff161bf7bc65ac8ea2885",
3173
+ "sha256": "03fe0a77b6c9e8eb26ea01e4e9d43a6b66c58be4ccce4c8d868f6b748806e4c2",
3174
+ "size": 5607
3175
+ },
3176
  "research/results/abstracts-control-s00-initial-r00/summary.json": {
3177
  "git_blob": "d2fbb962a90be6ad994c95a58218d3d6ff37b659",
3178
  "sha256": "9517fd5a2d4c925a6460b465177afce584a485c9f4811846917942554e2a794b",
 
5074
  "size": 9767
5075
  },
5076
  "research/src/thirdloss/checkpoint_flatness.py": {
5077
+ "git_blob": "5f0e784a67742fa09631d1061bbcb0d0967afeda",
5078
+ "sha256": "31a901a8860542ea809dda2e1984fb18eaa8b6a23edbd133b2fc36c142f58888",
5079
+ "size": 10144
5080
  },
5081
  "research/src/thirdloss/cli.py": {
5082
  "git_blob": "fa11ccb908839f87c184b6b2673880828b468ebd",
 
5104
  "size": 2394
5105
  },
5106
  "research/src/thirdloss/flatness_tables.py": {
5107
+ "git_blob": "8acb8da7496468c1bb07becf3c5c024bf801c46f",
5108
+ "sha256": "be2e3882cced0a44dbeeec92eca4963ed1522d6861e3c235426a93ec1ed839b0",
5109
+ "size": 12370
5110
  },
5111
  "research/src/thirdloss/hub_archive.py": {
5112
  "git_blob": "33fbff718fcc683b68d4b3f75900b70036134238",
 
5164
  "size": 11974
5165
  },
5166
  "research/src/thirdloss/readme_comparisons.py": {
5167
+ "git_blob": "ac0ca85e9531d2bbffcbdca43bdf06096d7bda4d",
5168
+ "sha256": "136e65d1b2facc477502f8ed65ac0caf90902dfe6d7ffa088d42613748a50d7a",
5169
+ "size": 23700
5170
  },
5171
  "research/src/thirdloss/records.py": {
5172
  "git_blob": "a800de00d42944f13a89d8d2f91ce9b2103bbd45",
 
5189
  "size": 36366
5190
  },
5191
  "research/src/thirdloss/report_records.py": {
5192
+ "git_blob": "38e9dc08b01978b3c1c3491b556e96b7b65bc1ee",
5193
+ "sha256": "9bb8307332048f547f81c09e21b07a6d7dc308910eb6eb38a92ea018f6b012f6",
5194
+ "size": 16138
5195
  },
5196
  "research/src/thirdloss/reporting.py": {
5197
  "git_blob": "ca5ebd108e5ae68dfa30754d98f35e70fc973edf",
 
5244
  "size": 16607
5245
  },
5246
  "research/tests/test_flatness.py": {
5247
+ "git_blob": "cbeb22cb91a0b7949d2c2cfc127bda649573c92c",
5248
+ "sha256": "325b52d4cbbf537f8518342f511bbc737ad66fb288eb0897f08d13bc96e1af22",
5249
+ "size": 9235
5250
  },
5251
  "research/tests/test_hub_archive.py": {
5252
  "git_blob": "32e45b399f8c49e880dcca18e4d9daa8c5321515",
 
5328
  "type": "dataset"
5329
  }
5330
  },
5331
+ "verified_at": "2026-11-25T17:28:06+00:00"
5332
  }
research/README.md CHANGED
@@ -19,7 +19,7 @@ The research background includes flat minima, Hessian measurements and third der
19
 
20
  Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.
21
 
22
- [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)
23
 
24
  <!-- READOUT:END -->
25
 
@@ -165,7 +165,7 @@ Each row uses the same fixed training windows and probe directions within its st
165
 
166
  | Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance |
167
  | --- | --- | --- | --- | --- | --- |
168
- | Initial checkpoint | 0 | 0 | Pending | Pending | Pending |
169
  | Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) |
170
  | Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending |
171
  | Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending |
@@ -320,7 +320,15 @@ TinyStories hybrid follow-up: 17 of 48 full runs and 4 of 8 shared checkpoints c
320
 
321
  ## Reproduce the study
322
 
323
- Use Python 3.12, uv, and an NVIDIA GPU. Install with `uv sync --locked` and check the implementation with `uv run --locked thirdloss verify`. Run the original experiments and the six-arm follow-up with `uv run --locked thirdloss study --with-hybrid`. Once the TinyStories calibration and pilot selection exist, `uv run --locked thirdloss hybrid` runs the follow-up on its own. In another terminal run `uv run thirdloss dashboard --port 18765` for live accuracy, loss and curvature. Regenerate the paper, plots and tables with `uv run thirdloss report`. [Setup, checkpoints and CLI](docs/runbook.md) · [Document splits](docs/data.md) · [Model collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378)
 
 
 
 
 
 
 
 
324
 
325
  The pipeline pins the source texts, splits by document, learns the stories tokenizer using training documents, and freezes the evaluation definition. Identical initializations and document orders pair the competing objectives. The smaller model trains all weights. The pretrained model trains only attention adapters. Examine both improvement and deterioration across seeds and both computational budgets. [TinyStories](https://arxiv.org/pdf/2305.07759) · [Pythia](https://huggingface.co/EleutherAI/pythia-410m) · [Common Pile](https://huggingface.co/datasets/common-pile/arxiv_abstracts_filtered) · [LoRA](https://arxiv.org/pdf/2106.09685)
326
 
 
19
 
20
  Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.
21
 
22
+ [Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness by variant and baseline](#all-variants-and-baselines) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](reports/summary.md)
23
 
24
  <!-- READOUT:END -->
25
 
 
165
 
166
  | Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance |
167
  | --- | --- | --- | --- | --- | --- |
168
+ | Initial checkpoint | 0 | 0 | 21.890 (1/1) | 0.69058 (1/1) | 1.086 (1/1) |
169
  | Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) |
170
  | Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending |
171
  | Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending |
 
320
 
321
  ## Reproduce the study
322
 
323
+ Use Python 3.12, uv, and an NVIDIA GPU. From the repository root, install the locked environment, verify the derivatives and start the study.
324
+
325
+ ```sh
326
+ uv sync --locked
327
+ uv run --locked thirdloss verify
328
+ uv run --locked thirdloss study --with-hybrid --with-flatness
329
+ ```
330
+
331
+ This trains both model families, runs the six hybrid variants, evaluates the frozen models, and measures flatness for each checkpoint and reference. Repeating the study command resumes it. To measure existing saved models separately, run `uv run --locked thirdloss flatness --phase all`. In another terminal, `uv run --locked thirdloss dashboard --port 18765` serves live accuracy, loss and curvature. Regenerate the paper, plots and tables with `uv run --locked thirdloss report`. [Setup, checkpoint loading and publication](docs/runbook.md) · [Document splits](docs/data.md) · [Model collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378)
332
 
333
  The pipeline pins the source texts, splits by document, learns the stories tokenizer using training documents, and freezes the evaluation definition. Identical initializations and document orders pair the competing objectives. The smaller model trains all weights. The pretrained model trains only attention adapters. Examine both improvement and deterioration across seeds and both computational budgets. [TinyStories](https://arxiv.org/pdf/2305.07759) · [Pythia](https://huggingface.co/EleutherAI/pythia-410m) · [Common Pile](https://huggingface.co/datasets/common-pile/arxiv_abstracts_filtered) · [LoRA](https://arxiv.org/pdf/2106.09685)
334
 
research/docs/hub/archive.md CHANGED
@@ -22,7 +22,7 @@ Does penalizing changes in loss curvature improve next-token prediction? The stu
22
 
23
  Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.
24
 
25
- [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)
26
 
27
  ## Side-by-side comparisons
28
 
@@ -122,7 +122,7 @@ Each row uses the same fixed training windows and probe directions within its st
122
 
123
  | Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance |
124
  | --- | --- | --- | --- | --- | --- |
125
- | Initial checkpoint | 0 | 0 | Pending | Pending | Pending |
126
  | Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) |
127
  | Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending |
128
  | Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending |
@@ -263,6 +263,8 @@ Each panel shows the first saved prompt and full continuations from the lowest m
263
  | Literature, preregistration, raw observations and reviews | [Reports](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/reports) · [Raw results](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/results) |
264
  | Timestamped training output, full prompts and completions, operator transcripts | [Log archive](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/logs) |
265
  | Fitted models, model cards, optimizer moments, data cursor and random state | [Full-weight models](https://huggingface.co/BurnyCoder/thirdloss-stories) · [Pythia adapters](https://huggingface.co/BurnyCoder/thirdloss-pythia-410m-adapters) · [Pinned pretrained backbone](https://huggingface.co/EleutherAI/pythia-410m/tree/9879c9b5f8bea9051dcb0e68dff21493d67e9d4f) |
266
- | Prepared training and evaluation data, tokenizers and overlap audits | [TinyStories](https://huggingface.co/datasets/BurnyCoder/thirdloss-tinystories-tokens) · [arXiv abstracts](https://huggingface.co/datasets/BurnyCoder/thirdloss-arxiv-abstracts-2024-tokens) |
 
 
267
 
268
  The publication receipt binds the Git commit to the verified file hashes across the collection. Run `uv run thirdloss audit-hub` from that checkout to independently compare the published objects. Log files are snapshots at publication time. Operational transcripts redact transport credentials and local account paths. [File digests and Git revision](publication.json)
 
22
 
23
  Both primary test decisions are pending. Each stage requires eight paired test seeds and superiority over both baselines under Holm correction.
24
 
25
+ [Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · [Flatness by variant and baseline](#all-variants-and-baselines) · [Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Paired tests and intervals](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/summary.md)
26
 
27
  ## Side-by-side comparisons
28
 
 
122
 
123
  | Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance |
124
  | --- | --- | --- | --- | --- | --- |
125
+ | Initial checkpoint | 0 | 0 | 21.890 (1/1) | 0.69058 (1/1) | 1.086 (1/1) |
126
  | Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) |
127
  | Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending |
128
  | Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending |
 
263
  | Literature, preregistration, raw observations and reviews | [Reports](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/reports) · [Raw results](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/results) |
264
  | Timestamped training output, full prompts and completions, operator transcripts | [Log archive](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/logs) |
265
  | Fitted models, model cards, optimizer moments, data cursor and random state | [Full-weight models](https://huggingface.co/BurnyCoder/thirdloss-stories) · [Pythia adapters](https://huggingface.co/BurnyCoder/thirdloss-pythia-410m-adapters) · [Pinned pretrained backbone](https://huggingface.co/EleutherAI/pythia-410m/tree/9879c9b5f8bea9051dcb0e68dff21493d67e9d4f) |
266
+ | Prepared training and evaluation data, tokenizers and overlap audits | [TinyStories](https://huggingface.co/datasets/BurnyCoder/thirdloss-tinystories-tokens) · [arXiv abstracts](https://huggingface.co/datasets/BurnyCoder/thirdloss-arxiv-abstracts-2024) |
267
+
268
+ From the research checkout, `uv run --locked thirdloss study --with-hybrid --with-flatness` reproduces both original stages, the hybrid comparisons and the weight- and score-space measurements. [Installation, data preparation and checkpoint loading](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/docs/runbook.md)
269
 
270
  The publication receipt binds the Git commit to the verified file hashes across the collection. Run `uv run thirdloss audit-hub` from that checkout to independently compare the published objects. Log files are snapshots at publication time. Operational transcripts redact transport credentials and local account paths. [File digests and Git revision](publication.json)
research/docs/study.json CHANGED
The diff for this file is too large to render. See raw diff
 
research/reports/experiments/abstracts-control-s00-initial-r00/experiment.md CHANGED
@@ -10,6 +10,18 @@ Training time is 0.0 seconds. Peak allocated GPU memory is 2,337.3 MiB. Developm
10
 
11
  [Design and hyperparameter rationale](../../planned-runs.md) · [Saved configuration](../../../results/abstracts-control-s00-initial-r00/config.json)
12
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  The process working-set high-water mark was 3,309.3 MiB. This OS measure includes earlier work in the same interpreter.
14
 
15
  ## Fixed-prompt generations
 
10
 
11
  [Design and hyperparameter rationale](../../planned-runs.md) · [Saved configuration](../../../results/abstracts-control-s00-initial-r00/config.json)
12
 
13
+ ## Checkpoint flatness
14
+
15
+ | Training-window measurement | Value | Interpretation |
16
+ | --- | --- | --- |
17
+ | Weight width | 21.890 | ↑ Wider is flatter in these weight coordinates |
18
+ | RMS weight curvature | 0.690576 | ↓ Lower means less local bending |
19
+ | Signed Hessian trace / parameter | 0.0011406 | No general better direction |
20
+ | Common score width | 1.086 | ↑ Wider tolerates larger changes in token scores |
21
+ | Mean directional score curvature | 0.700479 | ↓ Lower means less local bending in score space |
22
+
23
+ The connection between width and better held-out prediction is unknown. [Compare against every variant and baseline](../../flatness.md#every-variant-and-baseline).
24
+
25
  The process working-set high-water mark was 3,309.3 MiB. This OS measure includes earlier work in the same interpreter.
26
 
27
  ## Fixed-prompt generations
research/reports/flatness.md CHANGED
@@ -57,7 +57,7 @@ Parentheses give measured / planned seeds. A unigram has only the common score-s
57
 
58
  | Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance |
59
  | --- | --- | --- | --- | --- | --- |
60
- | Initial checkpoint | 0 | 0 | Pending | Pending | Pending |
61
  | Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) |
62
  | Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending |
63
  | Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending |
@@ -85,6 +85,7 @@ Parentheses give measured / planned seeds. A unigram has only the common score-s
85
 
86
  | Stage | Horizon | Seed | Arm | Strength | Weight width ↑ | Weight middle 50% | Weight rays at limit | RMS curvature ↓ | Signed trace / parameter | Score width ↑ | Score middle 50% | Score rays at limit | Mean score curvature | Evidence |
87
  | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
 
88
  | abstracts | control | 0 | Unigram | 0% | N/A | N/A | N/A | N/A | N/A | 0.915 | 0.913–0.924 | 0/32 | 0.993798 | [Score probes](../results/abstracts-control-s00-unigram-r00/score-flatness.json) |
89
  | abstracts | pilot | 0 | Ordinary AdamW | 0% | 19.784 | 19.185–20.320 | 0/32 | 1.28684 | +0.00312322 | Pending | Pending | Pending | Pending | [Weight probes](../results/abstracts-pilot-s00-ce-r00/flatness.json) |
90
  | abstracts | pilot | 0 | Third derivative | 1% | 19.922 | 19.400–20.421 | 0/32 | 0.582266 | +0.00146738 | Pending | Pending | Pending | Pending | [Weight probes](../results/abstracts-pilot-s00-third-r01-fp64/flatness.json) |
 
57
 
58
  | Variant | Training targets | Seed cohort | Weight width<br>↑ Wider is flatter | RMS weight curvature<br>↓ Less local bending | Common score width<br>↑ More score tolerance |
59
  | --- | --- | --- | --- | --- | --- |
60
+ | Initial checkpoint | 0 | 0 | 21.890 (1/1) | 0.69058 (1/1) | 1.086 (1/1) |
61
  | Unigram | 0 | 0 | N/A · no weights | N/A · no weights | 0.915 (1/1) |
62
  | Ordinary AdamW | 65,536 | 0 | 19.784 (1/1) | 1.2868 (1/1) | Pending |
63
  | Hessian trace (1%) | 65,536 | 0 | 19.751 (1/1) | 1.1818 (1/1) | Pending |
 
85
 
86
  | Stage | Horizon | Seed | Arm | Strength | Weight width ↑ | Weight middle 50% | Weight rays at limit | RMS curvature ↓ | Signed trace / parameter | Score width ↑ | Score middle 50% | Score rays at limit | Mean score curvature | Evidence |
87
  | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
88
+ | abstracts | control | 0 | Initial checkpoint | 0% | 21.890 | 21.676–22.687 | 0/32 | 0.690576 | +0.0011406 | 1.086 | 1.081–1.095 | 0/32 | 0.700479 | [Weight probes](../results/abstracts-control-s00-initial-r00/flatness.json) · [Score probes](../results/abstracts-control-s00-initial-r00/score-flatness.json) |
89
  | abstracts | control | 0 | Unigram | 0% | N/A | N/A | N/A | N/A | N/A | 0.915 | 0.913–0.924 | 0/32 | 0.993798 | [Score probes](../results/abstracts-control-s00-unigram-r00/score-flatness.json) |
90
  | abstracts | pilot | 0 | Ordinary AdamW | 0% | 19.784 | 19.185–20.320 | 0/32 | 1.28684 | +0.00312322 | Pending | Pending | Pending | Pending | [Weight probes](../results/abstracts-pilot-s00-ce-r00/flatness.json) |
91
  | abstracts | pilot | 0 | Third derivative | 1% | 19.922 | 19.400–20.421 | 0/32 | 0.582266 | +0.00146738 | Pending | Pending | Pending | Pending | [Weight probes](../results/abstracts-pilot-s00-third-r01-fp64/flatness.json) |
research/reports/paper.pdf CHANGED
Binary files a/research/reports/paper.pdf and b/research/reports/paper.pdf differ
 
research/reports/progress.md CHANGED
@@ -1,6 +1,6 @@
1
  # Study progress
2
 
3
- Updated 2026-11-25T17:23:51+00:00.
4
 
5
  21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.
6
 
@@ -35,11 +35,11 @@ The first seed included 4.11 hours between the last pre-restart update and the f
35
  | Stage | Weight geometry | Shared score geometry | Median pilot cycle | Longest pilot cycle |
36
  | --- | --- | --- | --- | --- |
37
  | stories | 32/91 | 33/92 | 34 s | 37 s |
38
- | abstracts | 3/36 | 1/37 | 193 s | 311 s |
39
 
40
  Weight geometry covers every neural checkpoint. Score geometry also covers the two unigram references. [All arms and their measurements](flatness.md#every-variant-and-baseline)
41
 
42
- Giving each predictor still missing a measurement one complete native pilot cycle projects 2.49 additional hours at each stage’s median or 3.72 hours at its longest observed cycle. These scenarios include the observed reporting and upload time. Existing hybrid widths can be reused. The shared score calculation, archive growth and future interruptions can change the total. [Timestamped pilot measurements](../results/feasibility/flatness-pilot-wall-time.json) · [Archived timing log](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/logs/checkpoint-flatness-20261125T163331Z.log)
43
 
44
  ## Monitoring
45
 
 
1
  # Study progress
2
 
3
+ Updated 2026-11-25T17:27:52+00:00.
4
 
5
  21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.
6
 
 
35
  | Stage | Weight geometry | Shared score geometry | Median pilot cycle | Longest pilot cycle |
36
  | --- | --- | --- | --- | --- |
37
  | stories | 32/91 | 33/92 | 34 s | 37 s |
38
+ | abstracts | 4/36 | 2/37 | 193 s | 311 s |
39
 
40
  Weight geometry covers every neural checkpoint. Score geometry also covers the two unigram references. [All arms and their measurements](flatness.md#every-variant-and-baseline)
41
 
42
+ Giving each predictor still missing a measurement one complete native pilot cycle projects 2.43 additional hours at each stage’s median or 3.63 hours at its longest observed cycle. These scenarios include the observed reporting and upload time. Existing hybrid widths can be reused. The shared score calculation, archive growth and future interruptions can change the total. [Timestamped pilot measurements](../results/feasibility/flatness-pilot-wall-time.json) · [Archived timing log](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/logs/checkpoint-flatness-20261125T163331Z.log)
43
 
44
  ## Monitoring
45
 
research/results/abstracts-control-s00-initial-r00/flatness.json ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": "abstracts-control-s00-initial-r00",
3
+ "checkpoint_file_sha256": null,
4
+ "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9",
5
+ "width_device": "cuda",
6
+ "split": "train",
7
+ "probe_windows_sha256": "33355b4898d409b23633a21a839773f463c5771aaa3a8e2df9840aa647b37e4f",
8
+ "timestamp": "2026-11-25T17:24:23+00:00",
9
+ "reference": {
10
+ "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b",
11
+ "verification": "recorded initial weight digest"
12
+ },
13
+ "protocol": "checkpoint-flatness-v1",
14
+ "width_windows": 8,
15
+ "curvature_windows": 2,
16
+ "width": {
17
+ "baseline_nll": 3.0661816596984863,
18
+ "delta_nll": 0.1,
19
+ "directions": [
20
+ {
21
+ "direction": 0,
22
+ "positive": {
23
+ "lower": 11.578125,
24
+ "upper": 11.580078125
25
+ },
26
+ "negative": {
27
+ "lower": 11.462890625,
28
+ "upper": 11.46484375
29
+ }
30
+ },
31
+ {
32
+ "direction": 1,
33
+ "positive": {
34
+ "lower": 10.23046875,
35
+ "upper": 10.232421875
36
+ },
37
+ "negative": {
38
+ "lower": 10.94921875,
39
+ "upper": 10.951171875
40
+ }
41
+ },
42
+ {
43
+ "direction": 2,
44
+ "positive": {
45
+ "lower": 10.876953125,
46
+ "upper": 10.87890625
47
+ },
48
+ "negative": {
49
+ "lower": 10.98828125,
50
+ "upper": 10.990234375
51
+ }
52
+ },
53
+ {
54
+ "direction": 3,
55
+ "positive": {
56
+ "lower": 10.86328125,
57
+ "upper": 10.865234375
58
+ },
59
+ "negative": {
60
+ "lower": 11.03125,
61
+ "upper": 11.033203125
62
+ }
63
+ },
64
+ {
65
+ "direction": 4,
66
+ "positive": {
67
+ "lower": 10.89453125,
68
+ "upper": 10.896484375
69
+ },
70
+ "negative": {
71
+ "lower": 11.203125,
72
+ "upper": 11.205078125
73
+ }
74
+ },
75
+ {
76
+ "direction": 5,
77
+ "positive": {
78
+ "lower": 11.083984375,
79
+ "upper": 11.0859375
80
+ },
81
+ "negative": {
82
+ "lower": 10.796875,
83
+ "upper": 10.798828125
84
+ }
85
+ },
86
+ {
87
+ "direction": 6,
88
+ "positive": {
89
+ "lower": 10.501953125,
90
+ "upper": 10.50390625
91
+ },
92
+ "negative": {
93
+ "lower": 10.439453125,
94
+ "upper": 10.44140625
95
+ }
96
+ },
97
+ {
98
+ "direction": 7,
99
+ "positive": {
100
+ "lower": 10.810546875,
101
+ "upper": 10.8125
102
+ },
103
+ "negative": {
104
+ "lower": 10.919921875,
105
+ "upper": 10.921875
106
+ }
107
+ },
108
+ {
109
+ "direction": 8,
110
+ "positive": {
111
+ "lower": 9.98828125,
112
+ "upper": 9.990234375
113
+ },
114
+ "negative": {
115
+ "lower": 10.92578125,
116
+ "upper": 10.927734375
117
+ }
118
+ },
119
+ {
120
+ "direction": 9,
121
+ "positive": {
122
+ "lower": 10.8984375,
123
+ "upper": 10.900390625
124
+ },
125
+ "negative": {
126
+ "lower": 11.626953125,
127
+ "upper": 11.62890625
128
+ }
129
+ },
130
+ {
131
+ "direction": 10,
132
+ "positive": {
133
+ "lower": 11.671875,
134
+ "upper": 11.673828125
135
+ },
136
+ "negative": {
137
+ "lower": 10.89453125,
138
+ "upper": 10.896484375
139
+ }
140
+ },
141
+ {
142
+ "direction": 11,
143
+ "positive": {
144
+ "lower": 11.1796875,
145
+ "upper": 11.181640625
146
+ },
147
+ "negative": {
148
+ "lower": 12.8984375,
149
+ "upper": 12.900390625
150
+ }
151
+ },
152
+ {
153
+ "direction": 12,
154
+ "positive": {
155
+ "lower": 13.771484375,
156
+ "upper": 13.7734375
157
+ },
158
+ "negative": {
159
+ "lower": 11.353515625,
160
+ "upper": 11.35546875
161
+ }
162
+ },
163
+ {
164
+ "direction": 13,
165
+ "positive": {
166
+ "lower": 10.94921875,
167
+ "upper": 10.951171875
168
+ },
169
+ "negative": {
170
+ "lower": 10.8046875,
171
+ "upper": 10.806640625
172
+ }
173
+ },
174
+ {
175
+ "direction": 14,
176
+ "positive": {
177
+ "lower": 11.83984375,
178
+ "upper": 11.841796875
179
+ },
180
+ "negative": {
181
+ "lower": 11.20703125,
182
+ "upper": 11.208984375
183
+ }
184
+ },
185
+ {
186
+ "direction": 15,
187
+ "positive": {
188
+ "lower": 10.82421875,
189
+ "upper": 10.826171875
190
+ },
191
+ "negative": {
192
+ "lower": 10.681640625,
193
+ "upper": 10.68359375
194
+ }
195
+ }
196
+ ],
197
+ "width_lower": 21.8876953125,
198
+ "width_upper": 21.8916015625,
199
+ "width": 21.8896484375,
200
+ "censored_rays": 0,
201
+ "weights_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b",
202
+ "weights_restored": true,
203
+ "seconds": 134.9972901000001
204
+ },
205
+ "curvature": {
206
+ "dimensions": 786432,
207
+ "draws": [
208
+ {
209
+ "index": 0,
210
+ "trace_per_parameter": 0.00019078998934647447,
211
+ "squared_rms": 0.5570597606466218
212
+ },
213
+ {
214
+ "index": 1,
215
+ "trace_per_parameter": 0.0017951003376558653,
216
+ "squared_rms": 0.43816261371319626
217
+ },
218
+ {
219
+ "index": 2,
220
+ "trace_per_parameter": 0.0007159733017515598,
221
+ "squared_rms": 0.469473299727783
222
+ },
223
+ {
224
+ "index": 3,
225
+ "trace_per_parameter": 0.002082168139031911,
226
+ "squared_rms": 0.39464092678921164
227
+ },
228
+ {
229
+ "index": 4,
230
+ "trace_per_parameter": 0.0010635839923581445,
231
+ "squared_rms": 0.38509176661106764
232
+ },
233
+ {
234
+ "index": 5,
235
+ "trace_per_parameter": 0.0009547397662817266,
236
+ "squared_rms": 0.28825198447255174
237
+ },
238
+ {
239
+ "index": 6,
240
+ "trace_per_parameter": 0.0011049338671442442,
241
+ "squared_rms": 0.6530048603757258
242
+ },
243
+ {
244
+ "index": 7,
245
+ "trace_per_parameter": 0.0012175457936534396,
246
+ "squared_rms": 0.6294758042313172
247
+ }
248
+ ],
249
+ "device": "cpu",
250
+ "dtype": "torch.float64",
251
+ "trace_per_parameter": 0.0011406043984029206,
252
+ "rms_curvature": 0.6905759386707115
253
+ }
254
+ }
research/results/abstracts-control-s00-initial-r00/score-flatness.json ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": "abstracts-control-s00-initial-r00",
3
+ "checkpoint_file_sha256": null,
4
+ "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9",
5
+ "width_device": "cuda",
6
+ "split": "train",
7
+ "probe_windows_sha256": "33355b4898d409b23633a21a839773f463c5771aaa3a8e2df9840aa647b37e4f",
8
+ "timestamp": "2026-11-25T17:24:23+00:00",
9
+ "reference": {
10
+ "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b",
11
+ "verification": "recorded initial weight digest"
12
+ },
13
+ "protocol": "shared-logit-width-v1",
14
+ "score": {
15
+ "baseline_nll": 3.066181656223937,
16
+ "delta_nll": 0.1,
17
+ "units": "RMS logit displacement",
18
+ "vocab": 50304,
19
+ "targets": 1024,
20
+ "direction_sha256": "e443214df5a81efed40c70404e134541fe0d24abc4b821aa690840a01823392e",
21
+ "directions": [
22
+ {
23
+ "direction": 0,
24
+ "positive": {
25
+ "lower": 0.494140625,
26
+ "upper": 0.49420166015625
27
+ },
28
+ "negative": {
29
+ "lower": 0.5927734375,
30
+ "upper": 0.5928955078125
31
+ },
32
+ "curvature": 0.7018977951560352
33
+ },
34
+ {
35
+ "direction": 1,
36
+ "positive": {
37
+ "lower": 0.5601806640625,
38
+ "upper": 0.560302734375
39
+ },
40
+ "negative": {
41
+ "lower": 0.5203857421875,
42
+ "upper": 0.5205078125
43
+ },
44
+ "curvature": 0.7067574846086611
45
+ },
46
+ {
47
+ "direction": 2,
48
+ "positive": {
49
+ "lower": 0.5618896484375,
50
+ "upper": 0.56201171875
51
+ },
52
+ "negative": {
53
+ "lower": 0.5179443359375,
54
+ "upper": 0.51806640625
55
+ },
56
+ "curvature": 0.7060243778000308
57
+ },
58
+ {
59
+ "direction": 3,
60
+ "positive": {
61
+ "lower": 0.496337890625,
62
+ "upper": 0.49639892578125
63
+ },
64
+ "negative": {
65
+ "lower": 0.58447265625,
66
+ "upper": 0.5845947265625
67
+ },
68
+ "curvature": 0.7078643816733048
69
+ },
70
+ {
71
+ "direction": 4,
72
+ "positive": {
73
+ "lower": 0.552001953125,
74
+ "upper": 0.5521240234375
75
+ },
76
+ "negative": {
77
+ "lower": 0.51953125,
78
+ "upper": 0.5196533203125
79
+ },
80
+ "curvature": 0.7181993836946234
81
+ },
82
+ {
83
+ "direction": 5,
84
+ "positive": {
85
+ "lower": 0.5863037109375,
86
+ "upper": 0.58642578125
87
+ },
88
+ "negative": {
89
+ "lower": 0.5096435546875,
90
+ "upper": 0.509765625
91
+ },
92
+ "curvature": 0.6847322469265649
93
+ },
94
+ {
95
+ "direction": 6,
96
+ "positive": {
97
+ "lower": 0.5277099609375,
98
+ "upper": 0.52783203125
99
+ },
100
+ "negative": {
101
+ "lower": 0.5555419921875,
102
+ "upper": 0.5556640625
103
+ },
104
+ "curvature": 0.7008287453112245
105
+ },
106
+ {
107
+ "direction": 7,
108
+ "positive": {
109
+ "lower": 0.48077392578125,
110
+ "upper": 0.4808349609375
111
+ },
112
+ "negative": {
113
+ "lower": 0.6033935546875,
114
+ "upper": 0.603515625
115
+ },
116
+ "curvature": 0.7070652543279341
117
+ },
118
+ {
119
+ "direction": 8,
120
+ "positive": {
121
+ "lower": 0.6591796875,
122
+ "upper": 0.6593017578125
123
+ },
124
+ "negative": {
125
+ "lower": 0.44342041015625,
126
+ "upper": 0.4434814453125
127
+ },
128
+ "curvature": 0.6998961314600061
129
+ },
130
+ {
131
+ "direction": 9,
132
+ "positive": {
133
+ "lower": 0.6041259765625,
134
+ "upper": 0.604248046875
135
+ },
136
+ "negative": {
137
+ "lower": 0.496337890625,
138
+ "upper": 0.49639892578125
139
+ },
140
+ "curvature": 0.6901627347154013
141
+ },
142
+ {
143
+ "direction": 10,
144
+ "positive": {
145
+ "lower": 0.49786376953125,
146
+ "upper": 0.4979248046875
147
+ },
148
+ "negative": {
149
+ "lower": 0.5831298828125,
150
+ "upper": 0.583251953125
151
+ },
152
+ "curvature": 0.7086917049294278
153
+ },
154
+ {
155
+ "direction": 11,
156
+ "positive": {
157
+ "lower": 0.5091552734375,
158
+ "upper": 0.50927734375
159
+ },
160
+ "negative": {
161
+ "lower": 0.58544921875,
162
+ "upper": 0.5855712890625
163
+ },
164
+ "curvature": 0.6897651039057962
165
+ },
166
+ {
167
+ "direction": 12,
168
+ "positive": {
169
+ "lower": 0.5445556640625,
170
+ "upper": 0.544677734375
171
+ },
172
+ "negative": {
173
+ "lower": 0.5400390625,
174
+ "upper": 0.5401611328125
175
+ },
176
+ "curvature": 0.6999085174808966
177
+ },
178
+ {
179
+ "direction": 13,
180
+ "positive": {
181
+ "lower": 0.6248779296875,
182
+ "upper": 0.625
183
+ },
184
+ "negative": {
185
+ "lower": 0.47027587890625,
186
+ "upper": 0.4703369140625
187
+ },
188
+ "curvature": 0.6990882615801896
189
+ },
190
+ {
191
+ "direction": 14,
192
+ "positive": {
193
+ "lower": 0.5299072265625,
194
+ "upper": 0.530029296875
195
+ },
196
+ "negative": {
197
+ "lower": 0.56396484375,
198
+ "upper": 0.5640869140625
199
+ },
200
+ "curvature": 0.6863158440067865
201
+ },
202
+ {
203
+ "direction": 15,
204
+ "positive": {
205
+ "lower": 0.4906005859375,
206
+ "upper": 0.49066162109375
207
+ },
208
+ "negative": {
209
+ "lower": 0.60009765625,
210
+ "upper": 0.6002197265625
211
+ },
212
+ "curvature": 0.7004597406107207
213
+ }
214
+ ],
215
+ "width_lower": 1.08575439453125,
216
+ "width_upper": 1.085968017578125,
217
+ "width": 1.0858612060546875,
218
+ "censored_rays": 0,
219
+ "mean_directional_curvature": 0.7004786067617252
220
+ }
221
+ }
research/src/thirdloss/checkpoint_flatness.py CHANGED
@@ -67,13 +67,16 @@ def _initial_model(project,storage,corpus,row,device):
67
 
68
 
69
  def _native_geometry(model,row,folder,inputs,targets):
70
- """Reuse a digest-matched registered hybrid width, then measure local curvature on the fixed batch."""
71
  registered=folder/f"width-{row['steps']}.json"
 
72
  if row["phase"] in {"hybrid","branch"}:
73
- width=read_json(registered)
74
- if width["weights_sha256"]!=trainable_digest(model) or not width["weights_restored"]:
75
  raise ValueError("Registered width belongs to different trained weights")
76
- else:
 
 
77
  width=measure_width(model,lambda:token_loss(logits_of(model,inputs),targets))
78
  if row["stage"]=="abstracts":
79
  model=widen_pythia(model.cpu())
 
67
 
68
 
69
  def _native_geometry(model,row,folder,inputs,targets):
70
+ """Reuse registered widths with the same weights and direction backend, then measure local curvature."""
71
  registered=folder/f"width-{row['steps']}.json"
72
+ width=None
73
  if row["phase"] in {"hybrid","branch"}:
74
+ prior=read_json(registered)
75
+ if prior["weights_sha256"]!=trainable_digest(model) or not prior["weights_restored"]:
76
  raise ValueError("Registered width belongs to different trained weights")
77
+ if torch.device(row["device"]).type==inputs.device.type:
78
+ width=prior
79
+ if width is None:
80
  width=measure_width(model,lambda:token_loss(logits_of(model,inputs),targets))
81
  if row["stage"]=="abstracts":
82
  model=widen_pythia(model.cpu())
research/src/thirdloss/flatness_tables.py CHANGED
@@ -82,14 +82,19 @@ def hybrid_flatness_table(runs):
82
  "Middle 50% of final directions","Rays at limit / tested"])
83
 
84
 
 
 
 
 
 
 
85
  def primary_flatness_rows(pairs):
86
  """Compare the same measured seeds, trainable parameterization, training windows and probe backend."""
87
  methods=("ce","trace","third")
88
  measured=[pair for pair in pairs if all("flatness" in pair[m] for m in methods)]
89
  if not measured:
90
  return []
91
- signatures={(pair[m]["flatness"]["protocol"],pair[m]["flatness"]["probe_windows_sha256"],
92
- pair[m]["flatness"]["width_device"],pair[m]["flatness"]["hessian_device"]) for pair in measured for m in methods}
93
  if len(signatures)!=1:
94
  raise ValueError("Matched flatness statistics require the same probes and arithmetic")
95
  groups=[[pair[m]["flatness"] for pair in measured] for m in methods]
@@ -112,6 +117,11 @@ def all_arm_groups(study):
112
  target=HORIZONS[stage]
113
  stage_runs=[r for r in study["runs"] if r.get("stage")==stage and completed(r)]
114
  measured=[r["score_flatness"] for r in stage_runs if "score_flatness" in r]
 
 
 
 
 
115
  if len({(p["protocol"],p["probe_windows_sha256"],p["direction_sha256"],p["vocab"]) for p in measured})>1:
116
  raise ValueError(f"The output-space comparison for {stage} mixes probes or vocabularies")
117
  def line(phase,method,ratio,budget,seeds,label=None):
 
82
  "Middle 50% of final directions","Rays at limit / tested"])
83
 
84
 
85
+ def _weight_signature(point):
86
+ """Seeds on different random-number backends need not yield the same weight-space directions."""
87
+ return (point["protocol"],point["probe_windows_sha256"],point["width_device"],point["hessian_device"],
88
+ point.get("dimensions"),point.get("hessian_dtype"))
89
+
90
+
91
  def primary_flatness_rows(pairs):
92
  """Compare the same measured seeds, trainable parameterization, training windows and probe backend."""
93
  methods=("ce","trace","third")
94
  measured=[pair for pair in pairs if all("flatness" in pair[m] for m in methods)]
95
  if not measured:
96
  return []
97
+ signatures={_weight_signature(pair[m]["flatness"]) for pair in measured for m in methods}
 
98
  if len(signatures)!=1:
99
  raise ValueError("Matched flatness statistics require the same probes and arithmetic")
100
  groups=[[pair[m]["flatness"] for pair in measured] for m in methods]
 
117
  target=HORIZONS[stage]
118
  stage_runs=[r for r in study["runs"] if r.get("stage")==stage and completed(r)]
119
  measured=[r["score_flatness"] for r in stage_runs if "score_flatness" in r]
120
+ native=[r["flatness"] for r in stage_runs if "flatness" in r]
121
+ if len({_weight_signature(p) for p in native})>1:
122
+ raise ValueError(f"The weight-space comparison for {stage} mixes probes, coordinates or arithmetic")
123
+ if len({p["probe_windows_sha256"] for p in native+measured})>1:
124
+ raise ValueError(f"The flatness comparison for {stage} mixes different training windows")
125
  if len({(p["protocol"],p["probe_windows_sha256"],p["direction_sha256"],p["vocab"]) for p in measured})>1:
126
  raise ValueError(f"The output-space comparison for {stage} mixes probes or vocabularies")
127
  def line(phase,method,ratio,budget,seeds,label=None):
research/src/thirdloss/readme_comparisons.py CHANGED
@@ -349,7 +349,7 @@ def comparison_sections(study):
349
  "from the lowest matched seed. These examples have no quality rating. The method names link to the raw generations.",
350
  *(panel for panel in samples if panel)])
351
  quick.append("[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · "
352
- "[Flatness statistics](#flatness-of-the-trained-checkpoints) · "
353
  "[Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · "
354
  "[Paired tests and intervals](reports/summary.md)")
355
  if not any(o.get("complete") for o in study["stages"].values()):
 
349
  "from the lowest matched seed. These examples have no quality rating. The method names link to the raw generations.",
350
  *(panel for panel in samples if panel)])
351
  quick.append("[Side-by-side scores, accuracy, speed and memory](#side-by-side-comparisons) · "
352
+ "[Flatness by variant and baseline](#all-variants-and-baselines) · "
353
  "[Live explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · "
354
  "[Paired tests and intervals](reports/summary.md)")
355
  if not any(o.get("complete") for o in study["stages"].values()):
research/src/thirdloss/report_records.py CHANGED
@@ -189,7 +189,8 @@ def run_record(folder: Path) -> dict:
189
  record["flatness"]={**compact_width(diagnostic["width"]),
190
  **{k:diagnostic[k] for k in ("protocol","probe_windows_sha256","width_device")},
191
  **{k:diagnostic["curvature"][k] for k in ("rms_curvature","trace_per_parameter")},
192
- "hessian_device":diagnostic["curvature"]["device"]}
 
193
  record["events"].append({"step":record["steps"],"tokens":record["tokens"],"train_seconds":record["train_seconds"],
194
  "width":diagnostic["width"]["width"],"checkpoint_rms":diagnostic["curvature"]["rms_curvature"],
195
  "checkpoint_signed_trace":diagnostic["curvature"]["trace_per_parameter"]})
 
189
  record["flatness"]={**compact_width(diagnostic["width"]),
190
  **{k:diagnostic[k] for k in ("protocol","probe_windows_sha256","width_device")},
191
  **{k:diagnostic["curvature"][k] for k in ("rms_curvature","trace_per_parameter")},
192
+ "hessian_device":diagnostic["curvature"]["device"],"hessian_dtype":diagnostic["curvature"]["dtype"],
193
+ "dimensions":diagnostic["curvature"]["dimensions"]}
194
  record["events"].append({"step":record["steps"],"tokens":record["tokens"],"train_seconds":record["train_seconds"],
195
  "width":diagnostic["width"]["width"],"checkpoint_rms":diagnostic["curvature"]["rms_curvature"],
196
  "checkpoint_signed_trace":diagnostic["curvature"]["trace_per_parameter"]})
research/tests/test_flatness.py CHANGED
@@ -75,6 +75,34 @@ def test_geometry_forecast_counts_the_unigram_and_preserves_observed_publication
75
  assert f"{(91*20+36*100)/3600:.2f} additional hours" in report
76
 
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  def test_common_logit_probe_matches_direct_softmax_and_its_second_derivative():
79
  from thirdloss.score_flatness import bias_response
80
  logits=torch.tensor([[.1,.2,-.3,1.],[-1.,2.,.7,-.3]],dtype=torch.float64)
 
75
  assert f"{(91*20+36*100)/3600:.2f} additional hours" in report
76
 
77
 
78
+ def test_all_model_table_rejects_mismatched_weight_probes_in_secondary_arms(tmp_path):
79
+ from thirdloss.flatness_tables import all_arm_tables
80
+ from thirdloss.report_records import study_snapshot
81
+ study=study_snapshot(tmp_path)
82
+ sample={"stage":"stories","phase":"pilot","seed":0,"tokens":2**21,"ratio":.01,"status":"complete"}
83
+ probed={"protocol":"native","probe_windows_sha256":"same","width_device":"cuda",
84
+ "hessian_device":"cuda:0","dimensions":100,"rms_curvature":.4}
85
+ study["runs"]=[{**sample,"method":"sham","flatness":probed},
86
+ {**sample,"method":"combined","flatness":{**probed,"width_device":"cpu"}}]
87
+ with pytest.raises(ValueError,match="weight-space"):
88
+ all_arm_tables(study)
89
+
90
+
91
+ def test_hybrid_width_reuse_distinguishes_cpu_and_cuda_random_direction_streams(tmp_path,monkeypatch):
92
+ from thirdloss import checkpoint_flatness as geometry
93
+ from thirdloss.records import write_json
94
+ model=torch.nn.Linear(2,3).double()
95
+ inputs=torch.zeros(2,2,2,dtype=torch.float64)
96
+ targets=torch.zeros(2,2,dtype=torch.long)
97
+ row={"phase":"hybrid","steps":1,"stage":"stories","device":"cpu"}
98
+ prior={"weights_sha256":geometry.trainable_digest(model),"weights_restored":True,"width":7.}
99
+ write_json(tmp_path/"width-1.json",prior)
100
+ monkeypatch.setattr(geometry,"measure_width",lambda model,loss:{"width":11.})
101
+ assert geometry._native_geometry(model,row,tmp_path,inputs,targets)["width"]["width"]==7.
102
+ row["device"]="cuda"
103
+ assert geometry._native_geometry(model,row,tmp_path,inputs,targets)["width"]["width"]==11.
104
+
105
+
106
  def test_common_logit_probe_matches_direct_softmax_and_its_second_derivative():
107
  from thirdloss.score_flatness import bias_response
108
  logits=torch.tensor([[.1,.2,-.3,1.],[-1.,2.,.7,-.3]],dtype=torch.float64)