Information Theory · 90
Glossary
The technical terms of this track, with short definitions (and the Persian term where available). Each term links to the lesson where it is introduced.
- aggregate posterior
- The average encoder distribution over the data, . Introduced in: Lesson 10
- amortization gap
- The extra ELBO gap that comes from using one shared encoder instead of the best for each separately. Introduced in: Lesson 9
- amortized inference
- Using one encoder network for all data points instead of a separate optimization of for each . Introduced in: Lesson 9
- approximation gap
- The part of the ELBO gap that comes from the family of being too simple, for the best member of the family. Introduced in: Lesson 9
- arithmetic coding
- An entropy coder that codes a whole sequence as one interval in . With a model it spends about bits, plus less than 2 bits for the whole sequence. Introduced in: Lesson 5
- asymmetric numeral systems (ANS)
- A modern entropy coder that reaches the same rate as arithmetic coding but is faster. It is used, for example, in the zstd compressor. Introduced in: Lesson 5
- binary cross-entropy (BCE)
- The cross-entropy for a two-class target and a predicted probability , . Introduced in: Lesson 4
- binary entropy
- The entropy of a coin with probability of heads, bits. It is 1 bit at . Introduced in: Lesson 1
- binary symmetric channel
- A channel that flips each input bit with probability . Its capacity is bits per use. Introduced in: Lesson 7
- bit
- The unit of information when the log has base 2. An outcome with probability has a surprisal of 1 bit. Introduced in: Lesson 1
- bits per byte
- The NLL of a language model in bits divided by the number of bytes of the text. Unlike perplexity, it does not depend on the tokenizer. Introduced in: Lesson 4
- bits per dimension (bpd)
- The NLL of an image or audio model in bits divided by the number of dimensions, . Introduced in: Lesson 4
- Blahut–Arimoto algorithm
- An algorithm that computes points of the rate–distortion curve of a discrete source by alternating two exact minimizations, over the test channel and over the output distribution. Introduced in: Lesson 10
- calibration
- A model is calibrated when, among all inputs where it predicts probability , the event happens a fraction of the time. Temperature scaling on validation data fixes most miscalibration of large networks. Introduced in: Lesson 4
- chain rule for entropy
- . For a sequence, . Introduced in: Lesson 2
- chain rule for mutual information
- . Introduced in: Lesson 7
- channel capacity
- A channel is a conditional distribution ; its capacity is , the largest rate of reliable communication in bits per use. Introduced in: Lesson 7
- conditional entropy
- The average entropy of that remains when is known, . On average, conditioning does not increase entropy, . Introduced in: Lesson 2
- conditional mutual information
- , the information gives about when is already known. Introduced in: Lesson 7
- contrastive representation learning
- Training encoders so that positive pairs get high scores and negative pairs low scores, usually with the InfoNCE loss (CPC, SimCLR, MoCo, CLIP). Introduced in: Lesson 8
- convex conjugate
- The function , also called the Fenchel conjugate. It turns any critic into a lower bound on an f-divergence. Introduced in: Lesson 8
- convex function
- A function whose chord between any two points lies on or above its graph, for . and are convex. Introduced in: Lesson 3
- critic
- A learned function or that is plugged into a variational bound. The best critic is a function of the density ratio. Introduced in: Lesson 8
- cross-entropy
- The average surprisal under a model of data from , . It is at least , with equality only for . Introduced in: Lesson 4
- data processing inequality (DPI)
- If is a Markov chain, then . Processing cannot create information about . Introduced in: Lesson 7
- density-ratio trick
- Train a classifier to tell samples of from samples of (equal numbers). The best classifier's logit is the log density ratio . Introduced in: Lesson 8
- differential entropy
- The entropy of a density, . Unlike discrete entropy, it can be negative and it changes when the units change. For it is . Introduced in: Lesson 6
- distortion measure
- A function that scores a reconstruction, for example Hamming distortion or squared error . Introduced in: Lesson 10
- Donsker–Varadhan bound
- The lower bound for any critic . It is tighter than NWJ for the same critic. MINE maximizes it with a neural critic. Introduced in: Lesson 8
- entropy
- The average surprisal of a discrete random variable, , with . It is 0 for a certain outcome and largest () for the uniform distribution on outcomes. Introduced in: Lesson 1
- evidence
- The marginal likelihood of the data, . It is usually intractable in latent-variable models. Introduced in: Lesson 9
- evidence lower bound (ELBO)
- . The gap is the reverse KL from to the true posterior. Introduced in: Lesson 9
- expected length
- The average number of bits per symbol of a code, . Introduced in: Lesson 5
- f-divergence
- For a convex generator with , . KL, reverse KL, total variation, , squared Hellinger and Jensen–Shannon are special cases. Introduced in: Lesson 8
- forward KL
- Fitting a model to data by minimizing ; this is maximum likelihood. It needs only samples of and is mode covering. Introduced in: Lesson 6
- free bits
- A VAE training trick that sets a floor on the rate (the KL term) per latent dimension or group, to prevent posterior collapse. Introduced in: Lesson 10
- Gibbs' inequality
- , with equality if and only if . It follows from Jensen's inequality for . Introduced in: Lesson 3
- Huffman code
- The prefix code with the smallest expected length for known symbol probabilities. Huffman's algorithm repeatedly merges the two nodes with the smallest weights. Introduced in: Lesson 5
- ideal code length
- The code length bits that a model assigns to . With the wrong model, the average cost is bits per symbol. Introduced in: Lesson 5
- InfoNCE
- A softmax cross-entropy that picks the positive pair among pairs in a batch. It gives the bound , which can never exceed . Introduced in: Lesson 8
- information bottleneck
- For a Markov chain , find the representation that minimizes , to keep little of the input and much about the label. Introduced in: Lesson 10
- information gain
- The drop in entropy of a label after a split or a measurement , . It is never negative and equals the mutual information . Introduced in: Lesson 2
- IWAE bound
- The importance-weighted bound with . is the ELBO and . Introduced in: Lesson 9
- Jensen gap
- The difference for a convex . It is 0 when is constant (or is linear on the values of ). Introduced in: Lesson 3
- Jensen's inequality
- For a convex , . For a concave such as , the inequality flips, . Introduced in: Lesson 3
- joint entropy
- The entropy of a pair of random variables, . Introduced in: Lesson 2
- KL divergence
- The Kullback–Leibler divergence, or relative entropy, . It is the extra surprise of using when the data come from . It is not symmetric and not a metric. Introduced in: Lesson 3
- knowledge distillation
- Training a small student model on the softened output distribution of a large teacher model, with a cross-entropy or KL loss at a temperature . Introduced in: Lesson 4
- Kraft inequality
- Binary codeword lengths of a prefix code satisfy . Conversely, any lengths that satisfy it belong to some prefix code. Introduced in: Lesson 5
- KSG estimator
- The -nearest-neighbour estimator of mutual information for continuous variables (Kraskov, Stögbauer and Grassberger, 2004). Introduced in: Lesson 7
- label smoothing
- Training with a target that mixes the one-hot label with the uniform distribution, . The loss is , so the model is not pushed to give probability 1. Introduced in: Lesson 4
- latent-variable model
- A model with an unobserved variable . The prior is and the likelihood is . Introduced in: Lesson 9
- log-loss
- The loss of a model that gave probability to the observed outcome . Its average over data is the negative log-likelihood (NLL) and estimates the cross-entropy. Introduced in: Lesson 4
- logits
- The unnormalized scores that a classifier outputs before the softmax. Adding the same constant to all logits does not change the probabilities. Introduced in: Lesson 4
- Markov chain
- is a Markov chain if , so is computed from alone. Introduced in: Lesson 7
- maximum-entropy principle
- Among all distributions with given constraints, choose the one with the largest entropy. With a fixed mean and covariance, the answer is the Gaussian. Introduced in: Lesson 6
- mean-field
- A factorized approximation that treats the coordinates as independent. Reverse-KL mean-field fits of correlated distributions are too narrow. Introduced in: Lesson 6
- minimum description length (MDL)
- The principle to choose the model that gives the shortest total code for the model plus the data coded with it. Introduced in: Lesson 5
- mode covering
- The behaviour of forward-KL fits. The model must put mass everywhere has mass, so a single Gaussian fit to two bumps spreads over both. Introduced in: Lesson 6
- mode seeking
- The behaviour of reverse-KL fits. The model avoids regions where is small, so a single Gaussian fit to two bumps often sits on one bump. Introduced in: Lesson 6
- mutual information
- The information that and share, . It is symmetric, never negative, and 0 if and only if and are independent. Introduced in: Lesson 7
- nat
- The unit of information with the natural log. 1 nat bits. PyTorch and NumPy losses are in nats. Introduced in: Lesson 1
- NWJ bound
- The lower bound of Nguyen, Wainwright and Jordan, for any critic . The optimal critic is . Introduced in: Lesson 8
- perplexity
- The exponential of the average cross-entropy per token in nats, (equal to for a loss in bits). A perplexity of means the model is as unsure as a uniform choice among tokens. Introduced in: Lesson 4
- Pinsker's inequality
- , with KL in nats. Introduced in: Lesson 8
- plug-in estimator
- An estimate of entropy or mutual information that inserts the empirical frequencies into the formula. For mutual information it is biased upward, so independent variables get small positive scores. Introduced in: Lesson 7
- pointwise mutual information (PMI)
- . Its average over is the mutual information; a single value can be negative. Introduced in: Lesson 7
- positive pair
- In contrastive learning, a true pair drawn from , for example two views of the same image. A negative pair , , is a sample of . Introduced in: Lesson 8
- posterior
- The distribution of the latent variable given the data, . Introduced in: Lesson 9
- posterior collapse
- A VAE failure where the decoder models without using , and the encoder sets . The KL term (the rate) is then 0 and the code carries no information. Introduced in: Lesson 9
- prefix code
- A code in which no codeword is the beginning of another codeword (also called prefix-free). It can be decoded symbol by symbol without separators. Introduced in: Lesson 5
- rate
- The number of bits per symbol that a compressor stores. In a VAE, the rate is the average KL term . Introduced in: Lesson 10
- rate–distortion function
- over test channels with , the smallest rate for average distortion at most . For a Gaussian source with squared error, for . Introduced in: Lesson 10
- reparameterization trick
- Writing a sample as a differentiable function of the parameters and fixed noise, for example with , so gradients flow through the sample. Introduced in: Lesson 9
- reverse KL
- Fitting by minimizing . It needs only up to a constant and samples of , as in variational inference. It is mode seeking. Introduced in: Lesson 6
- reverse water-filling
- The rate–distortion solution for independent Gaussian components. Each component gets distortion for one water level ; components with variance below get no bits. Introduced in: Lesson 10
- softmax
- The map from logits to probabilities, . The gradient of softmax cross-entropy with respect to the logits is (prediction minus target). Introduced in: Lesson 4
- source coding theorem
- The best prefix code for a source has expected length with bits. Coding blocks of symbols brings the cost per symbol close to . Introduced in: Lesson 5
- strictly proper scoring rule
- A score for probabilistic predictions whose expected value is best only when the predicted distribution equals the true one. The log-loss is strictly proper; accuracy is not. Introduced in: Lesson 4
- subadditivity
- , with equality if and only if and are independent. Introduced in: Lesson 2
- sufficient statistic
- A function of the data is sufficient for when does not depend on . Then . Introduced in: Lesson 7
- support
- The set of values with . Introduced in: Lesson 1
- surprisal
- The information content of one outcome, . Rare outcomes have large surprisal; an outcome with probability 1 has surprisal 0. Also called self-information. Introduced in: Lesson 1
- test channel
- The conditional distribution of the reconstruction given the source, over which the rate–distortion problem is minimized. Introduced in: Lesson 10
- transform coding
- Lossy compression that first rotates the data to (nearly) independent components, such as principal components, and then spends bits on each component as in reverse water-filling. Introduced in: Lesson 10
- uniquely decodable code
- A code where every finite string of bits has at most one decoding into symbols. Every prefix code is uniquely decodable. Introduced in: Lesson 5
- variational autoencoder (VAE)
- A latent-variable model with a neural decoder and a neural encoder , trained by maximizing the ELBO with the reparameterization trick. Introduced in: Lesson 9
- variational free energy
- The negative ELBO, , as physicists call it. Introduced in: Lesson 9
- variational inference (VI)
- Approximating a posterior by the member of a chosen family that maximizes the ELBO, which is the same as minimizing . Introduced in: Lesson 9
- β-VAE
- A VAE that minimizes , distortion plus times rate. gives the negative ELBO; gives a lower rate and more distortion. Introduced in: Lesson 10