|
Download research/reports/preregistration.md from BurnyCoder/thirdloss-study: direct link, hf CLI and curl.
- Browser
- Download file 5.23 kB
-
https://huggingface.co/BurnyCoder/thirdloss-study/resolve/fd39b01d0ace3e77da898d87d6434e4e2ece4abb/research/reports/preregistration.md
- Command line
-
hf download hf://BurnyCoder/thirdloss-study@fd39b01d0ace3e77da898d87d6434e4e2ece4abb/research/reports/preregistration.md
-
curl -L -o preregistration.md https://huggingface.co/BurnyCoder/thirdloss-study/resolve/fd39b01d0ace3e77da898d87d6434e4e2ece4abb/research/reports/preregistration.md
5.23 kB
| # Preregistration | |
| Libor “Burny” Burian · 25 November 2026 · initial protocol before model tests, inference, or training. | |
| ## Hypothesis and estimand | |
| At equal target-token counts, third-order regularization lowers held-out negative log-likelihood per valid target token against both cross-entropy alone and signed Hessian-trace regularization. Full-weight pretraining is primary. Adapter training is a separately reported replication. Use each final scheduled checkpoint. The population for seed-level inference is repeated initialization, data order and probe randomness on the frozen corpus. | |
| Let L be unregularized minibatch mean cross-entropy, H its parameter Hessian and T its third derivative. For independent iid unnormalized Rademacher vectors u and v, r[k] = sum(i,j) T[i,j,k] u[i] v[j]. Taking the expectation of the squared vector norm leaves only terms with matching i and j, hence E||r||² = sum(i,j,k) T[i,j,k]². Differentiate this nonnegative estimate through r. It targets the expected squared norm of the **two-window minibatch** tensor. Fix the sample size because squaring and averaging over documents do not commute. With independent Bernoulli gates of probability 1/8, multiplying active penalties by eight preserves their expectation before optimizer clipping. [Rank-one probes](https://arxiv.org/pdf/2004.06433) | |
| ## Design and isolation | |
| - Stories use up to the first 160,000 source training records, a deterministic approximately 2% document-hash development split, and the original official validation documents as a sealed test. Abstracts use base arXiv identifiers first submitted in January–April 2024 for training, May for development and June for testing. Drop empty texts, exact normalized duplicates, and audit near duplicates using word shingles. Keep evaluation documents in preference to training duplicates. Tokenize after splitting. Record revisions, counts, checksums, parameters and residual contamination limitations. | |
| - Use 128 prediction targets per window. Freeze a train-only 4,096-token BPE for stories. Use the pretrained tokenizer for abstracts. Match initial parameters, order, effective batch, learning schedule, gate draws and token horizon within a stage. Draw two windows from the current batch for each active update and use independent RNG streams for probes and sham signs. Report all prompts and continuations. Evaluate development during training. | |
| - Use pilot seed 0. Calibrate strength on 16 training batches at its shared initialization using the median ratio of ordinary gradient norm to unweighted penalty-gradient norm. Try ratios 0.01, 0.03 and 0.10 equally for the Hessian and third-order arms. Select lowest development NLL at the common development horizon with smaller ratio on a tie. Freeze coefficients before any confirmatory test. Combined uses the separately selected coefficients. Sham uses the selected third-order coefficient. Squared-Hessian control uses the same calibration rule. | |
| - Use eight matched confirmatory seeds 1–8 per stage. Test the final checkpoints after each stage’s complete confirmatory training matrix is frozen. A stage-level one-sided exact paired sign test asks whether the probability of a lower NLL exceeds one half, excluding ties. Holm-adjust the two primary p-values at 0.05. Both must pass for success. Report individual paired deltas (third minus comparator), their median and distribution-free order-statistic interval with coverage of at least 95%. A stage with a missing pair is descriptive until completed. A reliably worse comparator difference contradicts the directional claim for that comparison. Mixed or imprecise results remain inconclusive. | |
| - Secondary outcomes are token accuracy, perplexity from corpus NLL, matched elapsed-training-time development NLL, token throughput, peak allocated VRAM, penalty values, and fixed-prompt continuations. Use the latest recorded checkpoint at or before the shortest final training time for each seed. Do not select by test NLL. Interpret the two stages separately because tokenization and trainable coordinates differ. | |
| - Report numerical failures, retries, stalled learning, and protocol amendments with dates and commits. An implementation defect triggers revalidation and rerunning affected arms. A time or memory limitation is a reported feasibility outcome. Any budget revision is explicitly exploratory unless separately preregistered before testing. Preserve the requested confirmatory horizons. | |
| ## Checks and reporting | |
| The quartic objective must give penalty 576x² and gradient 1152x. The pure mixed cubic xyz must average to six. Verify a tiny float64 Transformer against dense third partials, finite differences of the penalty, and a real update. Check that the signed trace retains gradients, sham signs preserve magnitudes, ordinary training is identical for a zero coefficient, and a resumed run recovers the uninterrupted data and probe streams. Record GPU throughput and memory before opening either test. [Hessian paper](https://arxiv.org/pdf/2208.05924) · [Reference code](https://github.com/Dean-lyc/Hessian-Regularization/blob/7d18787b06ba3e7912bf841ea9ebe4505a6191b3/hess.py#L87-L98) · [Analysis principles](https://arxiv.org/abs/2108.02497) | |