π§ 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 π
Update: models and code are online. enwik8 test, bits per byte (lower is better): β’ 39.5M params: 1.018, and 0.980 with dynamic evaluation (learning while reading) β’ 86.3M params: 1.027 / 0.976 β’ 85.3M without the memory: 1.075 / 0.999 Honest caveat: the tables hold 82M count entries (a 1.1 GB file) on top of the parameters. The memory is built by counting, no gradients, but the model still runs a normal transformer. Model: Chris4K/zeroflops-enwik8-lm Code: https://github.com/Ckal/ZeroFLops-paper