betaFeedback

WorksComputer Science

Pairwise Distortion Distribution with Graph-Based Importance Sampling for Quantization Error and Intrinsic Dimension Estimation

Abstract

Quantifying the dimensionality of data is a fundamental need in machine learning and signal processing applications such as representation learning, data compression, and inverse problems, where the extrinsic dimension in which the data is presented can be very different from the intrinsic dimension that determines the operational performance. Various concepts, such as Rényi information dimension, rate-distortion dimension, and quantization dimension are useful here. Despite their theoretical significance, estimating these measures are challenging given their asymptotic definitions. Recent research has shown that analyzing the pairwise distortion distribution (PDD) of a data source can provide a tractable lower bound on the distortion of random codebook quantization, from which a tractable notion of intrinsic dimension can be derived. In this paper we extend this line of research in three main ways. First, we develop a related upper bound on distortion of random codebook quantization. Second, we improve the computability of both the lower and upper bounds, using a graph-based adaptive importance sampling approach. Third, we leverage the bounds to define new notions of intrinsic dimension which form upper and lower bounds on the Rényi information dimension, rate-distortion dimension, and quantization dimension, and which can be empirically estimated from unknown data sources. We illustrate the concepts by analyzing several artificial and empirical distributions.

Introduction

Developing measures of complexity that capture the intrinsic dimension of continuous-valued sources is a fundamental problem with applications in inverse problems, data representation and compression. While for discrete sources, Shannon entropy provides a canonical and widely-adopted notion of complexity [16], no such broadly accepted notion of complexity exists for continuous-valued sources. Several notions of dimension have been developed to quantify different aspects of the complexity of continuous-valued sources, including the rate-distortion dimension (RDD) [12], Rényi information dimension (RID) [17], Minkowski dimension and the Hausdorff dimension [9, 4]. These notions of complexity capture different aspects of the source complexity and have different operational applications. For instance, the RID of a source characterizes the minimum sampling rate required for almost-lossless recovery from under-sampled linear measurements ([17, 18, 3, 10, 15]).

Despite their theoretical and operational significance, estimating these measures of complexity from data remains highly challenging. For instance, to estimate the RDD of a source, one needs to accurately estimate its corresponding rate-distortion function R(D)R(D) in the small distortion regime (D→0D \to0), which is particularly difficult given finite data. Similar challenges arise in estimating the other mentioned notions of complexity.

An alternative notion of complexity arises from random codebook quantization (RCQ). RCQ is a classic compression method that is based on forming a random codebook consisting of LL codewords independently drawn from a distribution PCP_C. To encode each input vector, an RCQ code assigns it to the closest codeword in the codebook. An RCQ-based dimension can be defined as

dQ(X)=lim⁡L→∞−log⁡Llog⁡μL(PX,PC)d_Q(X) = \lim_{L \to\infty} -\frac{\log L}{\log\mu_L(P_X,P_C)}

([19, 21, 22, 23]), where μL(PX,PC)\mu_L(P_X,P_C) measures the expected distortion achieved by an RCQ with LL codewords distributed as PCP_C, and the source distribution denoted as PXP_X. Directly estimating dQ(X)d_Q(X) is prohibitive as it requires estimating the performance of RCQ over increasingly large codebooks. However, recent work ([14]) connects the defined dimension and pairwise distortion distribution (PDD). PDD is defined as the density function of the distance between two randomly drawn source samples. The key advantage of this connection is that unlike RCQ-based dimension, estimation of PDD does not require generating a large codebook.

Our goal in this paper is to develop a computationally efficient and theoretically grounded method for estimating source complexity. To achieve this goal, we characterize lower and upper bounds on RCQ distortion that can be estimated using PDD. The PDD itself can be estimated from pairs of source samples, without knowing the source distribution. We also define the PDD dimension, and connect the PDD dimension with the RID, RDD, and quantization dimension.

Accurate estimation of PDD in the small-distance regime remains challenging. Since the event of a randomly drawn pair satisfying this distance requirement is a rare event, a naive estimator will suffer from high variance. To address this issue, we propose a graph-based importance sampling strategy. Given NN samples, the complexity of sampling on the constructed minimum spanning tree through a proposed random walk is typically O(Nlog⁡N)O(N \log N), which makes the method scalable to large datasets.

We evaluate the proposed method on different sources with known and unknown distributions. Our results establish that PDD provides informative bounds on RCQ performance across different bitrate regimes and enables estimation of intrinsic dimensions of sources. Moreover, the proposed method reveals the smallest and largest intrinsic dimensions of a source when it has a mixture of dimensionalities. Finally we show that the graph-based importance sampling approach considerably improves the effectiveness of PDD estimation.

Our main contributions are

  • We derive the lower and upper bounds on RCQ that can be computed from PDD.

  • We define PDD dimension and establish its connections to RID, RDD, and quantization dimension.

  • We propose a graph-based adaptive importance sampling method for effective PDD estimation.

in small distortion regime. The RCQ lower and upper bounds, as well as the PDD dimensions computed from the estimated PDD are evaluated on sources with known and unknown distribution.

Codebook Quantization

Vector quantization (VQ) maps a sequence of continuous or discrete vectors into a digital sequence for communication and storage ([13, 8, 6]), where the codebook is constructed for being used in VQ. The codebook quantization error is essential to understanding the rate-distortion performance of compressing the data. Let x∈Rn\mathbf{x} \in\mathbb{R}^{n} be a random vector, x∼PX\mathbf{x} \sim P_X, c∈Rn\mathbf{c} \in\mathbb{R}^{n} be a random codeword, c∼PC\mathbf{c} \sim P_C. Given a codebook consisting of LL codewords, we denote the codebook as

CL={c1,…,cL},cℓ∼i.i.d.PC,ℓ=1,⋯ ,L,(1)\mathcal{C}^{L} = \{\mathbf{c}_1,\ldots,\mathbf{c}_L\}, \quad\mathbf{c}_{\ell} \overset{\mathrm{i.i.d.}}{\sim} P_C,\quad\ell=1,\cdots,L, \tag*{(1)}

where cℓ\mathbf{c}_{\ell} is the ℓ\ell-th codeword. The expected quantization error of given x\mathbf{x} induced by VQ using CL\mathcal{C}^{L} is

μL(PX,PC)=EX,C[min⁡1≤ℓ≤Lρ(x,cℓ)],(2)\mu_L(P_X,P_C)=\mathbb{E}_{X,C}\left[\min_{1\leq\ell\leq L}\rho(\mathbf{x},\mathbf{c}_{\ell})\right], \tag*{(2)}

where ρ(x,cℓ)=∥x−cℓ∥ν\rho(\mathbf{x},\mathbf{c}_{\ell})=\lVert\mathbf{x}-\mathbf{c}_{\ell}\rVert^{\nu} is the distortion measure, ν>0\nu>0. The minimum distortion is found in CL\mathcal{C}^{L}. Given realization x\mathbf{x}, the distortions ρ(x,cℓ)\rho(\mathbf{x},\mathbf{c}_{\ell}), ℓ=1,…,L\ell=1,\ldots,L, are i.i.d. random variables. Define the conditional distortion CDF as FC(r;x)=Pc∼PC(ρ(x,c)≤r)F_C(r;\mathbf{x})=\mathbb{P}_{\mathbf{c}\sim P_C}(\rho(\mathbf{x},\mathbf{c})\leq r), then P(min⁡1≤ℓ≤Lρ(x,cℓ)>r)=(1−FC(r;x))L\mathbb{P}(\min_{1\leq\ell\leq L}\rho(\mathbf{x},\mathbf{c}_{\ell})>r)=(1-F_C(r;\mathbf{x}))^{L}. Using the tail-integral identity for nonnegative random variables, (2) can be re-written as

μL(PX,PC)=EX[∫0∞(1−FC(r;x))L dr].(3)\mu_L(P_X,P_C)=\mathbb{E}_X\left[\int_{0}^{\infty}(1-F_C(r;\mathbf{x}))^{L}\,dr\right]. \tag*{(3)}

When LL is large, the integral is dominated by behavior of FC(r;x)F_C(r;\mathbf{x}) for small radius rr, which in turn reflects increasingly local behavior of the distributions PXP_X and PCP_C. An important special case of RCQ is to draw the codeword from the same distribution as the data, PC=PXP_C=P_X. In many cases, particularly if the dimension is not too small, the codebook distribution minimizing say mean squared error distortion is close to the data distribution. Working with PXP_X is also convenient for unknown, empirical distributions. In this paper we will focus on the case PC=PXP_C=P_X, although many of the methods and concepts can be extended to a more general setting. One useful object for studying RCQ was introduced in ([14]).

Definition 1 (Pairwise distortion distribution ([14])). Let x∼PX\mathbf{x}\sim P_X be a random vector on X\mathcal{X}, and let ρ:X×X→[0,∞)\rho:\mathcal{X}\times\mathcal{X}\to[0,\infty) be a distortion measure. With FX(r;x)=Py∼PX(ρ(y,x)≤r)F_X(r;\mathbf{x})=\mathbb{P}_{\mathbf{y}\sim P_X}(\rho(\mathbf{y},\mathbf{x})\leq r), the pairwise distortion distribution (PDD) is defined as

F(r)=EX[FX(r;x)]=Px1,x2∼PX(ρ(x1,x2)≤r).F(r)=\mathbb{E}_X[F_X(r;\mathbf{x})]=\mathbb{P}_{\mathbf{x}_1,\mathbf{x}_2\sim P_X}(\rho(\mathbf{x}_1,\mathbf{x}_2)\leq r).

This distribution can be used to express a simple lower bound on RCQ error. In § 3, we introduce a related function and use it to define an upper bound of RCQ. In § 4, we define notions of intrinsic dimension based on these RCQ bounds and show how they relate to other definitions of intrinsic dimension. In § 5, we introduce methodology for empirically estimating the PDD from data, and in § 6, propose an importance sampling method to improve the scalability of this computation. Numerical experiments with the methods are reported in § 7.

PDD-based RCQ Bounds

We derive the PDD-based RCQ bounds in this section. Detailed proofs of the results are given in § 9. We begin with a definition.

Definition 2 (Averaged inverse conditional PDD). For q∈[0,1]q \in[0,1], define the inverse of F(r;x)F(r;x) as G(q;x)=sup⁡{r≥0:F(r;x)≤q}G(q;x) = \sup\{r \ge0 : F(r;x) \le q\}, with sup⁡∅=0\sup\emptyset= 0. The averaged inverse conditional PDD is G(q)=EX[G(q;x)]G(q) = \mathbb{E}_{X}[G(q;x)].

