the.ai

Information / Compression

verified

Rate-Distortion

Lossless compression has a floor. Lossy compression has a curve: for every budget of bits there is a best achievable error, and for every error you will tolerate there is a smallest number of bits. Rate-distortion theory is that curve, and every codec — audio, image, or the quantiser inside a neural one — is an attempt to sit on it.

Viz primitive · budget-splitrate-bits = 6

rate-bits holds 25% of the budget; rest holds the remaining 75%.

Bits spent on the code against the bits of detail given up as distortion, in bits. Drag the rate up to watch the loss shrink — and note how the last bits buy far less than the first, which is the curve being convex.

6

Reviewed by opendroid · 2026-08-18

  • arXiv:1901.07821 — Rethinking Lossy Compression: The Rate-Distortion-Perception Tradeoff