BurnyCoder commited on
Commit
5cdeae6
·
verified ·
1 Parent(s): ff70dc2

Publish the verified sample provenance and canonical study explorer

Browse files
research/README.md CHANGED
@@ -37,15 +37,15 @@ The protocol and run matrix were published before model execution. The scores, c
37
  A same-probe check on pretrained Pythia found that single-precision arithmetic materially changed the third-order training gradient. The first adapter pilot is archived as a numerical diagnostic. The corrected adapter arms evaluate derivatives in double precision while ordinary training and prediction use the GPU. [Pre-test precision amendment](reports/amendments/adapter-precision.md) · [Full-model numerical checks](results/verification)
38
 
39
  <!-- RESULTS:START -->
40
- [Explore the results](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss/) · [Paper](reports/paper.pdf) · [Run ledger](reports/experiments/experiments.md)
41
 
42
- Recorded 18 runs, including 18 with a completed summary.
43
 
44
  **TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets).
45
 
46
  **Research abstracts.** Awaiting paired test results (0 of 8 full-horizon training triplets).
47
 
48
- **TinyStories development pilot.** At 2,097,152 training targets, the third-order run recorded 0.00004 nats per target token lower against Ordinary AdamW, 0.00024 nats per target token lower against Trace + third derivative, 0.00175 nats per target token lower against Squared Hessian norm, 0.00032 nats per target token lower against Randomized gradient signs, 0.00034 nats per target token lower against Hessian trace. These are single-seed descriptions using selected on development.
49
 
50
  **Research abstracts development pilot.** At 65,536 training targets, the third-order run recorded 0.00091 nats per target token higher against Ordinary AdamW. These are single-seed descriptions using initial pilot strengths.
51
 
@@ -78,9 +78,11 @@ Recorded 18 runs, including 18 with a completed summary.
78
 
79
  ### Recorded predictions
80
 
81
- First archived sample in run-ID order per stage and method. [All continuations](reports/experiments/experiments.md)
82
 
83
- <details><summary>Research abstracts · Initial checkpoint</summary>
 
 
84
 
85
  **Prompt**
86
 
@@ -104,7 +106,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
104
 
105
  </details>
106
 
107
- <details><summary>Research abstracts · Unigram</summary>
 
 
108
 
109
  **Prompt**
110
 
@@ -130,7 +134,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
130
 
131
  </details>
132
 
133
- <details><summary>Research abstracts · Ordinary AdamW</summary>
 
 
134
 
135
  **Prompt**
136
 
@@ -153,7 +159,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
153
 
154
  </details>
155
 
156
- <details><summary>Research abstracts · Third derivative</summary>
 
 
157
 
158
  **Prompt**
159
 
@@ -176,7 +184,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
176
 
177
  </details>
178
 
179
- <details><summary>Research abstracts · Hessian trace</summary>
 
 
180
 
181
  **Prompt**
182
 
@@ -198,7 +208,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
198
 
199
  </details>
200
 
201
- <details><summary>TinyStories · Initial checkpoint</summary>
 
 
202
 
203
  **Prompt**
204
 
@@ -216,7 +228,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
216
 
217
  </details>
218
 
219
- <details><summary>TinyStories · Unigram</summary>
 
 
220
 
221
  **Prompt**
222
 
@@ -236,7 +250,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
236
 
237
  </details>
238
 
239
- <details><summary>TinyStories · Ordinary AdamW</summary>
 
 
240
 
241
  **Prompt**
242
 
@@ -254,7 +270,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
254
 
255
  </details>
256
 
257
- <details><summary>TinyStories · Trace + third derivative</summary>
 
 
258
 
259
  **Prompt**
260
 
@@ -272,7 +290,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
272
 
273
  </details>
274
 
275
- <details><summary>TinyStories · Squared Hessian norm</summary>
 
 
276
 
277
  **Prompt**
278
 
@@ -290,7 +310,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
290
 
291
  </details>
292
 
293
- <details><summary>TinyStories · Randomized gradient signs</summary>
 
 
294
 
295
  **Prompt**
296
 
@@ -308,7 +330,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
308
 
309
  </details>
310
 
311
- <details><summary>TinyStories · Third derivative</summary>
 
 
312
 
313
  **Prompt**
314
 
@@ -326,7 +350,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
326
 
327
  </details>
328
 
329
- <details><summary>TinyStories · Hessian trace</summary>
 
 
330
 
331
  **Prompt**
332
 
 
37
  A same-probe check on pretrained Pythia found that single-precision arithmetic materially changed the third-order training gradient. The first adapter pilot is archived as a numerical diagnostic. The corrected adapter arms evaluate derivatives in double precision while ordinary training and prediction use the GPU. [Pre-test precision amendment](reports/amendments/adapter-precision.md) · [Full-model numerical checks](results/verification)
38
 
39
  <!-- RESULTS:START -->
40
+ [Explore the results](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) · [Paper](reports/paper.pdf) · [Run ledger](reports/experiments/experiments.md)
41
 
42
+ Recorded 19 runs, including 18 with a completed summary.
43
 
44
  **TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets).
45
 
46
  **Research abstracts.** Awaiting paired test results (0 of 8 full-horizon training triplets).
47
 
48
+ **TinyStories development pilot.** At 2,097,152 training targets, the third-order run recorded 0.00004 nats per target token lower against Ordinary AdamW, 0.00024 nats per target token lower against Trace + third derivative, 0.00175 nats per target token lower against Squared Hessian norm, 0.00032 nats per target token lower against Randomized gradient signs, 0.00034 nats per target token lower against Hessian trace. These are single-seed descriptions using strengths selected on development.
49
 
50
  **Research abstracts development pilot.** At 65,536 training targets, the third-order run recorded 0.00091 nats per target token higher against Ordinary AdamW. These are single-seed descriptions using initial pilot strengths.
51
 
 
78
 
79
  ### Recorded predictions
80
 
81
+ First registered checkpoint and sample in run-ID order per stage and method. [All continuations](reports/experiments/experiments.md)
82
 
83
+ <details><summary>Research abstracts · Initial checkpoint · control, seed 0</summary>
84
+
85
+ [Recorded sample](results/abstracts-control-s00-initial-r00/samples.jsonl)
86
 
87
  **Prompt**
88
 
 
106
 
107
  </details>
108
 
109
+ <details><summary>Research abstracts · Unigram · control, seed 0</summary>
110
+
111
+ [Recorded sample](results/abstracts-control-s00-unigram-r00/samples.jsonl)
112
 
113
  **Prompt**
114
 
 
134
 
135
  </details>
136
 
137
+ <details><summary>Research abstracts · Ordinary AdamW · pilot, seed 0</summary>
138
+
139
+ [Recorded sample](results/abstracts-pilot-s00-ce-r00/samples.jsonl)
140
 
141
  **Prompt**
142
 
 
159
 
160
  </details>
161
 
162
+ <details><summary>Research abstracts · Third derivative · pilot, seed 0</summary>
163
+
164
+ [Recorded sample](results/abstracts-pilot-s00-third-r03-fp64/samples.jsonl)
165
 
166
  **Prompt**
167
 
 
184
 
185
  </details>
186
 
187
+ <details><summary>Research abstracts · Hessian trace · pilot, seed 0</summary>
188
+
189
+ [Recorded sample](results/abstracts-pilot-s00-trace-r01-fp64/samples.jsonl)
190
 
191
  **Prompt**
192
 
 
208
 
209
  </details>
210
 
211
+ <details><summary>TinyStories · Initial checkpoint · control, seed 0</summary>
212
+
213
+ [Recorded sample](results/stories-control-s00-initial-r00/samples.jsonl)
214
 
215
  **Prompt**
216
 
 
228
 
229
  </details>
230
 
231
+ <details><summary>TinyStories · Unigram · control, seed 0</summary>
232
+
233
+ [Recorded sample](results/stories-control-s00-unigram-r00/samples.jsonl)
234
 
235
  **Prompt**
236
 
 
250
 
251
  </details>
252
 
253
+ <details><summary>TinyStories · Ordinary AdamW · pilot, seed 0</summary>
254
+
255
+ [Recorded sample](results/stories-pilot-s00-ce-r00/samples.jsonl)
256
 
257
  **Prompt**
258
 
 
270
 
271
  </details>
272
 
