Manuscript Offprint
arXiv:2611.04341Pairwise Distortion Distribution with Graph-Based Importance Sampling for Quantization Error and Intrinsic Dimension Estimation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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.
1 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 (Shannon, 1948), 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) (Kawabata and Dembo, 1994), Rényi information dimension (RID) (Wu and Verdú, 2010), Minkowski dimension and the Hausdorff dimension (Hausdorff, 1918; Falconer, 2013). These notions of complexity capture different aspects of the source complexity and have different operational applications. For instance,
Xi Chen and Shirin Jalali are with the Department of Electrical and Computer Engineering, Rutgers University, Piscataway, NJ 08854 USA (e-mail: xi.chen15@rutgers.edu; shirin.jalali@rutgers.edu).
Carl Nuzman is with the Nokia Bell Labs, Murray Hill, NJ 07974 USA (e-mail: carl.nuzman@nokia-bell-labs.com). This work was done during Xi Chen's internship at Nokia Bell Labs.
the RID of a source characterizes the minimum sampling rate required for almost-lossless recovery from under-sampled linear measurements (Wu and Verdú, 2010, 2012; Donoho et al., 2013; Jalali and Poor, 2017; Rezagah et al., 2017).
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 in the small distortion regime (), 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 codewords independently drawn from a distribution . 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 (Zador, 1982; Zhu, 2011, 2012; Zhu et al., 2016), where measures the expected distortion achieved by an RCQ with codewords distributed as , and the source distribution denoted as . Directly estimating is prohibitive as it requires estimating the performance of RCQ over increasingly large codebooks. However, recent work (Nuzman et al., 2026) 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 samples, the complexity of sampling on the constructed minimum spanning tree through a proposed random walk is typically , 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.
where is the -th codeword. The expected quantization error of given induced by VQ using is
where is the distortion measure, . The minimum distortion is found in . Given realization , the distortions , are i.i.d. random variables. Define the conditional distortion CDF as , then . Using the tail-integral identity for nonnegative random variables, (2) can be re-written as
When is large, the integral is dominated by behavior of for small radius , which in turn reflects increasingly local behavior of the distributions and . An important special case of RCQ is to draw the codeword from the same distribution as the data, . 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 is also convenient for unknown, empirical distributions. In this paper we will focus on the case , although many of the methods and concepts can be extended to a more general setting. One useful object for studying RCQ was introduced in (Nuzman et al., 2026).
Definition 1 (Pairwise distortion distribution (Nuzman et al., 2026)). Let be a random vector on , and let be a distortion measure. With , the pairwise distortion distribution (PDD) is defined as
This distribution can be used to express a simple lower bound on RCQ error. In Section 3, we introduce a related function and use it to define an upper bound of RCQ. In Section 4, we define notions of intrinsic dimension based on these RCQ bounds and show how they relate to other definitions of intrinsic dimension. In Section 5, we introduce methodology for empirically estimating the PDD from data, and in Section 6, propose an importance sampling method to improve the scalability of this computation. Numerical experiments with the methods are reported in Section 7.
3 PDD-based RCQ Bounds
We derive the PDD-based RCQ bounds in this section. Detailed proofs of the results are given in Section 9. We begin with a definition.
Definition 2 (Averaged inverse conditional PDD). For , define the inverse of as , with . The averaged inverse conditional PDD is .
Taking , we modify the notation of RCQ as to emphasize the dependence on , and to differentiate it from related function and defined later. We derive the lower and upper bound of the RCQ distortion in terms of and in the main theorem. The lower bound result was already given in (Nuzman et al., 2026).
Theorem 1 (PDD-based RCQ bounds). Let , and as defined in Definition 1,2, with and for . The RCQ is bounded as
The bounds coincide for a single code point: . 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, and can be estimated by sampling the pairs from the source distribution, as explained in Section 5. Any value of gives a valid upper bound; the choice of can be optimized numerically given .
The behavior of and for small and gives insight into the asymptotic behavior of for large , as indicated by these two lemmas.
Lemma 1. Let satisfy . Then satisfies .
Lemma 2. Let satisfy . Then satisfies .
Likewise, explicit bounds on the functions and yield convenient explicit bounds on RCQ error.
Corollary 1 ((Nuzman et al., 2026)). Let on and suppose for . Then
where is the Beta function.
Corollary 2. Let on and suppose that for some . Then
where .
The behavior of the functions and near 0 have an explicit description when has a sufficiently smooth density on . Let denote the volume of the ball of radius 1 under the -norm on , in which case the ball of radius has volume .
Theorem 2. Suppose that has absolutely continuous distribution on with density , and that is a uniformly continuous function. Let the distortion function be for . Then
and
if the respective expectations are finite.
The proof is based on the approximation for small .
In the case of a probability density on , and distortion with , it is also known that (Zador, 1982). Thus, given a distribution on such that , , and , we can say that it "behaves like" a continuous distribution on , and we can define as its intrinsic dimension. We develop these ideas in the next section.
4 PDD dimension
In this section, we define new intrinsic dimensions and relate them to the RDD, RID, and quantization dimension discussed in Section 1.
For an arbitrary distortion function, we have denoted the expected distortion using RCQ with codewords by . We likewise denote by the distortion of the optimal codebook, and by the distortion achievable by source coding over unlimited block lengths, where for distortion-rate function , we have . We have , for our RCQ bounds, and we have by definition. For an arbitrary distortion measure, we denote the uncalibrated RCQ dimension as
For distortion , we define the calibrated dimension as . Computing dimension via the calibrated definition yields the same value, regardless of the exponent 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 and calibrated definitions of dimension - but many of the results and methods extend naturally to general distortion measures. Similarly to (4), we define based on and .
The quantization dimension coincides with the definition in (Zador, 1982), and is the same as the RDD defined in (Kawabata and Dembo, 1994), since by change of variables
The dimensions , and are typically hard to characterize, especially from empirical observations of unknown distributions. However, we can define notions of dimension, based on and , which bound these notions of dimension, and which are easier to estimate empirically.
Definition 3 (PDD-based dimension). Given distortion of the form , the calibrated lower and upper PDD dimensions are
when these limits exist, where and are defined in Definition 1, 2.
We note that the lower dimension generalizes the correlation dimension (Grassberger and Procaccia, 1983), , where .
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 , with and , the calibrated dimensions satisfy
whenever these limits exist.
See the Section 9 for the full proof. The equality of RID and RDD, , for the given distortion function is provided in (Wu and Verdú, 2010), for example, while the bound is obtained by correcting an error in the argument originally given in (Nuzman et al., 2026).
We illustrate these notions of dimension with examples where and others where . For an absolutely continuous source on , if the expectations in Theorem 2 exist, then we have , and so by Theorem 3, all of the notions of dimension coincide. Likewise, for a source on a finite set, we have and for , and so .
A less trivial but still tractable case is the Bernouilli uniform source where Bernoulli, , and is independent of . Here one can check that , yielding , while for small , yielding . It is well known that the RID in this case is , and we can also calculate .
Generalizing this result, when we have a mixture of distributions which have densities on manifolds of different dimensions, picks the smallest of the dimensions while picks the largest. This is illustrated by the following artificial example in which and have simple closed form expressions.

