Skip to content
AI360XpertBeta

Information Bottleneck

Keep what predicts, drop what merely describes. The bottleneck trades input bits against label bits with one knob pricing relevance.

A 784 pixel input squeezes through 0.4 bits keeping 0.9 of 1.0 label bits at the beta 4 knee.
A 784 pixel input squeezes through 0.4 bits keeping 0.9 of 1.0 label bits at the beta 4 knee.

Why Does This Exist?

Embeddings memorize: 784 pixels stored verbatim ace training and flop on new handwriting. Regularizers punish size, not irrelevance; a small embedding can still encode stroke thickness that never helps the digit. What you want is minimal relevant bits.

The bottleneck objective min⁡p(z∣x)I(X;Z)−βI(Z;Y)\min_{p(z \mid x)} I(X;Z) - \beta I(Z;Y) prices exactly that: compress XX into ZZ, keep YY predictable. It builds on mutual information under the ceiling of data processing inequality.

The one idea you need first

I(X;Z)I(X;Z) is the rate: bits of input kept. I(Z;Y)I(Z;Y) is the relevance: label bits preserved. β\beta trades them: β→0\beta \to 0 keeps nothing, β→∞\beta \to \infty keeps everything predictive. The curve of optimal pairs is the IB frontier.

Think of It Like This

Packing for a quiz

Your textbook is XX, the quiz is YY, your one-page cheat sheet is ZZ. Copying pages minimizes nothing useful; the best sheet keeps quiz answers in fewest lines.

β\beta is the page limit strictness. Where it stops: quizzes reward reasoning, not retrieval, while IB prices bits about fixed YY. Shifting quiz distributions voids the packing.

How It Actually Works

Blahut-Arimoto style iterations solve the discrete IB; variational bounds (VIB) train deep nets with E[log⁡q(y∣z)]−β DKL(p(z∣x)∥r(z))\mathbb{E}[\log q(y \mid z)] - \beta\,D_{KL}(p(z \mid x)\|r(z)): reconstruction-free, decoder plus prior penalty. Deterministic IB variants quantize ZZ. Theory links: SGD noise may trace the frontier (debated); minimal sufficient statistics are the β→∞\beta \to \infty limit; beta-VAE replays the tradeoff with reconstruction in place of I(Z;Y)I(Z;Y).

Worked example

Binary digits: YY fair (H(Y)=1H(Y) = 1 bit). Raw XX holds I(X;Y)=1.0I(X;Y) = 1.0 (labels determined). IB at β=4\beta = 4 learns ZZ with I(X;Z)=0.4I(X;Z) = 0.4 bits keeping I(Z;Y)=0.9I(Z;Y) = 0.9: 60 percent of input bits dropped for 10 percent of label bits. Accuracy moves 99.0 percent to 98.6 percent while input reconstruction collapses (by design). Sweeping β∈{0.5,1,4,16}\beta \in \{0.5, 1, 4, 16\} traces (0.05,0.4)(0.05, 0.4), (0.15,0.7)(0.15, 0.7), (0.4,0.9)(0.4, 0.9), (1.2,0.99)(1.2, 0.99): diminishing returns past the knee at β=4\beta = 4.

Code

The frontier picks the operating point, not vibes. Each pair below is (I(X;Z),I(Z;Y))(I(X;Z), I(Z;Y)) from the sweep, scored by the IB objective at β=4\beta = 4.

import numpy as np
rate = np.array([0.05, 0.15, 0.4, 1.2])  # I(X;Z)relevance = np.array([0.4, 0.7, 0.9, 0.99])  # I(Z;Y)beta = 4.0obj = rate - beta * relevance  # IB objective, lower betterprint(np.round(obj, 2))  # -> [-1.55 -2.65 -3.2  -2.76]

Objective bottoms at index 2 (β=4\beta = 4 knee): −3.2-3.2 beats fuller and thinner rivals. Rate 0.40.4 with relevance 0.90.9 is the knee the diagram marks.

Watch Out For

Pricing bits you cannot measure

Deep-net MI estimates (binning, MINE, plug-in) err by 2 to 5 times on high-dimensional ZZ. Optimizing a mismeasured I(X;Z)I(X;Z) squeezes phantoms while real memorization hides in estimator blind spots.

Pair IB training with probe accuracy and held-out tests. If probes disagree with MI meters, trust the probes.

Compressing away the next task signal

ZZ tuned for today YY drops attributes tomorrow task needs (background, style, subgroup). Reuse then fails silently: the bits are gone, not hidden.

Keep task-family YY broad or version representations per task. If transfer drops while source holds, the bottleneck overfit the old quiz.

The Quick Version

  • Minimize I(X;Z)−βI(Z;Y)I(X;Z) - \beta I(Z;Y): least input bits for most label bits.
  • Example keeps 0.9 of 1.0 label bits with 0.4 input bits at the knee.
  • β\beta slides the frontier from empty to sufficient; diminishing returns past the knee at β=4\beta = 4.
  • VIB trains it with decoder likelihood minus KL to a prior.
  • MI meters lie in high dimensions; verify with probes and held-out tests.
  • Bottlenecks overfit their quiz; broaden YY or version per task family.