273
+ <details><summary>TinyStories · Trace + third derivative · pilot, seed 0</summary>
274
+
275
+ [Recorded sample](results/stories-pilot-s00-combined-r01/samples.jsonl)
276
 
277
  **Prompt**
278
 
 
290
 
291
  </details>
292
 
293
+ <details><summary>TinyStories · Squared Hessian norm · pilot, seed 0</summary>
294
+
295
+ [Recorded sample](results/stories-pilot-s00-hessian_norm-r03/samples.jsonl)
296
 
297
  **Prompt**
298
 
 
310
 
311
  </details>
312
 
313
+ <details><summary>TinyStories · Randomized gradient signs · pilot, seed 0</summary>
314
+
315
+ [Recorded sample](results/stories-pilot-s00-sham-r01/samples.jsonl)
316
 
317
  **Prompt**
318
 
 
330
 
331
  </details>
332
 
333
+ <details><summary>TinyStories · Third derivative · pilot, seed 0</summary>
334
+
335
+ [Recorded sample](results/stories-pilot-s00-third-r01/samples.jsonl)
336
 
337
  **Prompt**
338
 
 
350
 
351
  </details>
352
 
353
+ <details><summary>TinyStories · Hessian trace · pilot, seed 0</summary>
354
+
355
+ [Recorded sample](results/stories-pilot-s00-trace-r01/samples.jsonl)
356
 
357
  **Prompt**
358
 
research/docs/explorer.js CHANGED
@@ -2,7 +2,7 @@
2
  // Browser APIs: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D
3
  "use strict";
4
  const element = id => document.getElementById(id);
5
- const repository = "https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss";
6
  const local = ["localhost", "127.0.0.1", "[::1]"].includes(location.hostname) ||
7
  new URL(location.href).searchParams.get("live") === "1";