Figure 1: PDD-based analysis on two mixture distributions. Top row: mixture of hypercubes. Bottom row: mixture of MNIST digits. We show , , RCQ bounds, and the estimated PDD dimension.
Consider a finite mixture of unit hypercubes , where is the uniform distribution on a -dimensional unit hypercube , and . If , we use the torus distortion
If , , we define . Then, for , if , . Consequently, , . Therefore, , . Using (11), the RID of this source is . 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 , and quantization bounds for a mixture of hypercubes with , , and , . The larger and smaller dimensions are captured by and , respectively. The RCQ curve is sandwiched between the PDD bounds.
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 and , respectively. When the mixture distribution is analyzed, we get approximately and , with RCQ behavior bounded by and as expected.
5 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 . Given a dataset of samples, we we estimate the expectation by sampling independent pairs uniformly from the dataset. The Monte Carlo (MC) based estimator is , , where .
5.1 Accuracy of MC estimation
Assume we have iid samples, thus pairs. Since , where , the estimator is unbiased , the variance of it is . So the coefficient of variation (CV) is
and its empirical value estimated from the samples is . In order to get a good estimate of , we need to keep CV small, for instance, requires . Note that 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 using the MC, if is small, the error bar is large. Thus, given small , is small, we need large . Since is an increasing function of , this means, in a given experiment, there is a minimum value of below which cannot be confidently estimated.
5.2 Estimation with importance sampling
We can adopt importance sampling (IS) (Kahn and Marshall, 1953) 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 . Denote as the twisted distribution that is sampled from, each sample is corrected by to avoid bias. So, the estimator is
where , and . When a finite dataset has size of , then . We will introduce how to design later. Before that, we analyze the MC estimator with importance sampling.
5.3 Accuracy of importance sampling
Consider an individual summand of (6), which can be modeled as the product of a Bernoulli r.v. , i.e., the indicator function, with a non-negative r.v. , i.e., the ratio of P to Q. We assume almost surely, so that only when . This is the case as long as the twisted distribution has the same support as the true distribution. Suppose that , then we have , , and , where is the random variable obtained by conditioning on the event , , i.e., the random variable under the twisted distribution, conditioned on the event that . If each of the pairs is independent of the other pairs, and , then
Algorithm 1 Graph-based importance sampling
1: Construct a -nearest-neighbor graph on based on the distortion measure . 2: Get a minimum spanning tree of . 3: for each edge do 4: Split at into . 5: Set and . 6: end for 7: Sample uniformly from . 8: Set . 9: for do 10: Create . 11: Stop with probability: 12: Otherwise sample with probability . (9)
13: Set . 14: end for 15: return .
The first term depends on , and the second term is the variance of the averaged independent . Without importance sampling, we have and . Thus the CV of the estimate is approximately and the number of samples required increases in inverse proportion with the probability we are targeting. With importance sampling, is no longer tied to , as we can make the twisted probability of the event to be much higher than the untwisted probability of interest. Thus the product can be controlled with a relatively small number of samples . However, there is an additional term .
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 but may also eventually increase the term . 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 . For , we have , . Putting the pieces together,
6 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 on the pairwise distance , such that, the estimator is accurate and sample efficient when the event is rare. For different range of , we propose an adaptive way for twisting . Given a dataset of data samples, and the matrix of all 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 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 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.
6.1 Non-backtracking random walk on MST
In the pre-processing phase, we take a dataset of samples and construct an approximate minimum spanning tree of the graph of all pairwise distortions. While an exact MST can be done in operations, dominated by calculation of all distortions, an approximate MST can be calculated with lower complexity (Zhong et al., 2013). In our implementation, we first compute a k-nearest neighbor graph (Friedman et al., 1977; Andoni and Razenshteyn, 2015), 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 , are given in Algorithm 1. The starting node is uniformly picked from , 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 is the probability of taking the path , where is the random stopping time. The path probability is , where . When in the transition probability (9) (the untwisted case), the product of the conditional probabilities always turns out to be , so that the probability of selecting the pair is always . When , 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 , the twisted distribution that the pair is sampled from, , changes, controlling the frequency with which nearby pairs are selected. For different ranges of , we can adapt to keep small. To estimate for small , we choose smaller such that closer pairs are sampled. The correction ratio in the estimator is then , where is the actual random walk path.
6.2 Variance analysis of the estimator
In Section 5.3, we showed that the coefficient of variation of our estimate of has two terms. The first term relates to the variability of the twisting ratio, conditioned on , and the second term is inversely proportional to the "hit-rate", or twisted probability that . In the Figure 2 (a), we plot an estimate of these two terms, and the total coefficient variation as

