On the Estimation of Information Measures of Continuous Distributions

Georg Pichler, Pablo Piantanida, Günther Koliander

Abstract

Estimating information-theoretic measures such as differential entropy, mutual information, and relative entropy from finite samples is a cornerstone of modern machine learning. However, this task is fundamentally constrained by a "no free lunch" theorem. This paper demonstrates that without prior assumptions regarding a distribution's smoothness and support, it is mathematically impossible to guarantee the accuracy of an estimate. By assuming Lipschitz continuity and known bounded support, the authors derive reliable confidence bounds using a corrected histogram-based estimator.

Introduction

In contemporary machine learning, information-theoretic quantities serve as critical objective functions. Variational Autoencoders (VAEs) utilize Kullback-Leibler (KL) divergence for regularization, while InfoGANs maximize mutual information to learn disentangled representations. Despite their ubiquity, these measures are typically calculated from finite samples rather than known probability density functions. This necessitates the use of estimators.

The central question addressed in this research is whether these estimates can be trusted. Specifically, the authors investigate whether an estimator can provide a universal confidence interval—a guarantee that the calculated value resides within a specific distance of the true value with high probability, regardless of the underlying distribution within a given family.

The Impossibility of Universal Estimation

The authors first establish a series of impossibility results. Using a "dense graph condition" and convex analysis, they prove that if a family of distributions is sufficiently flexible—specifically, if the family is convex and the entropy within it can be infinitely large or small—no estimator can provide a universal confidence bound.

This "convexity trap" implies that if a weighted average of any two distributions in a set remains within that set, and the entropy is unbounded, any attempt to provide a high-confidence error bound is destined to fail for at least one distribution in that family. This limitation is not restricted to entropy; it extends to mutual information and relative entropy (KL divergence).

Constructive Bounds: The Histogram Estimator

To circumvent these theoretical hurdles, the authors introduce two necessary constraints:

  1. $L$-Lipschitz Continuity: The probability density function must not change too abruptly, effectively limiting the "smoothness" of the distribution.
  2. Known Bounded Support: The data must reside within a fixed, known domain (e.g., a unit hypercube $[0, 1]^K$).

Under these conditions, the paper analyzes a "Corrected Shannon Entropy" estimator. The process involves:

  • Partitioning the bounded support into $M$ equal bins.
  • Constructing an empirical discrete distribution based on sample counts within these bins.
  • Calculating the standard Shannon entropy for the discrete distribution.
  • Applying a correction factor ($-K \log M$) to translate the discrete value back into an estimate of continuous differential entropy.

Error Decomposition and Key Results

The reliability of this histogram estimator is analyzed through a bias-variance decomposition. The total error $|\hat{h} - h|$ is divided into three components:

  • Quantization Bias: The error introduced by approximating a continuous density with discrete bins.
  • Variance: The statistical error arising from the finite number of samples $N$.
  • Approximation Error: A term ensuring that the sample size is sufficient to populate the chosen number of bins effectively.

Formal Findings

  • Proposition 2: Formally establishes that for any convex family with unbounded differential entropy, the probability of an estimate being significantly distant from the truth can be arbitrarily high.
  • Theorem 3: Provides an explicit mathematical bound for the error of the histogram estimator. It proves that as the number of samples $N$ and the number of bins $M$ increase at appropriate relative rates, the estimation error vanishes.

Discussion and Limitations

While the histogram-based estimator provides a vital "proof-of-concept" for deriving clean mathematical bounds, it has practical limitations. It is often less sample-efficient than more sophisticated techniques, such as $k$-nearest neighbor (k-NN) estimators. Furthermore, the universal confidence bounds derived are "loose"; in many real-world scenarios, the actual error may be significantly smaller than the theoretical maximum.

The findings underscore a fundamental principle: the reliability of an entropy estimate cannot be determined from the data alone. It requires "external" knowledge—such as the Lipschitz constant $L$—which cannot be empirically verified from a finite sample set.

Conclusion

This work clarifies the boundaries of what is possible in the estimation of information measures. By identifying the necessity of smoothness and support constraints, it provides a theoretical foundation for understanding when and why our estimates of entropy and mutual information can be considered reliable. Future work may extend these confidence bounds to the variational estimators frequently used in deep learning, such as MINE or NWJ.

Summary updated

BibTeX
@inproceedings{pichler2023estimation,
  author = {Georg Pichler and Pablo Piantanida and Günther Koliander},
  title = {{On the Estimation of Information Measures of Continuous Distributions}},
  booktitle = {SPIRE},
  year = {2023},
}
Figure