Taking PC=PXP_C = P_X, we modify the notation of RCQ as μQ(L)\mu_Q(L) to emphasize the dependence on LL, and to differentiate it from related function μO(L)\mu_O(L) and μU(L)\mu_U(L) defined later. We derive the lower and upper bound of the RCQ distortion in terms of F(r)F(r) and G(q)G(q) in the main theorem. The lower bound result was already given in [14].

Theorem 1 (PDD-based RCQ bounds). Let PC=PXP_C = P_X, F(r)F(r) and G(q)G(q) as defined in Definition 1,2, with ∫0∞(1−F(r)) dr<∞\int_{0}^{\infty}(1-F(r))\,\mathrm{d}r < \infty and G(q)<∞G(q) < \infty for q∈[0,1]q \in[0,1]. The RCQ is bounded as

μQ(L)≥μQ‾(L)=∫0∞(1−F(r))L dr,\mu_Q(L) \ge\underline{\mu_Q}(L) = \int_{0}^{\infty}(1-F(r))^{L}\,\mathrm{d}r,
μQ(L)≤μQ‾(L)=inf⁡t∈[0,1][tL−1μQ(1)+(1−tL)G(1−t)].\mu_Q(L) \le\overline{\mu_Q}(L) = \inf_{t\in[0,1]}\left[t^{L-1}\mu_Q(1)+(1-t^{L})G(1-t)\right].

The bounds coincide for a single code point: μQ‾(1)=μQ(1)=μQ‾(1)\underline{\mu_Q}(1)=\mu_Q(1)=\overline{\mu_Q}(1).

The lower and upper bounds in Theorem 1 are particularly useful for understanding the rate-distortion performance at different bitrate regimes of an unknown source, when the exact RCQ is hard to obtain. For a general source distribution, F(r)F(r) and G(q)G(q) can be estimated by sampling the pairs from the source distribution, as explained in § 5. Any value of t∈[0,1]t \in[0,1] gives a valid upper bound; the choice of tt can be optimized numerically given G(q)G(q).

The behavior of F(r)F(r) and G(q)G(q) for small rr and qq gives insight into the asymptotic behavior of μQ(L)\mu_Q(L) for large LL, as indicated by these two lemmas.

Lemma 1. Let F(r)F(r) satisfy lim⁡r→0log⁡(F(r))log⁡(r)=d≥0\lim_{r\to0}\frac{\log(F(r))}{\log(r)}=d \ge0. Then μQ‾(L)\underline{\mu_Q}(L) satisfies lim⁡L→∞log⁡(1/L)log⁡(μQ‾(L))=d\lim_{L\to\infty}\frac{\log(1/L)}{\log(\underline{\mu_Q}(L))}=d.

Lemma 2. Let G(q)G(q) satisfy lim⁡q→0log⁡(q)log⁡(G(q))=d≥0\lim_{q\to0}\frac{\log(q)}{\log(G(q))}=d \ge0. Then μQ‾(L)\overline{\mu_Q}(L) satisfies lim⁡L→∞log⁡(1/L)log⁡(μQ‾(L))=d\lim_{L\to\infty}\frac{\log(1/L)}{\log(\overline{\mu_Q}(L))}=d.

Likewise, explicit bounds on the functions F(r)F(r) and G(q)G(q) yield convenient explicit bounds on RCQ error.

Corollary 1 ([14]). Let x∼PXx \sim P_X on Rn\mathbb{R}^{n} and suppose F(r)≤βrαF(r) \le\beta r^{\alpha} for α>0\alpha> 0, β>0\beta> 0. Then

μQ(L)≥μQ‾(L)≥α−1β−1/αB(L+1,α−1),\mu_Q(L) \ge\underline{\mu_Q}(L) \ge\alpha^{-1}\beta^{-1/\alpha}B(L+1,\alpha^{-1}),

where BB is the Beta function.

Corollary 2. Let x∼PXx \sim P_X on Rn\mathbb{R}^n and suppose that G(q)≤γq1/αG(q) \le\gamma q^{1/\alpha} for some α>0\alpha> 0, γ>0\gamma> 0. Then

μ‾Q(L)≤μQ(1)(1−sL−1)L−1+γsL−1/α,\overline{\mu}_Q(L) \le\mu_Q(1)\left(1-s_L^{-1}\right)^{L-1}+\gamma s_L^{-1/\alpha},

where sL=(αL)/log⁡(L)s_L = (\alpha L)/\log(L).

The behavior of the functions F(r)F(r) and G(q)G(q) near 00 have an explicit description when xx has a sufficiently smooth density on Rn\mathbb{R}^n. Let Vp,n(1)V_{p,n}(1) denote the volume of the ball of radius 11 under the pp-norm on Rn\mathbb{R}^n, in which case the ball of radius rr has volume Vp,n(1)rnV_{p,n}(1)r^n.

Theorem 2. Suppose that xx has absolutely continuous distribution on Rn\mathbb{R}^n with density p(x)p(x), and that p:Rn→Rp : \mathbb{R}^n \to\mathbb{R} is a uniformly continuous function. Let the distortion function be ρ(x,y)=∥x−y∥pν\rho(x,y) = \lVert x-y\rVert_p^\nu for ν>0\nu> 0. Then

lim⁡r→0F(r)r−n/ν=EX[p(x)]Vp,n(1),\lim_{r\to0} F(r)r^{-n/\nu} = \mathbb{E}_X[p(x)]V_{p,n}(1),

and

lim⁡q→0G(q)q−ν/n=EX[p(x)−ν/n]Vp,n(1)−ν/n,\lim_{q\to0} G(q)q^{-\nu/n} = \mathbb{E}_X\left[p(x)^{-\nu/n}\right]V_{p,n}(1)^{-\nu/n},

if the respective expectations are finite.

The proof is based on the approximation F(r;x)≈p(x)Vp,n(1)rn/νF(r;x) \approx p(x)V_{p,n}(1)r^{n/\nu} for small rr.

In the case of a probability density on Rn\mathbb{R}^n, and distortion with ν=1\nu= 1, it is also known that μQ(L)∼L−1/n\mu_Q(L) \sim L^{-1/n} [19]. Thus, given a distribution on Rn\mathbb{R}^n such that F(r)∼rdF(r) \sim r^d, G(q)∼q1/dG(q) \sim q^{1/d}, and μQ(L)∼L−1/d\mu_Q(L) \sim L^{-1/d}, we can say that it "behaves like" a continuous distribution on Rd\mathbb{R}^d, and we can define dd as its intrinsic dimension. We develop these ideas in the next section.

PDD dimension

In this section, we define new intrinsic dimensions and relate them to the RDD, RID, and quantization dimension discussed in § 1.

For an arbitrary distortion function, we have denoted the expected distortion using RCQ with LL codewords by μQ(L)\mu_Q(L). We likewise denote by μO(L)\mu_O(L) the distortion of the optimal codebook, and by μU(L)\mu_U(L) the distortion achievable by source coding over unlimited block lengths, where for distortion-rate function D(R)D(R), we have μU(L)=D(log⁡L)\mu_U(L) = D(\log L). We have μ‾Q(L)≤μQ(L)≤μ‾Q(L)\underline{\mu}_Q(L) \le\mu_Q(L) \le\overline{\mu}_Q(L), for our RCQ bounds, and we have μU(L)≤μO(L)≤μQ(L)\mu_U(L) \le\mu_O(L) \le\mu_Q(L) by definition. For an arbitrary distortion measure, we denote the uncalibrated RCQ dimension as

d~Q(X)=lim⁡L→∞log⁡(L)log⁡(1/μQ(L)).(4)\widetilde{d}_Q(X) = \lim_{L\to\infty}\frac{\log(L)}{\log(1/\mu_Q(L))}. \tag*{(4)}

For distortion ρ(x,y)=∥x−y∥pν\rho(x,y) = \lVert x-y\rVert_p^\nu, ν>0\nu> 0, we define the calibrated dimension as dQ(X)=νd~Q(X)d_Q(X) = \nu\widetilde{d}_Q(X). Computing dimension via the calibrated definition yields the same value, regardless of the exponent ν\nu defining the distortion, while the uncalibrated definition has the benefit of working for more general distortion functions. Here we will stick with distortion measures of the form ∥x−y∥pν\lVert x-y\rVert_p^\nu and calibrated definitions of dimension - but many of the results and methods extend naturally to general distortion measures. Similarly to (4), we define dO(X)d_O(X), d~O(X)\widetilde{d}_O(X), dU(X)d_U(X), d~U(X)\widetilde{d}_U(X) based on μO(X)\mu_O(X) and μU(X)\mu_U(X).

The quantization dimension dQ(X)d_Q(X) coincides with the definition in [19], and dU(X)d_U(X) is the same as the RDD defined in [12], since by change of variables

dU(L)=νlim⁡L→∞log⁡(L)log⁡(1/μU(L))=νlim⁡D→0R(D)log⁡(1/D).(5)d_U(L)=\nu\lim_{L\to\infty}\frac{\log(L)}{\log(1/\mu_U(L))}=\nu\lim_{D\to0}\frac{R(D)}{\log(1/D)}. \tag*{(5)}

The dimensions dId_I, dUd_U, dOd_O, and dQd_Q are typically hard to characterize, especially from empirical observations of unknown distributions. However, we can define notions of dimension, based on F(r)F(r) and G(q)G(q), which bound these notions of dimension, and which are easier to estimate empirically.

Definition 3 (PDD-based dimension). Given distortion of the form ρ(x,y)=∥x−y∥p\rho(x,y)=\lVert x-y\rVert_p, the calibrated lower and upper PDD dimensions are

d‾Q(X)=νlim⁡r→0log⁡F(r)log⁡r,d‾Q(X)=νlim⁡q→0log⁡qlog⁡G(q),\underline{d}_Q(X)=\nu\lim_{r\to0}\frac{\log F(r)}{\log r},\qquad\overline{d}_Q(X)=\nu\lim_{q\to0}\frac{\log q}{\log G(q)},

when these limits exist, where F(r)F(r) and G(q)G(q) are defined in Definition 1, 2.

We note that the lower dimension d‾Q(X)\underline{d}_Q(X) generalizes the correlation dimension [7], dC(X)=lim⁡r→0log⁡C(r)log⁡rd_C(X)=\lim_{r\to0}\frac{\log C(r)}{\log r}, where C(r)=Px1,x2∼PX(∥x1−x2∥≤r)C(r)=\mathbb{P}_{x_1,x_2\sim P_X}(\lVert x_1-x_2\rVert\le r).

