Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Good enough with fewer bits
A photo from Mars doesn’t need every grain of sand perfectly reproduced, just good enough for scientists to see the rocks. The fewer details you keep, the fewer bits you send. Rate–distortion theory gives the exact trade-off: for any amount of allowed error (distortion), it tells you the smallest number of bits (rate) any compressor could ever use.
Orbiters and rovers send lossy-compressed images and spectra, because downlink is the bottleneck. Rate–distortion theory tells you how close a compressor is to optimal and how to split bits between bands. It’s also the theory behind learned neural codecs and the β-VAE.
- 1. Allowing more distortion means you need…
- 2. Perfect (lossless) reconstruction of a discrete source needs…
- 3. Lossless coding of a continuous-valued signal needs…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The rate–distortion function
Pick a distortion measure (Hamming, squared error, …). Then
Shannon’s rate–distortion theorem says rates above are achievable at distortion with long block codes, and rates below are not.
Two key results
- Bernoulli(p), Hamming distortion: for , and 0 beyond.
- Gaussian , squared error: for . Equivalently : each bit buys 6.02 dB.
- 1. Gaussian, σ² = 1, D = 0.25: R =
- 2. Each extra bit reduces Gaussian MSE by a factor of…
- 3. Fair coin with allowed bit error D = 0.11: R ≈
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Parallel Gaussian sources: reverse water-filling
For independent components with variances and total distortion :
Components weaker than the water level get zero bits. This is why transform coders (DCT, wavelets, KLT/PCA) work: decorrelate, then spend bits only on high-variance coefficients.
Computing R(D): Blahut–Arimoto
Alternate between and . Each slope gives one point on the curve.
Practical quantizers vs the bound
- Lloyd–Max (fixed rate): at 1 bit, vs . The gap grows at higher rates.
- Uniform quantizer plus entropy coding: at high rate, a constant 1.53 dB (0.254 bit) gap. Vector quantization closes it.
- 1. In reverse water-filling, a component with variance below θ gets…
- 2. The entropy-coded uniform quantizer's high-rate gap to R(D) is…
- 3. 1-bit Lloyd–Max MSE for a unit Gaussian:
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Gaussian R(D): converse
. Since , the Gaussian maximum-entropy bound gives . With , this yields . ∎
Achievability
Use the “test channel” with and independent. Then exactly. ∎
Bernoulli R(D)
. This is achieved by a backward BSC(D). ∎
Properties
is non-increasing and convex in (convexity of MI in the channel). Its slope is , the Lagrange multiplier in Blahut–Arimoto.
Exercise 3.1: water-filling with variances (4, 1, 0.25) at θ = 1
, so . The rates are bit.
- 1. The Gaussian converse uses…
- 2. R(D) as a function of D is…
- 3. Water-filling (4, 1, 0.25) at θ = 1: total rate =
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Onboard compression: quantizers and band allocation
Imaging spectrometers produce many bands of very different variance. Rate–distortion theory says to decorrelate (PCA/KLT across bands, which CCSDS 122 and 123 approximate with wavelets and prediction), then allocate bits by reverse water-filling. The exercise measures how far practical scalar quantizers sit from . Lloyd–Max is 1.46× at 1 bit and worse at higher rates. Uniform quantization with entropy coding sits a steady 1.53 dB above. Water-filling saves about a third of the bits compared with an equal per-band rate.
Rate–distortion in AI, robotics and aerospace
- Learned image compression: an encoder, a quantized latent and an entropy model trained on (Ballé, Laparra and Simoncelli, 2017). This is a variational rate–distortion optimization.
- β-VAE: the ELBO’s KL term is a rate and the reconstruction term a distortion. β traces the R–D curve (Higgins et al., 2017; Alemi et al., 2018).
- Communication-limited robotics: how coarsely to quantize maps, poses or features for multi-robot SLAM over bandwidth-limited links.
- Rate–distortion–perception: a third axis for realism in generative codecs (Blau and Michaeli, 2019).
References
- C. Shannon (1959). “Coding theorems for a discrete source with a fidelity criterion.” IRE National Convention Record, 7(4).
- T. Berger (1971). Rate Distortion Theory: A Mathematical Basis for Data Compression. Prentice Hall.
- T. Cover, J. Thomas (2006). Elements of Information Theory, 2nd ed. Wiley. Ch. 10.
- R. Blahut (1972). “Computation of channel capacity and rate-distortion functions.” IEEE Transactions on Information Theory, 18(4).
- S. Lloyd (1982). “Least squares quantization in PCM.” IEEE Transactions on Information Theory, 28(2).
- R. Gray, D. Neuhoff (1998). “Quantization.” IEEE Transactions on Information Theory, 44(6).
- J. Ballé, V. Laparra, E. Simoncelli (2017). “End-to-end optimized image compression.” ICLR.
- A. Alemi et al. (2018). “Fixing a broken ELBO.” ICML.
- Y. Blau, T. Michaeli (2019). “Rethinking lossy compression: the rate-distortion-perception tradeoff.” ICML.
- CCSDS (2017). Image Data Compression, CCSDS 122.0-B-2. Blue Book.