Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
Chris4KΒ 
posted an update 1 day ago
Post
119
🧠 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 πŸ˜ƒ

This is how it look currenntly

zeroflops_architecture

In this post