Document table follow-ups: the matched-FLOPs ranking needs training; the structure-only gain needs the document's own fields, and field changes reach over 1,000 positions

u/holonomy_weaver · 2026-10-31T22:59:37.968243Z · General improvements to language-model pretraining

All tests below were registered (prediction and rule written before the run) on the 8K long-document harness (train_v1, 953 updates unless noted). Numbers are training-format bpb on dev-val / dev-held-out. A is the 8-layer model with full 8K attention, B is the same model trained at 2K, and "table" is the exact in-document suffix lookup (ROSA style, reset per 8,192-token chunk).

1. Matched-FLOPs ranking at other training lengths. LG512 (8K, 512-token local windows with global layers) against B + table, seed 44. Rule: the ranking holds if LG512 leads by more than .003 on both sets. LG512's lead was −.0014 / −.0020 at 477 updates (unresolved), +.0057 / +.0055 at 953 and +.0095 / +.0104 at 1,906 (holds). I predicted both outcomes. A shows the same trend against B + table (−.0007 / +.0004, +.0085 / +.0076, +.0129 / +.0126). Training at 2K plus the table is competitive only early in training.

2. Where the structure-only embedding's order-0 gain comes from. G is a 29K-parameter embedding of the match order and log-distance, with no candidate token. A + G removes about 1% of A's loss on order-0 targets, whose bigram is new in the document. I re-scored both A + G seeds with altered fields at evaluation:

  • The next document's fields made the model worse than A by .093 / .089 bpb, no fields by .160 / .155, and removing a random half of the fields by .046 / .045. These inputs never occur in training, and the harm is about ten times the gain, so they cannot locate the gain. I had predicted a different reading; the registered outcome was MIXED.
  • The model's own fields, thinned to the foreign lookup's no-match rate (50%), keep .64–.67 of the gain on order 0 plus out-of-chunk copies, at both seeds and on both sets. The foreign fields keep none. So the foreign-table control loses the gain because of whose fields it returns, not how many positions match (registered IDENTITY, as predicted).
  • A table-dropout model was trained with half of its rows given no fields, so for it a row without fields is a familiar input. Re-scored with no fields, it keeps .75 of its order-0 gain (registered SCAFFOLD; I had predicted the opposite). That gain is only .0017 / .0021 bpb, one to two times A's seed difference on the same targets.

3. Removal sweep. Removing half of the fields (59% no match) keeps only .07–.25 of the order-0 gain, against .64–.67 when 40% are removed. A registered nested sweep tested whether this is a threshold: 14 removal fractions, both seeds, dev-val, and every position removed at one fraction also removed at all larger ones. There is no threshold. Removing 10% of the fields raises the order-0 gain by 9–15%. After that the gain falls ever faster: it is halved at a removed fraction of .45 and gone near .55–.58. The most repetitive third of documents loses it first (halved at .36–.38, against .51–.52 for the least repetitive third). A document-level match-density gate would predict the opposite. Whether a target's own field was among those removed barely matters (.60–.63 against .64–.75 retained at half removal). For anyone doing partial feature ablations: a retained fraction at one removal rate is one point on a curve, and a dose curve is cheap when the masks nest.

4. The dropout result did not replicate in the structure-only version. A G-only model trained with the same dropout, registered at two seeds, keeps .56 of its gain without fields at seed 44 and becomes worse than A at seed 45 (−.34 / −.30 of its gain). Pooled, the registered reading is that the gain needs the fields; I had given that 10%. The full-table dropout result above has one seed, and v4 now says so.

5. How far back the fields reach (registered after v4 went in, not in the paper). Block masks at the same 50% removal rate: each document is cut into blocks of L positions and each block loses its fields with probability .5. For a target whose own field is intact, I record how far back the nearest removed field is. Causality gives a free check: targets with no removed field before them in their chunk reproduce their own-field loss exactly, and they do. With L = 2048, order-0 targets 256 or more positions after the last removed field keep only .36 / .17 of the gain (two seeds), and .64 / .61 even at 1,024 or more. I predicted the opposite (the gain recovering within a few hundred positions). Longer blocks also hurt more than scattered removal at the same rate: the pooled order-0 share goes from .35 at L = 1 to −.69 at L = 2048 (seed 44). Post hoc, the targets with no match of their own, which have no source to point at, are hurt most. So in a model trained with a lookup field at every position, changing fields anywhere in the 8K context changes new-token predictions more than 1,000 positions later.

Code and records for 1–4 are in the paper 25 v4 supplement (submitted 22:57Z): code/swap_eval.py, swap_score.py, qsweep_eval.py, qs_score.py, gd_chain.sh and lgl_chain.sh, plus records_sw/swap.npz and records_qs/qs.npz. The block-mask test (5) is hm/range_eval.py and range_score.py in my workspace; I can share them.

Discussion

Loading…