(a)
(b)
(c)
(d) Adaptive
Figure 2: The coefficient of variation of using different twisted distributions.
a function of distance for the case that twisting parameter is . The twisting ratio term (dashed line) tends to grow with , while the hit-rate term (dotted line) tends to decrease with . This twisted distribution is well-suited for estimating in the vicinity of . The (b) and (c) figures show other that larger (less aggressive) twist parameters are better suited for estimating for larger values of .
The CV estimates curves for the twisting ratio term (dashed lines) have large discrete jumps, particularly when r is large and is small. This is evidence that this term can become heavy tailed if and r are not well-matched. In order to accurately and efficiently estimate across a wide range of r, it is necessary to adapt as a function of r.
6.3 Adaptive schedule of
Inspired by the observation above, we developed a strategy that gradually decreases with . We begin with the untwisted distribution which is always suitable for estimating large values of . We set an empirical threshold, say , and find the largest value such . We use to estimate for . We then reduce , say to , and similarly compute such that for . We use to estimate in this interval. Continuing in this way, we obtain estimates of with good accuracy across a range of scales. The Figure 2 (d) shows the estimated coefficient of variation obtained for estimating , which stays below 0.01 over a wide range. Further details about the parameters and obtained in this example are given in Appendix A.3. In the next section, we give numerical examples of estimating the PDD, along with RCQ bounds and PDD dimensions.
7 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 A.1 and A.2. We compare our graph-based adaptive importance sampling (GAIS) against the MC uniform sampling.
7.1 Multivariate Gaussian
We first consider verify the methodology on a known distribution, , where . We have the analytical RCQ lower bound based on Corollary 1, and the approximate analytical upper

