Skip to main content
LLM LSD
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Kullback-Liebler Divergence

Kullback-Leibler Divergence, often written as KL divergence, measures how much one probability distribution differs from another. More specifically, it estimates the expected information lost when a model distribution is used to approximate a true distribution.

Its significance is that it gives a precise way to compare belief, prediction, or compression systems. A KL divergence of zero means the two distributions match exactly. Larger values mean the approximation is more misleading. It is not a true distance, because it is asymmetric: comparing P to Q is not generally the same as comparing Q to P.

Applications

  • Machine learning and model training
  • Variational inference and Bayesian statistics
  • Information theory and data compression
  • Natural language processing
  • Neuroscience and perception modeling
  • Bioinformatics and sequence analysis
  • Econometrics and risk modeling

Speculations

  • Personal growth: the gap between who someone believes they are and how they actually behave.
  • Art criticism: the divergence between an artist’s intended meaning and an audience’s interpretation.
  • Urban design: the mismatch between how a city is planned and how people actually move through it.
  • Mythology: the distance between a culture’s official stories and its hidden fears.
  • Dream analysis: the difference between waking logic and the probability-space of dreams.

References