Lemmas 1 and 2 show that the PDD dimensions relate directly to the asymptotic behavior of the RCQ upper and lower bounds defined in Theorem 1. They also bound all of the other notions of dimension we have been discussing.

Theorem 3. For distortion measure of the form ρ(x,y)=∥x−y∥pν\rho(x,y)=\lVert x-y\rVert_p^\nu, with 1≤p≤∞1\le p\le\infty and ν>0\nu>0, the calibrated dimensions satisfy

d‾Q(X)≤dI(X)=dU(X)≤dO(X)≤dQ(X)≤d‾Q(X),\underline{d}_Q(X)\le d_I(X)=d_U(X)\le d_O(X)\le d_Q(X)\le\overline{d}_Q(X),

whenever these limits exist.

See the § 9 for the full proof. The equality of RID and RDD, dI(X)=dU(X)d_I(X)=d_U(X), for the given distortion function is provided in [17], for example, while the bound d‾Q(X)≤dI(X)\underline{d}_Q(X)\le d_I(X) is obtained by correcting an error in the argument originally given in [14].

We illustrate these notions of dimension with examples where d‾Q(X)=d‾Q(X)\underline{d}_Q(X)=\overline{d}_Q(X) and others where d‾Q(X)<d‾Q(X)\underline{d}_Q(X)<\overline{d}_Q(X). For an absolutely continuous source on Rn\mathbb{R}^n, if the expectations in Theorem 2 exist, then we have d‾Q(X)=d‾Q(X)=n\underline{d}_Q(X)=\overline{d}_Q(X)=n, and so by Theorem 3, all of the notions of dimension coincide. Likewise, for a source on a finite set, we have F(0)>0F(0)>0 and G(q)=0G(q)=0 for q<F(0)q<F(0), and so d‾Q(X)=d‾Q(X)=0\underline{d}_Q(X)=\overline{d}_Q(X)=0.

A less trivial but still tractable case is the Bernoulli uniform source X=BUX=BU where B∼Bernoulli⁡(p)B\sim\operatorname{Bernoulli}(p), Z∼Unif⁡[0,1]Z\sim\operatorname{Unif}[0,1], and BB is independent of ZZ. Here one can check that F(0)=p2F(0)=p^2, yielding d‾Q(X)=0\underline{d}_Q(X)=0, while G(q)≈12pqG(q)\approx\frac{1}{2p}q for small qq, yielding d‾Q(X)=1\overline{d}_Q(X)=1. It is well known that the RID in this case is dI(X)=pd_I(X)=p, and we can also calculate dO(X)=dQ(X)=1d_O(X)=d_Q(X)=1.

Generalizing this result, when we have a mixture of distributions which have densities on manifolds of different dimensions, d‾Q(X)\underline{d}_Q(X) picks the smallest of the dimensions while d‾Q(X)\overline{d}_Q(X) picks the largest. This is illustrated by the following artificial example in which F(r)F(r) and G(q)G(q) have simple closed form expressions.

Consider a finite mixture of unit hypercubes X∼∑i=1mpiDiX \sim\sum_{i=1}^{m} p_i\mathcal{D}_i, where Di\mathcal{D}_i is the uniform distribution on a did_i-dimensional unit hypercube Hi\mathcal{H}_i, and ∑ipi=1\sum_i p_i = 1. If x,y∈Hi\boldsymbol{x},\boldsymbol{y} \in\mathcal{H}_i, we use the torus ℓ∞\ell_\infty distortion

ρi(x,y)=max⁡1≤k≤dimin⁡{∣xk−yk∣,1−∣xk−yk∣}.\rho_i(\boldsymbol{x},\boldsymbol{y}) = \max_{1 \leq k \leq d_i} \min\{|x_k-y_k|,1-|x_k-y_k|\}.

If x∈Hi,y∈Hj\boldsymbol{x} \in\mathcal{H}_i,\boldsymbol{y} \in\mathcal{H}_j, i≠ji \ne j, we define ρ(x,y)=1\rho(\boldsymbol{x},\boldsymbol{y}) = 1. Then, for r≤1/2r \leq1/2, if x∈Hi\boldsymbol{x} \in\mathcal{H}_i, F(r;x)=pi(2r)diF(r;\boldsymbol{x}) = p_i(2r)^{d_i}.

Consequently, F(r)∼rmin⁡idiF(r) \sim r^{\min_i d_i}, G(q)∼q1/max⁡idiG(q) \sim q^{1/\max_i d_i}. Therefore, dP(X)=min⁡idid_P(X) = \min_i d_i, dˉP(X)=max⁡idi\bar{d}_P(X) = \max_i d_i. Using (11), the RID of this source is dI(X)=∑i=1mpidid_I(X) = \sum_{i=1}^{m} p_i d_i. Thus, the PDD bounds capture the range of intrinsic dimensions present, while the RID captures "average" dimension.

The first row of Figure 1 illustrates the functions F(r)F(r), G(q)G(q) and quantization bounds for a mixture of hypercubes with d1=2d_1 = 2, d2=10d_2 = 10, and p1=0.5p_1 = 0.5, p2=0.5p_2 = 0.5. The larger and smaller dimensions are captured by dQ(X)d_Q(X) and dˉQ(X)\bar{d}_Q(X), respectively. The RCQ curve μQ(X)\mu_Q(X) is sandwiched between the PDD bounds.

Figure 1. PDD-based analysis on two mixture distributions. Top row: mixture of hypercubes. Bottom row: mixture of MNIST digits. We show F(r)F(r), G(q)G(q), RCQ bounds, and the estimated PDD dimension.

The second row of Figure 1 shows a similar analysis carried out empirically from a subset of the MNIST dataset, filtered to include only the images with labels "1" and "2". When analyzed separately, the data in these two classes have intrinsic dimension around d=3d = 3 and d=6d = 6, respectively. When the mixture distribution is analyzed, we get approximately dQ(X)=3d_Q(X) = 3 and dˉQ(X)=6\bar{d}_Q(X) = 6, with RCQ behavior bounded by μQ(X)\mu_Q(X) and μˉQ(X)\bar{\mu}_Q(X) as expected.

Empirical PDD Estimation

To compute RCQ bounds and bounds on intrinsic dimension for an unknown data source, we need to estimate the PDD empirically. For this, it is helpful to express the PDD as F(r)=Ex1,x2∼PX[1{ρ(x1,x2)≤r}]F(r) = \mathbb{E}_{x_1,x_2\sim P_X}[\mathbf{1}\{\rho(x_1,x_2) \leq r\}]. Given a dataset of NN samples, we estimate the expectation by sampling KK independent pairs (x2k−1,x2k)(x_{2k-1},x_{2k}) uniformly from the dataset. The Monte Carlo (MC) based estimator is F^(r)=1K∑k=1KZk\widehat{F}(r) = \frac{1}{K}\sum_{k=1}^{K} Z_k, Zk=1{ρ(x2k−1,x2k)≤r}Z_k = \mathbf{1}\{\rho(x_{2k-1},x_{2k}) \leq r\}, where x2k−1,x2k∼i.i.d.PXx_{2k-1},x_{2k} \overset{\mathrm{i.i.d.}}{\sim} P_X.

Accuracy of MC estimation

Assume we have 2K2K iid samples, thus KK pairs. Since Zk∼Bernoulli⁡(p)Z_k \sim\operatorname{Bernoulli}(p), where p=F(r)p = F(r), the estimator is unbiased E[F^(r)]=p\mathbb{E}[\widehat{F}(r)] = p, the variance of it is Var⁡[F^(r)]=p(1−p)/K\operatorname{Var}[\widehat{F}(r)] = p(1-p)/K. So the coefficient of variation (CV) is

CV⁡(F^(r))=Var⁡[F^(r)]E[F^(r)]=1−ppK,\operatorname{CV}(\widehat{F}(r)) = \frac{\sqrt{\operatorname{Var}[\widehat{F}(r)]}}{\mathbb{E}[\widehat{F}(r)]} = \sqrt{\frac{1-p}{pK}},

and its empirical value estimated from the KK samples is (1−F^(r))/(F^(r)K)\sqrt{(1-\widehat{F}(r))/(\widehat{F}(r)K)}. In order to get a good estimate of F^(r)\widehat{F}(r), we need to keep CV small, for instance, CV≤1/10\mathrm{CV} \le1/10 requires pK≥100pK \ge100. Note that pKpK is the expected number of non-zero values of the indicator function. So, if the number of non-zero terms is sufficiently high, we can get good estimate F^(r)\widehat{F}(r) using the MC, if pKpK is small, the error bar is large. Thus, given small rr, F(r)F(r) is small, we need large KK. Since F^(r)\widehat{F}(r) is an increasing function of rr, this means, in a given experiment, there is a minimum value of rr below which F(r)F(r) cannot be confidently estimated.

Estimation with importance sampling

We can adopt importance sampling (IS) [11] to alleviate this issue. The idea is that we twist the distribution from which the pairs are sampled, this indirectly induces a twisted distribution on the distance of pairs P(ρ(x1,x2)≤r)\mathbb{P}(\rho(x_1,x_2) \le r). Denote QXQ_X as the twisted distribution that (x1,x2)(x_1,x_2) is sampled from, each sample is corrected by PX(x1)PX(x2)/QX(x1,x2)P_X(x_1)P_X(x_2)/Q_X(x_1,x_2) to avoid bias. So, the estimator is

F^IS(r)=1K∑k=1K1{ρ(x2k−1,x2k)≤r}⋅Y,(6)\widehat{F}_{\mathrm{IS}}(r) = \frac{1}{K}\sum_{k=1}^{K}\mathbb{1}\{\rho(x_{2k-1},x_{2k}) \le r\}\cdot Y, \tag*{(6)}

where Y=PX(x2k−1)PX(x2k)/QX(x2k−1,x2k)Y = P_X(x_{2k-1})P_X(x_{2k})/Q_X(x_{2k-1},x_{2k}), and (x2k−1,x2k)∼QX(x_{2k-1},x_{2k}) \sim Q_X. When a finite dataset X\mathcal{X} has size of ∣X∣=N|\mathcal{X}| = N, then PX(x)=1NP_X(x) = \frac{1}{N}. We will introduce how to design QXQ_X later. Before that, we analyze the MC estimator with importance sampling.

Accuracy of importance sampling