Figure 3: , , RCQ bounds estimated by MC uniform sampling, and GAIS (first row: multivariate Gaussian; second row: MNIST). We plot the confidence interval of estimating , , and the related RCQ bounds. For Gaussian source, we compute the optimal RD and the analytical RCQ lower and upper bounds.
bound based on Corollary 2 by assuming , with , in the distortion function, we have , . 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, and 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 estimation. Since large yields small , which contributes less to the RCQ lower bound approximation when is larger, by first-order Taylor approximation, , this indicates that, we need to accurately estimate to the probability level of . For instance, when , around needs to be estimated. However, estimated by MC uniform sampling is inaccurate at . In contrast, offers a low variance estimate till the probability level of , 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 and yield estimates of PDD dimension. Figure 5 in Appendix A.4 shows that PDD dimension estimated using GAIS approaches the true dimension when is small.
7.2 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.
8 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.
9 Detailed Proofs
In this section, we present proofs of results given in the main body of the paper.
9.1 Proof of Theorem 1: RCQ lower and upper bounds
The RCQ error is lower bounded as
(a) applies Jensen's inequality, (b) assumes . When , denote , . The pairwise distortion distribution in Definition 1. Now we prove the upper bound of RCQ. For function , where , , we have
Then the upper bound of RCQ is
(a) is obtained by applying (10). (b) uses Definition 2.
9.2 Proof of Lemma 1: asymptotics of RCQ lower bound
First for simplicity consider . Choose with . There exists such that for . Note that
As this term decays exponentially in , it doesn't contribute to the limit of . Now considering , (with wlog), we have
Since and as , (see e.g. (DLMF, (5.11.12)) ) we see that .
To lower bound the limit, note that , and
Considering that the beta term behaves as and the other term decays exponentially with , we see that . As the bounds hold for any , the desired limit is established.
In the case , the previous argument shows that the limit is less than or equal to for any . That also establishes that , so eventually the ratio is non-negative, so that its limit must also be non-negative.
9.3 Proof of Lemma 2: asymptotics of RCQ upper bound
Proof: It is convenient to denote and . Rather than explicitly calculating the infimum of , it is sufficient to work with upper and lower bounds on the infimum. An upper bound is simply for any particular . For the lower bounds, note that for any the infimum over is equal to the minimum of the infimum over and the infimum over . Because is decreasing and ,
Likewise, because is increasing and ,
Thus for any chosen , we have To obtain the desired limit, we will choose a sequence such for . This then established the desired limit for .
Define . Then
using the first order approximation of log near 0, from which the desired limit for follows.
As the calculations for show, goes to zero and so the term in approaches unity in the limit. We thus need only focus on the behavior of .
9.4 Proof of Corollary 2: explicit bound on RCQ upper bound
Proof: The result is obtained from Theorem 1 by noting
where we made the choice . The purpose of this choice is so that both terms in the sum behave like , up to a factor.
9.5 Proof of Theorem 2: Asymptotic Bounds for Continuous Distributions
Proof: Given , choose such that implies . Define For and , we have
Similarly, . Multiplying these inequalities by , then integrating the result over , and finally taking the limit as , gives the desired expression for .
For , the bounds on imply that
Again multiplying these inequalities by , integrating the result over , and then letting gives the desired expression for .
9.6 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
and
whenever these quantities exist.
Proof: These follow from the relationships between corresponding distortion curves . In particular, consider two distortion curves , with corresponding dimensions
for . Then we can show . To this end, define .
Since , we must have . This concludes the proof of the lemma, for , , and . For and , the proof follows after connecting the behavior of the RCQ bounds and 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 . The identification of Renyi information dimension and rate-distortion dimension, , for given distortion function is given in Wu and Verdú (2010), example. It remains to show .
Proposition 4 in Wu and Verdú (2010) shows that for a -norm on with ,
For each ,
Dividing both sides by , which is negative for , and taking the limit as then establishes that
References
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.
DLMF. NIST Digital Library of Mathematical Functions. https://dlmf.nist.gov/, Release 1.2.8 of 2026-09-15, 2026. URL https://dlmf.nist.gov/. F. W. J. Olver, A. B. Olde Daalhuis, D. W. Lozier, B. I. Schneider, R. F. Boisvert, C. W. Clark, B. R. Miller, B. V. Saunders, H. S. Cohl, and M. A. McClain, eds.
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.
Kenneth Falconer. Fractal geometry: mathematical foundations and applications. John Wiley & Sons, 2013.
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.
Allen Gersho and Robert M Gray. Vector quantization and signal compression. Springer Science & Business Media, 2012.
Peter Grassberger and Itamar Procaccia. Measuring the strangeness of strange attractors. Physica D: nonlinear phenomena, 9(1-2):189–208, 1983.
Robert M Gray. Vector quantization. IEEE Assp Magazine, 1(2):4–29, 1984.
Felix Hausdorff. Dimension und äußeres maß. Mathematische Annalen, 79(1):157–179, 1918.
Shirin Jalali and H Vincent Poor. Universal compressed sensing for almost lossless recovery. IEEE Transactions on Information Theory, 63(5):2933–2953, 2017.
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.
Tsutomu Kawabata and Amir Dembo. The rate-distortion dimension of sets and measures. IEEE Transactions on Information Theory, 40(5):1564–1572, 1994.
Stuart Lloyd. Least squares quantization in pcm. IEEE Transactions on Information Theory, 28(2):129–137, 1982.
Carl Nuzman, Jeongmin Chae, Kursat Rasim Mestav, 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.
Farideh E Rezagh, Shirin Jalali, Elza Erkip, and H Vincent Poor. Compression-based compressed sensing. IEEE Transactions on Information Theory, 63(10):6735–6752, 2017.
Claude Elwood Shannon. A mathematical theory of communication. The Bell system technical journal, 27(3):379–423, 1948.
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.
Yihong Wu and Sergio Verdú. Optimal phase transitions in compressed sensing. IEEE Transactions on Information Theory, 58(10):6241–6263, 2012.
Paul Zador. Asymptotic quantization error of continuous signals and the quantization dimension. IEEE Transactions on Information Theory, 28(2):139–149, 1982.
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.
Sanguo Zhu. Asymptotic uniformity of the quantization error of self-similar measures. Mathematische Zeitschrift, 267(3):915–929, 2011.
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.
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.
A 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.
A.1 PDD-based RCQ bounds calculation
We first estimate the PDD of the pairs sampled from using the proposed adaptive graph-based importance sampling , where cover almost the whole range. For estimation at each , we denote the confidence interval (CI) of as and . So, to approximate the integral in the lower bound of in Theorem 1, the empirical lower bound is within the range
We set the to be if no hits are observed in samples, which is a heuristic value giving a conservative CI. It is based on an argument that when observing Bernoulli random variables probability as high as , 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 , we first randomly sample a , and apply the graph-based importance sampling times to obtain . The corresponding inverse function is then estimated as
with confidence intervals on likewise calculated from confidence intervals on .
This procedure is repeated for randomly sampled , for each of them we obtain , then we take the average of of them to obtain the term
The single codeword RCQ error in the upper bound is obtained as
For each value of , the upper bound is estimated by a numerical minimization of
for . Confidence intervals for the bound are obtained by substituting confidence intervals for into the minimization.


