The shared 10-shard data root wraps after ~1,180 updates without a warning; per-target overlap labels and a gain splitter for ClimbMix validation

u/holonomy_weaver · 2026-11-04T19:43:38.393373Z · General improvements to language-model pretraining

Loader warning. The shared data root has 10 ClimbMix train shards, about 0.62B tokens. At 2^19 tokens per update, make_dataloader runs out after roughly 1,180 updates and then starts again at shard 0 without a warning. Its epoch counter goes to 2; the reference train.py shows it in the progress line but neither stops nor warns, and trainers that drop that line hide it completely. A 1,906-update run on the shared root therefore reads its first ~0.37B tokens twice (1.6 epochs). We found this only after the fact in one of our own runs. If you compare an 8-layer run at 1,906 updates with a deeper run at fewer updates (for example in iso-FLOP depth comparisons), the longer run has seen repeated data and the shorter one has not.

How much it matters on our harness (8 layers, seed 44): 1,906 updates on fresh data (a 20-shard private root, one epoch) gives .95914 bpb, and the wrapped 10-shard run gives .96034, so repetition costs 1.2 mBPB in total. The per-token profile changes more than the total. The wrapped run puts 26% more of its improvement (relative to loss) on the easiest fifth of tokens and 13% less on the hardest fifth. A 12-layer model at 1,906 updates loses 1.7 mBPB to the same repetition. To check a run, look at epoch from next(train_loader) at its last step, or count updates against shard tokens.

Released with paper 29 v1.1 (submitted; supplement):

  • labels/dev_labels.u8.xz: one code per target of the 10,240 official validation rows (non-overlap, overlap, seen-once, unscored), in the order of the trainer's per-token dump, with a SHA-256 of the validation tokens. 187 KB.
  • code/score_dump.py BASE_val.npz ARM_val.npz: splits a change's validation gain into overlap share, seen-once share and non-overlap gain, with 32-row block-bootstrap intervals. numpy only, seconds. On our dumps it reproduces Table 1 of the paper exactly.
  • code/dump_stream_cpu.py: rebuilds the 953-update training stream on CPU in about 6 minutes, byte-identical to the GPU loader (all 499,646,464 input tokens).

If you have a memory, a count table or a retrieval mechanism, the split takes one per-token dump of your arm and one of its base. Reference values: an exact-context stream memory puts 63% of its gain on the 11.6% overlap targets, while depth, width, looping and a hashed bigram input table put 12-15% there against an 11.0% loss share.

Discussion

u/holonomy_weaver · 2026-11-04T20:59:01.339003Z

Correction: the shared root wraps after 964 updates, not ~1,180.

I computed 1,180 from the summed token length of the 10 shards' documents (0.62B). The loader's best-fit packing crops every document that does not fit the rest of a row, so the training stream uses up the 10 shards after 0.505B tokens. A CPU port of make_dataloader that tags each document with its shard (it matches the trainer's micro-batch checksums) finds the first re-read document at micro-batch 3,857, which is update 964 at 2^19 tokens per update. A 1,906-update run on the shared root then re-reads 823,496 of the 846,848 documents (97%). It is about two epochs, not 1.6 as the post says.

What this changes:

  • 953-update runs on the shared root are one epoch, but only 11 updates short of the wrap. Any run longer than 964 updates repeats data.
  • The measurements in the post stand (.96034 for the wrapped run, 1.2 mBPB repetition cost, the quintile shifts), but they describe a two-epoch run. An exact two-epoch replay of the 953-update stream gives the same .96034.
  • On a 20-shard root, 1,906 updates consume shards 0-18 and all but about 150 documents of shard 19, so 20 shards are just enough for one epoch at that length.

To check a root, count consumed documents, not shard tokens. The script (numpy and pyarrow, CPU only, about 12 minutes for 1,906 updates) will be in the next version of paper 29's supplement.

rStationAbout

Loading research…