|
Download research/reports/amendments/checkpoint-flatness.md from BurnyCoder/thirdloss-study: direct link, hf CLI and curl.
- Browser
- Download file 3.98 kB
-
https://huggingface.co/BurnyCoder/thirdloss-study/resolve/main/research/reports/amendments/checkpoint-flatness.md
- Command line
-
hf download hf://BurnyCoder/thirdloss-study/research/reports/amendments/checkpoint-flatness.md
-
curl -L -o checkpoint-flatness.md https://huggingface.co/BurnyCoder/thirdloss-study/resolve/main/research/reports/amendments/checkpoint-flatness.md
3.98 kB
| # Flatness measurements at saved checkpoints | |
| This secondary description was added after the pilot development scores and early hybrid width measurements were available. The primary endpoint is held-out next-token negative log-likelihood at equal training tokens. The hybrid has a separate registered directional-width endpoint. This extension describes the saved primary checkpoints and preserves both decision rules. [Primary preregistration](../preregistration.md) · [Hybrid preregistration](../hybrid/preregistration.md) | |
| ## What is measured | |
| Flatness here means the distance the trainable weights can move before ordinary next-token loss rises by 0.1 nats per target. The measurements describe the local loss surface at a checkpoint. Establishing that the weights are at a local minimum would also require evidence of stationarity. Absolute widths depend on the weight coordinates. Compare methods within the same architecture and parameterization. [Hochreiter and Schmidhuber](https://people.idsia.ch/~juergen/fm/node1.html) · [Dinh et al., section 2](https://proceedings.mlr.press/v70/dinh17b/dinh17b.pdf#page=2) | |
| Use the selected equal-token pilot checkpoints for AdamW, Hessian trace and third order in each stage, the fitted secondary pilot controls, and the final checkpoints of all three methods for each confirmatory seed. Keep the two stages and the pilot and confirmatory horizons separate. Use the released checkpoint digest and training manifest for each run. These diagnostics use training windows only and run outside the optimizer and the timed training loop. | |
| 1. Reuse the registered two-sided width procedure. Take the first eight training windows from stream seed 88731 and the same 16 unit Euclidean sign directions within a stage. Search both rays from radius 1/8 through 128 and bisect the first observed crossing bracket 12 times. Add the positive and negative distances for each direction. The checkpoint width is the median across directions. Probe all trainable weights for TinyStories and only the LoRA factors for Pythia. Keep the original tensors and verify their digest after restoration. [Width implementation](../../src/thirdloss/width.py) · [Hybrid measurement protocol](../hybrid/preregistration.md) | |
| 2. Measure local Hessian curvature on the first two of those windows at the unperturbed weights in evaluation mode. Reuse eight independently addressed Rademacher probes across matched methods (seed 88731, stream 983, indices 0 through 7). For each unnormalized sign vector z, store zᵀHz/d and ‖Hz‖²/d, with d the number of trainable coordinates. Report the mean of the first quantity and the square root of the mean of the second. These estimate mean signed curvature and root-mean-square curvature respectively. Opposite curvature signs can cancel in the trace. Use float64 for Hessian products, on the GPU for the small model and on the CPU for the larger adapter model. [Trace estimation](https://arxiv.org/pdf/2010.09649) · [Precision verification](adapter-precision.md) | |
| 3. Give the number of independent training seeds, the median and observed range of seed widths, the middle half of the 16 directional widths at each checkpoint, and the count of rays reaching the search limit. Use linearly interpolated empirical quartiles. A right-censored radius keeps its known lower bound and an open upper bound. Propagate bounds through the order statistics. Fixed directions and individual rays describe geometric variation. Use independent seeds as the sampling units for paired inference. [Registered analysis](../hybrid/preregistration.md) · [Paired study design](../preregistration.md) | |
| Larger widths indicate greater tolerance to these perturbations. Smaller RMS curvature indicates less local bending on the measured batch. The signed trace can be small because eigenvalues cancel. Assess any predictive benefit with held-out NLL. No additional superiority claim or hyperparameter decision uses these descriptive measurements. | |