Simple Algorithm
Machine Learning · Convergence · 26 min

Information Theory for ML

Entropy, cross-entropy and KL divergence as the language of learning.

Every time you train a classifier with cross-entropy, fit a model by maximum likelihood or squeeze an input into a representation, you are doing information theory. Shannon's quantities measure uncertainty, the cost of wrong beliefs and how much one variable reveals about another. This lesson develops them with proofs, then turns them into statements about what no learner can do.

What you’ll learn

  • Define entropy, cross-entropy and KL divergence, interpret them as code lengths, and prove Gibbs' inequality DKL(p ∥ q)≥0\KL(p\,\|\,q)\ge0.
  • Show that log loss is cross-entropy, that maximum likelihood minimizes DKL(pdata ∥ pθ)\KL(p_{\text{data}}\,\|\,p_{\boldsymbol\theta}), and contrast the forward and reverse KL divergences.
  • Prove the chain rule for mutual information and the data-processing inequality, and explain what they imply for learned representations.
  • Prove Fano's inequality and use it to derive a minimax lower bound; connect description length to generalization, and weigh the contested information-bottleneck account of deep learning.

Entropy, cross-entropy and KL divergence

Code lengths. Shannon's source coding theorem (1948) makes entropy the limit of lossless compression. For prefix codes it reads: any prefix code for X∼pX\sim p uses at least H(p)H(p) bits per symbol on average, and code lengths ⌈log⁡21/p(x)⌉\lceil\log_21/p(x)\rceil, which satisfy the Kraft inequality ∑x2−ℓ(x)≤1\sum_x2^{-\ell(x)}\le1 and so form a valid prefix code, achieve less than H(p)+1H(p)+1. Design the code for the wrong distribution qq, with lengths ⌈log⁡21/q(x)⌉\lceil\log_21/q(x)\rceil, and the average becomes H(p,q)H(p,q) up to the same rounding bit. The KL divergence is the price of a wrong belief, in extra bits per symbol.

DerivationGibbs' inequality
  1. −DKL(p ∥ q)=∑x: p(x)>0p(x)log⁡q(x)p(x)≤log⁡∑x: p(x)>0p(x) q(x)p(x)=log⁡∑x: p(x)>0q(x)≤log⁡1=0-\KL(p\,\|\,q)=\sum_{x:\,p(x)>0}p(x)\log\frac{q(x)}{p(x)}\le\log\sum_{x:\,p(x)>0}p(x)\,\frac{q(x)}{p(x)}=\log\sum_{x:\,p(x)>0}q(x)\le\log1=0

    Apply Jensen's inequality for the concave logarithm, averaging over the support of pp:

  2. DKL(p ∥ q)≥0,with equality if and only if p=q\KL(p\,\|\,q)\ge0,\quad\text{with equality if and only if }p=q

    Equality in Jensen's step requires q/pq/p to be constant on the support of pp, and the last step requires qq to put no mass outside it; together they force q=pq=p:

  3. 0≤H(p)≤log⁡m,H(p,q)=H(p)+DKL(p ∥ q)≥H(p)0\le H(p)\le\log m,\qquad H(p,q)=H(p)+\KL(p\,\|\,q)\ge H(p)

    Two corollaries. Against the uniform distribution uu on mm outcomes, DKL(p ∥ u)=log⁡m−H(p)\KL(p\,\|\,u)=\log m-H(p), so entropy is at most log⁡m\log m, attained only by the uniform distribution. And no code beats the one matched to the truth:

Predict before you look

A coin lands heads with probability 0.9. What is its entropy, in bits per flip?

Show the answer

0.47 bits

−0.9log⁡20.9−0.1log⁡20.1=0.137+0.332≈0.469-0.9\log_20.9-0.1\log_20.1=0.137+0.332\approx0.469 bits. A long run of such flips can be compressed to about 47% of its raw length, and no lossless code does better on average. A fair coin, the maximum, carries exactly 1 bit.

