Skip to main content
QUICK REVIEW

[Paper Review] Notes on Kullback-Leibler Divergence and Likelihood

Jonathon Shlens|arXiv (Cornell University)|Apr 8, 2014
Neural Networks and ApplicationsComputer Science69 citations
TL;DR

This paper establishes a direct link between Kullback-Leibler (KL) divergence and likelihood theory, showing that KL divergence emerges as the negative logarithm of the average multinomial likelihood in the limit of infinite observations. It provides intuitive insight into KL divergence by framing it as a measure of how well a model distribution q explains observed data under the true distribution p.

ABSTRACT

The Kullback-Leibler (KL) divergence is a fundamental equation of information theory that quantifies the proximity of two probability distributions. Although difficult to understand by examining the equation, an intuition and understanding of the KL divergence arises from its intimate relationship with likelihood theory. We discuss how KL divergence arises from likelihood theory in an attempt to provide some intuition and reserve a rigorous (but rather simple) derivation for the appendix. Finally, we comment on recent applications of KL divergence in the neural coding literature and highlight its natural application.

Motivation & Objective

  • To provide an intuitive understanding of Kullback-Leibler (KL) divergence by connecting it to likelihood theory, rather than relying solely on its formal definition.
  • To demonstrate that the KL divergence is mathematically equivalent to the negative logarithm of the average likelihood in the infinite-sample limit.
  • To clarify the role of KL divergence in statistical inference and information theory through a derivation grounded in combinatorics and Stirling’s approximation.
  • To highlight the relevance of KL divergence in modern applications, particularly in neural coding where it quantifies dependencies and correlations among neurons.

Proposed method

  • Derives the average multinomial likelihood $\bar{L} = L(c|q)^{1/n}$ as a scale-invariant measure of model fit, independent of sample size n.
  • Applies Stirling’s approximation $\log n! \approx n\log n - n$ to simplify the logarithm of the multinomial likelihood expression.
  • Replaces normalized histogram counts $c_i/n$ with the empirical distribution $p_i$, leading to the expression $\bar{L} = -\sum_i p_i \log p_i + \sum_i p_i \log q_i$.
  • Identifies the resulting expression as $-D_{\text{KL}}(p \| q)$, thus showing $D_{\text{KL}}(p \| q) = \lim_{n\to\infty} -\frac{1}{n} \log L(c|q)$.
  • Demonstrates that the normalization constant in the multinomial likelihood gives rise to the entropy term $-\sum_i p_i \log p_i$, linking combinatorics to information theory.
  • Uses the derived relationship to interpret KL divergence as the coding penalty or the log-likelihood deficit when using model q to describe true distribution p.

Experimental results

Research questions

  • RQ1How does the Kullback-Leibler divergence relate to the likelihood of observing data under a statistical model?
  • RQ2Why is the KL divergence non-symmetric, and what does this imply about model selection and information loss?
  • RQ3What is the asymptotic behavior of the average multinomial likelihood, and how does it connect to the KL divergence?
  • RQ4How can the KL divergence be interpreted as a measure of model fit in terms of information theory and coding efficiency?
  • RQ5What is the role of the multinomial likelihood normalization constant in the emergence of entropy and KL divergence?

Key findings

  • The KL divergence $D_{\text{KL}}(p \| q)$ is mathematically equivalent to the negative logarithm of the average multinomial likelihood in the limit of infinite samples: $D_{\text{KL}}(p \| q) = \lim_{n\to\infty} -\frac{1}{n} \log L(c|q)$.
  • When the true distribution $p$ and model distribution $q$ are identical, the average likelihood $\bar{L}$ approaches 1, and the KL divergence is zero.
  • If the model $q$ is incorrect and the observed frequencies $c_i/n$ diverge from $q_i$, the average likelihood $\bar{L}$ approaches zero, driving the KL divergence to infinity.
  • The derivation reveals that the normalization constant in the multinomial likelihood gives rise to the entropy term $-\sum_i p_i \log p_i$, linking combinatorics to information theory.
  • The KL divergence quantifies the expected information loss when using $q$ to approximate $p$, interpreted as a 'coding penalty' in information theory.
  • The KL divergence naturally underpins mutual information, which measures statistical dependence between random variables via $I(X;Y) = D_{\text{KL}}(p(x,y) \| p(x)p(y))$.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.