∂3 Repository ↗

Third derivatives in
language-model training

Does penalizing changes in loss curvature improve next-token predictions? Compare ordinary training, Hessian-trace regularization, and a third-derivative penalty at equal training tokens.

Read the preregistration
Completed runs—
Training tokens logged—
Recorded training time—
Loading the study ledger…

Training curves

One trajectory per run

Development curves use fixed probe windows. Completed-run tables show full development scores. The raw run logs retain every observation.

Run ledger
Measurements from runs matching the filters
RunMethodSeedRatioTokensDev NLLTest NLLTokens/sPeak MiBStatus

Paired evidence

The registered comparison uses held-out loss at equal training tokens. A negative difference favors the third-order objective. Both baseline comparisons must pass the corrected sign tests.

Output examples

Fixed development prompts

The Hessian describes local loss curvature. Its derivative describes how that curvature changes as weights move. Two independent random sign vectors estimate the squared size of all third partial derivatives, including interactions between weights.

TinyStories full-weight training and Pythia QKV adaptation feed next-token cross-entropy, a Hessian contraction, a third derivative and the regularized objective.