53 points · by tosh · 6y ago · 61 comments
The hutter prize has the advantage it gets more input, but the disadvantage that you must include the uncompression program (GPT2 is huge, so you wouldn't want to include it).
Does this mean that as the model evolves (I assume it's not static) there could be a chance of decompressing a blob of text and having it say something different to the original?
In the future, my guess is that (some) compression protocols may end up pretty static, and mainly consist of a simple message protocol and a way to check that you've got the correct version of the model for the messages you want to decompress.
Anyone who has been through elementary school should understand this is the basic objective of a "short answer" question. Also "Jeopardy" is a fair example of this.
Why? It is static.
But as someone interested in the guts, or understanding how to implement new types of systems, it can be quite overwhelming!
Arithmetic coding with LM conditioned probability has been done before and it's not a particularly complex idea to implement, I don't think it is critical that the code be released.
> We definitely need non-academic, non-Python machine learning implementations
There are two things here: training and serving/inference. We already have non-Python implementations for the latter and I don't think we're in "definite" need of the former.
Alas, its arithmetic coder isn't bijective-- so you can't just decompress encrypted input back into english.
Dictionaries are non-linear functions.
> This compressor gets compression levels which are unachievable with a dictionary.
I don't see why this is the case, care to elaborate?
OP calls it a lossless encoder. What makes you say it's not bijective?
Here's an example of a bijective compression system—one of the first AFAIK:
Are there any compression methods based on this? E.g. a browser or OS that ships with huge lists of common words and sentence fragments?
A few months ago I was looking for strings in random binaries and was very confused when I found that my Node.js binary came with tons of fragments of English and HTML. I looked through the Node.js source on GitHub and was horrified when I didn't see any of the text, so I compiled it from scratch and breathed a sigh of relief when my new binary included the text fragments.
Turns out Brotli was included as a dependency, and it ships with a list of common fragments that are frequent enough that they justify hardcoding.
How big? I know from coding word games that typical English word dictionaries only take up around 3MB example.
Language models, among which GPT-2, do essentially the same: they learn what is likely to appear in the text, albeit in a much more elaborated way.
Consider the compression ratio for such text, and you need 2-word / 3-word to 1000-word dictionary, and at 1000-word length, it will be very sparse. I would guess an accelerated structure for such lookup would take around 60GiB. It would require quite a bit of engineering to get it right otherwise can easily blow-up pass that.
https://robots-everywhere.com/re_wiki/pmwiki.php?n=Main.Word...