The KL divergence is neither symmetric nor a metric. For Bernoulli distributions, DKL(Ber(0.5) ∥ Ber(0.9))≈0.511\KL(\mathrm{Ber}(0.5)\,\|\,\mathrm{Ber}(0.9))\approx0.511 nats but DKL(Ber(0.9) ∥ Ber(0.5))≈0.368\KL(\mathrm{Ber}(0.9)\,\|\,\mathrm{Ber}(0.5))\approx0.368 nats. And it can be infinite: DKL(p ∥ q)=∞\KL(p\,\|\,q)=\infty as soon as qq gives zero probability to an outcome that pp allows. Which direction you minimize therefore matters, as the next step shows.

Log loss, maximum likelihood and the direction of KL

DerivationMaximum likelihood minimizes a KL divergence
  1. −1n∑i=1nlog⁡pθ(xi)=−∑xp^n(x)log⁡pθ(x)=H(p^n,pθ)=H(p^n)+DKL(p^n ∥ pθ)-\frac1n\sum_{i=1}^{n}\log p_{\boldsymbol\theta}(x_i)=-\sum_x\hat p_n(x)\log p_{\boldsymbol\theta}(x)=H(\hat p_n,p_{\boldsymbol\theta})=H(\hat p_n)+\KL(\hat p_n\,\|\,p_{\boldsymbol\theta})

    The average negative log-likelihood of an i.i.d. sample is the cross-entropy between the empirical distribution p^n\hat p_n and the model:

  2. Ex∼p[−log⁡pθ(x)]=H(p)+DKL(p ∥ pθ)⟹arg max⁡θElog⁡pθ=arg min⁡θDKL(p ∥ pθ)\E_{x\sim p}\big[-\log p_{\boldsymbol\theta}(x)\big]=H(p)+\KL(p\,\|\,p_{\boldsymbol\theta})\quad\Longrightarrow\quad\argmax_{\boldsymbol\theta}\E\log p_{\boldsymbol\theta}=\argmin_{\boldsymbol\theta}\KL(p\,\|\,p_{\boldsymbol\theta})

    H(p^n)H(\hat p_n) does not depend on θ\boldsymbol\theta, so maximum likelihood minimizes DKL(p^n ∥ pθ)\KL(\hat p_n\,\|\,p_{\boldsymbol\theta}). By the law of large numbers the average converges to its population version, whose minimizer is the KL projection of the truth onto the model:

  3. Ey∼p(⋅∣x)[−log⁡q(y∣x)]=H(p(⋅∣x))+DKL(p(⋅∣x) ∥ q(⋅∣x))\E_{y\sim p(\cdot\mid\mathbf x)}\big[-\log q(y\mid\mathbf x)\big]=H\big(p(\cdot\mid\mathbf x)\big)+\KL\big(p(\cdot\mid\mathbf x)\,\|\,q(\cdot\mid\mathbf x)\big)

    For classification the same identity holds conditionally. The expected log loss of a predicted distribution q(⋅∣x)q(\cdot\mid\mathbf x) under the true p(⋅∣x)p(\cdot\mid\mathbf x) is minimized only at q=pq=p, so log loss is a strictly proper scoring rule: honest probabilities are its unique optimum.

  4. ∂∂zk[−log⁡softmax⁡(z)y]=softmax⁡(z)k−1{k=y},∇z=q−ey\frac{\partial}{\partial z_k}\Big[-\log\softmax(\mathbf z)_y\Big]=\softmax(\mathbf z)_k-\mathbf 1\{k=y\},\qquad\nabla_{\mathbf z}=\mathbf q-\mathbf e_y

    For a softmax model q=softmax⁡(z)q=\softmax(\mathbf z) over logits z\mathbf z, the gradient of the log loss is strikingly simple: predicted probabilities minus the one-hot label ey\mathbf e_y.

