betaFeedback

WorksComputer Science

A Poisson Transition and Bias Law for KSG Mutual-Information Estimation

Abstract

We quantify the error of the strict-radius Kraskov–Stögbauer–Grassberger (KSG-1) mutual-information estimator on a Gaussian channel as the sample size nn grows and the channel becomes nearly deterministic. For fixed dimension pp and neighbor index kk, we define the resolution parameter un=ne−Inu_n=ne^{-I_n}, where InI_n is the true mutual information in nats. When un→u∈(0,∞)u_n\to u\in(0,\infty), we prove that the estimation error converges in mean square to a computable deterministic bias Bp,k(u)B_{p,k}(u). Sampling fluctuations therefore vanish, while an additive bias can persist. We derive this bias from an explicit marked-Poisson law for the neighborhood counts, characterize its small-uu asymptotics, and show that it tends to zero as u→∞u\to\infty. The same law describes how often neighborhoods saturate, meaning that they make the largest possible contribution to the estimate. The limiting saturation probability decreases continuously and strictly from one to zero, allowing a Gaussian-model bias correction on fixed critical intervals. Finite-sample experiments show substantial bias even when the true information lies below the estimator's logarithmic ceiling and saturated neighborhoods are rare. Saturation-based correction reduces estimation error in these experiments, though recovering the resolution parameter from the observed saturation fraction can remain difficult when saturation is rare.

Introduction

We study mutual information (MI) estimation for a Gaussian channel whose output becomes nearly determined by its input. As the channel noise vanishes, the mutual information grows and the joint distribution concentrates near the diagonal. A nearest-neighbor estimator must resolve the shrinking width of this distribution from finitely many observations. We ask how the estimation error behaves when the sample size grows at the same time as the noise vanishes.

The Kraskov–Stögbauer–Grassberger estimator (KSG) [8] measures dependence by comparing joint and marginal nearest-neighbor counts at a shared radius. For a fixed distribution, existing analyses establish consistency and bounds on bias and variance [4, 14]. Here the channel noise shrinks with sample size, changing the density, so those fixed-distribution bias bounds need not apply uniformly. Fundamental limits on KSG estimation are well studied: the estimator has a ceiling of order log⁡n\log n, and estimating large MI accurately can require a sample size exponential in that information [3]. The ceiling bounds what KSG can report, but does not quantify its error when the true information lies below it. Our question is therefore not whether an exponential sample requirement exists, but how KSG behaves at that scale.

Geometric methods address the local nonuniformity underlying this behavior [10]. Using nearest-neighbor limits, Gao et al. [5] derive a bias correction for local-likelihood entropy estimators. They analyze a fixed distribution and obtain a limiting bias independent of its density, so the correction can be precomputed. Here the limiting bias of strict-radius KSG depends on uu because the Gaussian channel changes with sample size; our count law also gives the saturation probability. Practical bias diagnostics and error bars [6] assess estimation reliability, while distribution-free results [11] limit the strength of high-confidence information lower bounds. Here we characterize KSG’s limiting error within a specified Gaussian family. The channel’s mutual information is known exactly, In=(p/2)log⁡(1/δn)I_n=(p/2)\log(1/\delta_n), where pp is the dimension and δn\delta_n controls the noise level. This lets us measure KSG’s error against a known reference as the channel becomes nearly deterministic. The resolution parameter we use throughout is

un=ne−In=nδnp/2.u_n = n e^{-I_n} = n\delta_n^{p/2}.

Here InI_n is measured in nats. This compares the sample size nn with eIne^{I_n}, as the known exponential sample requirement suggests. It also has a geometric interpretation. The noise width is of order δn\sqrt{\delta_n}, while the source-neighbor spacing is of order n−1/pn^{-1/p}, up to a local density factor. Their ratio is of order un1/pu_n^{1/p}. When unu_n tends to a positive constant, neither scale becomes negligible relative to the other; this is the critical regime. For fixed dimension pp and neighbor index kk, when un→u∈(0,∞)u_n \to u \in(0,\infty), the neighborhood counts converge to an explicit mixed-Poisson law. We use this law to prove that

