Jargonautica
Maths and Statistics

Kullback-Leibler Divergence

Also called: KL Divergence

A measure of how far one probability distribution is from another. It comes up whenever a system is being trained to imitate something, or being kept from drifting too far from where it started. It is not a distance in the ordinary sense, because the answer changes depending on which way round you ask.

Technical view

The expected log ratio between two distributions, non-negative and zero only when they are identical, but asymmetric and not satisfying the triangle inequality. Cross-entropy equals entropy plus this divergence, which is why minimising one minimises the other. It appears explicitly as the penalty term keeping a policy near its reference model during preference training, and in the variational objective of autoencoders.


Part of AI Terminology Index, section: Maths and Statistics.

How it connects

Kullback-Leibler Divergence links to 7 other terms. The faint lines are links between those terms. See it in the full graph.

Proximal Policy OptimisationProximal Policy Opt…Entropy and InformationEntropy and Informa…Direct Preference OptimisationDirect Preference O…Mutual InformationMutual InformationGroup Relative Policy OptimisationGroup Relative Poli…DistillationDistillationVariational AutoencoderVariational Autoenc…Kullback-Leibler Divergence