Forward versus reverse. Maximum likelihood minimizes the forward divergence DKL(p ∥ q)\KL(p\,\|\,q), which is infinite if qq vanishes anywhere pp has mass: it is mass-covering. Fit a single Gaussian to a two-component mixture this way and you get the Gaussian with the mixture's mean and variance (for exponential families, minimizing the forward KL matches expected sufficient statistics), broad enough to straddle both modes. Variational inference minimizes the reverse divergence DKL(q ∥ p)\KL(q\,\|\,p), because it needs expectations under the tractable qq only and tolerates an unnormalized pp. It punishes qq for putting mass where pp has little, so it is mode-seeking: it tends to lock onto one mode and to underestimate uncertainty.

Check your understanding

You approximate a bimodal distribution pp (two well-separated bumps) by a single Gaussian qq, choosing qq to minimize the reverse divergence DKL(q ∥ p)\KL(q\,\|\,p), as variational inference does. What do you typically get?

  1. A broad Gaussian spanning both bumps, with the mixture's mean and variance
  2. q=pq=p exactly, since the KL divergence is zero only at equality
  3. A narrow Gaussian sitting on one of the bumps
  4. A Gaussian centered in the valley between the bumps, with zero variance
Show the answer

C. A narrow Gaussian sitting on one of the bumps

The reverse KL averages log⁡(q/p)\log(q/p) under qq, so any qq-mass in the valley, where pp is tiny, is heavily penalized, while ignoring a whole mode costs nothing. The optimum hugs one mode (which one depends on initialization) and understates the spread: the classic behavior of variational approximations.

Mutual information and the data-processing inequality

The mutual information between XX and YY is the KL divergence between their joint distribution and the product of the marginals, so it is nonnegative and vanishes exactly when they are independent. It equals the reduction in uncertainty about one variable from observing the other, with the conditional entropy H(X∣Y)=−Elog⁡p(X∣Y)H(X\mid Y)=-\E\log p(X\mid Y):

I(X;Y)=DKL(pXY ∥ pXpY)=H(X)−H(X∣Y)=H(X)+H(Y)−H(X,Y) ≥ 0I(X;Y)=\KL\big(p_{XY}\,\|\,p_Xp_Y\big)=H(X)-H(X\mid Y)=H(X)+H(Y)-H(X,Y)\ \ge\ 0
Mutual information obeys a chain rule, I(X;Y,Z)=I(X;Z)+I(X;Y∣Z)I(X;Y,Z)=I(X;Z)+I(X;Y\mid Z), where the conditional mutual information I(X;Y∣Z)I(X;Y\mid Z) averages the information shared by XX and YY given each value of ZZ; it is also nonnegative.
DerivationThe data-processing inequality
  1. I(X;Z)+I(X;Y∣Z)=I(X;Y,Z)=I(X;Y)+I(X;Z∣Y)I(X;Z)+I(X;Y\mid Z)=I(X;Y,Z)=I(X;Y)+I(X;Z\mid Y)

    Let X→Y→ZX\to Y\to Z be a Markov chain: ZZ depends on XX only through YY, so XX and ZZ are independent given YY. Expand I(X;Y,Z)I(X;Y,Z) with the chain rule in both orders:

  2. I(X;Z)=I(X;Y)−I(X;Y∣Z) ≤ I(X;Y)I(X;Z)=I(X;Y)-I(X;Y\mid Z)\ \le\ I(X;Y)

    The Markov property makes I(X;Z∣Y)=0I(X;Z\mid Y)=0, and conditional mutual information is nonnegative, so:

  3. I(X;Z)=I(X;Y)  ⟺  X→Z→Y is also a Markov chainI(X;Z)=I(X;Y)\iff X\to Z\to Y\text{ is also a Markov chain}

    Equality holds exactly when I(X;Y∣Z)=0I(X;Y\mid Z)=0, that is, when ZZ is a sufficient statistic of YY for XX. The same argument shows that passing two distributions through one channel can only shrink their KL divergence.

