A Neural Network Algorithm for KL Divergence Estimation with Quantitative Error Bounds
Mikil Foss, Andrew Lamperski
TL;DR
This work tackles the problem of estimating the KL divergence $D_{KL}(\mathbb{P}\|\mathbb{Q})$ for continuous random variables in high dimensions.It introduces a constructive estimator based on a shallow random-feature ReLU network within a MINE-inspired variational framework, yielding a convex objective and scalable updates.A quantitative error bound is proven: the estimation error decays as $O(m^{-1/2}+T^{-1/3})$ with $m$ neurons and $T$ samples/steps, plus a finite-sample bound that depends on a smoothness norm $\|g\|_{F^{n+3}}$ and dimension $n$.Numerical experiments in 2D and 5D validate the method, demonstrating favorable accuracy and speed relative to a baseline solver for moderate configurations.
Abstract
Estimating the Kullback-Leibler (KL) divergence between random variables is a fundamental problem in statistical analysis. For continuous random variables, traditional information-theoretic estimators scale poorly with dimension and/or sample size. To mitigate this challenge, a variety of methods have been proposed to estimate KL divergences and related quantities, such as mutual information, using neural networks. The existing theoretical analyses show that neural network parameters achieving low error exist. However, since they rely on non-constructive neural network approximation theorems, they do not guarantee that the existing algorithms actually achieve low error. In this paper, we propose a KL divergence estimation algorithm using a shallow neural network with randomized hidden weights and biases (i.e. a random feature method). We show that with high probability, the algorithm achieves a KL divergence estimation error of $O(m^{-1/2}+T^{-1/3})$, where $m$ is the number of neurons and $T$ is both the number of steps of the algorithm and the number of samples.