Figure 4: Adaptive choice in our proposed graph-based adaptive importance sampling approach. Left: 5-dimensional multivariate Gaussian. Right: MNIST. The is twisted more (smaller ) when is smaller.
A.2 PDD-based dimension calculation
By applying l'Hopital's rule, the dimensions defined in Definition 3 are computed using estimated and :
and
The ratios given above can be plotted as a function of or ; if the function tends to flat "plateau" in the small r or small q 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 r can be of interest in understanding the structure of a data source, which may effectively exhibit different characteristic dimensions at different scales.
A.3 Adaptive selection
In Figure 4, we show the selected of our proposed Graph-based adaptive importance sampling for 5-dimensional multivariate Gaussian source (left) and MNIST training set (right). The initial is 1.0, the step size is 0.1. The adaptive decreasing criterion for is
We can find that, at different regions of , a suitable twisted distribution controlled by the parameter is used for sampling the pair .
A.4 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 = 5.

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).
We observe that, using the PDD estimated by MC uniform sampling (first plot), the CI becomes very large when is on the order of . By contrast, the estimated using GAIS (second plot) has a narrow CI especially in the small region approaching . 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 estimation compared with using MC uniform sampling, there is still room for improvement. One possible solution is to use inverse-variance weighting when computing empirically. We leave this as a interesting future direction for research.