For learning, take the label YY, the input XX and any representation TT computed from XX alone, deterministic or noisy. Then Y→X→TY\to X\to T is a Markov chain, and I(Y;T)≤I(Y;X)I(Y;T)\le I(Y;X): no feature extractor, however deep, creates information about the label. A network's layers can only discard information, ideally the irrelevant part, and each layer's representation satisfies I(Y;T1)≥I(Y;T2)≥⋯I(Y;T_1)\ge I(Y;T_2)\ge\cdots. What learning buys is not information but usable form: a representation from which a simple classifier can read the label.

Think first XX is a uniform random bit. YY is XX sent through a channel that flips it with probability 0.1, and ZZ is YY sent through a second, independent channel of the same kind. With hh the binary entropy, I(X;Y)=1−h(0.1)≈0.531I(X;Y)=1-h(0.1)\approx0.531 bits. What is I(X;Z)I(X;Z)?

Two flips cancel, so Z≠XZ\ne X with probability 2⋅0.1⋅0.9=0.182\cdot0.1\cdot0.9=0.18, and X→ZX\to Z is itself a binary symmetric channel: I(X;Z)=1−h(0.18)≈1−0.680=0.320I(X;Z)=1-h(0.18)\approx1-0.680=0.320 bits, below 0.531, as the data-processing inequality requires. Each noisy stage destroys information that no later processing can recover.

Fano's inequality and lower bounds for learning

DerivationProof
  1. H(V,E∣Z)=H(V∣Z)+H(E∣V,Z)=H(V∣Z)H(V,E\mid Z)=H(V\mid Z)+H(E\mid V,Z)=H(V\mid Z)

    Let E=1{V^≠V}E=\mathbf 1\{\hat V\ne V\}. It is a function of (V,Z)(V,Z), so adding it to VV costs no entropy given ZZ:

  2. H(V,E∣Z)=H(E∣Z)+H(V∣E,Z)≤h(Pe)+(1−Pe)⋅0+Pelog⁡(M−1)H(V,E\mid Z)=H(E\mid Z)+H(V\mid E,Z)\le h(P_e)+(1-P_e)\cdot0+P_e\log(M-1)

    Expand the other way. H(E∣Z)≤H(E)=h(Pe)H(E\mid Z)\le H(E)=h(P_e); when E=0E=0, V=V^V=\hat V is determined by ZZ; when E=1E=1, VV is one of the other M−1M-1 values:

  3. log⁡M−I(V;Z)≤log⁡2+Pelog⁡M⟹Pe≥1−I(V;Z)+log⁡2log⁡M\log M-I(V;Z)\le\log2+P_e\log M\quad\Longrightarrow\quad P_e\ge1-\frac{I(V;Z)+\log2}{\log M}

    Combine, bound h(Pe)≤log⁡2h(P_e)\le\log2 and log⁡(M−1)≤log⁡M\log(M-1)\le\log M, and for uniform VV substitute H(V∣Z)=log⁡M−I(V;Z)H(V\mid Z)=\log M-I(V;Z):

Fano's method turns this into lower bounds on estimation. Choose parameters θ1,…,θM\boldsymbol\theta_1,\dots,\boldsymbol\theta_M that are 2δ2\delta-separated in the loss metric, and let nature pick one uniformly at random. Any estimator θ^\hat{\boldsymbol\theta} within δ\delta of the truth identifies it (take the nearest θj\boldsymbol\theta_j), so estimation is at least as hard as this MM-ary test. Since I(V;Z)I(V;Z) is at most the largest pairwise KL divergence β\beta between the data distributions, every estimator has max⁡jPr⁡j[d(θ^,θj)≥δ]≥1−(β+log⁡2)/log⁡M\max_j\Pr_j\big[d(\hat{\boldsymbol\theta},\boldsymbol\theta_j)\ge\delta\big]\ge1-(\beta+\log2)/\log M. The art is to pack many hypotheses (large log⁡M\log M) that are nonetheless statistically close (small β\beta). With M=2M=2 the same idea, through total variation and Pinsker's inequality, is Le Cam's two-point method.