Consider an individual summand of (6), which can be modeled as the product Z=BYZ = BY of a Bernoulli r.v. BB, i.e., the indicator function, with a non-negative r.v. YY, i.e., the ratio of P to Q. We assume Y>0Y > 0 almost surely, so that Z=0Z = 0 only when B=0B = 0. This is the case as long as the twisted distribution has the same support as the true distribution. Suppose that P(B=1)=p\mathbb{P}(B = 1) = p, then we have E[Z]=pE[Y~]\mathbb{E}[Z] = p\mathbb{E}[\widetilde{Y}], E[Z2]=pE[Y~2]\mathbb{E}[Z^2] = p\mathbb{E}[\widetilde{Y}^2], and Var⁡(Z)=p(Var⁡(Y~)+(1−p)E[Y~]2)\operatorname{Var}(Z) = p(\operatorname{Var}(\widetilde{Y}) + (1-p)\mathbb{E}[\widetilde{Y}]^2), where Y~\widetilde{Y} is the random variable obtained by conditioning YY on the event B=1B = 1, Y~=Y∣B=1\widetilde{Y} = Y|B = 1, i.e., the random variable P(x1)P(x2)/Q(x1,x2)P(x_1)P(x_2)/Q(x_1,x_2) under the twisted distribution, conditioned on the event that ρ(x1,x2)≤r\rho(x_1,x_2) \le r. If each of the KK pairs is independent of the other pairs, and F^IS(r)=1K∑k=1KZk\widehat{F}_{\mathrm{IS}}(r) = \frac{1}{K}\sum_{k=1}^{K} Z_k, then

CV⁡(Z)2=Var⁡(Z)E[Z]2=1pCV⁡(Y~)2+1−pp,CV⁡(F^IS(r))2=1pKCV⁡(Y~)2+1−ppK.(7)\begin{aligned} \operatorname{CV}(Z)^2 &= \frac{\operatorname{Var}(Z)}{\mathbb{E}[Z]^2} = \frac{1}{p}\operatorname{CV}(\widetilde{Y})^2 + \frac{1-p}{p},\\ \operatorname{CV}(\widehat{F}_{\mathrm{IS}}(r))^2 &= \frac{1}{pK}\operatorname{CV}(\widetilde{Y})^2 + \frac{1-p}{pK}. \tag*{(7)} \end{aligned}

The first term depends on CV⁡(Y~)\operatorname{CV}(\widetilde{Y}), and the second term is the variance of the averaged KK independent BB's. Without importance sampling, we have CV⁡(Y~)=0\operatorname{CV}(\widetilde{Y}) = 0 and p≈F^(r)p \approx\widehat{F}(r). Thus the CV of the estimate is approximately 1/(F(r)K)1/(F(r)K) and the number of samples KK required increases in inverse proportion with the probability F(r)F(r) we are targeting. With importance sampling, pp is no longer tied to F(r)F(r), as we can make the twisted probability of the event ρ(x2k−1,x2k)≤r\rho(x_{2k-1},x_{2k}) \le r to be much higher than the untwisted probability of interest. Thus the product pKpK can be controlled with a relatively small number of samples KK. However, there is an additional term CV⁡(Y~)\operatorname{CV}(\widetilde{Y}).

In the next section, we introduce a family of twisted distributions, with a single parameter that controls the degree to which nearby pairs of points are emphasized in the twisted distribution. Increasing the degree of twist generally brings up the event probability pp but may also eventually increase the term CV⁡(Y~)\operatorname{CV}(\widetilde{Y}). Thus the optimal degree of twist involves a tradeoff between these two terms in (7). To help analyze the tradeoff, it can be useful to empirically estimate the two terms. The event probability can be estimated as p^=1K∑k=1K1{ρ(x2k−1,x2k)≤r}\widehat{p} = \frac{1}{K}\sum_{k=1}^{K}\mathbf{1}\{\rho(x_{2k-1},x_{2k}) \le r\}. For Y~\widetilde{Y}, we have E^[Y~]=1K′∑k=1K′Y~k\widehat{\mathbb{E}}[\widetilde{Y}] = \frac{1}{K'}\sum_{k=1}^{K'}\widetilde{Y}_k, Var⁡^(Y~)=E^[Y~2]−(E^[Y~])2\widehat{\operatorname{Var}}(\widetilde{Y}) = \widehat{\mathbb{E}}[\widetilde{Y}^{2}] - (\widehat{\mathbb{E}}[\widetilde{Y}])^{2}. Putting the pieces together,

CV⁡(F^IS(r))2=1p^KVar⁡^(Y~)E^[Y~2]+1−p^p^K.(8)\operatorname{CV}\left(\widehat{F}_{\mathrm{IS}}(r)\right)^{2} = \frac{1}{\widehat{p}K}\frac{\widehat{\operatorname{Var}}(\widetilde{Y})}{\widehat{\mathbb{E}}[\widetilde{Y}^{2}]} + \frac{1-\widehat{p}}{\widehat{p}K}. \tag*{(8)}

Algorithm 1 Graph-based importance sampling

  1. Construct a kk-nearest-neighbor graph G=(V,E)G = (V,E) on {xi}i=1N\{x_i\}_{i=1}^{N} based on the distortion measure ρ\rho.

  2. Get a minimum spanning tree T=(V,ET)T = (V,E_T) of GG.

  3. for each edge (u,v)∈ET(u,v) \in E_T do

  4. Split TT at (u,v)(u,v) into Tu,TvT_u,T_v, u∈Tuu \in T_u, v∈Tvv \in T_v.

  5. Set wu→v=∣Tv∣w_{u\to v} = |T_v| and wv→u=∣Tu∣w_{v\to u} = |T_u|.

  6. end for

  7. Sample i1i_1 uniformly from {1,…,N}\{1,\ldots,N\}.

  8. Set u=i1u = i_1, Vprev=∅\mathcal{V}_{\mathrm{prev}} = \varnothing.

  9. for t=1,2,…t = 1,2,\ldots do

  10. Create Nt(u)={v:(u,v)∈ET, v∉Vprev}\mathcal{N}_t(u) = \{v : (u,v) \in E_T,\ v \notin\mathcal{V}_{\mathrm{prev}}\}.

  11. Stop with probability 11+∑v∈Nt(u)wu→vτ\frac{1}{1+\sum_{v\in\mathcal{N}_t(u)}w_{u\to v}^{\tau}}.

  12. Otherwise sample v∈Nt(u)v \in\mathcal{N}_t(u) with probability

wu→vτ1+∑v′∈Nt(u)wu→v′τ.(9)\frac{w_{u\to v}^{\tau}}{1+\sum_{v'\in\mathcal{N}_t(u)}w_{u\to v'}^{\tau}}. \tag*{(9)}
  1. Set it+1=vi_{t+1} = v, Vprev←Vprev∪{u}\mathcal{V}_{\mathrm{prev}} \leftarrow\mathcal{V}_{\mathrm{prev}} \cup\{u\}, u=vu = v.

  2. end for

  3. return (xi1,xiT)(x_{i_1},x_{i_T}).

Graph-based adaptive importance sampling

In this section, we propose our graph-based adaptive importance sampling for PDD estimation. Our goal is to design the twisted sampling distribution QXQ_X on the pairwise distance rr, such that, the estimator F^IS(r)\widehat{F}_{\mathrm{IS}}(r) is accurate and sample efficient when the event {ρ(x2k−1,x2k)≤r}\{\rho(x_{2k-1}, x_{2k}) \le r\} is rare. For different range of rr, we propose an adaptive way for twisting QXQ_X. Given a dataset of NN data samples, and the matrix of all N2N^2 distortions between pairs, it would be possible to construct a number of different twisted distribution that emphasize small distortions. Our goal, however, was to develop a method with better than quadratic scaling in NN to allow analysis on very large datasets. Our graph-based approach has the following properties: i) The graph construction, done once per dataset, efficiently summarizes distortion information without requiring all N2N^2 distortions to be evaluated. ii) Selection of a pair of data points is done via a random walk on the graph - a simple operation. iii) Using an acyclic graph, there is only one path between any pair of nodes, which facilitates computing the twisted probability of any pair of points generated.

Non-backtracking random walk on MST

In the pre-processing phase, we take a dataset of NN samples and construct an approximate minimum spanning tree of the of graph of all pairwise distortions. While an exact MST can be done in O(N2)O(N^2) operations, dominated by calculation of all distortions, an approximate MST can be calculated with lower complexity ([20]). In our implementation, we first compute a k-nearest neighbor graph ([5, 1]), and then compute an exact MST of the k-NN graph. Other methods of obtaining an approximate MST could also be used. The next step is to give each directed edge in the tree a weight proportional to the number of nodes reachable via that edge. These weights can be used to generate a random walk that chooses pairs of nodes uniformly on the graph, or a twisted random walk that preferentially chooses short walks on the graph. Details of the weight computation and random walk, as a function of a twist parameter τ\tau, are given in Algorithm 1. The starting node is uniformly picked from VV, and the random walk from the starting node is non-backtracking. It stops when it chooses itself as the next node, where we enforce the first node to not pick itself. The final sampled pair consists of the starting and ending nodes. The probability of picking the pair (x1,xT)(x_1, x_T) is the probability of taking the path x1→xTx_1 \to x_T, where TT is the random stopping time. The path probability is P(x1,⋯ ,xT)=P(x1)P(x2∣x1)⋯P(xT∣xT−1)P(x_1, \cdots, x_T) = P(x_1)P(x_2|x_1)\cdots P(x_T|x_{T-1}), where P(x1)=1/NP(x_1) = 1/N. When τ=1\tau= 1 in the transition probability (the untwisted case), the product of the conditional probabilities always turns out to be P(x2∣x1)⋯P(xT∣xT−1)=1/(N−1)P(x_2|x_1)\cdots P(x_T|x_{T-1}) = 1/(N-1), so that the probability of selecting the pair is P((x1,xT))=1/N(N−1)\mathbb{P}((x_1, x_T)) = 1/N(N-1). When τ→0\tau\to0, the transition probability at each node is more uniform, so the random walk becomes more likely to stop within fewer hops away from the starting node; in this way the probability of selecting nearby points is increased. By varying the parameter τ\tau, the twisted distribution that the pair is sampled from, Qτ(x1,xT)=P((x1,xT))≠1/N(N−1)Q_\tau(x_1, x_T) = \mathbb{P}((x_1, x_T)) \ne1/N(N-1), changes, controlling the frequency with which nearby pairs are selected. For different ranges of rr, we can adapt τ\tau to keep CV⁡(F^IS(r))\operatorname{CV}(\widehat{F}_{\mathrm{IS}}(r)) small. To estimate F(r)F(r) for small rr, we choose smaller τ\tau such that closer pairs are sampled. The correction ratio in the estimator is then Y=(1/N(N−1))/P(x1,x2,⋯ ,xT)Y = (1/N(N-1))/\mathbb{P}(x_1, x_2, \cdots, x_T), where (x1,x2,⋯ ,xT)(x_1, x_2, \cdots, x_T) is the actual random walk path.

