BurnyCoder commited on
Commit
dedcddc
·
verified ·
1 Parent(s): 413d5e4

Record prospective protocol and scientific references

Browse files
registration/literature-review.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Literature review
2
+
3
+ **Question.** Does explicitly discouraging variation of the parameter Hessian improve out-of-sample next-token predictions? The search covered parameter-Hessian penalties, high-order derivative regularization, tensor norm estimation, automatic differentiation, compact LM benchmarks and public implementations. Input derivatives, optimizer approximations, and parameter-loss derivatives answer different questions.
4
+
5
+ | Source | What it establishes | Decision for this study |
6
+ |---|---|---|
7
+ | [Duchon, 1977, pp. 85–87](https://doi.org/10.1007/BFb0086566) | Integrating sums of squared derivatives gives rotation-invariant roughness functionals. | Apply the local order-three density at training weights. Spline interpolation theorems do not carry over to neural training. |
8
+ | [Lellmann, Morel and Schönlieb](https://www.lellmann.net/work/_media/lellmann_ssvm13.pdf) | Third-order regularizers for reconstructing surfaces use mixed partials. Isotropic smoothing can erase features on their elevation data. | Compare predictive loss independently of any reduction in curvature variation. Their total-variation penalty has a different power and integration domain. |
9
+ | [Liu, Yu and Lin, equations 9–12 and §5.2](https://arxiv.org/pdf/2208.05924) | The paper defines cross-entropy plus a signed Hessian trace and reports WikiText-2 LSTM and GRU experiments. Algorithm 1 uses dense Rademacher probes. The language experiments use the sparsified variant. | Adapt the dense equation to causal Transformers. Published recurrent-model scores are external results. |
10
+ | [Authors’ trace implementation](https://github.com/Dean-lyc/Hessian-Regularization/blob/7d18787b06ba3e7912bf841ea9ebe4505a6191b3/hess.py#L87-L98) | In this public code path the trace is converted to a Python number. Adding it to cross-entropy cannot transmit its parameter gradient. | Test optimizer motion and the penalty gradient. The observation concerns this released implementation path. |
11
+ | [Bujanović and Kressner, especially §3](https://arxiv.org/pdf/2004.06433) | Products of independent sign vectors support unbiased trace estimation with structured probes. The randomness has different concentration properties than a full independent probe. | Unfold the order-three tensor along one index, apply a rank-one probe and square the resulting vector norm. Preserve independent probes and log stochastic variability. |
12
+ | [Wolinski, ECML PKDD](https://ecmlpkdd-storage.s3.eu-central-1.amazonaws.com/preprints/2025/research/preprint_ecml_pkdd_2025_research_332.pdf) | Grouped directional derivatives make higher-order parameter information accessible for optimization. | Compute directional contractions but use their magnitude as a term in the training objective. |
13
+ | [Liu et al., ICML 2023](https://proceedings.mlr.press/v202/liu23ao.html) | Language-model runs can have similar pretraining losses and different downstream behavior. | Limit the main claim to within-domain next-token prediction. |
14
+ | [Dinh et al.](https://proceedings.mlr.press/v70/dinh17b.html) | Reparameterization can alter local geometry while preserving the predictor. | Interpret geometry in the fixed training coordinates. Compare methods within each model stage. |
15
+ | [Eldan and Li](https://arxiv.org/pdf/2305.07759) | Synthetic English stories allow small causal models to exhibit meaningful language behavior. | Use full-weight pretraining with fixed-prompt, uncurated continuations. |
16
+ | [Pythia](https://arxiv.org/pdf/2304.01373), [LoRA](https://arxiv.org/pdf/2106.09685), [Common Pile](https://huggingface.co/datasets/common-pile/arxiv_abstracts_filtered) | An open pretrained decoder, low-rank adaptation and a dated abstracts collection support a second-domain experiment. | Restrict derivatives to the trained QKV adapters. Use first-submission months after the Pythia release. |
17
+ | [Bouthillier et al.](https://proceedings.mlsys.org/paper_files/paper/2021/hash/0184b0cd3cfb185989f858a1d9f5c1eb-Abstract.html), [Lones](https://arxiv.org/abs/2108.02497), [NeurIPS checklist](https://neurips.cc/public/guides/PaperChecklist) | Evaluation needs explicit variability, data isolation, reporting and reproducibility. | Pair seeds, fix the estimand and tuning budget, and report individual runs and both comparisons. |
registration/plan.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Research plan
2
+
3
+ The accepted design is preserved in the [preregistration](preregistration.md) and [run matrix](planned-runs.md). Work proceeds from public registration to source and test publication, analytical verification, development pilots, secondary controls, paired full-budget confirmations, sealed evaluation and reporting. Publish code, raw summaries, model cards and figures throughout. The live dashboard tracks development metrics and exposes checkpoint progress. The paper and interactive explorer will report positive, negative and inconclusive outcomes from the same raw results.
registration/planned-runs.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Planned runs
2
+
3
+ | Stage | Trainable coordinates | Data | Confirmatory target tokens | Effective windows per update |
4
+ |---|---|---|---:|---:|
5
+ | stories | Four causal blocks, width 192, four heads, gated SiLU MLP width 512, tied embeddings and 4,096 tokens | TinyStories | 16,777,216 | 32 |
6
+ | abstracts | Pythia-410M with rank-eight QKV LoRA in every block, scale alpha 16 | 2024 arXiv abstracts | 524,288 | 8 |
7
+
8
+ AdamW peaks at 0.0003 for stories and 0.0001 for adapters, with betas 0.9 and 0.95, weight decay 0.1 on matrices, gradient norm clip 1, 5% warmup and cosine decay to 10% of peak. Use full-precision parameter derivatives and eager attention. Physical microbatching can change to fit GPU memory while preserving the effective batch and two-window derivative estimate. Data order and optimizer settings are paired. These are experimental design choices.
9
+
10
+ | Phase | Seed | Arms and budget |
11
+ |---|---:|---|
12
+ | Untrained controls | 0 | Evaluate initial checkpoint and training-token unigram on development text. |
13
+ | Pilot and development | 0 | Run third-order 3% first. Run ordinary AdamW and both derivative baselines on the same initial one-eighth of the stage horizon. Complete the equal 1%, 3%, 10% grid for trace and third order. Measure cost before confirmatory training. |
14
+ | Secondary controls | 0 | Squared Hessian norm at 3%, sign-scrambled third-order update, combined selected trace and third order. Use the development horizon and report them as pilot comparisons. |
15
+ | Confirmation | 1–8 | Ordinary, signed trace, and third order at the selected strength, each at the full stage horizon. |
16
+
17
+ Evaluate seed-paired final test predictions only when the stage has all planned confirmatory checkpoints. Preserve every development candidate. The one-week allocation prioritizes the two registered stages and their controls. The first 14 hours target a real one-seed pilot with its untrained controls. [Protocol](preregistration.md)
registration/preregistration.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Preregistration
2
+
3
+ Libor “Burny” Burian · 25 November 2026 · initial protocol before model tests, inference, or training.
4
+
5
+ ## Hypothesis and estimand
6
+
7
+ 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.
8
+
9
+ 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)
10
+
11
+ ## Design and isolation
12
+
13
+ - 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.
14
+ - 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.
15
+ - 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.
16
+ - 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.
17
+ - 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.
18
+ - 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.
19
+
20
+ ## Checks and reporting
21
+
22
+ 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)
registration/progress.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Progress
2
+
3
+ The literature review, state-of-the-art comparison, preregistration and run matrix are ready for their initial public timestamp. Implementation, correctness checks, pilot timing, training and evaluation follow. Training time estimates will use measured GPU throughput. Monitor expected durations above 10, 30 and 60 minutes at intervals of 5, 15 and 30 minutes respectively.
registration/state-of-the-art-review.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Comparison with existing methods
2
+
3
+ The nearest published language experiment found in this review is Hessian-trace training of recurrent models. Its scalar regularizer measures signed curvature along coordinates. A Hessian with changing entries can have constant trace. Squared Frobenius penalties on the Hessian and on its derivative therefore supply important controls. [Hessian objective and experiments](https://arxiv.org/pdf/2208.05924)
4
+
5
+ Noise stability optimization approximates a Hessian penalty by perturbing weights symmetrically and has been studied on multimodal pretraining and chain-of-thought fine-tuning. Expansion through a third-order term in an optimizer or perturbation formula is a different intervention from adding the squared third derivative to the training loss. [Zhang, Li and Ju](https://arxiv.org/pdf/2306.08553)
6
+
7
+ Stochastic Taylor derivative estimators address higher-order differential operators in applications such as physics-informed learning. Their authors discuss limits when differentiating network parameters. We use ordinary compositional parameter autograd and test its fourth-order contribution directly. [Shi et al.](https://arxiv.org/pdf/2412.00088) · [PyTorch autograd](https://docs.pytorch.org/docs/stable/generated/torch.autograd.grad.html)
8
+
9
+ The contribution under test is the particular parameter-space objective in causal LM pretraining and adaptation, with equal-token, method-matched and direction-randomized comparisons. The norm, the sketch and low-rank adaptation each have precedents. The literature reviewed here does not establish a predictive benefit for this combination. [Local roughness](https://doi.org/10.1007/BFb0086566) · [Norm estimation](https://arxiv.org/pdf/2004.06433)