← All IntelIntel / article
Can gzip be a language model?
- Source
- nathan.rs
- Author
- networked
- Date
Context
A small program called GziPT generates text by searching for continuations that compress well. The author's experiment gives a compression algorithm a sample corpus and a prompt, then compares the compressed sizes of possible continuations. Text that resembles patterns already available to the compressor tends to require less storage.
Choosing one character at a time produces too many tied scores, so the program searches ahead through several possible sequences before committing. The resulting sample resembles its source material but is visibly incoherent. It illustrates how compression can provide a prediction signal without demonstrating the language abilities of a modern conversational model.
Terms in this piece · Glossary
- LLM — A large language model — the neural network behind tools like Claude and ChatGPT, trained on huge amounts of text to predict what comes next.
Read the source nathan.rs
Recommended reads
videoCompression at the Edge — Chris Alexiuk, NVIDIAAI Engineer
articleLinear-Time Context Compression with State-Space EncodingMarc Serra Ortega, Andrey Barsky, Carlos Boned Riera, Tom\'as Ockier, Dimosthenis Karatzas- articleBonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprintsimonwillison.net
Comments
Checking sign-in…
Loading comments…