Explain why the TinyStories follow-up would delay the third-derivative penalty
Browse files- research/README.md +4 -2
research/README.md
CHANGED
|
@@ -6,9 +6,11 @@ Sepp Hochreiter and J眉rgen Schmidhuber proposed that **among models that fit th
|
|
| 6 |
|
| 7 |
Sankar et al. observed that layerwise traces fell during image-classifier training and tried penalizing them directly. Liu, Yu and Lin drew on a generalization bound for linear classifiers to motivate a stochastic trace penalty and reported WikiText-2 experiments with LSTMs and GRUs. Zhang, Li and Ju paired opposite weight perturbations so the first-order loss changes would cancel, giving them a way to target curvature during GPT-2 fine-tuning for question answering. [Sankar et al., Figure 5 and Table 1](https://arxiv.org/pdf/2012.03801#page=6) 路 [Liu, Yu and Lin, 搂5.2](https://arxiv.org/pdf/2208.05924#page=10) 路 [Zhang, Li and Ju, Table 5](https://arxiv.org/pdf/2306.08553#page=12)
|
| 8 |
|
| 9 |
-
**Why third derivatives?** Two minima can have the same small curvature at the bottom, yet one can steepen much sooner. The third derivatives of next-token loss measure how its Hessian changes as the weights move. The training penalty estimates their sum of squares, so rapid changes of either sign carry a cost. If curvature starts small and changes slowly throughout a neighborhood, the weights can move farther while loss stays low.
|
| 10 |
|
| 11 |
-
The study tests whether this penalty improves prediction on unseen tokens compared with ordinary AdamW and Hessian-trace regularization at equal training-token counts. It trains a TinyStories decoder from scratch and fine-tunes Pythia-410M鈥檚 low-rank attention adapters on research abstracts. [Study design](reports/planned-runs.md)
|
|
|
|
|
|
|
| 12 |
|
| 13 |
## Can the penalty favor a wider minimum?
|
| 14 |
|
|
|
|
| 6 |
|
| 7 |
Sankar et al. observed that layerwise traces fell during image-classifier training and tried penalizing them directly. Liu, Yu and Lin drew on a generalization bound for linear classifiers to motivate a stochastic trace penalty and reported WikiText-2 experiments with LSTMs and GRUs. Zhang, Li and Ju paired opposite weight perturbations so the first-order loss changes would cancel, giving them a way to target curvature during GPT-2 fine-tuning for question answering. [Sankar et al., Figure 5 and Table 1](https://arxiv.org/pdf/2012.03801#page=6) 路 [Liu, Yu and Lin, 搂5.2](https://arxiv.org/pdf/2208.05924#page=10) 路 [Zhang, Li and Ju, Table 5](https://arxiv.org/pdf/2306.08553#page=12)
|
| 8 |
|
| 9 |
+
**Why third derivatives?** Two minima can have the same small curvature at the bottom, yet one can steepen much sooner. The third derivatives of next-token loss measure how its Hessian changes as the weights move. The training penalty estimates their sum of squares, so rapid changes of either sign carry a cost. If curvature starts small and changes slowly throughout a neighborhood, the weights can move farther while loss stays low. [Worked examples and width bound](docs/third-derivative-penalty.md#when-can-the-penalty-favor-a-wider-minimum) 路 [Taylor remainder, equation 22](https://link.springer.com/article/10.1007/s10288-023-00541-9)
|
| 10 |
|
| 11 |
+
The registered study tests whether this penalty improves prediction on unseen tokens compared with ordinary AdamW and Hessian-trace regularization at equal training-token counts. It trains a TinyStories decoder from scratch and fine-tunes Pythia-410M鈥檚 low-rank attention adapters on research abstracts. [Study design](reports/planned-runs.md)
|
| 12 |
+
|
| 13 |
+
**Why add the third-derivative penalty late?** Even a steep valley can have constant curvature. The proposed TinyStories follow-up would first train with the Hessian-trace penalty to favor low average curvature. At a prespecified token count, it would keep the trace active and gradually add the third-derivative penalty. If the weights have reached a flat region where curvature changes faster toward the edge, the new penalty rises as the weights move outward. Its gradient can then oppose that movement. Delaying the penalty also avoids early fourth-derivative computations. If this schedule helps retain a wider region, later checkpoints should tolerate larger weight perturbations than trace-only controls at the same allowed increase in unregularized next-token loss. [Timing controls and width measurement](reports/plan.md#late-third-derivative-regularization)
|
| 14 |
|
| 15 |
## Can the penalty favor a wider minimum?
|
| 16 |
|