DerivationSketch: no estimator beats σ²d/n for a Gaussian mean (up to a constant)
  1. γ2d8≤∥θj−θk∥2≤γ2d,DKL(Pj⊗n ∥ Pk⊗n)=n∥θj−θk∥22σ2≤nγ2d2σ2\frac{\gamma^2d}8\le\norm{\boldsymbol\theta_j-\boldsymbol\theta_k}^2\le\gamma^2d,\qquad\KL\big(P_j^{\otimes n}\,\|\,P_k^{\otimes n}\big)=\frac{n\norm{\boldsymbol\theta_j-\boldsymbol\theta_k}^2}{2\sigma^2}\le\frac{n\gamma^2d}{2\sigma^2}

    Observe nn samples of N(θ,σ2Id)\mathcal N(\boldsymbol\theta,\sigma^2I_d); the sample mean has risk E∥xˉ−θ∥2=σ2d/n\E\norm{\bar{\mathbf x}-\boldsymbol\theta}^2=\sigma^2d/n. By the Gilbert–Varshamov bound, for d≥8d\ge8 there are M≥2d/8M\ge2^{d/8} vectors ωj∈{0,1}d\boldsymbol\omega_j\in\{0,1\}^d at pairwise Hamming distance at least d/8d/8. Set θj=γωj\boldsymbol\theta_j=\gamma\boldsymbol\omega_j:

  2. Pr⁡[wrong θj] ≥ 1−dln⁡2/16+ln⁡2dln⁡2/8=12−8d ≥ 14\Pr[\text{wrong }\boldsymbol\theta_j]\ \ge\ 1-\frac{d\ln2/16+\ln2}{d\ln2/8}=\frac12-\frac8d\ \ge\ \frac14

    Choose γ2=σ2ln⁡2/(8n)\gamma^2=\sigma^2\ln2/(8n), so the KL bound is β=dln⁡2/16\beta=d\ln2/16 while ln⁡M≥dln⁡2/8\ln M\ge d\ln2/8. Fano's ratio is then at most 12+8/d\tfrac12+8/d, which is at most 34\tfrac34 once d≥32d\ge32:

  3. sup⁡θE∥θ^−θ∥2 ≥ 14⋅γ2d32=ln⁡21024⋅σ2dn\sup_{\boldsymbol\theta}\E\norm{\hat{\boldsymbol\theta}-\boldsymbol\theta}^2\ \ge\ \frac14\cdot\frac{\gamma^2d}{32}=\frac{\ln2}{1024}\cdot\frac{\sigma^2d}n

    With probability at least 14\tfrac14 the estimate is at least half the minimum separation, 12γd/8\tfrac12\gamma\sqrt{d/8}, from the truth. Squaring and averaging, for every estimator and d≥32d\ge32:

The constant is poor, but the rate σ2d/n\sigma^2d/n is exactly that of the sample mean: in high dimensions, error grows linearly with the number of unknowns per example. The same recipe gives the minimax rates of sparse regression, nonparametric regression and density estimation, and the information-theoretic limits that the No Free Lunch & Inductive Bias lesson approaches from the combinatorial side.

Description length, bottlenecks and an open debate

Rissanen (1978) proposed the minimum description length principle: prefer the hypothesis that minimizes a two-part code, L(h)L(h) bits to describe the hypothesis plus L(D∣h)=−log⁡2p(D∣h)L(\data\mid h)=-\log_2p(\data\mid h) bits to describe the data with its help. Encoding kk real parameters to the precision the data can resolve, about 1/n1/\sqrt n, costs about k2log⁡2n\tfrac k2\log_2n bits, so for regular parametric models the two-part code length is, to leading order, −log⁡p(D∣θ^)+k2log⁡n-\log p(\data\mid\hat{\boldsymbol\theta})+\tfrac k2\log n, half the Bayesian information criterion. Short descriptions are Occam's razor made quantitative, and they come with a guarantee.