Variance analysis of the estimator

In § 5.3, we showed that the coefficient of variation of our estimate of F(r)F(r) has two terms. The first term relates to the variability of the twisting ratio, conditioned on ρ(x1,x2)≤r\rho(x_1, x_2) \le r, and the second term is inversely proportional to the “hit-rate”, or twisted probability that ρ(x1,x2)≤r\rho(x_1, x_2) \le r. In the Figure 2 (a), we plot an estimate of these two terms, and the total coefficient of variation as The CV estimates curves for the twisting ratio term (dashed lines) have large discrete jumps, particularly when rr is large and τ\tau is small. This is evidence that this term can become heavy tailed if τ\tau and rr are not well-matched. In order to accurately and efficiently estimate F(r)F(r) across a wide range of rr, it is necessary to adapt τ\tau as a function of rr.

Figure 2. The coefficient of variation of F^IS(r)\widehat{F}_{\mathrm{IS}}(r) using different twisted distributions. a function of distance rr for the case that twisting parameter is τ=0.2\tau=0.2. The twisting ratio term (dashed line) tends to grow with rr, while the hit-rate term (dotted line) tends to decrease with rr. This twisted distribution is well-suited for estimating F(r)F(r) in the vicinity of r≈0.01r\approx0.01. The (b) and (c) figures show other that larger (less aggressive) twist parameters are better suited for estimating F(r)F(r) for larger values of rr.

Adaptive schedule of τ\tau

Inspired by the observation above, we developed a strategy that gradually decreases τ\tau with rr. We begin with the untwisted distribution τ0=1\tau_0=1 which is always suitable for estimating large values of F(r)F(r). We set an empirical threshold, say λ=0.1\lambda=0.1, and find the largest value r0r_0 such CV⁡^(F^(r))≥λ\widehat{\operatorname{CV}}(\widehat{F}(r))\geq\lambda. We use τ0\tau_0 to estimate F(r)F(r) for r≥r0r\geq r_0. We then reduce τ\tau, say to τ1=τ0−0.1\tau_1=\tau_0-0.1, and similarly compute r1r_1 such that CV⁡^(F^(r))≥λ\widehat{\operatorname{CV}}(\widehat{F}(r))\geq\lambda for r1≤r≤r0r_1\leq r\leq r_0. We use τ1\tau_1 to estimate F(r)F(r) in this interval. Continuing in this way, we obtain estimates of F(r)F(r) with good accuracy across a range of scales. The Figure 2 (d) shows the estimated coefficient of variation obtained for estimating F(r)F(r), which stays below 0.01 over a wide range. Further details about the parameters τi\tau_i and rir_i obtained in this example are given in Appendix § 10.§ 3. In the next section, we give numerical examples of estimating the PDD, along with RCQ bounds and PDD dimensions.

Numerical results

In this section, we evaluate the RCQ bounds and the dimension for Gaussian source and MNIST. The details of calculating the PPD-based RCQ bounds, and the PDD dimension are in Appendix § 10.§ 1 and A.2. We compare our graph-based adaptive importance sampling (GAIS) against the MC uniform sampling.

Multivariate Gaussian

We first consider verify the methodology on a known distribution, x∼N(0,Σ)\boldsymbol{x}\sim\mathcal{N}(\mathbf{0},\boldsymbol{\Sigma}), where Σ=In\boldsymbol{\Sigma}=\mathbf{I}_n. We have the analytical RCQ lower bound based on Corollary 1, and the approximate analytical upper bound based on Corollary 2 by assuming γ=β−1/n\gamma= \beta^{-1/n}, with ν=2\nu= 2, p=2p = 2 in the distortion function, we have α=n/2\alpha= n/2, β=(4π)−n/2det⁡(Σ)−1/2πn/2Γ(n/2+1)rn/2\beta= (4\pi)^{-n/2}\det(\Sigma)^{-1/2}\frac{\pi^{n/2}}{\Gamma(n/2+1)}r^{n/2}. We use them as good references to evaluate estimation results by our proposed GAIS. The PDD estimation is performed on a finite set consisting of 60K samples from the distribution. The number of samples used for the estimators is 10K. In Figure 3 first row, we show that, compared with the MC sampling, F(r)F(r) and G(q)G(q) estimated using GAIS has a smaller confidence interval, and can estimate small probability region. The PDD-based RCQ bounds calculated using GAIS give a more stable and accurate bound especially in the high bitrate regime. We can find that the RCQ bounds estimated using uniform sampling saturates after around 10 bits. Our approach instead, can accurately characterize the bound until the regime of over 20 bits. This is due to improved accuracy of F^(r)\hat{F}(r) estimation. Since large F(r)F(r) yields small 1−F(r)1-F(r), which contributes less to the RCQ lower bound approximation when LL is larger, by first-order Taylor approximation, (1−F(r))L≈e−LF(r)(1-F(r))^L \approx e^{-LF(r)}, this indicates that, we need to accurately estimate F(r)F(r) to the probability level of O(L−1)O(L^{-1}). For instance, when log⁡2L=20\log_2 L = 20, F(r)F(r) around 10−610^{-6} needs to be estimated. However, F^(r)\hat{F}(r) estimated by MC uniform sampling is inaccurate at 10−410^{-4}. In contrast, F^IS(r)\hat{F}_{\mathrm{IS}}(r) offers a low variance estimate till the probability level of 10−710^{-7}, which thus yields a more accurate PDD-based RCQ bounds estimation in a higher bitrate regime. Further, estimating the slopes of a log-log plot of F(r)F(r) and G(q)G(q) yield estimates of PDD dimension. Figure 5 in Appendix § 10.§ 4 shows that PDD dimension estimated using GAIS approaches the true dimension when rr is small.

Figure 3. F(r)F(r), G(q)G(q), RCQ bounds estimated by MC uniform sampling, and GAIS (first row: multivariate Gaussian; second row: MNIST). We plot the confidence interval of estimating F(r)F(r), G(q)G(q), and the related RCQ bounds. For Gaussian source, we compute the optimal RD and the analytical RCQ lower and upper bounds.

Figure 5. We compare the PDD dimension estimated using MC uniform sampling and our proposed GAIS. (first two plots: 5-dimensional multivariate Gaussian; last two plots: MNIST).

MNIST

To test our methodology on an unknown source distribution, we consider images from the MNIST data set. Using the MNIST training set as the data source, which contains 60K images, and are vectorized. The number of samples used for the estimators is 10K. Results are plotted in the second row of Figure 3. Since we do not have the analytical RCQ bounds, the accurately estimated PDD-based RCQ bounds provide valuable information of the limits of rate-distortion performance for compressing or quantizing this distribution. We can find that GAIS provides a stable PDD-based RCQ lower bound until over 20 bits, while the MC uniform sampling estimator becomes inaccurate from 10 bits.

Conclusion

In this paper, we derived lower and upper bounds for random codebook quantization based on the pairwise distortion distribution of the source. We also define notions of intrinsic dimension associated with the asymptotic behavior of the RCQ bounds. The dimensions we defined provide lower and upper bounds to rate-distortion dimension, Rényi information dimension, and quantization dimension. We further propose a graph-based adaptive importance sampling approach for better PDD estimation, based on which, we can accurately characterize the RCQ bounds and its associated dimension of known and unknown source distributions with significantly reduced sample complexity.

Detailed Proofs

In this section, we present proofs of results given in the main body of the paper.

Proof of Theorem 1: RCQ lower and upper bounds

The RCQ error is lower bounded as

μL(PX,PC)=EXEC[min⁡1≤ℓ≤Lρ(x,cℓ)]=EX[EC[min⁡1≤ℓ≤Lρ(x,cℓ)]]=EX[∫0∞(1−P(ρ(c;x)≤r))L dr]=∫0∞EX[(1−P(ρ(c;x)≤r))L] dr≥(a)∫0∞(1−EX[P(ρ(c;x)≤r)])L dr=∫0∞(1−PX∼PX,C∼PC(ρ(x,c)≤r))L dr≔(b)∫0∞(1−F(r))L dr.\begin{aligned} \mu_L(P_X,P_C) &= \mathbb{E}_X\mathbb{E}_C\left[\min_{1\leq\ell\leq L}\rho(x,c_\ell)\right]\\ &= \mathbb{E}_X\left[\mathbb{E}_C\left[\min_{1\leq\ell\leq L}\rho(x,c_\ell)\right]\right]\\ &= \mathbb{E}_X\left[\int_0^\infty\left(1-\mathbb{P}(\rho(c;x)\leq r)\right)^L\,\mathrm{d}r\right]\\ &= \int_0^\infty\mathbb{E}_X\left[\left(1-\mathbb{P}(\rho(c;x)\leq r)\right)^L\right]\,\mathrm{d}r\\ &\mathrel{\overset{(a)}{\geq}} \int_0^\infty\left(1-\mathbb{E}_X\left[\mathbb{P}(\rho(c;x)\leq r)\right]\right)^L\,\mathrm{d}r\\ &= \int_0^\infty\left(1-\mathbb{P}_{X\sim P_X,C\sim P_C}(\rho(x,c)\leq r)\right)^L\,\mathrm{d}r\\ &\mathrel{\overset{(b)}{\coloneqq}} \int_0^\infty\left(1-F(r)\right)^L\,\mathrm{d}r. \end{aligned}

(a) applies Jensens’ inequality, (b) assumes PX=PCP_X=P_C. When PX=PCP_X=P_C, denote μQ(L)=μL(PX,PC)\mu_Q(L)=\mu_L(P_X,P_C), Px∼PX,c∼PC(ρ(x,c)≤r)=Px1,x2∼PX(ρ(x1,x2)≤r)\mathbb{P}_{x\sim P_X,c\sim P_C}(\rho(x,c)\leq r)=\mathbb{P}_{x_1,x_2\sim P_X}(\rho(x_1,x_2)\leq r). The pairwise distortion distribution in Definition 1. Now we prove the upper bound of RCQ. For function h(x)=xLh(x)=x^L, where x∈[0,1]x\in[0,1], L∈Z+L\in\mathbb{Z}_+, we have

