gzip as a language model: a hands-on demo of the compression-prediction equivalence
CatAstro_Piyush · x · 2026-11-24
Following 3Blue1Brown's video on "intelligence equals compression," a blogger revisits his experiment making gzip do next-token prediction.
- Theory: the bits needed to encode a symbol are -log₂p, so every compressor hides a probability model inside — and every compression algorithm is a prediction model
- Experiment: priming gzip on tiny Shakespeare with no neural network or learned parameters, the model continues prompts by picking byte sequences that compress best — output is incoherent but clearly captures text structure
- Related reading: Ryan Greene's post on compression and intelligence
A hands-on, reproducible demonstration of the information-theoretic compression–prediction equivalence.
More from Research
- VP ≠ VNP claimed: deterministic subexponential algorithm for polynomial identity testing — canondetortugas · 2026-11-24
- Noeri's self-improvement loop: specialized open-weight AIs beat Opus 5.5 and GPT-6.2 at fraction of cost — YejinChoinka · 2026-11-24
- Are we in the cyber-pocalypse yet? Data says not yet, but a tracker is coming — hlntnr · 2026-11-24
- Riemann Hypothesis Lean proof mostly verified; 100+ contributors port it to Lean 4.36 with agent help — jd_pressman · 2026-11-24
- ARLoop: fully-open looped transformer with attention residuals beats Huginn-3.5B at 1.2B params — hhsun1 · 2026-11-24
- Why interpretability lens research is so hard: methodology and ground truth both unsolved — benno_krojer · 2026-11-24