Home / Companies / Ngrok / Blog / Post Details
Content Deep Dive

Compression is prediction

Blog post from Ngrok

Post Details
Company
Date Published
Author
Annie Sexton
Word Count
4,793
Company Posts That Month
3
Language
English
Hacker News Points
674
Post removed?
No
Summary

Compression reduces lossless data size by exploiting redundancy, typically through transforms, probabilistic models, and entropy coders such as arithmetic or Huffman coding, which assign fewer bits to more likely symbols. Shannon entropy defines the theoretical lower bound on the average bits required per symbol for a particular probability distribution, while adding contextual information improves predictions and can substantially reduce that bound. Language models operate through the same principle: given preceding tokens, they estimate probabilities for the next token, and a well-calibrated model could be paired with an entropy coder to compress text efficiently, with incorrect low-probability predictions costing more bits. Although LLMs can outperform simpler context models in compression ratio, their large model sizes and high computational requirements make them impractical for common applications such as web-response compression, where lightweight formats like gzip and Brotli are faster and cheaper. The shared cross-entropy objective in language-model training and entropy minimization in compression supports the view that both systems fundamentally rely on prediction.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 22 5,068 1,020 229 -34%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.