I^n,k−In⟶Bp,k(u) in L2,\widehat{I}_{n,k} - I_n \longrightarrow B_{p,k}(u) \text{ in } L^2,

where Bp,k(u)B_{p,k}(u) is the computable limiting bias. Along this shrinking-noise sequence, the estimation error concentrates around Bp,k(u)B_{p,k}(u), which need not be zero.

KSG chooses its radius from neighbors that are close in both XX and YY. At the same radius, the XX-count requires closeness only in XX, and the YY-count only in YY. Both can therefore include additional observations outside the joint neighborhood. In the critical regime, rescaling distances by the noise width gives a marked Poisson process: each source point carries a Gaussian noise value that determines its output location. For fixed source and noise values of the query, this process describes the selected joint radius and the extra marginal counts. Averaging over the query values then gives the limiting count law for a randomly chosen observation.

A neighborhood is saturated when it makes the largest possible contribution to the estimate. The count law gives the limiting saturation fraction qp,k(u)q_{p,k}(u). This curve is continuous and strictly decreasing, approaching one as u→0u \to0 and zero as u→∞u \to\infty. Within the Gaussian model, this gives a bias correction: on a fixed compact critical interval, we invert the curve to estimate uu from the observed saturation fraction and subtract the corresponding bias.

We also characterize the counts on either side of the critical regime. If un→0u_n \to0, a typical neighborhood saturates and the estimate grows like log⁡n\log n. If δn→0\delta_n \to0 and un→∞u_n \to\infty, the marginal counts grow on the un\sqrt{u_n} scale. Separately, in the limiting Poisson law, the small-uu bias approaches the gap between the ceiling and the true information, and the bias tends to zero as u→∞u \to\infty. Finite-sample experiments compare KSG’s mean error and saturation probability with independently computed Poisson predictions. They show substantial error even below the estimator’s ceiling, when saturation is rare. The correction reduces this error, although estimating uu from finite-sample saturation can limit its accuracy.

Our results build on local Poisson approximation and geometric bounds for nearest-neighbor statistics [1, 9, 12]. We control marginal counts over regions that are unbounded in the other coordinate, and establish convergence of the full estimator despite dependence among neighborhoods. § 2 fixes the channel and estimator. § 3 and § 4 derive the critical count law and estimator limit. § 5 treats the thin and regular regimes and the bias endpoints, and § 6 derives saturation-based bias correction. Numerical results appear in § 7. Proofs of the supporting tail, geometric, and integrability estimates appear in Appendices § 10–§ 14.

Channel, estimator, and resolution scale

The Gaussian channel

We fix integers pp, k≥1k \ge1, denoting the dimension and neighbor index, respectively. Both remain fixed in every limit. For each sample size n>kn > k, draw X1,…,XnX_1,\ldots,X_n, Z1,…,ZnZ_1,\ldots,Z_n independently from the standard Gaussian distribution N(0,Ip)\mathcal{N}(0,I_p). For 0<δn<10 < \delta_n < 1, we define

Yi,n=(1−δn)Xi+δn(1−δn)Zi(1)Y_{i,n} = (1-\delta_n)X_i + \sqrt{\delta_n(1-\delta_n)}Z_i \tag*{(1)}

The difference Xi−Yi,nX_i-Y_{i,n} is independent of Yi,nY_{i,n} and has distribution N(0,δnIp)\mathcal{N}(0,\delta_n I_p). Thus δn\delta_n is the mean squared difference per coordinate. Cov⁡(Yn)=(1−δn)Ip\operatorname{Cov}(Y_n) = (1-\delta_n)I_p, while Cov⁡(Yn∣X)=δn(1−δn)Ip\operatorname{Cov}(Y_n \mid X) = \delta_n(1-\delta_n)I_p. Taking the difference of the corresponding Gaussian differential entropies therefore gives the mutual information

In:=I(X;Yn)=12log⁡det⁡{(1−δn)Ip}det⁡{δn(1−δn)Ip}=p2log⁡1δn.I_n := I(X;Y_n) = \frac{1}{2}\log\frac{\det\{(1-\delta_n)I_p\}}{\det\{\delta_n(1-\delta_n)I_p\}} = \frac{p}{2}\log\frac{1}{\delta_n}.

As δn→0\delta_n \to0, the output approaches the input and InI_n diverges. We use natural logarithms in the theory and report numerical information errors in bits. Figure 1 illustrates how the joint distribution concentrates around Y=XY=X as the noise decreases. The coordinate difference Y−XY-X has variance δ\delta, so the standard deviation perpendicular to Y=XY=X is δ/2\sqrt{\delta/2}.

Three scatter plots showing the scalar Gaussian channel approaching the diagonal as delta decreases

Figure 1. The scalar Gaussian channel approaches Y=XY=X as δ\delta decreases. Each panel shows 600 pairs generated by equation (1) with p=1p=1, using the same source and noise draws across panels.

Strict-radius KSG-1

For query ii and competitor j≠ij \ne i, let

Aij=∥Xj−Xi∥∞,Bij=∥Yj,n−Yi,n∥∞,Jij=max⁡{Aij,Bij}.A_{ij} = \lVert X_j-X_i\rVert_\infty,\quad B_{ij} = \lVert Y_{j,n}-Y_{i,n}\rVert_\infty,\quad J_{ij} = \max\{A_{ij},B_{ij}\}.

Under the max norm, the joint ball of radius rr is a cube in R2p\mathbb{R}^{2p}, or an axis-aligned square around the query when p=1p=1. Let εi,n\varepsilon_{i,n} be the kkth smallest joint distance. The two marginal counts exclude the query and use a strict inequality:

Nx,i=#{j≠i:Aij<εi,n},Ny,i=#{j≠i:Bij<εi,n}.(2)N_{x,i} = \#\{j \ne i : A_{ij} < \varepsilon_{i,n}\},\quad N_{y,i} = \#\{j \ne i : B_{ij} < \varepsilon_{i,n}\}. \tag*{(2)}

The estimator is

I^n,k=ψ(k)+ψ(n)−1n∑i=1n{ψ(Nx,i+1)+ψ(Ny,i+1)},(3)\widehat{I}_{n,k}=\psi(k)+\psi(n)-\frac{1}{n}\sum_{i=1}^{n}\{\psi(N_{x,i}+1)+\psi(N_{y,i}+1)\}, \tag*{(3)}

where ψ\psi is the digamma function and ψ(m+1)−ψ(m)=1/m\psi(m+1)-\psi(m)=1/m. We use this strict-radius KSG-1 convention [8] throughout, including its norm, query exclusion, and +1 shifts.

For the Gaussian sample, each joint or marginal distance list is tie-free almost surely, and each competitor’s two marginal distances are unequal. The unique kkth joint neighbor is on the boundary in exactly one marginal. It is therefore excluded from one marginal count and included in the other. The first k−1k-1 joint neighbors contribute to both. After possibly exchanging the marginals, every neighborhood has counts at least (k−1,k)(k-1,k), which gives

I^n,k≤Cn,k:=ψ(n)−ψ(k+1).(4)\widehat{I}_{n,k}\le C_{n,k}:=\psi(n)-\psi(k+1). \tag*{(4)}

A neighborhood makes the largest possible contribution to the estimate exactly when its counts are (k−1,k)(k-1,k) or (k,k−1)(k,k-1). We call such a neighborhood saturated and define

Si,n=1{{Nx,i,Ny,i}={k−1,k}},S‾n,k=1n∑i=1nSi,n.S_{i,n}=1\{\{N_{x,i},N_{y,i}\}=\{k-1,k\}\},\qquad\overline{S}_{n,k}=\frac{1}{n}\sum_{i=1}^{n}S_{i,n}.

The estimator equals Cn,kC_{n,k} exactly when every neighborhood is saturated. The order-log nn ceiling and exponential sample obstruction are prior results [3]. Their two-variable algebraic ceiling agrees with equation (4), although their derivation uses a rectangle-based KSG-2 convention. Our count-pair argument and every result below concern equations (2) and (3).

Noise width and source-neighbor spacing

