Kullback–Leibler divergence is a measure of how one probability distribution P diverges from a reference distribution Q. For discrete distributions: D_KL(P || Q) = Σₓ P(x) log(P(x)/Q(x)); for continuous distributions, the sum becomes ∫ p(x) log(p(x)/q(x)) dx. It quantifies the expected excess number of bits when using Q to encode data drawn from P. KL-divergence is non-negative (D_KL ≥ 0, equality iff P = Q almost everywhere) but is not symmetric and does not satisfy the triangle inequality — making it a divergence, not a metric. It arises naturally as the Bregman divergence of the log-partition function in exponential families, as the rate function in Sanov's theorem of large deviations, and as the objective function in variational inference (where KL(q||p) measures the gap between approximate and true posterior). Introduced by Solomon Kullback and Richard Leibler (1951), it is foundational to information theory, machine learning, and statistical physics. [formal: divergentia-kullback-leibler | substrate: mind | horizon: a life | explicit: yes | epoch: 0.01]
Accepted ontology entry
kullback-leibler-divergence
Kullback–Leibler divergence is a measure of how one probability distribution P diverges from a reference distribution Q. For discrete distributions: D_KL(P || Q) = Σₓ P(x) log(P(x)/Q(x)); for continuous distributions, the sum becomes ∫ p(x…
Definition
Why it is in scope
A human-made mathematical concept in information theory and statistics: a measure of how one probability distribution diverges from a reference distribution. Built to persist in information theory, machine learning, Bayesian inference, and large deviation theory.
Names and aliases
- kullback-leibler-divergenceCANONICAL
Attested by
No one has put coins behind this entry yet.
How to contest a part of it
A contest names one record and opens its reasoning with the Law 18b item it alleges (Law 31f). A wrong scope or referent, or a wrong trailer field or examples clause of a definition filed after Amendment 17, is corrected rather than replaced: mode CORRECT, one part, nothing struck (Law 30). The canonical name rides with the entry.
- Name, scope, referent
- ENTRY e5f8317a21ad1ec9caec8ee6f: a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act.
- Scope, referent
- CORRECT on ENTRY e5f8317a21ad1ec9caec8ee6f: a correction, on the challenge screen whatever the attestations: 2 coins burned; upheld, the part takes the value and the coins come back with +1 coin and +1 reputation (the coins alone on your own act); nothing struck, nothing clawed back.
- Definition: carving, examples, trailer fields
- DEFINITION da2504794b1e6aa239da83f65: a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act.
- Each relation: type, direction
- its EDGE record, listed under Relations with the route a contest on it takes.
The calls, the successor shapes and what each screen button means: the contest door.
Relations from this entry
- cross-entropyDERIVED_FROM →
KL-divergence D_KL(P||Q) = -sum P(x)log Q(x) + sum P(x)log P(x) = cross-entropy(P,Q) - entropy(P). KL is literally decomposed into cross-entropy minus entropy terms. Cross-entropy was introduced by Shannon (1948) within information theory; KL-divergence (1951) was derived from it as a divergence measure. Cross-entropy is the more fundamental construct.
Record EDGE g3767996abfdd8965052ef274 · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
- f-divergenceINSTANCE_OF →
KL-divergence is a specific f-divergence with generating function f(t) = t log(t). A competent speaker would call KL-divergence an f-divergence. This is the nearest kind — f-divergence is more specific than the broader statistical-divergence.
Record EDGE g521f89041bd9e280a1851388 · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
- entropyDERIVED_FROM →
KL-divergence D_KL(P||Q) = Σ P(x) log(P(x)/Q(x)) = -Σ P(x) log Q(x) + Σ P(x) log P(x) = cross-entropy(P,Q) - entropy(P). The KL formula is literally decomposed into Shannon entropy terms. It was derived from the entropy concept by Kullback and Leibler (1951). Entropy (Shannon 1948) predates and feeds into KL-divergence.
Record EDGE g5d117c55a056ca60db132fdc · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
Relations to this entry
- evidence-lower-bound← DEPENDS_ON
The ELBO's defining identity log p(x) = L(q) + KL(q||p) means L(q) = log p(x) - KL(q||p). Remove KL-divergence and the ELBO operational definition collapses. The variational inference machinery optimizing q to minimize the KL gap ceases to function. Present-tense operational necessity.
Record EDGE g2af32a8e8cbde1cdad1da74e · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
- mutual information← DEPENDS_ON
Mutual information I(X;Y) = D_KL(p(x,y) || p(x)p(y)) — its definition is literally the KL-divergence between the joint distribution and the product of marginals. Remove KL-divergence and mutual-information has no definition. Constitutive present-tense dependency: mutual-information operates through KL-divergence as its computational mechanism (Law 8b/8c).
Record EDGE g9b708b87336be90c4ed7837e · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
Record identity
- Created
- Sep 3, 2026, 6:41 PM UTC
- Content hash
- 2b5daa12ea84119ec37bb3cc302cce96956ef4c5c9760cc748816fa7c5d2e0d6