Earlier quoted context omitted.
I think you would get slightly better generations from the model if the input data were tokenized and token IDs were sampled instead.
Possibly. It would definitely make it even slower though. To sample from the model, if you have a prompt/training data c, you have to compute the compressed length of all strings cx for tokens x in your vocabulary. If you have a long prompt c (like 1 million lines of wikipedia) and a big vocabulary of tokens (like 100,000 different words), you're going to have a bad time.
Ziplm: Gzip-Backed Language Model
31–40 of 59 posts
Re: Ziplm: Gzip-Backed Language Model
#32Oh 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).
Re: Ziplm: Gzip-Backed Language Model
#33Re: Ziplm: Gzip-Backed Language Model
#34Perhaps a stupid question, but is this kinda thing related to how Markov chains work?
Reminds me of a mostly joke ruby project I did a decade ago https://github.com/oripekelman/simple_similarity
Re: Ziplm: Gzip-Backed Language Model
#35Earlier quoted context omitted.
Yeah, that paper made me wonder how well gzip would work as a language model so I typed up this thing in a coffee shop
Reminds immediately this famous article by Ted Chiang "ChatGPT Is a Blurry JPEG of the Web " https://www.newyorker.com/tech/annals-of-technology/chatgpt-...
Re: Ziplm: Gzip-Backed Language Model
#36This is a good example of how old methods can be pushed quite far if similar resources were devoted to them. Who knows, they might even posses advantages hitherto unmet due to a lack of exploring at larger scales.
That said, Transformers have a number of practical advantages. The learned projection matrices in attention lend Transformers a dynamic adaptability with respect to learned patterns that help make them programmable by their context, able to work out patterns present in context zero shot and on the fly. gzip based language models will be limited to their dictionary of patterns. The underlying vector space of neural language models also makes semantics more readily learnable (driving novel synthesis such as neologisms and more) while feed forward layers can learn a large range of computations.
http://bactra.org/notebooks/nn-attention-and-transformers.ht...
Re: Ziplm: Gzip-Backed Language Model
#37Re: Ziplm: Gzip-Backed Language Model
#38It should be noted that Moby Dick is (in)famous for its very large and unusual vocabulary. Some lighter reading might yield better results for demonstration purposes. Also, while fairly long for a single novel, the number of words is still minuscule compared to what other LMs are trained on. Using the entire Gutenberg library, or a Wikipedia dump, could improve the quality dramatically. Of course, it doesn't really m…
"An early version of a new project will sometimes be dismissed as a toy. It's a good sign when people do this. That means it has everything a new idea needs except scale, and that tends to follow." [1] [1] http://www.paulgraham.com/greatwork.html
Re: Ziplm: Gzip-Backed Language Model
#39Re: Ziplm: Gzip-Backed Language Model
#40Oh 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).
A maybe dumb question for understanding: does a longer output imply lower probability of the input?