Richard Hoekstra

Reported experiment

A language model with a graph-potential baseline

Paper 4 in the Hodge-Epsilon Program
Richard Hoekstra · April 2026

The implementation builds a weighted byte-context graph on the training partition, fits a vertex potential, and uses the potential of each possible next context as a frozen logit. Two learned components add corrections. Joint training uses next-byte cross-entropy. The fit on the observed graph decomposes an edge field into a gradient and a residual. The learned logits are free to overlap, so the network architecture does not enforce a three-way orthogonal decomposition.

The paper reports 2.87 bits per byte at D=4 on the held-out tenth of a two-million-byte enwik8 prefix. The D=4 ablation reports 3.57 → 3.21 → 2.87 bpb. Using the stated 60,000 and 200,000 parameters, the marginal improvements per million parameters are 0.36/0.060=6.0 and 0.34/0.200=1.7, a ratio of about 3.5 at the rounded precision of the table. This ordering measures incremental gains in one fitted model. The frozen table uses corpus-dependent storage even though it has no gradient-trained weights.

Reported depth sweep

D|V||E|fexactfharmbpbexactbpbtotalparams
23,18934,1360.1870.8134.212.93~260K
313,64275,8810.3110.6893.822.90~260K
427,99795,2550.4720.5283.572.87~260K
538,64588,2320.6330.3673.442.92~260K

Reported graph-energy fractions

Dfharmfexactg(D)
20.8130.1874.35
30.6890.3112.22
40.5280.4721.12
50.3670.6330.58

April manuscript with correction (HTML) · Annotated manuscript (PDF)

Cite this page

Richard Hoekstra. A language model with a graph-potential baseline. https://richardhoekstra.nl/papers/hodge-language-model.html