Reported experiment
A language model with a graph-potential baseline
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| | fexact | fharm | bpbexact | bpbtotal | params |
|---|---|---|---|---|---|---|---|
| 2 | 3,189 | 34,136 | 0.187 | 0.813 | 4.21 | 2.93 | ~260K |
| 3 | 13,642 | 75,881 | 0.311 | 0.689 | 3.82 | 2.90 | ~260K |
| 4 | 27,997 | 95,255 | 0.472 | 0.528 | 3.57 | 2.87 | ~260K |
| 5 | 38,645 | 88,232 | 0.633 | 0.367 | 3.44 | 2.92 | ~260K |
Reported graph-energy fractions
| D | fharm | fexact | g(D) |
|---|---|---|---|
| 2 | 0.813 | 0.187 | 4.35 |
| 3 | 0.689 | 0.311 | 2.22 |
| 4 | 0.528 | 0.472 | 1.12 |
| 5 | 0.367 | 0.633 | 0.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