Record the staged curvature experiment and its rationale
Browse files- research/README.md +1 -0
- research/reports/plan.md +10 -0
research/README.md
CHANGED
|
@@ -330,3 +330,4 @@ The pipeline pins the source texts, splits by document, learns the stories token
|
|
| 330 |
- Verify the scalar objective and its training gradient on analytical functions and a small Transformer.
|
| 331 |
- Train the pilot, publish throughput and establish feasibility on the local GPU.
|
| 332 |
- Complete controls, development selection, paired confirmations and a reproducible report.
|
|
|
|
|
|
| 330 |
- Verify the scalar objective and its training gradient on analytical functions and a small Transformer.
|
| 331 |
- Train the pilot, publish throughput and establish feasibility on the local GPU.
|
| 332 |
- Complete controls, development selection, paired confirmations and a reproducible report.
|
| 333 |
+
- [ ] Test whether adding the third-derivative penalty late in Hessian-trace training helps the model stay in a wider low-loss region. [Exploratory plan and rationale](reports/plan.md#late-third-derivative-regularization)
|
research/reports/plan.md
CHANGED
|
@@ -13,3 +13,13 @@ The study asks whether penalizing variation in token-loss curvature improves pre
|
|
| 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
|
| 17 |
+
## Late third-derivative regularization
|
| 18 |
+
|
| 19 |
+
- [ ] Preregister a TinyStories follow-up. Train first with next-token loss plus the signed Hessian trace. At a prespecified token count, keep the trace active and gradually increase the coefficient of the existing squared third-derivative penalty. Specify the ramp and its final strength before comparing runs. [Current run matrix](planned-runs.md)
|
| 20 |
+
|
| 21 |
+
**Rationale.** Near a smooth minimum, the trace favors low average curvature. If curvature starts changing faster as weights move toward the edge of a flat region, the third-derivative penalty grows and its gradient can oppose that movement. Delaying the penalty gives the trace time to act and saves the early fourth-derivative computations. A stronger trace alone could explain any benefit. For $L(w)=w^4$, the two penalties are proportional and can produce exactly the same pull. In a related CIFAR-10 experiment, switching from SGD to sharpness-aware minimization late gave nearly the same test error as using it throughout. [Worked examples](../docs/third-derivative-penalty.md#when-can-the-penalty-favor-a-wider-minimum) 路 [Zhou et al., Figure 1](https://proceedings.iclr.cc/paper_files/paper/2025/file/35d5ad984cc0ddd84c6f1c177a2066e5-Paper-Conference.pdf#page=2)
|
| 22 |
+
|
| 23 |
+
**Comparisons.** For each seed, branch from the same trace-trained weights and AdamW state. Continue with trace alone, increase trace alone, or add the third-derivative term. Use the same ramp for both increases. On training batches, match the norm of the extra trace gradient to that of the added penalty gradient before clipping. Compare timing against a fourth run using both penalties from the start. Match initialization, data order and training tokens across runs.
|
| 24 |
+
|
| 25 |
+
**Readouts.** At the switch and at prespecified later checkpoints, perturb the weights both ways along fixed unit vectors. Measure the width between the first points where unregularized next-token loss on fixed training examples rises by a prespecified amount. For each seed, compare the change in median width between arms. If stronger trace preserves as much width, the result weakens the case for a distinct third-derivative effect. Compare held-out development loss at equal tokens to assess prediction separately. [Width definition](../docs/third-derivative-penalty.md#from-a-local-penalty-to-basin-width)
|