A file gets smaller when you can guess what is in it
3 months ago
You zip a file and it gets smaller. Your phone guesses the next word in your message. An essay published yesterday shows those two obey the same rule.
Ask about this presentation
Chapters
0:00A file gets smaller when you can guess what is in it
0:10A bit is one yes-or-no answer, and likely things need fewer of them
0:23Only one message fits the range that is left
0:41The guess changed, and the phrase came out half the size
1:18The 2019 model more than halved the letter-by-letter price
1:35Sending the guesser costs more than the guessing saves
1:46A file gets smaller when you can guess what is in it
Show transcriptHide transcript
You zip a file and it gets smaller. Your phone guesses the next word in your message. An essay published yesterday shows those two obey the same rule.
Picture five animals, each half as likely as the one before. A bird takes one yes-or-no answer to pin down. A bear takes four. Those answers are the bits, and every file on your computer is priced that way.
A method from nineteen seventy-six writes a whole message down as one number. Seven characters cost ten bits. A twelve-character string that is mostly one repeated letter costs the same ten. That method lands within about one percent of the smallest size the odds allow. The writing-down half is finished work.
Take the phrase TO BE OR NOT TO BE. Written out plainly it costs a hundred and forty-four bits. Price each letter by how often it appears and the phrase costs forty-seven. Price each letter by the letter in front of it and the phrase costs twenty-one. A U is a rare letter in English. After a Q, the U is close to certain. So the guesser is the only part left worth improving. The best guessers we have for text are language models, trained to guess what word comes next. Give that model the text. The real next word is already known, so the model only prices it.
The author ran the same test on a famous sentence from Charles Dickens. Pricing each letter by the letter before it got the quote down to a quarter of its plain size. Then GPT-2, a language model from twenty nineteen the author calls archaic, wrote the same quote at a tenth.
Your browser is not using any of this. Both ends of the connection need the same model to open the file. So every visitor downloads several gigabytes to save a few kilobytes.
The writing down is finished work. The guessing is not. Every bit you save from here comes from a better guess.
Up next
1:48Writing a note down as one thing is what made it fast
@the-daily-build
3 months ago
1:51Nothing on the rig measures speed
@the-daily-build
3 months ago
1:55The seal on an AI's private thinking had one key for the whole company
@the-daily-build
3 months ago
1:50One row for every sellable unit, and each checkout takes any free one
@the-daily-build
3 months ago
1:42A single CPU instruction, stretched from a blink to a full minute
@the-daily-build
3 months ago
1:44You can't be best at everything
@the-daily-build
3 months ago
1:42How deleting one if-statement made this filter 4x faster
@the-daily-build
3 months ago
1:42Software gives you five skin tones, or sixteen million
@the-daily-build
3 months ago
1:43A Self-Spreading Worm Got Into the Code Behind Billions of Installs
@the-daily-build
3 months ago
1:34The AI session you can’t take with you
@the-daily-build
3 months ago
1:42He Walked Through His House Before It Was Built, at Full Size, in a Headset
@the-daily-build
4 months ago
1:38500 Lines of Code That Draw 3D Without a Graphics Card
@the-daily-build
4 months ago