Oh crud, I made the front page. It should be obvious that this is junk quality as a language model. But it's a cool example of the equivalence between compression codes and probability distributions, so I hope people find it interesting for that reason. You can also get a bit of an intuitive sense for the patterns that gzip and bzip2 pick up on in text (they like repetitive strings).
Repeating this experiment with a more optimal compression algorithm might be interesting too.
Ziplm: Gzip-Backed Language Model
51–59 of 59 posts
Re: Ziplm: Gzip-Backed Language Model
#52Earlier quoted context omitted.
Strong disagree. In AI, many cool ideas blow up when meeting anything close to real world inputs.
That is the perfect attitude for you then. Please ignore this toy and use only the Webscale tech blessed by google.
Re: Ziplm: Gzip-Backed Language Model
#53Earlier quoted context omitted.
Repeating this experiment with a more optimal compression algorithm might be interesting too.
If I understand it correctly, this implementation re-compresses the prefix 256 times, once for each possible byte continuation. It should be possible to save a lot of work by saving the state of the compressor just before the predicted byte, and reusing it. Also, since gzip works on a limited sliding context window, it's probably pointless to give it a prefix much longer than the window... unless there's something ab…
Re: Ziplm: Gzip-Backed Language Model
#54Compression can also be used as "machine learning method": but all data vectors with the same class label into a separate bucket; any new, unseen and unlabeled data item can be added to each bucket. The most likely class is the one the bucket of which grows the least when compressed after adding it. The University of Waikato group (Ian Witten and co-workers) did a fair amount of that kind of work, perhaps first, e.g. Frank, Eibe, Chang Chui and Ian H. Witten (2000) "Text categorization using compression models", https://www.cs.waikato.ac.nz/~eibe/pubs/Frank_categorization... - yes, published 23 years ago!).
Re: Ziplm: Gzip-Backed Language Model
#55This is a nice application of the idea that understanding and compression are equivalent, which is the inspiration behind the Hutter prize (500 K€ for whoever can compress Wikipedia best, see http://prize.hutter1.net/ - the current state of the art is about 15 MB). Compression can also be used as "machine learning method": but all data vectors with the same class label into a separate bucket; any new, unseen and unla…
Re: Ziplm: Gzip-Backed Language Model
#561. Schmidhuber's classical work applying a time-based Kolmogorov complexity to neural nets
https://pubmed.ncbi.nlm.nih.gov/12662875/
2. Applying a form of Kolmogorov complexity to learn formal languages using RNNs
https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00489...
3. Hinton and Van Camp - Keeping the neural networks simple by minimizing the description length of the weights
Re: Ziplm: Gzip-Backed Language Model
#57This is a nice application of the idea that understanding and compression are equivalent, which is the inspiration behind the Hutter prize (500 K€ for whoever can compress Wikipedia best, see http://prize.hutter1.net/ - the current state of the art is about 15 MB). Compression can also be used as "machine learning method": but all data vectors with the same class label into a separate bucket; any new, unseen and unla…
(small correction: the current record is 115MB, not 15MB)
Re: Ziplm: Gzip-Backed Language Model
#58Oh crud, I made the front page. It should be obvious that this is junk quality as a language model. But it's a cool example of the equivalence between compression codes and probability distributions, so I hope people find it interesting for that reason. You can also get a bit of an intuitive sense for the patterns that gzip and bzip2 pick up on in text (they like repetitive strings).
I think it is a cool 'tangible' demo of how non-human readable data remains learnable for ML purposes. I've recently tried using Nilsimsa and sdeep hashes to reduce the input dimensionality of natural text, with some loss in accuracy on similarity tasks. A combination of byte-pair encoding and local-sensitive hashing might prove a more stable combination. Throw some gzip function that way and we may be able to reduce…
Re: Ziplm: Gzip-Backed Language Model
#59Oh crud, I made the front page. It should be obvious that this is junk quality as a language model. But it's a cool example of the equivalence between compression codes and probability distributions, so I hope people find it interesting for that reason. You can also get a bit of an intuitive sense for the patterns that gzip and bzip2 pick up on in text (they like repetitive strings).