8
  const metrics = {
 
2
  // Browser APIs: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D
3
  "use strict";
4
  const element = id => document.getElementById(id);
5
+ const repository = document.querySelector("a.source").href;
6
  const local = ["localhost", "127.0.0.1", "[::1]"].includes(location.hostname) ||
7
  new URL(location.href).searchParams.get("live") === "1";
8
  const metrics = {
research/docs/figures/curves.png CHANGED

Git LFS Details

  • SHA256: 002062aae079438291378605bdb1471c607e36147a18b9b27aab7b7a9c680e52
  • Pointer size: 131 Bytes
  • Size of remote file: 176 kB

Git LFS Details

  • SHA256: eacfa7a07db11ece058ca89eaa15549ad391fce89b9bb2a2298443fe2d83ea82
  • Pointer size: 131 Bytes
  • Size of remote file: 177 kB
research/docs/index.html CHANGED
@@ -17,7 +17,7 @@
17
  <nav aria-label="Study sections">
18
  <a href="#curves">Training</a><a href="#evidence">Evidence</a><a href="#outputs">Outputs</a><a href="#method">Method</a>
19
  </nav>
20
- <a class="source" href="https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss">Repository ↗</a>
21
  </div>
22
  </header>
23
  <main id="top">
@@ -25,7 +25,7 @@
25
  <div>
26
  <h1>Third derivatives in<br>language-model training</h1>
27
  <p>Does penalizing changes in loss curvature improve next-token predictions? Compare ordinary training, Hessian-trace regularization, and a third-derivative penalty at equal training tokens.</p>
28
- <a class="protocol" href="https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss/blob/main/reports/preregistration.md">Read the preregistration <span aria-hidden="true">↗</span></a>
29
  </div>
30
  <div class="summary" aria-label="Study totals">
31
  <div><span>Completed runs</span><strong id="runs-count">—</strong></div>
@@ -91,12 +91,12 @@
91
  </div>
92
  </section>
93
  <section id="method">
94
- <div class="section-title"><h2>Method</h2><a href="https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss/blob/main/reports/paper.pdf">Read the paper ↗</a></div>
95
  <p class="prose">Hochreiter and Schmidhuber proposed that among equally good training fits, flatter minima may generalize better. If weights can be rounded more coarsely and still fit, a good predictor can take fewer bits to describe. Here the test of generalization is how well the model predicts unseen tokens. <a href="https://people.idsia.ch/~juergen/fm/node1.html">Flat Minima (1997) ↗</a></p>
96
  <p class="prose">The Hessian describes local loss curvature. On active updates, two independent random sign vectors estimate how quickly that curvature changes for the next-token loss of two text windows. The derivatives cover all TinyStories decoder weights or only Pythia’s trainable attention adapters, including interactions between trainable weights.</p>
97
  <p class="prose">When moving away from a flat bottom makes curvature change faster, the third-derivative penalty can pull the weights back. A steep bowl with constant curvature receives zero penalty from this term. Whether the optimizer finds wider minima is a separate question from the measured next-token loss.</p>
98
  <img class="architecture" src="figures/penalty-directions.png" alt="Analytic loss curves. Trace and third-derivative penalties push in opposite directions at an asymmetric minimum. They pull displaced weights back in a flat quartic and give zero update in a steep quadratic." loading="lazy">
99
- <p class="curve-note">Circles mark the ordinary loss minima. Arrows show downhill directions for each penalty. The vertical scales vary by panel. <a href="https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss/blob/main/docs/third-derivative-penalty.md#when-can-the-penalty-favor-a-wider-minimum">Worked examples and the basin-width bound ↗</a></p>
100
  <img class="architecture" src="figures/architecture.png" alt="TinyStories full-weight training and Pythia QKV adaptation feed next-token cross-entropy, a Hessian contraction, a third derivative and the regularized objective." loading="lazy">
101
  <div class="method-links">
102
  <a href="https://doi.org/10.1007/BFb0086566">Derivative roughness ↗</a>
 
17
  <nav aria-label="Study sections">
18
  <a href="#curves">Training</a><a href="#evidence">Evidence</a><a href="#outputs">Outputs</a><a href="#method">Method</a>
19
  </nav>
20
+ <a class="source" href="https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian">Repository ↗</a>
21
  </div>
22
  </header>
23
  <main id="top">
 
25
  <div>
26
  <h1>Third derivatives in<br>language-model training</h1>
27
  <p>Does penalizing changes in loss curvature improve next-token predictions? Compare ordinary training, Hessian-trace regularization, and a third-derivative penalty at equal training tokens.</p>
28
+ <a class="protocol" href="https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/blob/main/reports/preregistration.md">Read the preregistration <span aria-hidden="true">↗</span></a>
29
  </div>
30
  <div class="summary" aria-label="Study totals">
31
  <div><span>Completed runs</span><strong id="runs-count">—</strong></div>
 
91
  </div>
92
  </section>
93
  <section id="method">
94
+ <div class="section-title"><h2>Method</h2><a href="https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/blob/main/reports/paper.pdf">Read the paper ↗</a></div>
95
  <p class="prose">Hochreiter and Schmidhuber proposed that among equally good training fits, flatter minima may generalize better. If weights can be rounded more coarsely and still fit, a good predictor can take fewer bits to describe. Here the test of generalization is how well the model predicts unseen tokens. <a href="https://people.idsia.ch/~juergen/fm/node1.html">Flat Minima (1997) ↗</a></p>
96
  <p class="prose">The Hessian describes local loss curvature. On active updates, two independent random sign vectors estimate how quickly that curvature changes for the next-token loss of two text windows. The derivatives cover all TinyStories decoder weights or only Pythia’s trainable attention adapters, including interactions between trainable weights.</p>
97
  <p class="prose">When moving away from a flat bottom makes curvature change faster, the third-derivative penalty can pull the weights back. A steep bowl with constant curvature receives zero penalty from this term. Whether the optimizer finds wider minima is a separate question from the measured next-token loss.</p>
98
  <img class="architecture" src="figures/penalty-directions.png" alt="Analytic loss curves. Trace and third-derivative penalties push in opposite directions at an asymmetric minimum. They pull displaced weights back in a flat quartic and give zero update in a steep quadratic." loading="lazy">
99
+ <p class="curve-note">Circles mark the ordinary loss minima. Arrows show downhill directions for each penalty. The vertical scales vary by panel. <a href="https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/blob/main/docs/third-derivative-penalty.md#when-can-the-penalty-favor-a-wider-minimum">Worked examples and the basin-width bound ↗</a></p>
100
  <img class="architecture" src="figures/architecture.png" alt="TinyStories full-weight training and Pythia QKV adaptation feed next-token cross-entropy, a Hessian contraction, a third derivative and the regularized objective." loading="lazy">
101
  <div class="method-links">
102
  <a href="https://doi.org/10.1007/BFb0086566">Derivative roughness ↗</a>
research/docs/study.json CHANGED
The diff for this file is too large to render. See raw diff
 
research/reports/experiments/abstracts-pilot-s00-trace-r03-fp64/experiment.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Research abstracts · Hessian trace
2
+
3
+ Run `abstracts-pilot-s00-trace-r03-fp64` · [raw records](../../../results/abstracts-pilot-s00-trace-r03-fp64/) · [registered design](../../preregistration.md)
4
+
5
+ | Stage | Method | Phase | Seed | Ratio | Train tokens | Dev NLL | Test NLL | Tokens/s | Status |
6
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
7
+ | Research abstracts | Hessian trace | pilot | 0 | 0.030 | 65,536 | 3.0883 | — | — | scoring development |
8
+
9
+ Training time is 153.6 seconds. Peak allocated GPU memory is — MiB. Development token accuracy is 0.4160. Test token accuracy is —.
10
+
11
+ [Design and hyperparameter rationale](../../planned-runs.md) · [Saved configuration](../../../results/abstracts-pilot-s00-trace-r03-fp64/config.json)
research/reports/experiments/abstracts-pilot-s00-trace-r03-fp64/learnings.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Run learnings
2
+
3
+ Development NLL changed by -0.1168 nats per target token from 4,096 to 65,536 training targets. Attribution to the regularizer uses matched comparisons across seeds.
4
+
5
+ [Experiment and source records](experiment.md)
research/reports/experiments/experiments.md CHANGED
@@ -12,6 +12,7 @@ NLL is negative log-likelihood in nats per target token. A smaller value assigns
12
  | [abstracts-pilot-s00-third-r03](./abstracts-pilot-s00-third-r03/experiment.md) | Research abstracts | Third derivative | diagnostic | 0 | 0.030 | 65,536 | 3.1168 | — | 907 | complete |
13
  | [abstracts-pilot-s00-third-r03-fp64](./abstracts-pilot-s00-third-r03-fp64/experiment.md) | Research abstracts | Third derivative | pilot | 0 | 0.030 | 65,536 | 3.1149 | — | 188 | complete |
14
  | [abstracts-pilot-s00-trace-r01-fp64](./abstracts-pilot-s00-trace-r01-fp64/experiment.md) | Research abstracts | Hessian trace | pilot | 0 | 0.010 | 65,536 | 3.1140 | — | 435 | complete |
 
15
  | [stories-control-s00-initial-r00](./stories-control-s00-initial-r00/experiment.md) | TinyStories | Initial checkpoint | control | 0 | 0.000 | 0 | 8.3437 | — | 0 | complete |
16
  | [stories-control-s00-unigram-r00](./stories-control-s00-unigram-r00/experiment.md) | TinyStories | Unigram | control | 0 | 0.000 | 0 | 6.0036 | — | 0 | complete |
17
  | [stories-pilot-s00-ce-r00](./stories-pilot-s00-ce-r00/experiment.md) | TinyStories | Ordinary AdamW | pilot | 0 | 0.000 | 2,097,152 | 3.8770 | — | 123,871 | complete |
 
12
  | [abstracts-pilot-s00-third-r03](./abstracts-pilot-s00-third-r03/experiment.md) | Research abstracts | Third derivative | diagnostic | 0 | 0.030 | 65,536 | 3.1168 | — | 907 | complete |
13
  | [abstracts-pilot-s00-third-r03-fp64](./abstracts-pilot-s00-third-r03-fp64/experiment.md) | Research abstracts | Third derivative | pilot | 0 | 0.030 | 65,536 | 3.1149 | — | 188 | complete |
14
  | [abstracts-pilot-s00-trace-r01-fp64](./abstracts-pilot-s00-trace-r01-fp64/experiment.md) | Research abstracts | Hessian trace | pilot | 0 | 0.010 | 65,536 | 3.1140 | — | 435 | complete |
15
+ | [abstracts-pilot-s00-trace-r03-fp64](./abstracts-pilot-s00-trace-r03-fp64/experiment.md) | Research abstracts | Hessian trace | pilot | 0 | 0.030 | 65,536 | 3.0883 | — | — | scoring development |
16
  | [stories-control-s00-initial-r00](./stories-control-s00-initial-r00/experiment.md) | TinyStories | Initial checkpoint | control | 0 | 0.000 | 0 | 8.3437 | — | 0 | complete |
17
  | [stories-control-s00-unigram-r00](./stories-control-s00-unigram-r00/experiment.md) | TinyStories | Unigram | control | 0 | 0.000 | 0 | 6.0036 | — | 0 | complete |
18
  | [stories-pilot-s00-ce-r00](./stories-pilot-s00-ce-r00/experiment.md) | TinyStories | Ordinary AdamW | pilot | 0 | 0.000 | 2,097,152 | 3.8770 | — | 123,871 | complete |
research/reports/experiments/learnings.md CHANGED
@@ -18,6 +18,8 @@ Independent random signs include mixed weight derivatives in the expected penalt
18
 
19
  - [abstracts-pilot-s00-trace-r01-fp64](./abstracts-pilot-s00-trace-r01-fp64/experiment.md) — Development NLL changed by -0.1171 nats per target token from 4,096 to 65,536 training targets. Attribution to the regularizer uses matched comparisons across seeds.
20
 
 
 
21
  - [stories-control-s00-initial-r00](./stories-control-s00-initial-r00/experiment.md) — The observed development NLL is 8.3437 nats per target token.
22
 
23
  - [stories-control-s00-unigram-r00](./stories-control-s00-unigram-r00/experiment.md) — The observed development NLL is 6.0036 nats per target token.
 
18
 
19
  - [abstracts-pilot-s00-trace-r01-fp64](./abstracts-pilot-s00-trace-r01-fp64/experiment.md) — Development NLL changed by -0.1171 nats per target token from 4,096 to 65,536 training targets. Attribution to the regularizer uses matched comparisons across seeds.
20
 
21
+ - [abstracts-pilot-s00-trace-r03-fp64](./abstracts-pilot-s00-trace-r03-fp64/experiment.md) — Development NLL changed by -0.1168 nats per target token from 4,096 to 65,536 training targets. Attribution to the regularizer uses matched comparisons across seeds.
22
+
23
  - [stories-control-s00-initial-r00](./stories-control-s00-initial-r00/experiment.md) — The observed development NLL is 8.3437 nats per target token.
24
 
25
  - [stories-control-s00-unigram-r00](./stories-control-s00-unigram-r00/experiment.md) — The observed development NLL is 6.0036 nats per target token.
research/reports/paper.pdf CHANGED
Binary files a/research/reports/paper.pdf and b/research/reports/paper.pdf differ
 
research/reports/plan.md CHANGED
@@ -10,7 +10,7 @@ Hochreiter and Schmidhuber hypothesized that, at comparable training loss, a mod
10
  | Pilot and controls | Start with third-order training and the untrained model and unigram comparisons. Calibrate on training gradients, finish equal-budget strength searches and select on development NLL. Compare signed trace, squared Hessian norm, randomized third-order gradient signs, and the combined objective. [Run matrix](planned-runs.md) · [Selections](../results/selection) |
11
  | Feasibility | Target the first pilot and free controls within fourteen hours. Use observed token throughput, validation time and peak allocated memory to project the week’s work before opening either test set. [Progress and timing](progress.md) |
12
  | Confirmation | Use eight paired seeds per stage for ordinary AdamW, Hessian trace, and the selected third-order penalty. Freeze all stage checkpoints and the test digest before scoring. Report seed-level differences, median intervals, both Holm-adjusted sign tests, development results at matched training time, and compute costs. [Analysis decisions](preregistration.md) |
13
- | Publication | After each completed run or evaluation, update the research archive, model card, experiment log, learnings, paper and explorer from the same raw observations. [Experiment ledger](experiments/experiments.md) · [Paper](paper.pdf) · [Explorer](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss/) |
14
 
15
  The dated progress record gives completed milestones and outstanding work. Source code, token-stream digests, restartable checkpoint settings and reload instructions are available from the reproduction guide. [Progress](progress.md) · [Reproduction guide](../docs/runbook.md)
16
 
 
10
  | Pilot and controls | Start with third-order training and the untrained model and unigram comparisons. Calibrate on training gradients, finish equal-budget strength searches and select on development NLL. Compare signed trace, squared Hessian norm, randomized third-order gradient signs, and the combined objective. [Run matrix](planned-runs.md) · [Selections](../results/selection) |
11
  | Feasibility | Target the first pilot and free controls within fourteen hours. Use observed token throughput, validation time and peak allocated memory to project the week’s work before opening either test set. [Progress and timing](progress.md) |
12
  | Confirmation | Use eight paired seeds per stage for ordinary AdamW, Hessian trace, and the selected third-order penalty. Freeze all stage checkpoints and the test digest before scoring. Report seed-level differences, median intervals, both Holm-adjusted sign tests, development results at matched training time, and compute costs. [Analysis decisions](preregistration.md) |
13
+ | Publication | After each completed run or evaluation, update the research archive, model card, experiment log, learnings, paper and explorer from the same raw observations. [Experiment ledger](experiments/experiments.md) · [Paper](paper.pdf) · [Explorer](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) |
14
 
15
  The dated progress record gives completed milestones and outstanding work. Source code, token-stream digests, restartable checkpoint settings and reload instructions are available from the reproduction guide. [Progress](progress.md) · [Reproduction guide](../docs/runbook.md)
16
 
research/reports/progress.md CHANGED
@@ -1,6 +1,6 @@
1
  # Study progress
2
 
3
- Updated 2026-11-25T09:18:45+00:00.
4
 
5
  17 training/control records and 0 final evaluations are complete. This is 14.2% of 120 planned model milestones.
6
 
@@ -12,7 +12,7 @@ Pilot rates project 1.69 remaining confirmation GPU-hours, excluding validation,
12
 
13
  Statistical status: pending. Awaiting confirmatory runs.
14
 
15
- **abstracts** has 5 completed runs. The next milestone is determined by the run matrix.
16
 
17
  Statistical status: pending. Awaiting confirmatory runs.
18
 
 
1
  # Study progress
2
 
3
+ Updated 2026-11-25T09:26:37+00:00.
4
 
5
  17 training/control records and 0 final evaluations are complete. This is 14.2% of 120 planned model milestones.
6
 
 
12
 
13
  Statistical status: pending. Awaiting confirmatory runs.
14
 
15
+ **abstracts** has 5 completed runs. Current records: abstracts-pilot-s00-trace-r03-fp64 (scoring development, 65,536 targets).
16
 
17
  Statistical status: pending. Awaiting confirmatory runs.
18
 
research/reports/summary.md CHANGED
@@ -1,16 +1,16 @@
1
  # Study summary
2
 
3
- Recorded 18 runs, including 18 with a completed summary.
4
 
5
  **TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets).
6
 
7
  **Research abstracts.** Awaiting paired test results (0 of 8 full-horizon training triplets).
8
 
9
- [Interactive explorer](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss/) · [Per-run ledger](experiments/experiments.md) · [Preregistration](preregistration.md) · [Paper](paper.pdf)
10
 
11
  ## Development observations
12
 
13
- **TinyStories development pilot.** At 2,097,152 training targets, the third-order run recorded 0.00004 nats per target token lower against Ordinary AdamW, 0.00024 nats per target token lower against Trace + third derivative, 0.00175 nats per target token lower against Squared Hessian norm, 0.00032 nats per target token lower against Randomized gradient signs, 0.00034 nats per target token lower against Hessian trace. These are single-seed descriptions using selected on development.
14
 
15
  **Research abstracts development pilot.** At 65,536 training targets, the third-order run recorded 0.00091 nats per target token higher against Ordinary AdamW. These are single-seed descriptions using initial pilot strengths.
16
 
 
1
  # Study summary
2
 
3
+ Recorded 19 runs, including 18 with a completed summary.
4
 
5
  **TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets).