h(x)≤tL−1x+(1−tL)1{x≥t},t∈[0,1].(10)h(x)\leq t^{L-1}x+(1-t^L)\mathbf{1}\{x\geq t\},\quad t\in[0,1]. \tag*{(10)}

Then the upper bound of RCQ is

μQ(L)=EX[∫0∞(1−P(ρ(c;x)≤r))L dr]=EX[∫0∞(1−F(r;x))L dr]≤EX[tL−1∫0∞(1−F(r;x)) dr+(1−tL)∫0∞1{1−F(r;x)≥t} dr]=EX[tL−1∫0∞(1−F(r;x)) dr+(1−tL)∫0∞1{1−F(r;x)≥t} dr]=EX[tL−1∫0∞P(ρ(c;x)≥r) dr+(1−tL)∫0∞1{F(r;x)≤1−t} dr]≤EX[tL−1EC[ρ(c;x)]+(1−tL)∫0G(1−t;x)dr]=EX[tL−1EC[ρ(c;x)]+(1−tL)G(1−t;x)]=tL−1EX,C[ρ(c;x)]+(1−tL)EX[G(1−t;x)]=tL−1μQ(1)+(1−tL)G(1−t).\begin{aligned} \mu_Q(L) &= \mathbb{E}_{X}\left[\int_{0}^{\infty}\left(1-\mathbb{P}\left(\rho(\mathbf{c};\mathbf{x})\le r\right)\right)^L\,dr\right] \\ &= \mathbb{E}_{X}\left[\int_{0}^{\infty}\left(1-F(r;\mathbf{x})\right)^L\,dr\right] \\ &\le\mathbb{E}_{X}\left[t^{L-1}\int_{0}^{\infty}\left(1-F(r;\mathbf{x})\right)\,dr+\left(1-t^L\right)\int_{0}^{\infty}\mathbf{1}\{1-F(r;\mathbf{x})\ge t\}\,dr\right] \\ &= \mathbb{E}_{X}\left[t^{L-1}\int_{0}^{\infty}\left(1-F(r;\mathbf{x})\right)\,dr+\left(1-t^L\right)\int_{0}^{\infty}\mathbf{1}\{1-F(r;\mathbf{x})\ge t\}\,dr\right] \\ &= \mathbb{E}_{X}\left[t^{L-1}\int_{0}^{\infty}\mathbb{P}\left(\rho(\mathbf{c};\mathbf{x})\ge r\right)\,dr+\left(1-t^L\right)\int_{0}^{\infty}\mathbf{1}\{F(r;\mathbf{x})\le1-t\}\,dr\right] \\ &\le\mathbb{E}_{X}\left[t^{L-1}\mathbb{E}_{C}[\rho(\mathbf{c};\mathbf{x})]+\left(1-t^L\right)\int_{0}^{G(1-t;\mathbf{x})}dr\right] \\ &= \mathbb{E}_{X}\left[t^{L-1}\mathbb{E}_{C}[\rho(\mathbf{c};\mathbf{x})]+\left(1-t^L\right)G(1-t;\mathbf{x})\right] \\ &= t^{L-1}\mathbb{E}_{X,C}[\rho(\mathbf{c};\mathbf{x})]+\left(1-t^L\right)\mathbb{E}_{X}[G(1-t;\mathbf{x})] \\ &= t^{L-1}\mu_Q(1)+\left(1-t^L\right)G(1-t). \end{aligned}

(a) is obtained by applying (10). (b) uses Definition 2.

Proof of Lemma 1: asymptotics of RCQ lower bound

First for simplicity consider d>0d>0. Choose ϵ\epsilon with 0<ϵ<d0<\epsilon<d. There exists δ>0\delta>0 such that rd+ϵ≤F(r)≤rd−ϵr^{d+\epsilon}\le F(r)\le r^{d-\epsilon} for 0≤r≤δ0\le r\le\delta. Note that

∫δ∞(1−F(r))L dr=∫δ∞(1−F(r))(1−F(r))L−1 dr≤(1−F(δ))L−1∫0∞(1−F(r)) dr≤(1−δd+ϵ)L−1∫0∞(1−F(r)) dr.\begin{aligned} \int_{\delta}^{\infty}(1-F(r))^L\,dr &=\int_{\delta}^{\infty}(1-F(r))(1-F(r))^{L-1}\,dr \\ &\le(1-F(\delta))^{L-1}\int_{0}^{\infty}(1-F(r))\,dr \\ &\le(1-\delta^{d+\epsilon})^{L-1}\int_{0}^{\infty}(1-F(r))\,dr. \end{aligned}

As this term decays exponentially in LL, it doesn’t contribute to the limit of log⁡(1/L)/log⁡(μL)\log(1/L)/\log(\mu_L). Now considering r≤δr\le\delta, (with δ≤1\delta\le1 wlog), we have

∫0δ(1−F(r))L dr≤∫0δ(1−rd+ϵ)L dr≤∫01(1−rd+ϵ)L dr≤B(L+1,1d+ϵ).\begin{aligned} \int_{0}^{\delta}(1-F(r))^L\,dr &\le\int_{0}^{\delta}(1-r^{d+\epsilon})^L\,dr \\ &\le\int_{0}^{1}(1-r^{d+\epsilon})^L\,dr \\ &\le B\left(L+1,\frac{1}{d+\epsilon}\right). \end{aligned}

Since B(x,y)=Γ(x)Γ(y)Γ(x+y)B(x,y)=\frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)} and Γ(x)Γ(x+y)∼x−y\frac{\Gamma(x)}{\Gamma(x+y)}\sim x^{-y} as x→∞x\to\infty, (see e.g. (DLMF, (5.11.12))) we see that lim⁡L→∞log⁡(1/L)/log⁡(μL)≤d+ϵ\lim_{L\to\infty}\log(1/L)/\log(\mu_L)\le d+\epsilon.

To lower bound the limit, note that ∫δ∞(1−F(r))L dr≥0\int_{\delta}^{\infty}(1-F(r))^{L}\,dr \ge0, and

∫0δ(1−F(r))L dr≥∫0δ(1−rd−ϵ)L dr≥∫01(1−rd−ϵ)L dr−∫δ1(1−rd−ϵ)L dr≥B(L+1,1d−ϵ)−(1−δd−ϵ)L.\begin{aligned} \int_{0}^{\delta}(1-F(r))^{L}\,dr &\ge\int_{0}^{\delta}\left(1-r^{d-\epsilon}\right)^{L}\,dr\\ &\ge\int_{0}^{1}\left(1-r^{d-\epsilon}\right)^{L}\,dr-\int_{\delta}^{1}\left(1-r^{d-\epsilon}\right)^{L}\,dr\\ &\ge B\left(L+1,\frac{1}{d-\epsilon}\right)-\left(1-\delta^{d-\epsilon}\right)^{L}. \end{aligned}

Considering that the beta term behaves as L−1/(d−ϵ)L^{-1/(d-\epsilon)} and the other term decays exponentially with LL, we see that lim⁡L→∞log⁡(1/L)/log⁡(μ^L)≥d−ϵ\lim_{L\to\infty}\log(1/L)/\log(\hat{\mu}_{L})\ge d-\epsilon. As the bounds hold for any ϵ>0\epsilon>0, the desired limit is established.

In the case d=0d=0, the previous argument shows that the limit is less than or equal to ϵ\epsilon for any ϵ>0\epsilon>0. That also establishes that μ^L→0\hat{\mu}_{L}\to0, so eventually the ratio log⁡(1/L)/log⁡(μ^L)\log(1/L)/\log(\hat{\mu}_{L}) is non-negative, so that its limit must also be non-negative.

Proof of Lemma 2: asymptotics of RCQ upper bound

