π§ ZeroFLops: a byte-level LM whose knowledge lives in swappable counted tables π 27M-parameter transformer + a "hard" memory of counted tables: n-grams up to 16 bytes, word & class tables, document cache, class cache, plus "senses" (scoreboard of who was right lately, page structure). Memory is fed in at the input and again late (gates per position) + an output mixer. π enwik8 test, trained on enwik8 train only: β’ 1.0076 bpc | 0.9740 with dynamic evaluation (silver, 400k steps) β’ tables are memory too β we report params + table entries π¬ Knowledge test (transformer frozen, memory rebuilt): π swap memory to other Wikipedia text: +0.002 bpc π grow it (extra data, separate track): 390 MB β 0.975, 0.942 with dyn eval ποΈ delete a slice from the tables: ~46β53% of what was learned from it is gone (leave-one-out corrected) π web-text domain: web memory 1.347 β 1.297 π΅οΈ liar test: the output mixer drops a lying memory's weight (0.54 β 0.14) β³ Next: gold run (800k steps, silver as teacher, val 1.078 at 120k and falling), round 14 with related-articles memory π, a memory-age sense β and doubt senses π€ Code: github.com/Ckal/ZeroFLops-paper (not all pushed yet) Models: huggingface.co/Chris4K/zeroflops-enwik8-lm Feedback welcome, especially if you think a number is off π Help or ideas are very welcome. I have decisions to make, but I have a plan where to go next π
π§ ZeroFLops update: a small byte transformer that learns whom to trust ZeroFLops gives a byte-level transformer a counted memory: n-gram tables, word tables, a document cache and page-structure "senses", all counted once from the enwik8 training text. No gradients, built in minutes. The transformer learns how to use it. π¦ Only enwik8, no outside data, no pretrained models. π§ͺ This week: 25+ controlled A/B runs (20k-step tests, 2 seeds each, validation set) π― Per-byte gate, "whom to trust here": β0.020 bpc with only 7,000 parameters, and β0.033 when the text has been read many times π§ Page structure + scoreboard senses: β0.005 βοΈ Averaged weights: β0.005 π Class cache: β0.004 π€ 6-byte contexts: β0.003 β Bigger cache, longer history, longer contexts: Β±0. The memory is saturated; the gains come from how it's used. π Recipe total: 1.201 β 1.148 bpc, as much as doubling the training π Looking inside: The model trusts the document cache twice as much when the cache is sure (gate 1.00 vs 0.49). Switching off the late long-context gate costs 0.021 bpc. 62% of the improvement comes from words new to the article, so the transformer does real work, not just copying. π Where we stand (enwik8 test, every byte, 39.5M parameters): 1.018 bpc Β· loss 0.705 Β· perplexity 2.025 0.980 bpc with learning while reading Β· loss 0.679 Β· perplexity 1.972 π Next: the gold run (all winners, about 1.2M steps). My estimates: π― 0.98β1.00 bpc, perplexity β€ 2.0: better than a coin flip per byte π― 0.94β0.96 bpc with learning while reading π For reference: Transformer-XL 277M scores 0.99, and 0.94 with dynamic evaluation Code follows .. if someone is interested π