Rate Distortion Theory

Lossy compression — quantization, the rate distortion function for binary and Gaussian sources, reverse water-filling, the converse and achievability proofs, and the Blahut–Arimoto algorithm

· 33 min read · 6,574 words

Motivation: perfection is impossible, so what is the price of imperfection?

differential-entropy established that describing an arbitrary real number requires an infinite number of bits. So a finite representation of a continuous random variable can never be perfect. That is not a failure of engineering; it is a theorem. The only remaining question is: how well can we do?

To ask that properly we must first define what “well” means — the goodness of a representation of a source. That is done by defining a distortion measure, a measure of distance between the random variable and its representation. Then the basic problem of rate distortion theory is:

ImportantThe two equivalent forms of the question

Given a source distribution and a distortion measure:

  • What is the minimum expected distortion achievable at a particular rate?
  • Equivalently, what is the minimum rate description required to achieve a particular distortion?

IntuitionThe elephant and the chicken

One of the most intriguing aspects of this theory is that joint descriptions are more efficient than individual descriptions. It is simpler to describe an elephant and a chicken with one description than to describe each alone — and this is true even for independent random variables. It is simpler to describe X1X_1 and X2X_2 together (at a given distortion for each) than to describe each by itself.

Why don’t independent problems have independent solutions? The answer is found in the geometry. Rectangular grid points — which is what independent descriptions produce — do not fill up the space efficiently. This is the same phenomenon as in the AEP: long blocks buy you something that single symbols cannot, and here the gain is geometric rather than statistical.

NoteWhere this sits in the theory

Rate distortion theory applies to both discrete and continuous sources. The zero-error data compression theory (Chapter 5) is an important special case: a discrete source at zero distortion. So lossless compression is the D=0D = 0 corner of a much larger picture.


Quantization

Before the elegant theory, it is worth seeing how complicated the problem is to solve exactly for a single random variable — which is exactly what motivates going to block lengths.

Let XX be the source and X^(X)\hat{X}(X) its representation. Given RR bits, the function X^\hat X can take on 2R2^R values. The problem is to find the optimum set of values for X^\hat X (the reproduction points or code points) and the regions associated with each.

ExampleOne-bit quantization of a Gaussian

Let XN(0,σ2)X \sim \mathcal{N}(0, \sigma^2) with squared-error distortion. With one bit, the bit should clearly distinguish whether X>0X > 0. To minimize squared error, each reproduced symbol should be the conditional mean of its region:

X^(x)={2πσif x02πσif x<0\hat{X}(x) = \begin{cases} \sqrt{\frac{2}{\pi}}\,\sigma & \text{if } x \ge 0 \\[4pt] -\sqrt{\frac{2}{\pi}}\,\sigma & \text{if } x < 0\end{cases}

With two bits the situation is no longer simple. We clearly want four regions with a representative point in each, but it is no longer obvious what the regions and reconstruction points should be.

ImportantTwo properties of an optimal quantizer

  • Given a set {X^(w)}\{\hat X(w)\} of reconstruction points, distortion is minimized by mapping XX to the closest representation point. The regions so defined form a Voronoi (or Dirichlet) partition.
  • The reconstruction points should minimize the conditional expected distortion over their respective regions — the centroids, for squared error.

NoteThe Lloyd algorithm

These two properties give an obvious iterative algorithm: start with a set of reconstruction points, find the optimal regions (nearest-neighbour regions), find the optimal points for those regions (centroids), and repeat. Expected distortion decreases at each stage, so it converges to a local minimum. This is the Lloyd algorithm (real-valued) or generalized Lloyd algorithm (vector-valued), widely used to design quantization systems.

Note “local minimum” — it is a heuristic, not an optimality theorem, which is another reason to want the theory that follows.

IntuitionWhy we go to blocks anyway

Now take nn i.i.d. Gaussian variables to be represented with nRnR bits. Since the source is i.i.d. the symbols are independent, so it may appear that each element is a separate problem. This is not true. We will represent the entire sequence by a single index taking 2nR2^{nR} values, and this treatment of whole sequences at once achieves a lower distortion for the same rate than quantizing the samples individually.


Definitions

A source produces X1,,XnX_1, \ldots, X_n i.i.d. p(x)\sim p(x). The encoder describes XnX^n by an index fn(Xn){1,,2nR}f_n(X^n) \in \{1, \ldots, 2^{nR}\}; the decoder represents XnX^n by an estimate X^n\hat{X}^n.

flowchart LR
  Xn["X^n"] --> E[Encoder]
  E --> W["f_n(X^n) in {1,...,2^nR}"]
  W --> D[Decoder]
  D --> XH["X-hat^n"]

DefinitionDistortion measure

A distortion function is a mapping

d:X×X^R+d : \mathcal{X} \times \hat{\mathcal{X}} \rightarrow \mathbb{R}^+

from source–reproduction alphabet pairs to non-negative reals. d(x,x^)d(x,\hat x) is the cost of representing symbol xx by symbol x^\hat x. It is bounded if

dmax=maxxX,x^X^d(x,x^)<d_{\max} = \max_{x \in \mathcal{X},\, \hat x \in \hat{\mathcal{X}}} d(x, \hat x) < \infty

In most cases X^=X\hat{\mathcal{X}} = \mathcal{X}.

Distortion measureDefinitionNotes
Hamming (probability of error)d(x,x^)=0d(x,\hat x) = 0 if x=x^x = \hat x, else 1Ed(X,X^)=Pr(XX^)\mathbb{E}d(X,\hat X) = \Pr(X \ne \hat X) — distortion literally is error probability.
Squared errord(x,x^)=(xx^)2d(x,\hat x) = (x-\hat x)^2The most popular for continuous alphabets: simple, and tied to least-squares prediction.

WarningSquared error is often the wrong measure for humans

In image and speech coding, various authors have pointed out that mean-squared error is not an appropriate measure of distortion for human observers. There is a large squared-error distortion between a speech waveform and the same waveform slightly shifted in time, even though both sound identical.

Alternatives exist — the Itakura–Saito distance (the relative entropy between multivariate normal processes) is popular in speech coding. In image coding, however, there is at present no real alternative to mean-squared error. The whole theory is only as meaningful as the distortion measure you feed it.

DefinitionDistortion between sequences

d(xn,x^n)=1ni=1nd(xi,x^i)d(x^n, \hat x^n) = \frac{1}{n}\sum_{i=1}^n d(x_i, \hat x_i)

The distortion for a sequence is the average of the per-symbol distortions.

NoteThis is a choice, not the only option

One might instead measure distortion by the maximum of the per-symbol distortions. The theory below does not apply directly to that more general measure. Averaging is what makes the law of large numbers available.

DefinitionRate distortion code and the two functions

A (2nR,n)(2^{nR}, n)-rate distortion code consists of an encoding function fn:Xn{1,,2nR}f_n : \mathcal{X}^n \rightarrow \{1, \ldots, 2^{nR}\} and a decoding (reproduction) function gn:{1,,2nR}X^ng_n : \{1,\ldots,2^{nR}\} \rightarrow \hat{\mathcal{X}}^n, with distortion

D=Ed(Xn,gn(fn(Xn)))=xnp(xn)d(xn,gn(fn(xn)))D = \mathbb{E}\,d\big(X^n, g_n(f_n(X^n))\big) = \sum_{x^n} p(x^n)\, d\big(x^n, g_n(f_n(x^n))\big)

The nn-tuples X^n(1),,X^n(2nR)\hat X^n(1), \ldots, \hat X^n(2^{nR}) form the codebook, and fn1(1),,fn1(2nR)f_n^{-1}(1), \ldots, f_n^{-1}(2^{nR}) are the assignment regions.

  • A pair (R,D)(R,D) is achievable if there is a sequence of (2nR,n)(2^{nR},n) codes with limnEd(Xn,gn(fn(Xn)))D\lim_{n\to\infty}\mathbb{E}d(X^n, g_n(f_n(X^n))) \le D.
  • The rate distortion region is the closure of the set of achievable pairs.
  • The rate distortion function R(D)R(D) is the infimum of rates RR such that (R,D)(R,D) is in the region.
  • The distortion rate function D(R)D(R) is the infimum of distortions DD such that (R,D)(R,D) is in the region.

The two describe the same boundary; we generally use R(D)R(D).

NoteMany names for X^n\hat X^n

Vector quantization, reproduction, reconstruction, representation, source code, estimate — all refer to the replacement of XnX^n by X^n(w)\hat X^n(w).

The information rate distortion function

DefinitionInformation rate distortion function

R(I)(D)=minp(x^x):(x,x^)p(x)p(x^x)d(x,x^)DI(X;X^)R^{(I)}(D) = \min_{p(\hat x \mid x)\,:\, \sum_{(x,\hat x)} p(x)p(\hat x \mid x)d(x,\hat x) \le D} I(X;\hat X)

minimized over all conditional distributions p(x^x)p(\hat x \mid x) whose joint p(x,x^)=p(x)p(x^x)p(x,\hat x) = p(x)p(\hat x\mid x) satisfies the expected distortion constraint.

ImportantThe exact dual of channel capacity

Compare [[channel-capacity#The channel and its information capacity|C=maxp(x)I(X;Y)C = \max_{p(x)} I(X;Y)]]. Here we minimize II over conditional distributions subject to a constraint, there we maximize II over input distributions subject to a constraint. The structural parallel runs through the whole chapter:

Channel capacityRate distortion
Optimizationmaxp(x)I(X;Y)\max_{p(x)} I(X;Y)minp(x^x)I(X;X^)\min_{p(\hat x\mid x)} I(X;\hat X)
What’s fixedthe channel p(yx)p(y\mid x)the source p(x)p(x)
What’s chosenthe input distributionthe “test channel” p(x^x)p(\hat x \mid x)
Constraintpower / alphabetexpected distortion D\le D
Geometrysphere packingsphere covering
Goalmost codewords that stay apartfewest codewords that cover everything

TheoremThe main theorem of rate distortion theory

The rate distortion function for an i.i.d. source XX with distribution p(x)p(x) and bounded distortion function d(x,x^)d(x,\hat x) equals the associated information rate distortion function:

R(D)=R(I)(D)=minp(x^x):p(x)p(x^x)d(x,x^)DI(X;X^)R(D) = R^{(I)}(D) = \min_{p(\hat x\mid x)\,:\,\sum p(x)p(\hat x\mid x)d(x,\hat x)\le D} I(X;\hat X)

the minimum achievable rate at distortion DD.

NoteOperational versus information definitions, again

Exactly as in channel-capacity, we have an operational definition (the infimum of achievable rates, defined via codes) and an information definition (a minimization over distributions, no codes in sight). The theorem says they coincide, which is why we write R(D)R(D) for both from here on. The converse is in and achievability in .


Calculating R(D)R(D)

Binary source

TheoremRate distortion function for a Bernoulli(pp) source with Hamming distortion

R(D)={H(p)H(D),0Dmin{p,1p}0,D>min{p,1p}R(D) = \begin{cases} H(p) - H(D), & 0 \le D \le \min\{p, 1-p\} \\ 0, & D > \min\{p,1-p\}\end{cases}

ProofLower bound by rewriting the conditional entropy, then exhibit a matching test channel

Assume WLOG p<12p < \tfrac12. Let \oplus denote mod-2 addition, so XX^=1X \oplus \hat X = 1 is equivalent to XX^X \ne \hat X.

Step 1: Lower bound. For any joint distribution satisfying the constraint,

I(X;X^)=H(X)H(XX^)=H(p)H(XX^X^)I(X;\hat X) = H(X) - H(X\mid \hat X) = H(p) - H(X \oplus \hat X \mid \hat X)

The rewriting is the key move: given X^\hat X, knowing XX is the same as knowing the error pattern XX^X \oplus \hat X, so the conditional entropy can be expressed in terms of errors rather than symbols. Then

H(p)H(XX^)H(p)H(D)\ge H(p) - H(X\oplus \hat X) \ge H(p) - H(D)

using conditioning-reduces-entropy, then Pr(XX^)D\Pr(X\ne\hat X)\le D together with the fact that H(D)H(D) increases with DD for D12D \le \tfrac12. Hence R(D)H(p)H(D)R(D) \ge H(p) - H(D).

Step 2: Achieve it with a test channel. Choose (X,X^)(X,\hat X) jointly distributed as a binary symmetric channel with crossover DD running from X^\hat X to XX — note the direction: X^\hat X is the input, XX the output. Choose the distribution of X^\hat X so that the output distribution of XX is the specified one. With r=Pr(X^=1)r = \Pr(\hat X = 1), solve

r(1D)+(1r)D=pr=pD12Dr(1-D) + (1-r)D = p \quad\Longrightarrow\quad r = \frac{p - D}{1 - 2D}

If Dp12D \le p \le \tfrac12 then r[0,1]r \in [0,1] is a valid probability. For this joint distribution I(X;X^)=H(p)H(D)I(X;\hat X) = H(p) - H(D) and the expected distortion is exactly Pr(XX^)=D\Pr(X \ne \hat X) = D.

Step 3: The degenerate range. If DpD \ge p, set X^=0\hat X = 0 with probability 1: then I(X;X^)=0I(X;\hat X) = 0 and D=pD = p, so R(D)=0R(D) = 0. Similarly if D1pD \ge 1-p, set X^=1\hat X = 1.

IntuitionReading the answer

H(p)H(p) is the cost of describing the source exactly; H(D)H(D) is the uncertainty you are allowed to leave behind. The rate is the difference — you pay for what you resolve and get a refund for what you don’t. Once the allowed distortion exceeds the source’s own bias min{p,1p}\min\{p,1-p\}, you can hit the target by saying nothing at all and always guessing the majority symbol, so the rate drops to zero.

WarningWhy should minimizing mutual information have anything to do with quantization?

The calculation above may seem entirely unmotivated. We have minimized an abstract quantity and called the answer a description rate, with no code in sight. The answer to this question must wait for the achievability proof — the coding theorem is what retroactively justifies the whole formulation.

Gaussian source

TheoremRate distortion for N(0,σ2)\mathcal{N}(0,\sigma^2) with squared-error distortion

R(D)={12logσ2D,0Dσ20,D>σ2R(D) = \begin{cases}\dfrac{1}{2}\log\dfrac{\sigma^2}{D}, & 0 \le D \le \sigma^2 \\[6pt] 0, & D > \sigma^2\end{cases}

ProofSame shape: bound via max-entropy, then build the test channel

Step 1: Lower bound. Since E(XX^)2D\mathbb{E}(X-\hat X)^2 \le D,

I(X;X^)=h(X)h(XX^)=12log(2πe)σ2h(XX^X^)I(X;\hat X) = h(X) - h(X\mid\hat X) = \frac{1}{2}\log(2\pi e)\sigma^2 - h(X - \hat X \mid \hat X)

using translation invariance of differential entropy (given X^\hat X, subtracting it is a shift). Then

12log(2πe)σ2h(XX^)12log(2πe)σ2h(N(0,E(XX^)2))\ge \frac{1}{2}\log(2\pi e)\sigma^2 - h(X - \hat X) \ge \frac{1}{2}\log(2\pi e)\sigma^2 - h\big(\mathcal{N}(0, \mathbb{E}(X-\hat X)^2)\big)

by conditioning-reduces-entropy and then the Gaussian max-entropy theorem. Evaluating and using E(XX^)2D\mathbb{E}(X-\hat X)^2 \le D:

=12log(2πe)σ212log(2πe)E(XX^)212log(2πe)σ212log(2πe)D=12logσ2D= \frac{1}{2}\log(2\pi e)\sigma^2 - \frac{1}{2}\log(2\pi e)\mathbb{E}(X-\hat X)^2 \ge \frac{1}{2}\log(2\pi e)\sigma^2 - \frac{1}{2}\log(2\pi e)D = \frac{1}{2}\log\frac{\sigma^2}{D}

Step 2: The test channel. It is more convenient to specify f(xx^)f(x\mid\hat x) — sometimes called the test channel, emphasizing the duality with channel capacity. For Dσ2D \le \sigma^2 choose

X=X^+Z,X^N(0,σ2D),ZN(0,D)X = \hat X + Z, \qquad \hat X \sim \mathcal{N}(0, \sigma^2 - D), \quad Z \sim \mathcal{N}(0,D)

with X^\hat X and ZZ independent. This gives I(X;X^)=12logσ2DI(X;\hat X) = \tfrac12\log\frac{\sigma^2}{D} and E(XX^)2=D\mathbb{E}(X-\hat X)^2 = D, meeting the bound. If D>σ2D > \sigma^2, take X^=0\hat X = 0 with probability 1.

IntuitionThe test channel runs backwards

Notice the direction in both examples: we specify XX as the reconstruction plus noise, not the reconstruction as the source plus noise. The variances split as σ2=(σ2D)+D\sigma^2 = (\sigma^2 - D) + D — the reconstruction captures σ2D\sigma^2 - D of the source’s energy and the remaining DD is exactly the distortion you agreed to tolerate.

FormulaDistortion rate form

D(R)=σ222RD(R) = \sigma^2 2^{-2R}

Each bit of description reduces expected distortion by a factor of 4.

ExampleBlocks beat single-symbol quantization — concretely

With a 1-bit description, the theory says the best expected squared error is σ2/4=0.25σ2\sigma^2/4 = 0.25\sigma^2. Compare the simple 1-bit quantizer from , using the positive/negative half-lines with centroid reproduction points: its expected distortion is

π2πσ2=0.3633σ2\frac{\pi - 2}{\pi}\sigma^2 = 0.3633\,\sigma^2

The rate distortion limit is achieved only by long block lengths. This example shows we can achieve lower distortion by considering several distortion problems in succession than by considering each separately — and it is somewhat surprising, because we are quantizing independent random variables. This is the elephant and the chicken made numerical.

Independent Gaussians: reverse water-filling

The problem. Represent mm independent, not identically distributed sources XiN(0,σi2)X_i \sim \mathcal{N}(0,\sigma_i^2) with squared-error distortion d(xm,x^m)=i(xix^i)2d(x^m,\hat x^m) = \sum_i (x_i - \hat x_i)^2, given RR bits total. How should the bits be allotted?

DerivationReducing to a per-component optimization

I(Xm;X^m)=h(Xm)h(XmX^m)=ih(Xi)ih(XiXi1,X^m)I(X^m;\hat X^m) = h(X^m) - h(X^m\mid \hat X^m) = \sum_i h(X_i) - \sum_i h(X_i \mid X^{i-1}, \hat X^m)

ih(Xi)ih(XiX^i)=iI(Xi;X^i)iR(Di)=i[12logσi2Di]+\ge \sum_i h(X_i) - \sum_i h(X_i\mid \hat X_i) = \sum_i I(X_i;\hat X_i) \ge \sum_i R(D_i) = \sum_i \left[\frac{1}{2}\log\frac{\sigma_i^2}{D_i}\right]^+

using independence of the sources, then conditioning-reduces-entropy, then the scalar Gaussian result. Equality holds by choosing f(xmx^m)=if(xix^i)f(x^m\mid\hat x^m) = \prod_i f(x_i\mid\hat x_i) and each X^iN(0,σi2Di)\hat X_i \sim \mathcal{N}(0,\sigma_i^2 - D_i). So the problem becomes

R(D)=minDi=Di=1mmax{12lnσi2Di,0}R(D) = \min_{\sum D_i = D} \sum_{i=1}^m \max\left\{\frac{1}{2}\ln\frac{\sigma_i^2}{D_i},\, 0\right\}

DerivationLagrange multipliers and the Kuhn–Tucker correction

Construct J(D)=i12lnσi2Di+λiDiJ(D) = \sum_i \tfrac12 \ln\frac{\sigma_i^2}{D_i} + \lambda\sum_i D_i and differentiate:

JDi=121Di+λ=0Di=λ\frac{\partial J}{\partial D_i} = -\frac{1}{2}\frac{1}{D_i} + \lambda = 0 \quad\Longrightarrow\quad D_i = \lambda'

So the optimum allotment gives equal distortion to every component — which is possible only while λ<σi2\lambda' < \sigma_i^2 for all ii. As the total allowed distortion DD increases, λ\lambda' rises until it exceeds some σi2\sigma_i^2, at which point the solution hits the boundary and we need Kuhn–Tucker:

JDi=0 if Di<σi2,0 if Diσi2\frac{\partial J}{\partial D_i} = 0 \text{ if } D_i < \sigma_i^2, \qquad \le 0 \text{ if } D_i \ge \sigma_i^2

TheoremRate distortion for a parallel Gaussian source

Let XiN(0,σi2)X_i \sim \mathcal{N}(0,\sigma_i^2) be independent with d(xm,x^m)=i(xix^i)2d(x^m,\hat x^m) = \sum_i (x_i-\hat x_i)^2. Then

R(D)=i=1m12logσi2Di,Di={λif λ<σi2σi2if λσi2R(D) = \sum_{i=1}^m \frac{1}{2}\log\frac{\sigma_i^2}{D_i}, \qquad D_i = \begin{cases}\lambda & \text{if } \lambda < \sigma_i^2 \\ \sigma_i^2 & \text{if } \lambda \ge \sigma_i^2\end{cases}

with λ\lambda chosen so that iDi=D\sum_i D_i = D. Equivalently Di=min{λ,σi2}D_i = \min\{\lambda, \sigma_i^2\}.

ImportantReverse water-filling

Picture the variances σi2\sigma_i^2 as bars and λ\lambda as a water level. We choose a constant λ\lambda and describe only those random variables with variance greater than λ\lambda. No bits at all are used to describe variables with variance less than λ\lambda — those are simply reproduced as zero, and their entire variance is accepted as distortion.

Contrast forward water-filling:

Forward (channel)Reverse (source)
Levels arenoise variances NiN_isource variances σi2\sigma_i^2
We allocatepower, Pi=(νNi)+P_i = (\nu - N_i)^+distortion, Di=min{λ,σi2}D_i = \min\{\lambda,\sigma_i^2\}
Ignored componentsthose too noisy to usethose too quiet to bother describing
Water sitsabove the floorbelow the ceiling

NoteExtensions

More generally the rate distortion function for a multivariate normal vector is obtained by reverse water-filling on the eigenvalues. The same argument applies to a Gaussian stochastic process: by the spectral representation theorem such a process is an integral of independent Gaussian processes in various frequency bands, and reverse water-filling on the spectrum yields R(D)R(D). This is, in essence, what a perceptual audio codec does — spend no bits on frequency bands whose content falls below threshold.


Converse to the rate distortion theorem

We must show we cannot achieve distortion below DD describing XX at a rate below R(D)R(D). First, a structural property that the proof needs.

LemmaConvexity of R(D)R(D)

R(D)R(D) is a non-increasing convex function of DD.

ProofMonotonicity by enlarging the feasible set; convexity from convexity of II

Non-increasing: R(D)R(D) is a minimum of mutual information over increasingly larger sets as DD grows — a looser constraint cannot raise a minimum.

Convex: take two pairs (R1,D1)(R_1,D_1), (R2,D2)(R_2,D_2) on the curve, achieved by joints p1(x,x^)=p(x)p1(x^x)p_1(x,\hat x) = p(x)p_1(\hat x\mid x) and p2p_2. Consider pλ=λp1+(1λ)p2p_\lambda = \lambda p_1 + (1-\lambda)p_2. Distortion is a linear function of the distribution, so D(pλ)=λD1+(1λ)D2D(p_\lambda) = \lambda D_1 + (1-\lambda)D_2. Mutual information, on the other hand, is a convex function of the conditional distribution, so

R(Dλ)Ipλ(X;X^)λIp1(X;X^)+(1λ)Ip2(X;X^)=λR(D1)+(1λ)R(D2)R(D_\lambda) \le I_{p_\lambda}(X;\hat X) \le \lambda I_{p_1}(X;\hat X) + (1-\lambda)I_{p_2}(X;\hat X) = \lambda R(D_1) + (1-\lambda)R(D_2)

ProofConverse — the ten-step chain

We show that any (2nR,n)(2^{nR},n) code with distortion D\le D has RR(D)R \ge R(D) — and in fact this holds even for randomized mappings fn,gnf_n, g_n, as long as fnf_n takes at most 2nR2^{nR} values. Let X^n=gn(fn(Xn))\hat X^n = g_n(f_n(X^n)).

nR(a)H(fn(Xn))(b)H(fn(Xn))H(fn(Xn)Xn)=I(Xn;fn(Xn))nR \overset{(a)}{\ge} H(f_n(X^n)) \overset{(b)}{\ge} H(f_n(X^n)) - H(f_n(X^n)\mid X^n) = I(X^n; f_n(X^n))

(c)I(Xn;X^n)=H(Xn)H(XnX^n)=(d)i=1nH(Xi)H(XnX^n)\overset{(c)}{\ge} I(X^n;\hat X^n) = H(X^n) - H(X^n\mid\hat X^n) \overset{(d)}{=} \sum_{i=1}^n H(X_i) - H(X^n\mid\hat X^n)

=(e)iH(Xi)iH(XiX^n,Xi1,,X1)(f)iH(Xi)iH(XiX^i)=iI(Xi;X^i)\overset{(e)}{=} \sum_i H(X_i) - \sum_i H(X_i \mid \hat X^n, X_{i-1},\ldots,X_1) \overset{(f)}{\ge} \sum_i H(X_i) - \sum_i H(X_i\mid\hat X_i) = \sum_i I(X_i;\hat X_i)

(g)iR(Ed(Xi,X^i))=ni1nR(Ed(Xi,X^i))(h)nR(1niEd(Xi,X^i))\overset{(g)}{\ge} \sum_i R\big(\mathbb{E}d(X_i,\hat X_i)\big) = n\sum_i \frac{1}{n}R\big(\mathbb{E}d(X_i,\hat X_i)\big) \overset{(h)}{\ge} nR\left(\frac{1}{n}\sum_i \mathbb{E}d(X_i,\hat X_i)\right)

=(i)nR(Ed(Xn,X^n))(j)nR(D)\overset{(i)}{=} nR\big(\mathbb{E}d(X^n,\hat X^n)\big) \overset{(j)}{\ge} nR(D)

Justifications:

  • (a) the range of fnf_n has at most 2nR2^{nR} values
  • (b) H(fn(Xn)Xn)0H(f_n(X^n)\mid X^n)\ge 0
  • (c) the data processing inequality
  • (d) the XiX_i are independent
  • (e) chain rule for entropy
  • (f) conditioning reduces entropy
  • (g) definition of the rate distortion function
  • (h) convexity of R(D)R(D) plus Jensen’s inequality — this is why the lemma was needed
  • (i) definition of distortion for blocks of length nn
  • (j) R(D)R(D) non-increasing, and Ed(Xn,X^n)D\mathbb{E}d(X^n,\hat X^n)\le D

IntuitionCompare with the channel coding converse

Structurally identical to the channel converse: data processing to get from the message to the codeword, single-letterization to reduce nn uses to nn times one use, and a convexity/Jensen step to handle the per-coordinate allocation. The only missing ingredient is Fano — unneeded here, because we assume a distortion bound rather than an error probability.

TheoremSource–channel separation with distortion

Let V1,,VnV_1,\ldots,V_n be a finite-alphabet i.i.d. source encoded into nn inputs XnX^n of a DMC with capacity CC, with output mapped to V^n=g(Yn)\hat V^n = g(Y^n) and average distortion D=Ed(Vn,V^n)D = \mathbb{E}d(V^n,\hat V^n). Then DD is achievable if and only if C>R(D)C > R(D).

IntuitionThe lossy separation principle

The lossless separation theorem said transmission is possible iff H(V)<CH(\mathcal{V}) < C. This replaces H(V)H(\mathcal{V}) with R(D)R(D): compress to the rate your distortion budget permits, then channel-code that. Design the two halves independently, as before.


Achievability of the rate distortion function

The proof mirrors the channel coding theorem: random codebooks and joint typicality. Two new ingredients: a typicality notion that includes the distortion, and an inequality to handle the covering argument.

DefinitionDistortion typical set

A pair (xn,x^n)(x^n,\hat x^n) is distortion ϵ\epsilon-typical if

1nlogp(xn)H(X)<ϵ,1nlogp(x^n)H(X^)<ϵ,\left\lvert -\tfrac1n\log p(x^n) - H(X)\right\rvert < \epsilon, \quad \left\lvert -\tfrac1n\log p(\hat x^n) - H(\hat X)\right\rvert < \epsilon,

1nlogp(xn,x^n)H(X,X^)<ϵ,d(xn,x^n)Ed(X,X^)<ϵ\left\lvert -\tfrac1n\log p(x^n,\hat x^n) - H(X,\hat X)\right\rvert < \epsilon, \quad \left\lvert d(x^n,\hat x^n) - \mathbb{E}d(X,\hat X)\right\rvert < \epsilon

The set is denoted Ad,ϵ(n)A_{d,\epsilon}^{(n)}.

IntuitionJust joint typicality plus one more condition

This is the jointly typical set with the added constraint that the distortion be close to its expected value — so Ad,ϵ(n)Aϵ(n)A_{d,\epsilon}^{(n)} \subset A_\epsilon^{(n)}. The extra condition is what converts “these two sequences look statistically related” into “this codeword is actually a good reproduction of this source sequence.”

Lemma1. The distortion typical set has probability 1\to 1

If (Xi,X^i)(X_i,\hat X_i) are drawn i.i.d. p(x,x^)\sim p(x,\hat x), then Pr(Ad,ϵ(n))1\Pr(A_{d,\epsilon}^{(n)}) \to 1.

ProofFour applications of the law of large numbers

All four conditions are normalized sums of i.i.d. random variables — including d(Xn,X^n)=1nid(Xi,X^i)d(X^n,\hat X^n) = \frac1n\sum_i d(X_i,\hat X_i) — so each tends to its expected value with probability 1, and the set satisfying all four has probability tending to 1.

Lemma2. Reweighting bound

For all (xn,x^n)Ad,ϵ(n)(x^n,\hat x^n) \in A_{d,\epsilon}^{(n)}, p(x^n)p(x^nxn)2n(I(X;X^)+3ϵ)p(\hat x^n) \ge p(\hat x^n\mid x^n)\,2^{-n(I(X;\hat X)+3\epsilon)}

ProofBound the three probabilities by their typicality ranges

p(x^nxn)=p(x^n)p(xn,x^n)p(xn)p(x^n)p(x^n)2n(H(X,X^)ϵ)2n(H(X)+ϵ)2n(H(X^)+ϵ)=p(x^n)2n(I(X;X^)+3ϵ)p(\hat x^n\mid x^n) = p(\hat x^n)\frac{p(x^n,\hat x^n)}{p(x^n)p(\hat x^n)} \le p(\hat x^n)\frac{2^{-n(H(X,\hat X)-\epsilon)}}{2^{-n(H(X)+\epsilon)}2^{-n(H(\hat X)+\epsilon)}} = p(\hat x^n)2^{n(I(X;\hat X)+3\epsilon)}

IntuitionWhy this lemma exists

The codebook is drawn from the marginal p(x^n)p(\hat x^n), but the calculation naturally produces the conditional p(x^nxn)p(\hat x^n\mid x^n). This lemma is the exchange rate between them, and the price is exactly 2nI2^{-nI} — the same exponent that governed rival codewords in the channel coding proof, here governing whether a random codeword happens to cover a given source sequence.

Lemma3. A covering inequality

For 0x,y10 \le x,y\le 1 and n>0n > 0: (1xy)n1x+eyn(1-xy)^n \le 1 - x + e^{-yn}.

ProofCheck the endpoints, then use convexity in xx

Let f(y)=ey1+yf(y) = e^{-y} - 1 + y; then f(0)=0f(0)=0 and f(y)=1ey>0f'(y) = 1 - e^{-y} > 0 for y>0y>0, so f(y)>0f(y)>0, giving 1yey1-y \le e^{-y} and hence (1y)neyn(1-y)^n \le e^{-yn} — the case x=1x=1. The case x=0x=0 is immediate. For 0x10\le x\le 1, gy(x)=(1xy)ng_y(x) = (1-xy)^n is convex in xx, so

gy(x)(1x)gy(0)+xgy(1)=(1x)+x(1y)n1x+xeyn1x+eyng_y(x) \le (1-x)g_y(0) + xg_y(1) = (1-x) + x(1-y)^n \le 1 - x + xe^{-yn} \le 1 - x + e^{-yn}

ProofAchievability — random codebook covering

Fix p(x^x)p(\hat x\mid x) achieving the minimum, so I(X;X^)=R(D)I(X;\hat X) = R(D), and compute p(x^)=xp(x)p(x^x)p(\hat x) = \sum_x p(x)p(\hat x\mid x).

Codebook. Randomly generate 2nR2^{nR} sequences X^n\hat X^n i.i.d. ip(x^i)\sim \prod_i p(\hat x_i), indexed w{1,,2nR}w \in \{1,\ldots,2^{nR}\}, revealed to encoder and decoder.

Encoding. Encode XnX^n by ww if (Xn,X^n(w))Ad,ϵ(n)(X^n,\hat X^n(w)) \in A_{d,\epsilon}^{(n)}; if several, send the least; if none, send w=1w=1.

Decoding. Reproduce X^n(w)\hat X^n(w).

Step 1: Split the distortion by whether a good codeword exists. For a fixed codebook, sequences fall into two classes:

  • Those with a distortion-typical codeword: distortion <D+ϵ< D + \epsilon, and total probability at most 1, so they contribute at most D+ϵD+\epsilon.
  • Those without: let PeP_e be their total probability; each contributes at most dmaxd_{\max}, so they contribute at most PedmaxP_e d_{\max}this is where boundedness of the distortion measure is used.

Ed(Xn,X^n(Xn))D+ϵ+Pedmax\mathbb{E}d(X^n,\hat X^n(X^n)) \le D + \epsilon + P_e d_{\max}

So everything reduces to showing PeP_e is small.

Step 2: Set up PeP_e and swap the order of summation. Let J(C)J(\mathcal{C}) be the set of xnx^n for which at least one codeword is distortion typical. Then

Pe=CP(C)xnJ(C)p(xn)=xnp(xn)C:xnJ(C)p(C)P_e = \sum_{\mathcal{C}} P(\mathcal{C})\sum_{x^n \notin J(\mathcal{C})} p(x^n) = \sum_{x^n} p(x^n) \sum_{\mathcal{C}: x^n\notin J(\mathcal{C})} p(\mathcal{C})

Reading it the second way: the probability of choosing a codebook that fails to represent xnx^n, averaged over xnx^n.

Step 3: One codeword’s failure probability. Let K(xn,x^n)=1K(x^n,\hat x^n) = 1 if the pair is distortion typical, else 0. A single random codeword fails to represent a fixed xnx^n with probability 1x^np(x^n)K(xn,x^n)1 - \sum_{\hat x^n} p(\hat x^n)K(x^n,\hat x^n), so all 2nR2^{nR} independent codewords fail with probability

Pe=xnp(xn)[1x^np(x^n)K(xn,x^n)]2nRP_e = \sum_{x^n} p(x^n)\left[1 - \sum_{\hat x^n} p(\hat x^n)K(x^n,\hat x^n)\right]^{2^{nR}}

Step 4: Apply Lemma 2 to convert the marginal into the conditional.

Pexnp(xn)[12n(I(X;X^)+3ϵ)x^np(x^nxn)K(xn,x^n)]2nRP_e \le \sum_{x^n} p(x^n)\left[1 - 2^{-n(I(X;\hat X)+3\epsilon)}\sum_{\hat x^n}p(\hat x^n\mid x^n)K(x^n,\hat x^n)\right]^{2^{nR}}

Step 5: Apply Lemma 3 with x=x^np(x^nxn)Kx = \sum_{\hat x^n}p(\hat x^n\mid x^n)K and y=2n(I+3ϵ)y = 2^{-n(I+3\epsilon)}, n2nRn \to 2^{nR}:

Pe1xnx^np(xn)p(x^nxn)K(xn,x^n)+e2n(I(X;X^)+3ϵ)2nRP_e \le 1 - \sum_{x^n}\sum_{\hat x^n}p(x^n)p(\hat x^n\mid x^n)K(x^n,\hat x^n) + e^{-2^{-n(I(X;\hat X)+3\epsilon)}2^{nR}}

Step 6: Both pieces vanish. The last term equals e2n(RI(X;X^)3ϵ)e^{-2^{n(R - I(X;\hat X) - 3\epsilon)}}, which goes to zero doubly exponentially fast if R>I(X;X^)+3ϵR > I(X;\hat X)+3\epsilon — so choosing p(x^x)p(\hat x\mid x) to achieve the minimum, R>R(D)R > R(D) suffices. The first two terms are Pr((Xn,X^n)Ad,ϵ(n))<ϵ\Pr\big((X^n,\hat X^n)\notin A_{d,\epsilon}^{(n)}\big) < \epsilon by Lemma 1.

Step 7: Extract one good code. For any δ>0\delta > 0 there exist ϵ\epsilon and nn such that the expected distortion averaged over random codebooks is below D+δD+\delta; hence at least one codebook C\mathcal{C}^* achieves it. Since δ\delta was arbitrary, (R,D)(R,D) is achievable whenever R>R(D)R > R(D).

Packing versus covering

ImportantThe geometric duality, stated precisely

Channel coding for the Gaussian channel. The power constraint puts transmitted sequences in a sphere of radius nP\sqrt{nP}. We need 2nR2^{nR} sequences such that the noise spheres of radius nN\sqrt{nN} around them are almost disjoint — filling a sphere of radius n(P+N)\sqrt{n(P+N)} with spheres of radius nN\sqrt{nN}. The count is the volume ratio:

M(n(P+N))n(nN)n=(P+NN)n/2=2nCM \le \frac{\big(\sqrt{n(P+N)}\big)^n}{\big(\sqrt{nN}\big)^n} = \left(\frac{P+N}{N}\right)^{n/2} = 2^{nC}

Rate distortion for the Gaussian source. A (2nR,n)(2^{nR},n) code with distortion DD is a set of 2nR2^{nR} sequences such that most source sequences — those within a sphere of radius nσ2\sqrt{n\sigma^2} — lie within nD\sqrt{nD} of some codeword. The minimum number is again a volume ratio:

2nR(D)=(σ2D)n/22^{nR(D)} = \left(\frac{\sigma^2}{D}\right)^{n/2}

Channel coding is sphere packing; rate distortion coding is sphere covering. In transmission we want the largest set of codewords with large minimum distance; in rate distortion the smallest set that covers the entire space. A set meeting the sphere-packing bound for one meets it for the other — and in the Gaussian case, choosing codewords Gaussian with the appropriate variance is asymptotically optimal for both.

Strong typicality (sketch of the stronger result)

The proof above gives small expected distortion. In fact the probability that distortion exceeds D+δD+\delta also goes to 0, proved the same way but with strong rather than weak typicality.

DefinitionStrongly typical sequences

xnx^n is ϵ\epsilon-strongly typical w.r.t. p(x)p(x) if for all aa with p(a)>0p(a)>0,

1nN(axn)p(a)<ϵX\left\lvert \frac{1}{n}N(a\mid x^n) - p(a)\right\rvert < \frac{\epsilon}{\lvert\mathcal{X}\rvert}

and N(axn)=0N(a\mid x^n)=0 whenever p(a)=0p(a)=0, where N(axn)N(a\mid x^n) counts occurrences of aa. The pair version, with N(a,bxn,yn)N(a,b\mid x^n,y^n) and p(a,b)p(a,b), defines Aϵ(n)(X,Y)A_\epsilon^{*(n)}(X,Y).

IntuitionWeak versus strong typicality

Weak typicality constrains only the average log-probability; strong typicality constrains every symbol’s empirical frequency. Strong is a stronger requirement, and it buys a two-sided bound where weak gave only an upper one.

LemmaTwo-sided joint typicality bound

For xnAϵ(n)(X)x^n \in A_\epsilon^{*(n)}(X) and YnY^n drawn i.i.d. p(y)\sim p(y),

2n(I(X;Y)+ϵ1)Pr((xn,Yn)Aϵ(n))2n(I(X;Y)ϵ1)2^{-n(I(X;Y)+\epsilon_1)} \le \Pr\big((x^n,Y^n)\in A_\epsilon^{*(n)}\big) \le 2^{-n(I(X;Y)-\epsilon_1)}

with ϵ10\epsilon_1 \to 0 as ϵ0\epsilon\to0, nn\to\infty.

ImportantWhy the lower bound is the whole point

The weak joint AEP gave Pr2nI\Pr \approx 2^{-nI} as an upper bound, which is what you need for packing (rival codewords rarely collide). For covering you need the lower bound: some codeword must actually succeed. Note the subtlety the chapter stresses — the expected number of jointly typical codewords is 2nR2nI2^{nR}2^{-nI}, exponentially large when R>IR > I, but an exponentially large expectation does not by itself guarantee at least one exists with high probability. The lower bound is what closes that gap.

ProofAchievability via strong typicality (outline)

Codebook, encoding and decoding as before but with Aϵ(n)A_\epsilon^{*(n)}. Source sequences now fall into three classes:

  • Non-typical xnAϵ(n)x^n \notin A_\epsilon^{*(n)}: total probability <ϵ<\epsilon for large nn, contributing at most ϵdmax\epsilon d_{\max}.
  • Typical, with a jointly typical codeword: strong joint typicality plus continuity of the distortion in the joint distribution ensures they are also distortion typical, so distortion D+ϵdmax\le D + \epsilon d_{\max}.
  • Typical, with no jointly typical codeword: probability PeP_e, contributing at most PedmaxP_e d_{\max}.

Expanding as before and substituting the lower bound from the lemma, with (1x)nenx(1-x)^n \le e^{-nx}:

Pee(2nR2n(I(X;X^)+ϵ1))P_e \le e^{-\left(2^{nR}2^{-n(I(X;\hat X)+\epsilon_1)}\right)}

which 0\to 0 if R>I(X;X^)+ϵ1R > I(X;\hat X)+\epsilon_1. So not only is the expected distortion close to DDwith probability going to 1 we find a codeword whose distortion is less than D+δD+\delta.


Characterization of the optimum

The definition is a standard minimization of a convex function over the convex set of q(x^x)0q(\hat x\mid x) \ge 0 with x^q(x^x)=1\sum_{\hat x} q(\hat x\mid x) = 1 and q(x^x)p(x)d(x,x^)D\sum q(\hat x\mid x)p(x)d(x,\hat x)\le D. Lagrange multipliers give conditions the optimum must satisfy.

DerivationLagrangian conditions for the optimal test channel

With q(x^)=xp(x)q(x^x)q(\hat x) = \sum_x p(x)q(\hat x\mid x), set up

J(q)=xx^p(x)q(x^x)logq(x^x)q(x^)+λxx^p(x)q(x^x)d(x,x^)+xν(x)x^q(x^x)J(q) = \sum_x\sum_{\hat x} p(x)q(\hat x\mid x)\log\frac{q(\hat x\mid x)}{q(\hat x)} + \lambda\sum_x\sum_{\hat x}p(x)q(\hat x\mid x)d(x,\hat x) + \sum_x \nu(x)\sum_{\hat x} q(\hat x\mid x)

the last term enforcing that q(x^x)q(\hat x\mid x) is a conditional pmf. Differentiating and setting logμ(x)=ν(x)/p(x)\log\mu(x) = \nu(x)/p(x):

p(x)[logq(x^x)q(x^)+λd(x,x^)+logμ(x)]=0q(x^x)=q(x^)eλd(x,x^)μ(x)p(x)\left[\log\frac{q(\hat x\mid x)}{q(\hat x)} + \lambda d(x,\hat x) + \log\mu(x)\right] = 0 \quad\Longrightarrow\quad q(\hat x\mid x) = \frac{q(\hat x)e^{-\lambda d(x,\hat x)}}{\mu(x)}

Normalizing via x^q(x^x)=1\sum_{\hat x}q(\hat x\mid x)=1 gives μ(x)=x^q(x^)eλd(x,x^)\mu(x) = \sum_{\hat x}q(\hat x)e^{-\lambda d(x,\hat x)}, hence

FormulaThe optimal test channel has exponential form

q(x^x)=q(x^)eλd(x,x^)x^q(x^)eλd(x,x^)q(\hat x\mid x) = \frac{q(\hat x)e^{-\lambda d(x,\hat x)}}{\sum_{\hat x'} q(\hat x')e^{-\lambda d(x,\hat x')}}

DerivationThe conditions on the output distribution

Multiplying by p(x)p(x) and summing over xx:

q(x^)=q(x^)xp(x)eλd(x,x^)x^q(x^)eλd(x,x^)q(\hat x) = q(\hat x)\sum_x \frac{p(x)e^{-\lambda d(x,\hat x)}}{\sum_{\hat x'}q(\hat x')e^{-\lambda d(x,\hat x')}}

If q(x^)>0q(\hat x)>0 we may divide, giving X^\lvert\hat{\mathcal{X}}\rvert equations which, with the distortion equation, determine λ\lambda and the q(x^)q(\hat x). The inequality case is covered by Kuhn–Tucker:

xp(x)eλd(x,x^)x^q(x^)eλd(x,x^){=1if q(x^)>01if q(x^)=0\sum_x \frac{p(x)e^{-\lambda d(x,\hat x)}}{\sum_{\hat x'}q(\hat x')e^{-\lambda d(x,\hat x')}} \begin{cases} = 1 & \text{if } q(\hat x) > 0 \\ \le 1 & \text{if } q(\hat x) = 0\end{cases}

WarningCheckable, but not solvable

This characterization lets us check whether a given q(x^)q(\hat x) is optimal, but it is not easy to solve for the optimal output distribution from these equations. Hence the iterative algorithm below.


Computing capacity and R(D)R(D): Blahut–Arimoto

The problem. Given two convex sets AA and BB, find dmin=minaA,bBd(a,b)d_{\min} = \min_{a\in A, b\in B} d(a,b).

IntuitionAlternating minimization

The obvious algorithm: take xAx\in A, find the closest yBy\in B; fix that yy, find the closest point in AA; repeat. The distance decreases at each stage — but does it converge to the minimum? Csiszár and Tusnády showed that if the sets are convex and the distance satisfies certain conditions, it does. In particular, if the sets are sets of probability distributions and the distance is relative entropy, the algorithm converges to the minimum relative entropy between the two sets.

To apply this we must rewrite R(D)R(D) as a minimum of relative entropy between two sets.

LemmaThe marginal minimizes relative entropy

For a given joint p(x)p(yx)p(x)p(y\mid x), the distribution r(y)r(y) minimizing D(p(x)p(yx)p(x)r(y))D\big(p(x)p(y\mid x)\,\Vert\,p(x)r(y)\big) is the marginal r(y)=xp(x)p(yx)r^*(y) = \sum_x p(x)p(y\mid x).

ProofThe difference is itself a relative entropy

D(p(x)p(yx)p(x)r(y))D(p(x)p(yx)p(x)r(y))=x,yp(x)p(yx)logr(y)r(y)=yr(y)logr(y)r(y)=D(rr)0D(p(x)p(y\mid x)\Vert p(x)r(y)) - D(p(x)p(y\mid x)\Vert p(x)r^*(y)) = \sum_{x,y}p(x)p(y\mid x)\log\frac{r^*(y)}{r(y)} = \sum_y r^*(y)\log\frac{r^*(y)}{r(y)} = D(r^*\Vert r) \ge 0

DerivationRewriting R(D)R(D) as a double minimization

The lemma lets us replace the marginal inside the mutual information by a free variable r(x^)r(\hat x) and minimize over it too:

R(D)=minr(x^) minq(x^x):p(x)q(x^x)d(x,x^)Dxx^p(x)q(x^x)logq(x^x)r(x^)R(D) = \min_{r(\hat x)}\ \min_{q(\hat x\mid x):\sum p(x)q(\hat x\mid x)d(x,\hat x)\le D} \sum_x\sum_{\hat x} p(x)q(\hat x\mid x)\log\frac{q(\hat x\mid x)}{r(\hat x)}

Letting AA be the set of joint distributions with marginal p(x)p(x) satisfying the distortion constraint, and BB the set of product distributions p(x)r(x^)p(x)r(\hat x) with arbitrary rr:

R(D)=minqBminpAD(pq)R(D) = \min_{q\in B}\min_{p\in A} D(p\Vert q)

ImportantThe Blahut–Arimoto algorithm for R(D)R(D)

Begin with a choice of λ\lambda and an initial output distribution r(x^)r(\hat x); then alternate:

  1. Minimize over the test channel (Lagrange multipliers): q(x^x)=r(x^)eλd(x,x^)x^r(x^)eλd(x,x^)q(\hat x\mid x) = \frac{r(\hat x)e^{-\lambda d(x,\hat x)}}{\sum_{\hat x'}r(\hat x')e^{-\lambda d(x,\hat x')}}
  2. Minimize over the output distribution (the lemma): r(x^)=xp(x)q(x^x)r(\hat x) = \sum_x p(x)q(\hat x\mid x)

Each step reduces the objective, so there is a limit, and Csiszár showed the limit is R(D)R(D) — with DD and R(D)R(D) depending on λ\lambda. Sweeping λ\lambda traces out the whole R(D)R(D) curve.

ImportantThe same algorithm computes channel capacity

Rewrite capacity as a double maximization using the same lemma:

C=maxq(xy)maxr(x)xyr(x)p(yx)logq(xy)r(x)C = \max_{q(x\mid y)}\max_{r(x)} \sum_x\sum_y r(x)p(y\mid x)\log\frac{q(x\mid y)}{r(x)}

and alternate:

  1. Best conditional given the input distribution: q(xy)=r(x)p(yx)xr(x)p(yx)q(x\mid y) = \frac{r(x)p(y\mid x)}{\sum_{x'}r(x')p(y\mid x')}
  2. Best input distribution given the conditional: r(x)=y(q(xy))p(yx)xy(q(xy))p(yx)r(x) = \frac{\prod_y \big(q(x\mid y)\big)^{p(y\mid x)}}{\sum_{x'}\prod_y \big(q(x'\mid y)\big)^{p(y\mid x')}}

This is the Arimoto–Blahut algorithm promised back in the capacity properties, and it closes that loop: the same alternating-projection idea computes both sides of the duality.

NoteA very general procedure

The Csiszár–Tusnády alternating minimization specializes to many other settings, including the EM algorithm and the algorithm for finding the log-optimal portfolio for a stock market.


Quick reference

ObjectFormulaNote
Rate distortion functionR(D)=minp(x^x):EdDI(X;X^)R(D) = \min_{p(\hat x\mid x):\,\mathbb{E}d\le D} I(X;\hat X)Dual of C=maxp(x)I(X;Y)C = \max_{p(x)}I(X;Y).
Distortion rate functionD(R)D(R)Same boundary, other axis.
Bernoulli(pp), HammingR(D)=H(p)H(D)R(D) = H(p)-H(D) for Dmin{p,1p}D\le\min\{p,1-p\}, else 0Test channel: BSC with crossover DD.
Gaussian, squared errorR(D)=12logσ2DR(D) = \tfrac12\log\frac{\sigma^2}{D} for Dσ2D\le\sigma^2D(R)=σ222RD(R) = \sigma^22^{-2R}: each bit quarters the distortion.
1-bit quantizer vs. limit0.3633σ20.3633\sigma^2 vs. 0.25σ20.25\sigma^2Blocks beat symbols even for independent sources.
Parallel GaussiansDi=min{λ,σi2}D_i = \min\{\lambda,\sigma_i^2\}, Di=D\sum D_i = DReverse water-filling: ignore low-variance components.
Conversedata processing ++ chain rule ++ convexity/JensenNo Fano needed.
Achievabilityrandom codebook ++ distortion typicalityPee2n(RI3ϵ)P_e \le e^{-2^{n(R-I-3\epsilon)}}, doubly exponential.
Geometrypacking (channel) vs. covering (source)Same volume ratios, opposite goals.
Separation with distortionachievable iff C>R(D)C > R(D)R(D)R(D) replaces H(V)H(\mathcal{V}).
Optimal test channelq(x^x)q(x^)eλd(x,x^)q(\hat x\mid x) \propto q(\hat x)e^{-\lambda d(x,\hat x)}Exponential family in the distortion.
Blahut–Arimotoalternate q(x^x)q(\hat x\mid x) and r(x^)r(\hat x)Sweeping λ\lambda traces R(D)R(D); same idea gives CC.

Facts to keep to hand:

  • Both worked examples follow the same two-step recipe: lower-bound II using conditioning-reduces-entropy plus a max-entropy bound, then exhibit a test channel meeting it. The test channel always runs backwards, specifying XX as X^\hat X plus independent noise.
  • R(D)R(D) is non-increasing and convex — the convexity is not decoration, it is the Jensen step in the converse.
  • Forward water-filling allocates power and abandons noisy components; reverse water-filling allocates distortion and abandons quiet ones.
  • Weak typicality suffices for packing (upper bound on collision probability); covering needs the two-sided strong-typicality lemma, because a large expected number of good codewords does not guarantee one exists.
  • Boundedness of dd enters in exactly one place: bounding the contribution of badly represented sequences by PedmaxP_e d_{\max}.
  • The elephant-and-chicken gain is geometric: rectangular grids from independent descriptions do not fill space efficiently, which is why 0.3633σ2>0.25σ20.3633\sigma^2 > 0.25\sigma^2 even for independent sources.

References

  • [[lit/cover2006-elements|Cover & Thomas, Elements of Information Theory]] — Chapter 10

← All notes