6
 
7
  **Research abstracts.** Awaiting paired test results (0 of 8 full-horizon training triplets).
8
 
9
+ [Interactive explorer](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) · [Per-run ledger](experiments/experiments.md) · [Preregistration](preregistration.md) · [Paper](paper.pdf)
10
 
11
  ## Development observations
12
 
13
+ **TinyStories development pilot.** At 2,097,152 training targets, the third-order run recorded 0.00004 nats per target token lower against Ordinary AdamW, 0.00024 nats per target token lower against Trace + third derivative, 0.00175 nats per target token lower against Squared Hessian norm, 0.00032 nats per target token lower against Randomized gradient signs, 0.00034 nats per target token lower against Hessian trace. These are single-seed descriptions using strengths selected on development.
14
 
15
  **Research abstracts development pilot.** At 65,536 training targets, the third-order run recorded 0.00091 nats per target token higher against Ordinary AdamW. These are single-seed descriptions using initial pilot strengths.
16
 
research/results/abstracts-pilot-s00-trace-r03-fp64/config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "abstracts-pilot-s00-trace-r03-fp64",
3
+ "stage": "abstracts",
4
+ "method": "trace",
5
+ "phase": "pilot",
6
+ "seed": 0,
7
+ "ratio": 0.03,
8
+ "token_budget": 65536,
9
+ "batch_windows": 8,
10
+ "context": 128,
11
+ "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9",
12
+ "microbatch": 2,
13
+ "derivative_dtype": "float64",
14
+ "derivative_device": "cpu",
15
+ "coefficients": {
16
+ "trace": 4.232668506589168e-08
17
+ }
18
+ }
research/results/abstracts-pilot-s00-trace-r03-fp64/evaluation.jsonl ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"timestamp": "2026-11-25T09:23:04+00:00", "split": "dev", "targets_scored": 428032, "targets_to_score": 5124071, "nll_so_far": 3.108243330600159, "accuracy_so_far": 0.4124341170753589, "score_seconds": 60.13073129999975}
2
+ {"timestamp": "2026-11-25T09:24:04+00:00", "split": "dev", "targets_scored": 854016, "targets_to_score": 5124071, "nll_so_far": 3.1070146722489036, "accuracy_so_far": 0.413103501573741, "score_seconds": 120.2883948000017}
3
+ {"timestamp": "2026-11-25T09:25:04+00:00", "split": "dev", "targets_scored": 1265664, "targets_to_score": 5124071, "nll_so_far": 3.1018533033671454, "accuracy_so_far": 0.4137030049049353, "score_seconds": 180.4415474999987}
4
+ {"timestamp": "2026-11-25T09:26:05+00:00", "split": "dev", "targets_scored": 1662976, "targets_to_score": 5124071, "nll_so_far": 3.1042621866544695, "accuracy_so_far": 0.4134822150169335, "score_seconds": 240.70859909999854}
research/results/abstracts-pilot-s00-trace-r03-fp64/events.jsonl ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"timestamp": "2026-11-25T09:19:10+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.8203949000017019, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 0.8203949000017019}
2
+ {"timestamp": "2026-11-25T09:19:32+00:00", "step": 2, "tokens": 2048, "train_seconds": 22.69535729999916, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.1337052583694458, "derivatives": {"trace": {"estimate": 1510.6847122874765, "raw_grad_norm": 967020.0889974502, "lambda": 4.232668506589168e-08, "probe_seconds": 20.837838999999803}}, "host_probe_seconds": 20.837838999999803, "training_seconds_excluding_host_probes": 1.8575182999993558, "penalty": 0.0005115382084067936}
3
+ {"timestamp": "2026-11-25T09:19:35+00:00", "step": 4, "tokens": 4096, "train_seconds": 24.184651600007783, "loss": 3.335285186767578, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.1429003477096558, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 3.346812600007979, "dev_nll": 3.2050935145816766, "dev_accuracy": 0.4029541015625}
4
+ {"timestamp": "2026-11-25T09:19:39+00:00", "step": 8, "tokens": 8192, "train_seconds": 27.588129100004153, "loss": 3.153710126876831, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.307447075843811, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 6.750290100004349, "dev_nll": 3.1848572317976505, "dev_accuracy": 0.40576171875}
5
+ {"timestamp": "2026-11-25T09:20:03+00:00", "step": 11, "tokens": 11264, "train_seconds": 51.34093500000745, "loss": 3.222881555557251, "accuracy": 0.4150390625, "lr": 9.623426070191522e-05, "gradient_norm": 1.140632152557373, "derivatives": {"trace": {"estimate": -410.10428172081595, "raw_grad_norm": 868195.9114623038, "lambda": 4.232668506589168e-08, "probe_seconds": 20.85973699999886}}, "host_probe_seconds": 20.85973699999886, "training_seconds_excluding_host_probes": 9.643359000008786, "penalty": -0.00013886683821256557}
6
+ {"timestamp": "2026-11-25T09:20:06+00:00", "step": 12, "tokens": 12288, "train_seconds": 52.29275320001034, "loss": 3.2244973182678223, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1609612703323364, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 10.595177200011676, "dev_nll": 3.167334184923675, "dev_accuracy": 0.4073486328125}
7
+ {"timestamp": "2026-11-25T09:20:10+00:00", "step": 16, "tokens": 16384, "train_seconds": 55.284040600010485, "loss": 3.1743507385253906, "accuracy": 0.4013671875, "lr": 9.028539129595197e-05, "gradient_norm": 1.3022633790969849, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 13.586464600011823, "dev_nll": 3.153323730221018, "dev_accuracy": 0.40869140625}
8
+ {"timestamp": "2026-11-25T09:20:14+00:00", "step": 20, "tokens": 20480, "train_seconds": 58.501724600013404, "loss": 3.3647890090942383, "accuracy": 0.380859375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2582865953445435, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 16.80414860001474, "dev_nll": 3.141088357253466, "dev_accuracy": 0.40771484375}
9
+ {"timestamp": "2026-11-25T09:20:37+00:00", "step": 22, "tokens": 22528, "train_seconds": 80.72395010001492, "loss": 3.1014509201049805, "accuracy": 0.3994140625, "lr": 8.01209674912089e-05, "gradient_norm": 1.2094333171844482, "derivatives": {"trace": {"estimate": -347.26580623998086, "raw_grad_norm": 1033792.7539904471, "lambda": 4.232668506589168e-08, "probe_seconds": 20.768768099995214}}, "host_probe_seconds": 20.768768099995214, "training_seconds_excluding_host_probes": 18.257606000021042, "penalty": -0.00011758888331898106}
10
+ {"timestamp": "2026-11-25T09:20:39+00:00", "step": 24, "tokens": 24576, "train_seconds": 82.08860320001986, "loss": 3.163144111633301, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.4822345972061157, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 19.622259100025985, "dev_nll": 3.1304753722506575, "dev_accuracy": 0.4068603515625}
11
+ {"timestamp": "2026-11-25T09:21:01+00:00", "step": 25, "tokens": 25600, "train_seconds": 104.08553360002406, "loss": 3.160763740539551, "accuracy": 0.3994140625, "lr": 7.407614758194375e-05, "gradient_norm": 1.2352839708328247, "derivatives": {"trace": {"estimate": 2431.418073750566, "raw_grad_norm": 1151210.280645826, "lambda": 4.232668506589168e-08, "probe_seconds": 20.968858100000944}}, "host_probe_seconds": 20.968858100000944, "training_seconds_excluding_host_probes": 20.650331400029245, "penalty": 0.0008233109365692575}
12
+ {"timestamp": "2026-11-25T09:21:05+00:00", "step": 28, "tokens": 28672, "train_seconds": 106.44928290002281, "loss": 3.2388410568237305, "accuracy": 0.3984375, "lr": 6.757685356832243e-05, "gradient_norm": 1.238802433013916, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 23.01408070002799, "dev_nll": 3.1210773665225133, "dev_accuracy": 0.4085693359375}
13
+ {"timestamp": "2026-11-25T09:21:09+00:00", "step": 32, "tokens": 32768, "train_seconds": 109.3466636000303, "loss": 3.472531318664551, "accuracy": 0.375, "lr": 5.84728957956991e-05, "gradient_norm": 1.3810346126556396, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 25.911461400035478, "dev_nll": 3.1126226205960847, "dev_accuracy": 0.410400390625}
14
+ {"timestamp": "2026-11-25T09:21:13+00:00", "step": 36, "tokens": 36864, "train_seconds": 112.22359190003772, "loss": 3.132420063018799, "accuracy": 0.400390625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2544296979904175, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 28.7883897000429, "dev_nll": 3.1055949754081666, "dev_accuracy": 0.410888671875}
15
+ {"timestamp": "2026-11-25T09:21:18+00:00", "step": 40, "tokens": 40960, "train_seconds": 115.42110020003747, "loss": 3.0673372745513916, "accuracy": 0.421875, "lr": 4.021559281401244e-05, "gradient_norm": 1.2362866401672363, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 31.985898000042653, "dev_nll": 3.1004766558180563, "dev_accuracy": 0.410888671875}
16
+ {"timestamp": "2026-11-25T09:21:22+00:00", "step": 44, "tokens": 45056, "train_seconds": 118.3313624000366, "loss": 3.38905668258667, "accuracy": 0.373046875, "lr": 3.183432393205763e-05, "gradient_norm": 1.2262520790100098, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 34.89616020004178, "dev_nll": 3.096751482808031, "dev_accuracy": 0.412353515625}
17
+ {"timestamp": "2026-11-25T09:21:26+00:00", "step": 48, "tokens": 49152, "train_seconds": 121.19241670003248, "loss": 3.232553482055664, "accuracy": 0.376953125, "lr": 2.443269974962181e-05, "gradient_norm": 1.2406020164489746, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.75721450003766, "dev_nll": 3.0938708244939335, "dev_accuracy": 0.4136962890625}
18
+ {"timestamp": "2026-11-25T09:21:48+00:00", "step": 50, "tokens": 51200, "train_seconds": 142.58278420003626, "loss": 3.0859992504119873, "accuracy": 0.404296875, "lr": 2.1199063110826618e-05, "gradient_norm": 1.6927725076675415, "derivatives": {"trace": {"estimate": 1306.07316143556, "raw_grad_norm": 3021103.0699667563, "lambda": 4.232668506589168e-08, "probe_seconds": 19.854530700002215}}, "host_probe_seconds": 19.854530700002215, "training_seconds_excluding_host_probes": 39.293051300039224, "penalty": 0.0004422539790167716}
19
+ {"timestamp": "2026-11-25T09:21:51+00:00", "step": 52, "tokens": 53248, "train_seconds": 144.27424620003876, "loss": 3.066322088241577, "accuracy": 0.41015625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1389482021331787, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 40.984513300041726, "dev_nll": 3.0918713661958463, "dev_accuracy": 0.414306640625}
20
+ {"timestamp": "2026-11-25T09:21:55+00:00", "step": 56, "tokens": 57344, "train_seconds": 147.47696270003507, "loss": 3.2468066215515137, "accuracy": 0.40234375, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1320654153823853, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 44.18722980003804, "dev_nll": 3.0903795417398214, "dev_accuracy": 0.4150390625}
21
+ {"timestamp": "2026-11-25T09:21:59+00:00", "step": 60, "tokens": 61440, "train_seconds": 150.7008369000323, "loss": 3.167062759399414, "accuracy": 0.4091796875, "lr": 1.09514941707089e-05, "gradient_norm": 1.1818270683288574, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 47.411104000035266, "dev_nll": 3.0892473537824117, "dev_accuracy": 0.4154052734375}
22
+ {"timestamp": "2026-11-25T09:22:04+00:00", "step": 64, "tokens": 65536, "train_seconds": 153.6093276000247, "loss": 3.1683597564697266, "accuracy": 0.400390625, "lr": 1e-05, "gradient_norm": 1.0687135457992554, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 50.319594700027665, "dev_nll": 3.0883107148692943, "dev_accuracy": 0.416015625}
research/results/abstracts-pilot-s00-trace-r03-fp64/state.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "status": "scoring development",
3
+ "targets_scored": 1662976,
4
+ "targets_to_score": 5124071,
5
+ "nll_so_far": 3.1042621866544695,
6
+ "accuracy_so_far": 0.4134822150169335,
7
+ "score_seconds": 240.70859909999854
8
+ }
research/results/verification/tests.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "checked_at": "2026-11-25T08:30:11+00:00",
3
- "git_revision": "021264128e1fc7eb7dd7b03db922ca576dc144af",
4
  "exit_code": 0,