The information bottleneck (Tishby, Pereira & Bialek, 1999) asks for a stochastic representation TT of XX that is as compressed as possible while staying informative about YY: minimize I(X;T)−β I(T;Y)I(X;T)-\beta\,I(T;Y) over p(t∣x)p(t\mid\mathbf x), with β\beta trading compression against prediction. Shwartz-Ziv & Tishby (2017) estimated I(X;T)I(X;T) and I(T;Y)I(T;Y) for the layers of networks during training, reported a fitting phase followed by a long compression phase, and the information-bottleneck account linked that compression to how well networks generalize.

A sounder bridge between information and generalization runs through the algorithm rather than the representation. If the loss ℓ(w,Z)\ell(w,Z) is σ\sigma-sub-Gaussian for every hypothesis ww, an algorithm that outputs WW from a training sample SS of nn examples satisfies ∣E[R(W)−R^S(W)]∣≤2σ2I(S;W)/n\abs{\E[R(W)-\hat R_S(W)]}\le\sqrt{2\sigma^2I(S;W)/n} (Xu & Raginsky, 2017): an algorithm that reveals little about its particular training set cannot overfit it much. For a finite class, I(S;W)≤H(W)≤ln⁡∣H∣I(S;W)\le H(W)\le\ln\abs{\mathcal H}, and with σ=12\sigma=\tfrac12 for losses in [0,1][0,1] this recovers the ln⁡∣H∣/(2n)\sqrt{\ln\abs{\mathcal H}/(2n)} rate of the finite-class bound.

Key takeaways

  • Entropy H(p)H(p) is the best achievable average code length, cross-entropy H(p,q)H(p,q) the length with a code built for qq, and DKL(p ∥ q)=H(p,q)−H(p)≥0\KL(p\,\|\,q)=H(p,q)-H(p)\ge0 (Gibbs) the excess, zero only when q=pq=p.
  • Log loss is cross-entropy, a strictly proper scoring rule, with softmax gradient q−ey\mathbf q-\mathbf e_y. Maximum likelihood minimizes the mass-covering DKL(p ∥ pθ)\KL(p\,\|\,p_{\boldsymbol\theta}); variational inference minimizes the mode-seeking DKL(q ∥ p)\KL(q\,\|\,p).
  • I(X;Y)=DKL(pXY ∥ pXpY)I(X;Y)=\KL(p_{XY}\,\|\,p_Xp_Y). For a Markov chain Y→X→TY\to X\to T, I(Y;T)≤I(Y;X)I(Y;T)\le I(Y;X): representations can only discard information about the label, and sufficient statistics keep all of it.
  • Fano's inequality, Pe≥1−(I(V;Z)+log⁡2)/log⁡MP_e\ge1-(I(V;Z)+\log2)/\log M, turns packings of statistically close hypotheses into minimax lower bounds, for example order σ2d/n\sigma^2d/n for estimating a Gaussian mean in dd dimensions.
  • Short descriptions generalize: the Occam bound (∣h∣ln⁡2+ln⁡(2/δ))/(2n)\sqrt{(\abs h\ln2+\ln(2/\delta))/(2n)}, MDL and BIC, and the algorithmic bound 2σ2I(S;W)/n\sqrt{2\sigma^2I(S;W)/n}. The information-bottleneck account of deep learning remains contested.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

The true distribution of a label is pp. Which predicted distribution qq minimizes the expected log loss Ey∼p[−log⁡q(y)]\E_{y\sim p}[-\log q(y)]?

  1. The one-hot distribution on the most likely label
  2. The uniform distribution, which hedges against every outcome
  3. q=pq=p itself
  4. q∝p2q\propto p^2, which sharpens pp toward its mode
Show the answer

C. q=pq=p itself