Proof: It is convenient to denote f1(t)=tL−1μ1f_{1}(t)=t^{L-1}\mu_{1} and f2(t)=(1−tL)G(1−t)f_{2}(t)=(1-t^{L})G(1-t). Rather than explicitly calculating the infimum of f1(t)+f2(t)f_{1}(t)+f_{2}(t), it is sufficient to work with upper and lower bounds on the infimum. An upper bound is simply f1(t)+f2(t)f_{1}(t)+f_{2}(t) for any particular tt. For the lower bounds, note that for any t′t' the infimum over t∈[0,1]t\in[0,1] is equal to the minimum of the infimum over t∈[0,t′]t\in[0,t'] and the infimum over t∈[t′,1]t\in[t',1]. Because f2(t)f_{2}(t) is decreasing and f1(t)≥0f_{1}(t)\ge0,

inf⁡0≤t≤t′[f1(t)+f2(t)]≥f2(t′).\inf_{0\le t\le t'}[f_{1}(t)+f_{2}(t)]\ge f_{2}(t').

Likewise, because f1(t)f_{1}(t) is increasing and f2(t)≥0f_{2}(t)\ge0,

inf⁡t′≤t≤1[f1(t)+f2(t)]≥f1(t′).\inf_{t'\le t\le1}[f_{1}(t)+f_{2}(t)]\ge f_{1}(t').

Thus for any chosen t∈[0,1]t\in[0,1], we have min⁡f1(t),f2(t)≤μ^L≤f1(t)+f2(t)\min f_{1}(t),f_{2}(t)\le\hat{\mu}_{L}\le f_{1}(t)+f_{2}(t). To obtain the desired limit, we will choose a sequence tLt_{L} such lim⁡L→∞log⁡(1/L)log⁡(fk(tL))=d\lim_{L\to\infty}\frac{\log(1/L)}{\log(f_{k}(t_{L}))}=d for k=1,2k=1,2. This then established the desired limit for μ^L\hat{\mu}_{L}.

Define tL=1−log⁡(L)Ldt_{L}=1-\frac{\log(L)}{Ld}. Then

log⁡(f1(tL))=(L−1)log⁡(1−log⁡(L)Ld)+log⁡(μ1)≈−(L−1)log⁡(L)Ld+log⁡(μ1).\begin{aligned} \log(f_{1}(t_{L}))&=(L-1)\log\left(1-\frac{\log(L)}{Ld}\right)+\log(\mu_{1})\\ &\approx-\frac{(L-1)\log(L)}{Ld}+\log(\mu_{1}). \end{aligned}

using the first order approximation of log near 0, from which the desired limit for f1f_{1} follows.

As the calculations for f1f_{1} show, tLt_{L} goes to zero and so the term (1−tL)(1-t_{L}) in f2(tL)f_{2}(t_{L}) approaches unity in the limit. We thus need only focus on the behavior of G(1−tL)G(1-t_L).

lim⁡L→∞log⁡(1/L)log⁡(G(1−tL))=lim⁡L→∞log⁡(1/L)log⁡(G(log⁡(L)Ld))=lim⁡L→∞log⁡(log⁡(L)Ld)log⁡(G(log⁡(L)Ld))log⁡(1/L)log⁡(log⁡(L)Ld)=dlim⁡L→∞log⁡(1/L)log⁡(1/L)+log⁡(log⁡(L)d)=d.\begin{aligned} \lim_{L\to\infty}\frac{\log(1/L)}{\log(G(1-t_L))} &= \lim_{L\to\infty}\frac{\log(1/L)}{\log\left(G\left(\frac{\log(L)}{Ld}\right)\right)} \\ &= \lim_{L\to\infty}\frac{\log\left(\frac{\log(L)}{Ld}\right)}{\log\left(G\left(\frac{\log(L)}{Ld}\right)\right)}\frac{\log(1/L)}{\log\left(\frac{\log(L)}{Ld}\right)} \\ &= d\lim_{L\to\infty}\frac{\log(1/L)}{\log(1/L)+\log\left(\frac{\log(L)}{d}\right)} \\ &= d. \end{aligned}

Proof of Corollary 2: explicit bound on RCQ upper bound

Proof: The result is obtained from Theorem 1 by noting

μ‾Q(L)=inf⁡t∈[0,1][tL−1μQ(1)+(1−tL)G(1−t)]≤inf⁡t∈[0,1][tL−1μQ(1)+G(1−t)]≤tLL−1μQ(1)+G(1−tL)≤tLL−1μQ(1)+β(1−tL)1/α≤μQ(1)(1−sL−1)L−1+βsL−1/α.\begin{aligned} \overline{\mu}_Q(L) &= \inf_{t\in[0,1]}\left[t^{L-1}\mu_Q(1)+(1-t^L)G(1-t)\right] \\ &\le\inf_{t\in[0,1]}\left[t^{L-1}\mu_Q(1)+G(1-t)\right] \\ &\le t_L^{L-1}\mu_Q(1)+G(1-t_L) \\ &\le t_L^{L-1}\mu_Q(1)+\beta(1-t_L)^{1/\alpha} \\ &\le\mu_Q(1)(1-s_L^{-1})^{L-1}+\beta s_L^{-1/\alpha}. \end{aligned}

where we made the choice sL=(1−tL)−1=(Lα)/log⁡(L)s_L=(1-t_L)^{-1}=(L\alpha)/\log(L). The purpose of this choice is so that both terms in the sum behave like L−1/αL^{-1/\alpha}, up to a log⁡(L)\log(L) factor.

Proof of Theorem 2: Asymptotic Bounds for Continuous Distributions

Proof: Given ϵ>0\epsilon>0, choose δ>0\delta>0 such that ρ(x,y)≤δ\rho(x,y)\le\delta implies ∣p(x)−p(y)∣<ϵ2|p(x)-p(y)|<\epsilon^2. Define S(ϵ)={x∈RN:p(x)≥ϵ}S(\epsilon)=\{x\in\mathbb{R}^N:p(x)\ge\epsilon\}. For x∈S(ϵ)x\in S(\epsilon) and r<δνr<\delta^\nu, we have

F(r;x)=∫ρ(x,y)≤rp(y) dy=∫∥x−y∥p≤rp(y) dy≤Vp,N(1)rN/ν(p(x)+ϵ2)≤Vp,N(1)rN/νp(x)(1+ϵ).\begin{aligned} F(r;x) &= \int_{\rho(x,y)\le r}p(y)\,dy \\ &= \int_{\lVert x-y\rVert_p\le r}p(y)\,dy \\ &\le V_{p,N}(1)r^{N/\nu}\left(p(x)+\epsilon^2\right) \\ &\le V_{p,N}(1)r^{N/\nu}p(x)(1+\epsilon). \end{aligned}

Similarly, F(r;x)≥Vp,N(1)rN/νp(x)(1−ϵ)F(r;x)\ge V_{p,N}(1)r^{N/\nu}p(x)(1-\epsilon). Multiplying these inequalities by p(x)r−N/νp(x)r^{-N/\nu}, then integrating the result over S(ϵ)S(\epsilon), and finally taking the limit as ϵ→0\epsilon\to0, gives the desired expression for F(r)F(r).

For x∈S(ϵ)x\in S(\epsilon), the bounds on F(r;x)F(r;x) imply that

(qVp,N(1)p(x)(1+ϵ))ν/N≤G(q;x)≤(qVp,N(1)p(x)(1−ϵ))ν/N.\left(\frac{q}{V_{p,N}(1)p(x)(1+\epsilon)}\right)^{\nu/N}\le G(q;x)\le\left(\frac{q}{V_{p,N}(1)p(x)(1-\epsilon)}\right)^{\nu/N}.

Again multiplying these inequalities by p(x)q−ν/Np(x)q^{-\nu/N}, integrating the result over S(ϵ)S(\epsilon), and then letting ϵ→0\epsilon\to0 gives the desired expression for G(q)G(q).

Proof of Theorem 3: Connections between different notions of dimension

It is helpful to first state and prove some results about uncalibrated dimensions.

Lemma 3. For an arbitrary distortion measure, the uncalibrated dimensions satisfy

d~Q(X)≤d~Q(X)≤d~Q(X),\widetilde{d}_{Q}(X) \le\widetilde{d}_{Q}(X) \le\widetilde{d}_{Q}(X),

and

d~U(X)≤d~O(X)≤d~Q(X).\widetilde{d}_{U}(X) \le\widetilde{d}_{O}(X) \le\widetilde{d}_{Q}(X).

whenever these quantities exist.

Proof. These follow from the relationships between corresponding distortion curves μ(L)\mu(L). In particular, consider two distortion curves μ1(L)≥μ2(L)>0\mu_1(L) \ge\mu_2(L) > 0, with corresponding dimensions

lim⁡L→∞log⁡(L)log⁡(1/μk(L))=dk>0,\lim_{L \to\infty} \frac{\log(L)}{\log(1/\mu_k(L))} = d_k > 0,

for k=1,2k = 1,2. Then we can show d1≥d2d_1 \ge d_2. To this end, define g(L)=μ2(L)/μ1(L)g(L) = \mu_2(L)/\mu_1(L).

lim⁡L→∞log⁡(L)log⁡(1/g(L))=11/d2−1/d1=d1d2d1−d2.\lim_{L \to\infty} \frac{\log(L)}{\log(1/g(L))} = \frac{1}{1/d_2 - 1/d_1} = \frac{d_1d_2}{d_1-d_2}.

Since log⁡(1/g(L))≥0\log(1/g(L)) \ge0, we must have d1−d2≥0d_1-d_2 \ge0. This concludes the proof of the lemma, for d~U(X)\widetilde{d}_{U}(X), d~O(X)\widetilde{d}_{O}(X), and d~Q(X)\widetilde{d}_{Q}(X). For d~Q(X)\widetilde{d}_{Q}(X) and d~Q(X)\widetilde{d}_{Q}(X), the proof follows after connecting the behavior of the RCQ bounds μQ(X)\mu_Q(X) and μ~Q(X)\widetilde{\mu}_Q(X) to the corresponding PDD dimensions, via Lemmas 1 and 2.

We now proceed with the proof of Theorem 3. Most of the relationships are obtained directly from Lemma 3 upon multiplication through by the distortion exponent ν\nu. The identification of Renyi information dimension and rate-distortion dimension, dI(X)=dU(X)d_I(X) = d_U(X), for given distortion function is given in Wu and Verdú [17], example. It remains to show dQ(X)≤dI(X)d_Q(X) \le d_I(X).

Proposition 4 in Wu and Verdú [17] shows that for a pp-norm on Rn\mathbb{R}^n with 1≤p≤∞1 \le p \le\infty,

dI(X)=lim⁡r→0EX1[log⁡PX2[∥X1−X2∥p≤r]]log⁡r.(11)d_I(X) = \lim_{r \to0} \frac{E_{X_1}\left[\log P_{X_2}\left[\lVert X_1-X_2\rVert_p \le r\right]\right]}{\log r}. \tag*{(11)}

For each rr,

EX1[log⁡PX2[∥X1−X2∥p≤r]]=EX1[log⁡EX2[1{∥X1−X2∥p≤r}]]≤log⁡EX1[EX2[1{∥X1−X2∥p≤r}]]=log⁡PX1,X2[ρ(X1,X2)≤rν]=log⁡F(rν).\begin{aligned} E_{X_1}\left[\log P_{X_2}\left[\lVert X_1-X_2\rVert_p \le r\right]\right] &= E_{X_1}\left[\log E_{X_2}\left[1\left\{\lVert X_1-X_2\rVert_p \le r\right\}\right]\right] \\ &\le\log E_{X_1}\left[E_{X_2}\left[1\left\{\lVert X_1-X_2\rVert_p \le r\right\}\right]\right] \\ &= \log P_{X_1,X_2}\left[\rho(X_1,X_2) \le r^\nu\right] = \log F(r^\nu). \end{aligned}

Dividing both sides by log⁡rν\log r^\nu, which is negative for r<1r < 1, and taking the limit as r→0r \to0 then establishes that

dI(X)≥νlim⁡r→0log⁡(F(r))log⁡(r).d_I(X) \ge\nu\lim_{r \to0} \frac{\log(F(r))}{\log(r)}.

Additional analysis and experimental results

We provide the additional experimental details and results in this section to better illustrate our proposed method and its performance.

PDD-based RCQ bounds calculation

We first estimate the PDD of the pairs sampled from PXP_X using the proposed adaptive graph-based importance sampling F^IS(r1),…,F^IS(rm)\widehat{F}_{\mathrm{IS}}(r_1), \ldots, \widehat{F}_{\mathrm{IS}}(r_m), where r1<r2<⋯<rmr_1 < r_2 < \cdots< r_m cover almost the whole range. For estimation at each rr, we denote the ±95%\pm95\% confidence interval (CI) of F^IS(rm)\widehat{F}_{\mathrm{IS}}(r_m) as F^CI\widehat{F}_{\mathrm{CI}} and F^CI\widehat{F}_{\mathrm{CI}}. So, to approximate the integral in the lower bound of μL\mu_L in Theorem 1, the empirical lower bound is within the range

[∑m=1M−1(1−F^CI(rm+1))L(rm+1−rm),∑m=1M−1(1−F^CI(rm))L(rm+1−rm)].\left[ \sum_{m=1}^{M-1} \left(1-\widehat{F}_{\mathrm{CI}}(r_{m+1})\right)^L(r_{m+1}-r_m), \sum_{m=1}^{M-1} \left(1-\widehat{F}_{\mathrm{CI}}(r_m)\right)^L(r_{m+1}-r_m) \right].

We set the F^CI(r)\widehat{F}_{\mathrm{CI}}(r) to be 7/K7/K if no hits are observed in KK samples, which is a heuristic value giving a conservative CI. It is based on an argument that when observing KK Bernoulli random variables probability as high as 7/K7/K, there is a non-negligible probability of observing no hits.

Now we calculate the RCQ upper bound in Theorem 1 based on the PDD estimation. For a given probability qq, we first randomly sample a xx, and apply the graph-based importance sampling KK times to obtain F^IS(r;x)\widehat{F}_{\mathrm{IS}}(r;x). The corresponding inverse function is then estimated as

G^IS(q;x)=max⁡{r:F^IS(r;x)≤q}.\widehat{G}_{\mathrm{IS}}(q;x)=\max\{r:\widehat{F}_{\mathrm{IS}}(r;x)\leq q\}.

with confidence intervals on G^\widehat{G} likewise calculated from confidence intervals on F^\widehat{F}.

This procedure is repeated for MM randomly sampled xix_i, for each of them we obtain G^IS(q;xi)\widehat{G}_{\mathrm{IS}}(q;x_i), then we take the average of MM of them to obtain the term

G^IS(q)=1M∑i=1MG^IS(q;xi).\widehat{G}_{\mathrm{IS}}(q)=\frac{1}{M}\sum_{i=1}^{M}\widehat{G}_{\mathrm{IS}}(q;x_i).

The single codeword RCQ error in the upper bound is obtained as

μ^Q(1)=1K1∑k1=1K11K2∑k2=1K2ρ(xk1,xk2).\widehat{\mu}_Q(1)=\frac{1}{K_1}\sum_{k_1=1}^{K_1}\frac{1}{K_2}\sum_{k_2=1}^{K_2}\rho(x_{k_1},x_{k_2}).

For each value of LL, the upper bound μ‾Q(L)\overline{\mu}_Q(L) is estimated by a numerical minimization of

tL−1μ^Q(1)+(1−tL)G^IS(1−t),t^{L-1}\widehat{\mu}_Q(1)+(1-t^L)\widehat{G}_{\mathrm{IS}}(1-t),

for t∈[0,1]t\in[0,1]. Confidence intervals for the bound are obtained by substituting confidence intervals for G^\widehat{G} into the minimization.

PDD-based dimension calculation

By applying l’Hopital’s rule, the dimensions defined in Definition 3 are computed using estimated F^(r)\widehat{F}(r) and G^(q)\widehat{G}(q):

dQ(X)≈lim⁡r→0log⁡F^(rm+1)−log⁡F^(rm−1)log⁡rm+1−log⁡rm−1,d_Q(X) \approx\lim_{r \to0} \frac{\log\widehat{F}(r_{m+1})-\log\widehat{F}(r_{m-1})}{\log r_{m+1}-\log r_{m-1}},

and

d‾Q(X)≈lim⁡q→0log⁡qm+1−log⁡qm−1log⁡G^(qm+1)−log⁡G^(qm−1).\overline{d}_Q(X) \approx\lim_{q \to0} \frac{\log q_{m+1}-\log q_{m-1}}{\log\widehat{G}(q_{m+1})-\log\widehat{G}(q_{m-1})}.

The ratios given above can be plotted as a function of log⁡(rm)\log(r_m) or log⁡(G(qm))\log(G(q_m)); if the function tends to flat "plateau" in the small rr or small qq regime, then the level of this plateau can be taken as an estimate of the corresponding dimension. However, the values of the plotted ratios in the whole range of rr can be of interest in understanding the structure of a data source, which may effectively exhibit different characteristic dimensions at different scales.

Adaptive selection

In Figure 4, we show the selected τ\tau of our proposed Graph-based adaptive importance sampling for 5-dimensional multivariate Gaussian source (left) and MNIST training set (right). The initial τ\tau is 1.0, the step size is 0.1. The adaptive decreasing criterion for τ\tau is

Figure 4. Adaptive τ\tau choice in our proposed graph-based adaptive importance sampling approach. Left: 5-dimensional multivariate Gaussian. Right: MNIST. The QτQ_\tau is twisted more (smaller τ\tau) when rr is smaller.

∑k=1K1{ρ(x1,xT)≤r}≥50,CV⁡(F^IS(r))2≤0.1.\sum_{k=1}^{K} \mathbb{1}\{\rho(x_1,x_T) \le r\} \ge50,\quad\operatorname{CV}(\widehat{F}_{\mathrm{IS}}(r))^2 \le0.1.

We can find that, at different regions of rr, a suitable twisted distribution QτQ_\tau controlled by the parameter τ\tau is used for sampling the pair (x1,xT)(x_1,x_T).

PDD dimension estimation

We show the PDD dimension in Figure 5. For Gaussian source, we study the 5-dimensional multivariate Gaussian, where we know all the notions of dimension under study are equal to d=5d=5.

We observe that, using the PDD estimated by MC uniform sampling (first plot), the CI becomes very large when rr is on the order of 10−110^{-1}. By contrast, the dQ(X)d_Q(X) estimated using GAIS (second plot) has a narrow CI especially in the small rr region approaching 10−210^{-2}. The the true dimension of the source is accurately estimated by the lower bound. Computation of the upper bound is less accurate, but shows similar trends. For MNIST, there is no ground truth dimension to compare with. However, comparing the third plot (Monte Carlo) and fourth plot (GAIS), we see that the use of importance sampling allows the dimension to be estimated with much tighter confidence intervals.

So, by utilizing the GAIS, we get a more stable and accurate dimension estimation for understanding the source. We note that, although GAIS provides a better dQ(X)d_Q(X) estimation compared with using MC uniform sampling, there is still room for improvement. One possible solution is to use inverse-variance weighting when computing G(q)=EX[G(q;x)]G(q) = \mathbb{E}_X[G(q; x)] empirically. We leave this as a interesting future direction for research.

References

  1. [1]Alexandr Andoni and Ilya Razenshteyn. Optimal data-dependent hashing for approximate near neighbors. In Proceedings of the forty-seventh annual ACM symposium on Theory of computing, pages 793–801, 2015.arxiv.org/abs/1501.01062
  2. [3]David L Donoho, Adel Javanmard, and Andrea Montanari. Information-theoretically optimal compressed sensing via spatial coupling and approximate message passing. IEEE Transactions on Information Theory, 59(11):7434–7464, 2013.
  3. [4]Kenneth Falconer. Fractal geometry: mathematical foundations and applications. John Wiley & Sons, 2013.
  4. [5]Jerome H Friedman, Jon Louis Bentley, and Raphael Ari Finkel. An algorithm for finding best matches in logarithmic expected time. ACM Transactions on Mathematical Software (TOMS), 3(3):209–226, 1977.DOI
  5. [6]Allen Gersho and Robert M Gray. Vector quantization and signal compression. Springer Science & Business Media, 2012.
  6. [7]Peter Grassberger and Itamar Procaccia. Measuring the strangeness of strange attractors. Physica D: nonlinear phenomena, 9(1-2):189–208, 1983.
  7. [8]Robert M Gray. Vector quantization. IEEE Assp Magazine, 1(2):4–29, 1984.
  8. [9]Felix Hausdorff. Dimension und äußeres maß. Mathematische Annalen, 79(1):157–179, 1918.
  9. [10]Shirin Jalali and H Vincent Poor. Universal compressed sensing for almost lossless recovery. IEEE Transactions on Information Theory, 63(5):2933–2953, 2017.DOI
  10. [11]Herman Kahn and Andy W Marshall. Methods of reducing sample size in monte carlo computations. Journal of the Operations Research Society of America, 1(5):263–278, 1953.DOI
  11. [12]Tsutomu Kawabata and Amir Dembo. The rate-distortion dimension of sets and measures. IEEE Transactions on Information Theory, 40(5):1564–1572, 1994.
  12. [13]Stuart Lloyd. Least squares quantization in pcm. IEEE Transactions on Information Theory, 28(2):129–137, 1982.DOI
  13. [14]Carl Nuzman, Jeongmin Chae, Kursat Rasim Mესტav, and Urbashi Mitra. Pairwise distortion distribution for compression and quantization. In ICASSP 2026-2026 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 51–55. IEEE, 2026.
  14. [15]Farideh E Rezagah, Shirin Jalali, Elza Erkip, and H Vincent Poor. Compression-based compressed sensing. IEEE Transactions on Information Theory, 63(10):6735–6752, 2017.arxiv.org/abs/1601.01654
  15. [16]Claude Elwood Shannon. A mathematical theory of communication. The Bell system technical journal, 27(3):379–423, 1948.
  16. [17]Yihong Wu and Sergio Verdú. Rényi information dimension: Fundamental limits of almost lossless analog compression. IEEE Transactions on Information Theory, 56(8):3721–3748, 2010.DOI
  17. [18]Yihong Wu and Sergio Verdú. Optimal phase transitions in compressed sensing. IEEE Transactions on Information Theory, 58(10):6241–6263, 2012.arxiv.org/abs/1111.6822
  18. [19]Paul Zador. Asymptotic quantization error of continuous signals and the quantization dimension. IEEE Transactions on Information Theory, 28(2):139–149, 1982.DOI
  19. [20]Caiming Zhong, Mikko Malinen, Duoqian Miao, and Pasi Fränti. Fast approximate minimum spanning tree algorithm based on k-means. In Richard Wilson, Edwin Hancock, Adrian Bors, and William Smith, editors, Computer Analysis of Images and Patterns, pages 262–269, Berlin, Heidelberg, 2013. Springer Berlin Heidelberg. ISBN 978-3-642-40261-6.DOI
  20. [21]Sanguo Zhu. Asymptotic uniformity of the quantization error of self-similar measures. Mathematische Zeitschrift, 267(3):915–929, 2011.
  21. [22]Sanguo Zhu. A note on the quantization for probability measures with respect to the geometric mean error. Monatshefte für Mathematik, 167(2):291–305, 2012.DOI
  22. [23]Sanguo Zhu, Youming Zhou, and Yongjian Sheng. Asymptotics of the geometric mean error in the quantization for in-homogeneous self-similar measures. Journal of Mathematical Analysis and Applications, 434(2):1394–1418, 2016.

Paper details

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

views · 11

downloads · 1

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

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents