Nice work! The most interesting part to me: the extra loss from repeating data comes mostly from rare tokens. Their embedding rows see the same few contexts every epoch and end up memorizing them.
This points to a tension. A big vocab is great while data is unique: more text per FLOP, and rare rows don't have time to memorize. The scaling laws with vocabulary paper finds the optimal vocab grows with compute but shrinks when data is the bottleneck, "a mechanism to prevent over-fitting" (t.co/Vii8ZpeNCK). Once data starts repeating, though, those same rare rows become the problem.
So my hypothesis: the vocab should shrink as data starts repeating, within a single run. I can imagine two ways to get there ⬇️.
Path 1: a shifting mix of vocab sizes
Proxy Compression (t.co/1wUhWZ8KJd) trains one model on both BPE tokens and raw bytes of the same text, and finds that it learns to align the two views and transfer between them. The same idea may work across vocab sizes: tokenize each sequence at one of several nested vocabs (128K, 64K, ..., just fewer BPE merges), mostly 128K while data is unique, then shift the mix toward smaller vocabs as data repeats.
What I like about it: a repeated document comes back as a different token sequence, so it's closer to a fresh view than a pure repeat. And since " memor" is literally " mem" + "or", with both pieces trained all along, what the big rows learned can flow into the smaller pieces before those rows go cold. Nothing switches abruptly; the model just sees more of views it already knows. Same spirit as unified training (t.co/wJzgUMGm0Q): one evolving mix instead of hard stages.
Path 2: cutting the vocab gradually
Opus 4.7 moved to a much smaller tokenizer (reconstructions suggest about a third of the old vocab), even at ~30% more tokens per text. That makes a small final vocab look worth paying for. Instead of switching in one shot, you could shrink as you train: each time the epoch count doubles, drop the latest BPE merges, which are roughly the rarest tokens.
This one is simpler: one tokenizer at a time, and each cut removes exactly the rows that are starting to memorize. Keeping the first K merges is the same as stopping BPE at K, so every new tokenizer nests inside the previous one and the cuts stay clean.
I think Path 1 should transfer more smoothly but spends extra FLOPs on smaller-vocab views. Path 2 is cheaper and simpler, but each cut is a small "surprise" to the model.
Curious where this breaks. Anyone tried something like this?
> All of the above is my unverified intuition based on public work, and isn't related to anything I'm working on