The expected log loss is H(p)+DKL(p ∥ q)H(p)+\KL(p\,\|\,q), and by Gibbs' inequality the KL term vanishes only at q=pq=p. Log loss rewards honest probabilities, which is why it is a strictly proper scoring rule and why minimizing it tends to produce calibrated models.

Question 2

In the large-sample limit, maximum-likelihood estimation chooses the model pθp_{\boldsymbol\theta} that minimizes which divergence from the data distribution pp?

  1. DKL(pθ ∥ p)\KL(p_{\boldsymbol\theta}\,\|\,p), the mode-seeking direction
  2. DKL(p ∥ pθ)\KL(p\,\|\,p_{\boldsymbol\theta}), the mass-covering direction
  3. The total variation distance between pp and pθp_{\boldsymbol\theta}
  4. The Jensen–Shannon divergence between pp and pθp_{\boldsymbol\theta}
Show the answer

B. DKL(p ∥ pθ)\KL(p\,\|\,p_{\boldsymbol\theta}), the mass-covering direction

Ep[−log⁡pθ]=H(p)+DKL(p ∥ pθ)\E_p[-\log p_{\boldsymbol\theta}]=H(p)+\KL(p\,\|\,p_{\boldsymbol\theta}), and H(p)H(p) does not depend on θ\boldsymbol\theta. That is why maximum-likelihood fits spread mass over everything the data can produce, and why a misspecified model fitted by likelihood converges to the KL projection of the truth.

Question 3

A network maps an input XX to a representation TT and then to a prediction Y^\hat Y; the label is YY. Which chain of inequalities must hold?

  1. I(Y;Y^)≤I(Y;T)≤I(Y;X)I(Y;\hat Y)\le I(Y;T)\le I(Y;X)
  2. I(Y;X)≤I(Y;T)≤I(Y;Y^)I(Y;X)\le I(Y;T)\le I(Y;\hat Y), since training extracts information
  3. I(Y;T)=I(Y;X)I(Y;T)=I(Y;X) for any trained network
  4. None: deep networks can create new information about YY
Show the answer

A. I(Y;Y^)≤I(Y;T)≤I(Y;X)I(Y;\hat Y)\le I(Y;T)\le I(Y;X)

Y→X→T→Y^Y\to X\to T\to\hat Y is a Markov chain, because each stage is computed from the previous one alone. The data-processing inequality then forces information about YY to be non-increasing along the chain; training can only choose what to discard.

Question 4

Nature picks one of M=1024M=1024 hypotheses uniformly at random, and your data carry I(V;Z)=3I(V;Z)=3 bits about which one. By Fano's inequality, what is the smallest possible probability of naming the wrong hypothesis?

  1. At least 0.3
  2. At least 0.6
  3. At least 0.7
  4. At least 1−3/10241-3/1024
Show the answer

B. At least 0.6

In bits, Pe≥1−(I(V;Z)+1)/log⁡2M=1−(3+1)/10=0.6P_e\ge1-(I(V;Z)+1)/\log_2M=1-(3+1)/10=0.6. Three bits can narrow 1,024 candidates down to about 128, so no procedure can identify the right one reliably; a confident answer would need about 10 bits of information.

Further reading

  • C. E. Shannon, "A mathematical theory of communication," Bell System Technical Journal 27 (1948), 379–423 and 623–656.
  • T. M. Cover & J. A. Thomas, Elements of Information Theory, 2nd ed. (Wiley, 2006).
  • D. J. C. MacKay, Information Theory, Inference, and Learning Algorithms (Cambridge University Press, 2003).
  • M. J. Wainwright, High-Dimensional Statistics: A Non-Asymptotic Viewpoint (Cambridge University Press, 2019), chapter 15.
  • A. M. Saxe, Y. Bansal, J. Dapello, M. Advani, A. Kolchinsky, B. D. Tracey & D. D. Cox, "On the information bottleneck theory of deep learning," Journal of Statistical Mechanics: Theory and Experiment 124020 (2019).