Rate–Distortion and the Information Bottleneck

On this page

Compression need not preserve every detail. First specify which differences are acceptable; then ask how many bits the remaining information requires.

From exact reconstruction to useful omissions

Source coding in Chapter 3 required lossless reconstruction. Channel coding in Chapter 4 added redundancy against transmission noise. Here the application itself permits errors: how does that change the compression limit?

Image and audio compression may discard perceptually less important details; a classifier may ignore irrelevant backgrounds. What is safe to discard depends on the task. A nearly invisible pixel change can still affect measurement or recognition. Define distortion before assuming that discarded information has no value.

The minimum in R(D): choosing a reconstruction law

Let be a source symbol, its reconstruction, and the cost of a reconstruction. For an i.i.d. source and additive per-symbol distortion, the rate–distortion function gives the asymptotic minimum rate under an average-distortion constraint:

The optimization ranges over the entire conditional reconstruction distribution. The budget limits average error without specifying how errors occur. Two reconstruction laws can have the same distortion but retain different amounts of source information. The minimum picks the least informative feasible law. Units are bits per source symbol; the single-letter expression characterizes a long-block limit, not the literal output length of a symbol-by-symbol compressor.

Under this standard setup, is nonincreasing and convex. Relaxing the constraint enlarges the feasible set, so the optimum cannot rise. Time-sharing between two codes on different portions of a long sequence gives the intuition for convexity.

R H(X) 0 D₀ D Achievable R(D)

The shading marks the asymptotically achievable region, with the blue curve as its lower rate boundary. At a fixed distortion budget, moving upward allows a higher rate; moving below the curve is unattainable.

This schematic assumes finite discrete alphabets and distortion that vanishes only for exact reconstruction. Then . For a continuous Gaussian source with squared error, ; differential entropy cannot replace the discrete endpoint.

The zero-rate endpoint is equally concrete. Define

At , a decoder can always output one constant and meet the budget without receiving a message. Thus .

Why are random flips wasteful even at the same 20% error rate?

Take and Hamming distortion: one for an error, zero otherwise. With binary entropy ,

Independently flipping with probability gives the required error rate. But its mutual information is , usually above the bound. At , it still carries some source information, whereas always outputting zero already meets the same error budget with no information at all.

Preparing the visual
Why optimize reconstruction at the same distortion?

Fix a binary source with 80% zeros. Optimal reconstruction and independent flips have the same error rate but different mutual information. An entropy strip separates retained information from residual uncertainty.

Why is the blue bound attainable? Define the error variable . For ,

Hence . To achieve equality, construct the joint law backwards: draw and independent , then set . Keeping the source marginal at 0.2 requires

This joint law has the required source distribution and distortion, and achieves the lower bound. Independence is between error and reconstruction, not error and original input. That distinction explains the two curves.

The information bottleneck: preserve the task, not every input detail

Rate–distortion starts with a chosen . Representation learning often cares about a label instead of reconstructing every detail of . The information bottleneck fixes and chooses a stochastic encoder :

The first term measures retained input information; the second rewards retained task information. Larger places more weight on the task. Compression here means mutual information, not vector dimension or file size. A low-dimensional continuous vector does not automatically carry little mutual information.

X T Ŷ 0 1 2 bit 1 bit 1 bit

This uses the color/shape example below: four equiprobable inputs, independent color and shape, and a task that identifies color alone. The two shapes merge into one representation per color, reducing 2 input bits to 1 bit while preserving exact color prediction.

The joint law is , giving the Markov relation : the encoder only reads the input. The diagram's is the prediction pipeline, with the prediction. These arrows describe different things.

To see which originals become indistinguishable after merging, and why further processing cannot reconstruct them, try the data-processing and reconstruction experiment.

Equal compression can discard entirely different information

Let , where color and shape are independent fair bits, and let . Input entropy is 2 bits; task information is at most 1 bit.

Preparing the visual
What should a compressed representation forget?

Four equally likely inputs combine color S and shape N; the task is Y=S. Switch representations to see which inputs merge, then vary β to compare four bottleneck objectives.

Color alone, , gives . Shape alone, , gives but . Both retain one bit, but only one retains the task. Keeping both gives and is dominated by color's . Merging everything gives , compressing completely while losing the label.

Here and . For , , attained by a constant representation. For , , attained by color alone. At , both are minimizers. This is a tradeoff in an objective, not a theorem that less information always improves generalization.

“Fitting, then compression” is an observation, not a universal law

An information plane locates each layer at . Shwartz-Ziv and Tishby observed fitting and compression phases in particular networks and estimation settings, motivating one perspective on learning.

Movement on that plane does not establish the cause of generalization. Estimates depend on binning, noise, activation functions, and sample size. Deterministic representations of continuous inputs can even have infinite mutual information, so the probability model and estimator must be specified. Later work demonstrated limitations and counterexamples to universal compression claims. IB defines an analyzable objective; it does not prove that every network follows one training trajectory.

InfoNCE learns by distinguishing positive and negative pairs. With joint-distribution positives and appropriately independent marginal negatives, a natural-log loss with total candidates yields

Reducing the loss raises a lower bound; it does not directly measure mutual information. The bound depends on sampling and and cannot exceed . This relates to retaining relevant information, but ordinary InfoNCE has no explicit compression term. Contrastive learning should not all be described as IB optimization.

FrameworkOptimizationWhat defines relevant information?
Rate–distortionMinimize Average distortion at most
Information bottleneckMinimize Mutual information with task labels
InfoNCEMinimize contrastive lossPair construction and its associated MI bound

Next: Information Theory in LLMs.

References

Keywords: rate–distortion, R(D), lossy compression, information bottleneck, mutual information, task-relevant representations, InfoNCE