The noise width is of order δn\sqrt{\delta_n}. Near a query X1=aX_1=a, a small cube of radius rr contains approximately nφp(a)(2r)pn\varphi_p(a)(2r)^p source observations on average. Keeping this number fixed gives a source-neighbor spacing of order {nφp(a)}−1/p\{n\varphi_p(a)\}^{-1/p}. Apart from the query-dependent density factor, noise width divided by source-neighbor spacing is un1/pu_n^{1/p}. We use its ppth power, unu_n, as the resolution parameter:

un1/p=δnn−1/p⟹un=nδnp/2=ne−In.(5)u_n^{1/p}=\frac{\sqrt{\delta_n}}{n^{-1/p}}\Longrightarrow u_n=n\delta_n^{p/2}=ne^{-I_n}. \tag*{(5)}

References

  1. [1]Peter J. Bickel and Leo Breiman. Sums of functions of nearest neighbor distances, moment bounds, limit theorems and a goodness of fit test. The Annals of Probability, 11(1):185–214, 1983. doi: 10.1214/aop/1176993668.DOI
  2. [2]Bradley Efron and Charles Stein. The jackknife estimate of variance. The Annals of Statistics, 9(3):586–596, 1981. doi: 10.1214/aos/1176345462.DOI
  3. [3]Shuyang Gao, Greg Ver Steeg, and Aram Galstyan. Efficient estimation of mutual information for strongly dependent variables. In Proceedings of the Eighteenth International Conference on Artificial Intelligence and Statistics, volume 38 of Proceedings of Machine Learning Research, pages 277–286, 2015. URL https://proceedings.mlr.press/v38/gao15.html.arxiv.org/abs/1411.2003
  4. [4]Weihao Gao, Sewoong Oh, and Pramod Viswanath. Demystifying fixed k-nearest neighbor information estimators. IEEE Transactions on Information Theory, 64(8):5629–5661, 2018. doi: 10.1109/TIT.2018.2807481.DOI
  5. [5]Weihao Gao, Sewoong Oh, and Pramod Viswanath. Breaking the bandwidth barrier: Geometrical adaptive entropy estimation. IEEE Transactions on Information Theory, 64(5):3313–3330, May 2018. doi: 10.1109/TIT.2018.2810313.DOI
  6. [6]Caroline M. Holmes and Ilya N. Nemenman. Estimation of mutual information for real-valued data with error bars and controlled bias. Physical Review E, 100(2):022404, 2019. doi: 10.1103/PhysRevE.100.022404. URL https://arxiv.org/abs/1903.09280.
  7. [7]Olav Kallenberg. Random Measures, Theory and Applications. Springer, 2017. doi: 10.1007/97 8-3-319-41598-7.
  8. [8]Alexander Kraskov, Harald Stögbauer, and Peter Grassberger. Estimating mutual information. Physical Review E, 69(6):066138, 2004. doi: 10.1103/PhysRevE.69.066138.DOI
  9. [9]Günter Last and Mathew Penrose. Lectures on the Poisson Process. Cambridge University Press, 2017. doi: 10.1017/9781316104477.DOI
  10. [10]Warren M. Lord, Jie Sun, and Erik M. Bollt. Geometric k-nearest neighbor estimation of entropy and mutual information. Chaos, 28(3):033114, 2018. doi: 10.1063/1.5011683.DOI
  11. [11]David McAllester and Karl Stratos. Formal limitations on the measurement of mutual information. In Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, volume 108 of Proceedings of Machine Learning Research, pages 875–884, 2020. URL https://proceedings.mlr.press/v108/mcallester20a.html.
  12. [12]Mathew D. Penrose and Joseph E. Yukich. Limit theory for point processes in manifolds. The Annals of Applied Probability, 23(6):2161–2211, 2013. doi: 10.1214/12-AAP897.DOI
  13. [13]Sidney I. Resnick. Extreme Values, Regular Variation and Point Processes. Springer, 2008. doi: 10.1007/978-0-387-75953-1.
  14. [14]Puning Zhao and Lifeng Lai. Analysis of KNN information estimators for smooth distributions. IEEE Transactions on Information Theory, 66(6):3798–3826, 2020. doi: 10.1109/TIT.2019.294 5041.

Paper details

vlnc:W_zk2dgwy5
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 14

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

ChatGPT, Codex

View statement
Looking for related papers…
Contents