5
  "cases": [
6
  {
@@ -95,62 +95,62 @@
95
  },
96
  {
97
  "test": "tests.test_data.test_exact_and_edited_documents_respect_split_priority",
98
- "seconds": 0.002,
99
  "outcome": "passed"
100
  },
101
  {
102
  "test": "tests.test_data.test_prefix_candidates_match_exhaustive_jaccard_including_boundary",
103
- "seconds": 0.054,
104
  "outcome": "passed"
105
  },
106
  {
107
  "test": "tests.test_data.test_abstract_submission_month_and_base_id_grouping",
108
- "seconds": 0.034,
109
  "outcome": "passed"
110
  },
111
  {
112
  "test": "tests.test_data.test_prepare_from_parquet_proves_train_only_fit_packing_and_repair",
113
- "seconds": 0.093,
114
  "outcome": "passed"
115
  },
116
  {
117
  "test": "tests.test_derivatives.test_gpu_production_decoder_third_order_update_matches_cpu",
118
- "seconds": 2.451,
119
  "outcome": "passed"
120
  },
121
  {
122
  "test": "tests.test_derivatives.test_quartic_penalty_retains_fourth_derivative",
123
- "seconds": 0.004,
124
  "outcome": "passed"
125
  },
126
  {
127
  "test": "tests.test_derivatives.test_mixed_cubic_exactly_averages_to_tensor_norm",
128
- "seconds": 0.042,
129
  "outcome": "passed"
130
  },
131
  {
132
  "test": "tests.test_derivatives.test_random_probe_generator_gives_independent_directions",
133
- "seconds": 0.183,
134
  "outcome": "passed"
135
  },
136
  {
137
  "test": "tests.test_derivatives.test_penalty_supports_linear_loss_and_unused_coordinates[third]",
138
- "seconds": 0.002,
139
  "outcome": "passed"
140
  },
141
  {
142
  "test": "tests.test_derivatives.test_penalty_supports_linear_loss_and_unused_coordinates[trace]",
143
- "seconds": 0.003,
144
  "outcome": "passed"
145
  },
146
  {
147
  "test": "tests.test_derivatives.test_penalty_supports_linear_loss_and_unused_coordinates[hessian_norm]",
148
- "seconds": 0.003,
149
  "outcome": "passed"
150
  },
151
  {
152
  "test": "tests.test_derivatives.test_quadratic_has_curvature_and_zero_third_derivative",
153
- "seconds": 0.002,
154
  "outcome": "passed"
155
  },
156
  {
@@ -160,22 +160,22 @@
160
  },
161
  {
162
  "test": "tests.test_derivatives.test_tiny_transformer_against_dense_tensor_and_finite_differences",
163
- "seconds": 1.62,
164
  "outcome": "passed"
165
  },
166
  {
167
  "test": "tests.test_derivatives.test_actual_adamw_update_responds_to_the_third_order_term",
168
- "seconds": 0.007,
169
  "outcome": "passed"
170
  },
171
  {
172
  "test": "tests.test_derivatives.test_production_story_model_exposes_full_weight_penalty_gradient",
173
- "seconds": 0.045,
174
  "outcome": "passed"
175
  },
176
  {
177
  "test": "tests.test_derivatives.test_pythia_adapter_fourth_derivative_and_portable_checkpoint",
178
- "seconds": 4.554,
179
  "outcome": "passed",
180
  "measurements": {
181
  "adapter_directional_autograd": "9035.374247002468",
@@ -184,32 +184,37 @@
184
  },
185
  {
186
  "test": "tests.test_derivatives.test_large_finite_gradient_norm_survives_squaring",
187
- "seconds": 0.002,
188
  "outcome": "passed"
189
  },
190
  {
191
  "test": "tests.test_derivatives.test_sequential_windows_reproduce_joint_penalty_and_training_gradient",
192
- "seconds": 0.189,
 
 
 
 
 
193
  "outcome": "passed"
194
  },
195
  {
196
  "test": "tests.test_reporting.test_snapshot_keeps_full_score_and_trace_semantics",
197
- "seconds": 0.015,
198
  "outcome": "passed"
199
  },
200
  {
201
  "test": "tests.test_reporting.test_report_before_first_run_keeps_readme_and_emits_protocol_paper",
202
- "seconds": 0.485,
203
  "outcome": "passed"
204
  },
205
  {
206
  "test": "tests.test_training.test_randomized_control_preserves_coordinate_magnitudes_and_zero_is_noop",
207
- "seconds": 0.099,
208
  "outcome": "passed"
209
  },
210
  {
211
  "test": "tests.test_training.test_step_recovery_matches_uninterrupted_weights",
212
- "seconds": 2.134,
213
  "outcome": "passed"
214
  },
215
  {
@@ -219,7 +224,7 @@
219
  },
220
  {
221
  "test": "tests.test_training.test_evaluator_requires_measured_schedule_before_test_reads",
222
- "seconds": 0.029,
223
  "outcome": "passed"
224
  }
225
  ]
 
1
  {
2
+ "checked_at": "2026-11-25T09:26:27+00:00",
3
+ "git_revision": "1d6f87f98019521f424ef05e5878d4a7b645a07f",
4
  "exit_code": 0,
5
  "cases": [
6
  {
 
95
  },
96
  {
97
  "test": "tests.test_data.test_exact_and_edited_documents_respect_split_priority",
98
+ "seconds": 0.003,
99
  "outcome": "passed"
100
  },
101
  {
102
  "test": "tests.test_data.test_prefix_candidates_match_exhaustive_jaccard_including_boundary",
103
+ "seconds": 0.061,
104
  "outcome": "passed"
105
  },
106
  {
107
  "test": "tests.test_data.test_abstract_submission_month_and_base_id_grouping",
108
+ "seconds": 0.037,
109
  "outcome": "passed"
110
  },
111
  {
112
  "test": "tests.test_data.test_prepare_from_parquet_proves_train_only_fit_packing_and_repair",
113
+ "seconds": 0.216,
114
  "outcome": "passed"
115
  },
116
  {
117
  "test": "tests.test_derivatives.test_gpu_production_decoder_third_order_update_matches_cpu",
118
+ "seconds": 4.067,
119
  "outcome": "passed"
120
  },
121
  {
122
  "test": "tests.test_derivatives.test_quartic_penalty_retains_fourth_derivative",
123
+ "seconds": 0.003,
124
  "outcome": "passed"
125
  },
126
  {
127
  "test": "tests.test_derivatives.test_mixed_cubic_exactly_averages_to_tensor_norm",
128
+ "seconds": 0.053,
129
  "outcome": "passed"
130
  },
131
  {
132
  "test": "tests.test_derivatives.test_random_probe_generator_gives_independent_directions",
133
+ "seconds": 0.219,
134
  "outcome": "passed"
135
  },
136
  {
137
  "test": "tests.test_derivatives.test_penalty_supports_linear_loss_and_unused_coordinates[third]",
138
+ "seconds": 0.004,
139
  "outcome": "passed"
140
  },
141
  {
142
  "test": "tests.test_derivatives.test_penalty_supports_linear_loss_and_unused_coordinates[trace]",
143
+ "seconds": 0.002,
144
  "outcome": "passed"
145
  },
146
  {
147
  "test": "tests.test_derivatives.test_penalty_supports_linear_loss_and_unused_coordinates[hessian_norm]",
148
+ "seconds": 0.002,
149
  "outcome": "passed"
150
  },
151
  {
152
  "test": "tests.test_derivatives.test_quadratic_has_curvature_and_zero_third_derivative",
153
+ "seconds": 0.001,
154
  "outcome": "passed"
155
  },
156
  {
 
160
  },
161
  {
162
  "test": "tests.test_derivatives.test_tiny_transformer_against_dense_tensor_and_finite_differences",
163
+ "seconds": 2.205,
164
  "outcome": "passed"
165
  },
166
  {
167
  "test": "tests.test_derivatives.test_actual_adamw_update_responds_to_the_third_order_term",
168
+ "seconds": 0.014,
169
  "outcome": "passed"
170
  },
171
  {
172
  "test": "tests.test_derivatives.test_production_story_model_exposes_full_weight_penalty_gradient",
173
+ "seconds": 0.064,
174
  "outcome": "passed"
175
  },
176
  {
177
  "test": "tests.test_derivatives.test_pythia_adapter_fourth_derivative_and_portable_checkpoint",
178
+ "seconds": 7.936,
179
  "outcome": "passed",
180
  "measurements": {
181
  "adapter_directional_autograd": "9035.374247002468",
 
184
  },
185
  {
186
  "test": "tests.test_derivatives.test_large_finite_gradient_norm_survives_squaring",
187
+ "seconds": 0.004,
188
  "outcome": "passed"
189
  },
190
  {
191
  "test": "tests.test_derivatives.test_sequential_windows_reproduce_joint_penalty_and_training_gradient",
192
+ "seconds": 0.164,
193
+ "outcome": "passed"
194
+ },
195
+ {
196
+ "test": "tests.test_reporting.test_examples_label_an_eligible_run_and_preserve_the_fixed_sample_order",
197
+ "seconds": 0.001,
198
  "outcome": "passed"
199
  },
200
  {
201
  "test": "tests.test_reporting.test_snapshot_keeps_full_score_and_trace_semantics",
202
+ "seconds": 0.03,
203
  "outcome": "passed"
204
  },
205
  {
206
  "test": "tests.test_reporting.test_report_before_first_run_keeps_readme_and_emits_protocol_paper",
207
+ "seconds": 1.64,
208
  "outcome": "passed"
209
  },
210
  {
211
  "test": "tests.test_training.test_randomized_control_preserves_coordinate_magnitudes_and_zero_is_noop",
212
+ "seconds": 0.149,
213
  "outcome": "passed"
214
  },
215
  {
216
  "test": "tests.test_training.test_step_recovery_matches_uninterrupted_weights",
217
+ "seconds": 2.362,
218
  "outcome": "passed"
219
  },
220
  {
 
224
  },
225
  {
226
  "test": "tests.test_training.test_evaluator_requires_measured_schedule_before_test_reads",
227
+ "seconds": 0.043,
228
  "outcome": "passed"
229
  }
230
  ]
research/src/thirdloss/records.py CHANGED
@@ -8,6 +8,9 @@ from pathlib import Path
8
 
9
  from dotenv import load_dotenv
10
 
 
 
 
11
  HORIZONS = {"stories": 2**24, "abstracts": 2**19}
12
  BATCHES = {"stories": 32, "abstracts": 8}
13
  METHODS = ("ce", "trace", "third", "hessian_norm", "sham", "combined")
 
8
 
9
  from dotenv import load_dotenv
10
 
11
+ GITHUB = "https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian"
12
+ PAGES = "https://burnycoder.github.io/"+GITHUB.rsplit("/",1)[1]+"/"
13
+
14
  HORIZONS = {"stories": 2**24, "abstracts": 2**19}
15
  BATCHES = {"stories": 32, "abstracts": 8}
16
  METHODS = ("ce", "trace", "third", "hessian_norm", "sham", "combined")
research/src/thirdloss/release.py CHANGED
@@ -5,12 +5,11 @@ from pathlib import Path
5
 
6
  from huggingface_hub import HfApi
7
 
8
- from .records import read_json, sha256, write_json
9
 
10
  OWNER = "BurnyCoder"
11
  STUDY_HUB = f"{OWNER}/thirdloss-study"
12
  COLLECTION = f"{OWNER}/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378"
13
- GITHUB = "https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss"
14
  STAGE_HUB = {"stories":f"{OWNER}/thirdloss-stories", "abstracts":f"{OWNER}/thirdloss-pythia-410m-adapters"}
15
 
16
 
 
5
 
6
  from huggingface_hub import HfApi
7
 
8
+ from .records import GITHUB, read_json, sha256, write_json
9
 
10
  OWNER = "BurnyCoder"
11
  STUDY_HUB = f"{OWNER}/thirdloss-study"
12
  COLLECTION = f"{OWNER}/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378"
 
13
  STAGE_HUB = {"stories":f"{OWNER}/thirdloss-stories", "abstracts":f"{OWNER}/thirdloss-pythia-410m-adapters"}
14
 
15
 
research/src/thirdloss/report_paper.py CHANGED
@@ -23,7 +23,7 @@ from reportlab.platypus import (
23
  Image, KeepTogether, LongTable, PageBreak, Paragraph, SimpleDocTemplate, Spacer, TableStyle,
24
  )
25
 
26
- from .report_records import METHODS, REPOSITORY, STAGES, completed, describe_difference, finite, fmt, verdict_text
27
 
28
  REFERENCES = {
29
  "flat": ("Hochreiter and Schmidhuber (1994), Simplifying neural nets by discovering flat minima",
@@ -382,21 +382,17 @@ def write_paper(study: dict, output: Path, figure_dir: Path, figures: dict) -> N
382
  p(f"{STAGES[stage]} / {METHODS[base]}: median ΔNLL {fmt(stats['median_delta'], 5)}, "
383
  f"interval [{fmt(lo,5)}, {fmt(hi,5)}] at achieved coverage {fmt(stats['ci_coverage'],4)}. "
384
  f"Holm-adjusted p = {fmt(stats['p_holm'], 5)}.", "caption")
385
- has_examples = any(run["samples"] for run in study["runs"])
386
- if has_examples:
387
  p("Appendix · Output examples", "heading")
388
- p("For each stage and method, the first saved sample in run-ID order is shown in excerpt. "
389
  "The experiment ledger contains every full saved continuation and its corresponding "
390
  f"reference when recorded. {_link(REPOSITORY + '/tree/main/reports/experiments', 'All outputs')}")
391
- seen = set()
392
- for run in study["runs"]:
393
- key = (run.get("stage"), run.get("method"))
394
- if not run["samples"] or key in seen:
395
- continue
396
- seen.add(key)
397
  sample = run["samples"][0]
398
- label = f"{STAGES.get(key[0], key[0])} · {METHODS.get(key[1], key[1])}"
399
- example = [Paragraph(escape(label), styles["subheading"])]
 
400
  for field, name in (("prompt", "Prompt"), ("reference", "Reference"), ("continuation", "Prediction")):
401
  if sample.get(field) is not None:
402
  value = str(sample[field])
 
23
  Image, KeepTogether, LongTable, PageBreak, Paragraph, SimpleDocTemplate, Spacer, TableStyle,
24
  )
25
 
26
+ from .report_records import METHODS, REPOSITORY, STAGES, completed, describe_difference, example_runs, finite, fmt, verdict_text
27
 
28
  REFERENCES = {
29
  "flat": ("Hochreiter and Schmidhuber (1994), Simplifying neural nets by discovering flat minima",
 
382
  p(f"{STAGES[stage]} / {METHODS[base]}: median ΔNLL {fmt(stats['median_delta'], 5)}, "
383
  f"interval [{fmt(lo,5)}, {fmt(hi,5)}] at achieved coverage {fmt(stats['ci_coverage'],4)}. "
384
  f"Holm-adjusted p = {fmt(stats['p_holm'], 5)}.", "caption")
385
+ examples = example_runs(study["runs"])
386
+ if examples:
387
  p("Appendix · Output examples", "heading")
388
+ p("For each stage and method, the first registered checkpoint and sample in run-ID order is shown in excerpt. "
389
  "The experiment ledger contains every full saved continuation and its corresponding "
390
  f"reference when recorded. {_link(REPOSITORY + '/tree/main/reports/experiments', 'All outputs')}")
391
+ for run in examples:
 
 
 
 
 
392
  sample = run["samples"][0]
393
+ label = f"{STAGES[run['stage']]} · {METHODS[run['method']]} · {run['phase']}, seed {run['seed']}"
394
+ url = REPOSITORY + "/blob/main/results/" + run["id"] + "/samples.jsonl"
395
+ example = [Paragraph(_link(url,label), styles["subheading"])]
396
  for field, name in (("prompt", "Prompt"), ("reference", "Reference"), ("continuation", "Prediction")):
397
  if sample.get(field) is not None:
398
  value = str(sample[field])
research/src/thirdloss/report_records.py CHANGED
@@ -9,10 +9,9 @@ from pathlib import Path
9
  from tempfile import NamedTemporaryFile
10
 
11
  from .analysis import analyze_stage
 
12
 
13
 
14
- REPOSITORY = "https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss"
15
- PAGES = "https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss/"
16
  STAGES = {"stories": "TinyStories", "abstracts": "Research abstracts"}
17
  METHODS = {
18
  "ce": "Ordinary AdamW",
@@ -180,7 +179,7 @@ def pilot_differences(runs: list[dict], stage: str, selection: dict) -> list[dic
180
  return [{"method": method, "third_id": third["id"], "comparison_id": other["id"],
181
  "tokens": third["tokens"], "delta": third["dev_nll"] - other["dev_nll"],
182
  "third_nll": third["dev_nll"], "baseline_nll": other["dev_nll"],
183
- "strength_basis": "selected on development" if ratios else "initial pilot strengths"}
184
  for method, other in by_method.items() if method != "third" and other.get("tokens") == third.get("tokens")]
185
 
186
 
@@ -215,6 +214,15 @@ def completed(run: dict) -> bool:
215
  return run.get("status", "").lower() in {"complete", "completed", "finished", "evaluated", "success"}
216
 
217
 
 
 
 
 
 
 
 
 
 
218
  def describe_difference(delta) -> str:
219
  if delta == 0:
220
  return "identical development NLL"
 
9
  from tempfile import NamedTemporaryFile
10
 
11
  from .analysis import analyze_stage
12
+ from .records import GITHUB as REPOSITORY, PAGES
13
 
14
 
 
 
15
  STAGES = {"stories": "TinyStories", "abstracts": "Research abstracts"}
16
  METHODS = {
17
  "ce": "Ordinary AdamW",
 
179
  return [{"method": method, "third_id": third["id"], "comparison_id": other["id"],
180
  "tokens": third["tokens"], "delta": third["dev_nll"] - other["dev_nll"],
181
  "third_nll": third["dev_nll"], "baseline_nll": other["dev_nll"],
182
+ "strength_basis": "strengths selected on development" if ratios else "initial pilot strengths"}
183
  for method, other in by_method.items() if method != "third" and other.get("tokens") == third.get("tokens")]
184
 
185
 
 
214
  return run.get("status", "").lower() in {"complete", "completed", "finished", "evaluated", "success"}
215
 
216
 
217
+ def example_runs(runs):
218
+ """Choose one completed registered checkpoint per method independently of sample text or scores."""
219
+ examples = {}
220
+ for run in sorted(runs,key=lambda r:r["id"]):
221
+ if completed(run) and run["phase"] in {"confirm","pilot","control"} and run["samples"]:
222
+ examples.setdefault((run["stage"],run["method"]),run)
223
+ return list(examples.values())
224
+
225
+
226
  def describe_difference(delta) -> str:
227
  if delta == 0:
228
  return "identical development NLL"
research/src/thirdloss/reporting.py CHANGED
@@ -9,7 +9,7 @@ from urllib.parse import quote
9
  from .report_figures import build_figures
10
  from .report_paper import write_paper
11
  from .report_records import (
12
- METHODS, PAGES, STAGES, atomic_text, completed, describe_difference, finite, fmt, study_snapshot,
13
  verdict_text,
14
  )
15
 
@@ -258,17 +258,13 @@ def build_report(root: Path = Path(".")) -> dict:
258
  for key in ("paired", "curves"):
259
  if key in figures:
260
  readme.append(f"![{'Paired test differences' if key == 'paired' else 'Development NLL'}](docs/figures/{figures[key]})")
261
- seen = set()
262
  panels = []
263
- for run in study["runs"]:
264
- key = (run.get("stage"), run.get("method"))
265
- if not run["samples"] or key in seen:
266
- continue
267
- seen.add(key)
268
- panels.append(f"<details><summary>{_stage(run)} · {_method(run)}</summary>\n\n"
269
  + _sample(run["samples"][0]) + "\n\n</details>")
270
  if panels:
271
- readme += ["### Recorded predictions", "First archived sample in run-ID order per "
272
  "stage and method. [All continuations](reports/experiments/experiments.md)", *panels]
273
  _update_readme(root, "\n\n".join(readme))
274
  write_paper(study, root / "reports" / "paper.pdf", root / "docs" / "figures", figures)
 
9
  from .report_figures import build_figures
10
  from .report_paper import write_paper
11
  from .report_records import (
12
+ METHODS, PAGES, STAGES, atomic_text, completed, describe_difference, example_runs, finite, fmt, study_snapshot,
13
  verdict_text,
14
  )
15
 
 
258
  for key in ("paired", "curves"):
259
  if key in figures:
260
  readme.append(f"![{'Paired test differences' if key == 'paired' else 'Development NLL'}](docs/figures/{figures[key]})")
 
261
  panels = []
262
+ for run in example_runs(study["runs"]):
263
+ panels.append(f"<details><summary>{_stage(run)} · {_method(run)} · {run['phase']}, seed {run['seed']}</summary>\n\n"
264
+ + f"[Recorded sample](results/{run['id']}/samples.jsonl)\n\n"
 
 
 
265
  + _sample(run["samples"][0]) + "\n\n</details>")
266
  if panels:
267
+ readme += ["### Recorded predictions", "First registered checkpoint and sample in run-ID order per "
268
  "stage and method. [All continuations](reports/experiments/experiments.md)", *panels]
269
  _update_readme(root, "\n\n".join(readme))
270
  write_paper(study, root / "reports" / "paper.pdf", root / "docs" / "figures", figures)
research/src/thirdloss/study.py CHANGED
@@ -2,6 +2,8 @@
2
 
3
  import hashlib
4
  import json
 
 
5
  from pathlib import Path
6
 
7
  from huggingface_hub import hf_hub_download
@@ -132,15 +134,14 @@ def evaluate_one(project, storage, run_id, device):
132
 
133
 
134
  def milestone(project,storage,summary,publish):
135
- from .reporting import build_report
136
- from .progress import progress
137
  path = project/"results"/summary["id"]/"summary.json"
138
  marker = storage/"releases"/(summary["id"]+".json")
139
  fingerprint = sha256(path)
140
  if publish and marker.exists() and read_json(marker)["summary_sha256"]==fingerprint:
141
  return
142
- build_report(project)
143
- progress(project)
 
144
  if publish:
145
  publish_weights(project,storage,summary)
146
  label = "evaluation" if "test_nll" in summary else "development"
 
2
 
3
  import hashlib
4
  import json
5
+ import subprocess
6
+ import sys
7
  from pathlib import Path
8
 
9
  from huggingface_hub import hf_hub_download
 
134
 
135
 
136
  def milestone(project,storage,summary,publish):
 
 
137
  path = project/"results"/summary["id"]/"summary.json"
138
  marker = storage/"releases"/(summary["id"]+".json")
139
  fingerprint = sha256(path)
140
  if publish and marker.exists() and read_json(marker)["summary_sha256"]==fingerprint:
141
  return
142
+ # A study can run for days. Render from the current checked-in reporting code so a
143
+ # later milestone cannot replace an updated paper or explorer with an older template.
144
+ subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"],cwd=project,check=True)
145
  if publish:
146
  publish_weights(project,storage,summary)
147
  label = "evaluation" if "test_nll" in summary else "development"
research/tests/test_reporting.py CHANGED
@@ -7,6 +7,14 @@ from pypdf import PdfReader
7
  from thirdloss.reporting import build_report, study_snapshot
8
 
9
 
 
 
 
 
 
 
 
 
10
  def test_snapshot_keeps_full_score_and_trace_semantics(tmp_path):
11
  """Distinguish raw derivative size, weighted training contribution and full validation."""
12
  run = tmp_path / "results" / "stories-pilot-s00-third-r03"
 
7
  from thirdloss.reporting import build_report, study_snapshot
8
 
9
 
10
+ def test_examples_label_an_eligible_run_and_preserve_the_fixed_sample_order():
11
+ from thirdloss.report_records import example_runs
12
+ fields = {"stage":"abstracts","method":"third","status":"complete","samples":[{"continuation":"example"}]}
13
+ rows = [{**fields,"id":key,"phase":phase} for key,phase in
14
+ [("a-archived","diagnostic"),("c-later","pilot"),("b-corrected","pilot")]]
15
+ assert [r["id"] for r in example_runs(rows)] == ["b-corrected"]
16
+
17
+
18
  def test_snapshot_keeps_full_score_and_trace_semantics(tmp_path):
19
  """Distinguish raw derivative size, weighted training contribution and full validation."""
20
  run = tmp_path / "results" / "stories-pilot-s00-third-r03"