No news for once, but an explanation. 3Blue1Brown, the YouTube channel that shows maths instead of explaining it in formulas, published a video about compression on 17 November. The core: a language model that predicts well can also make text very small. Lovely to understand. But to be honest: after watching, you make no different decision, you have no new cost item and you do not work differently. That is why it sits in the course and not in the news.
What the video shows
At its core a language model does one thing: it predicts the next piece of text. At each step it gives a probability for every possible next letter or word piece.
You can use those probabilities to pack text:
- Take the number line between 0 and 1.
- Give every possible next character a slice of that line, as wide as its probability.
- Pick the slice of the character that actually follows, and repeat inside that slice.
- At the end you are left with a very narrow slice. One number from it is enough to get the whole text back.
Whoever receives the number runs exactly the same model and reads the text back step by step. It is called arithmetic coding and it has existed for decades; what is new is how well language models predict.
Why prediction and compression belong together
The better the model predicts, the wider the slice for the right character, and the less you need to store. Better prediction is therefore better compression. That is why some researchers see compression as a measure of intelligence, and why there is a contest like the Hutter Prize, won by whoever gets a piece of Wikipedia the smallest. The video ends with its own reflection on that claim; it remains a view, not a proven fact.
What you do get out of it
One thing to take away: a model is only as good as its predictions in your situation. A model that predicts your jargon, product names and way of writing well gives better answers than a model that does not, however well it scores in a demo.
That is exactly the reason to test a model with your own examples, not with the vendor's. We did that without this video too, but now you know why it works.
Our view: nice to understand what happens under the hood, but it does not need to change how you use AI. Process and your own examples still come first.
This subject touches chapters 4, 9 and 10 of the course AI(l) or nothing. It returns there at a calmer pace.
What you can do with this
Want to know which model fits your work, tested on your own examples? Plan an introduction: half an hour, no sales pitch. Rather read on first? The course AI(l) or nothing is free and starts with the basics.
Written in response to a publication by 3Blue1Brown (YouTube), "This algorithm changed how I think about compression": https://www.youtube.com/watch?v=qbsb9DpdZ6s
S.O.S