[Paper Review] On the Upper Bound of the Kullback-Leibler Divergence and Cross Entropy
This paper establishes a finite upper bound of ||Z||−1 for cross entropy and Kullback-Leibler (KL) divergence when encoding a finite alphabet, resolving the unbounded nature of KL divergence in information-theoretic cost-benefit analysis. It proposes a new bounded divergence measure and compares it with JS-divergence and other bounded alternatives, showing that the new measure offers intuitive, interpretable, and scalable alternatives to KL divergence in practical applications.
This archiving article consists of several short reports on the discussions between the two authors over the past two years at Oxford and Madrid, and their work carried out during that period on the upper bound of the Kullback-Leibler divergence and cross entropy. The work was motivated by the cost-benefit ratio proposed by Chen and Golan [1], and the less desirable property that the Kullback-Leibler (KL) divergence used in the measure is unbounded. The work subsequently (i) confirmed that the KL-divergence used in the cost-benefit ratio should exhibit a bounded property, (ii) proposed a new divergence measure, and (iii) compared this new divergence measure with a few other bounded measures.
Motivation & Objective
- To address the unbounded nature of KL divergence in information-theoretic cost-benefit analysis, which undermines interpretability when values approach −∞.
- To establish a finite upper bound for cross entropy and KL divergence based on the semantics of entropy coding and alphabet size.
- To propose a new bounded divergence measure that preserves desirable properties such as boundedness, interpretability, and flexibility in commutativity.
- To compare the new divergence with existing bounded measures (e.g., JS-divergence) in terms of symmetry, curvature, and semantic intuition.
Proposed method
- Derives an upper bound of ||Z||−1 for cross entropy by analyzing the worst-case inefficiency in entropy coding when the least probable symbol is used most frequently.
- Uses a binary prefix code construction (e.g., Huffman-like coding) to show that no symbol in an alphabet of size ||Z||=n requires more than n−1 bits, establishing the upper bound.
- Proposes a new divergence measure based on the form pᵢ log(|pᵢ−qᵢ|+1), which is bounded and interpretable, with variants for commutativity and generalized scaling.
- Introduces generalized versions of the new divergence using |pᵢ−qᵢ|ᵏ+1 with k=1 and k=2 to control curvature and sensitivity.
- Compares the new divergence with JS-divergence and KL divergence using per-letter divergence plots to evaluate symmetry, monotonicity, and semantic intuition.
- Scales all bounded measures by ℋ_max(ℤ) to ensure they are bounded within [0, ℋ_max(ℤ)] for consistent interpretation in cost-benefit frameworks.
Experimental results
Research questions
- RQ1Does a finite upper bound exist for cross entropy and KL divergence when encoding a finite alphabet using entropy coding principles?
- RQ2Can a bounded divergence measure be constructed that preserves the semantic meaning of inefficiency in coding while avoiding unbounded values?
- RQ3Which bounded divergence measure—JS-divergence, the new divergence, or its variants—best balances interpretability, symmetry, and curvature similarity to KL divergence?
- RQ4How do the new divergence measures behave under varying probability differences, and do they exhibit intuitive asymmetry or symmetry patterns?
Key findings
- The cross entropy ℋ(P,Q) is bounded above by ||ℤ||−1 for any finite alphabet ℤ, derived from the maximum codeword length in optimal prefix coding.
- The KL divergence ℋ(P||Q) is bounded above by ℋ_max(ℤ) when the true PMF P is uniform and the estimated PMF Q is highly skewed, confirming the existence of a finite upper bound.
- The proposed new divergence measure, defined as pᵢ log(|pᵢ−qᵢ|+1), is bounded and exhibits intuitive behavior: divergence increases with |pᵢ−qᵢ| and is symmetric in its generalized commutative form.
- The non-commutative version of the new divergence (Equation 5) preserves partial asymmetry of KL divergence, making it suitable for applications where directionality matters.
- The commutative version (Equation 6) with k=2 shows better curvature similarity to KL divergence than the basic version, while maintaining boundedness and positive correlation between divergence and |pᵢ−qᵢ|.
- The JS-divergence and the new divergence with k=2 both exhibit curvature closer to KL divergence than the basic new divergence, but the new divergence offers greater interpretability and mental estimation ease due to its near-linear shape.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.