betaFeedback

WorksComputer Science

Pairwise distortion distribution for compression and quantization

Abstract

Choosing the latent dimension is a critical challenge in data compression, where conventional hyperparameter optimization is costly and ad hoc. Intrinsic dimension provides a good alternative, which connects information-theoretic notions such as Renyi information dimension (RID) to rate-distortion dimension and random codebook compression. In this work, we introduce the pairwise distortion distribution (PDD) and its asymptotic limit, pairwise dimension (PD), which generalize the correlation integral to general distortion measures. We show that PD bounds RID, and PDD provides a lower bound for random codebook quantization performance, which can guide a practical use for compression, quantization, and dimensionality reduction applications.

Introduction

Many applications such as representation learning, compression, and quantization rely on data having an intrinsic dimension much lower than the raw, or extrinsic dimension [1, 2, 3, 4]. Machine learning is a useful tool for finding such representations, in which the assumed intrinsic dimension is a key hyperparameter [5]. Conventional approaches address this by exhaustive search, which are computationally expensive and provides little insight on the geometry of the data [6, 7].

To address this, a large body of work focuses on estimating the intrinsic dimension (ID) of sets and of probability distributions, under various definitions [8]. Estimators for sets include maximum likelihood estimation (MLE) [9], TWO-NN [10], and PCA-based approaches [11], which leverage the local or global data statistics. Two well known definitions for ID are the Hausdorff dimension and the box counting dimension [11, 12, 13]. The information dimension, or the Hausdorff information dimension (HID), is the smallest Hausdorff dimension among sets having probability 1.

In information theory, an important quantity is the Renyi information dimension (RID) [14, 15]. The RID of a random vector X∈RnX \in\mathbb{R}^{n}, for m>0m > 0, is defined in terms of a series of quantized versions ⟨X⟩m=⌊mX⌋m\langle X\rangle_m = \frac{\lfloor mX\rfloor}{m} as dI(X)=d_I(X) =

lim⁡m→∞H(⟨X⟩m)log⁡m\lim_{m\to\infty}\frac{H(\langle X\rangle_m)}{\log m}

when the limit exists, where HH is the Shannon entropy. The RID is connected in [8] to the asymptotic scaling of the rate distortion curve as distortion approaches zero, for a wide class of distortion measures. In [16], the authors introduce the correlation integral and corresponding correlation dimension as computationally simpler alternatives to HID for quantifying the dimension of a distribution.

In this paper, we make connections between the correlation integral, the RID, and compression by generalizing the correlation integral from Euclidean distances to a general distortion measure. To this end, we introduce a new function called the pairwise distortion distribution (PDD), whose asymptotic limit defines a distortion-dependent notion of dimension referred to pairwise dimension (PD). Both PDD and PD are relatively easy to estimate from data and to derive analytically for known distributions.

We show that when distortion is a power of a vector norm, the PD gives a lower bound on the RID, and thus on the asymptotic behavior of the rate-distortion curve for a wide class of distortion functions. A simple PDD-based computation also yields a lower bound on the quantization performance of random quantization codebooks. Taken together, these properties suggest that the PDD-derived rate-distortion curve can be a good guide to the PDD-derived rate-distortion curve, which we confirm via empirical experiments.

Background

We review the correlation integral and correlation dimension, which are the key concepts for our framework. The definition below is modified from, but equivalent to, the version given in [16].

Definition 1 (Correlation Integral and Correlation Dimension [16]). Let X∼DX \sim\mathcal{D} be a random vector on RN\mathbb{R}^{N}. For r≥0r \ge0, the correlation integral is defined as

C(r)=PX1,X2∼D[∥X1−X2∥≤r],(1)C(r)=P_{X_1,X_2\sim\mathcal{D}}\left[\lVert X_1-X_2\rVert\le r\right], \tag*{(1)}

where X1X_1 and X2X_2 are independent realizations of XX. The correlation dimension of D\mathcal{D}, if the limit exists, is given as

dC(X)=lim⁡r→0log⁡C(r)log⁡r.(2)d_C(X)=\lim_{r\to0}\frac{\log C(r)}{\log r}. \tag*{(2)}

C(r)C(r) is the cumulative distribution function of the random variable Z=∥X1−X2∥Z=\lVert X_1-X_2\rVert, which represents the distance between two independent samples drawn from D\mathcal{D}. In particular,

if XX has an absolutely continuous distribution supported on a dd-dimensional subset of RN\mathbb{R}^{N}, then dC(X)=dd_C(X)=d.

While optimal codebooks achieve rate-distortion limits, its structure is difficult to characterize. Instead, we focus on the random codebook quantization scheme (RCQ), which provides a mathematically tractable baseline for PDD analysis. Let C={c1,…,cL}⊂RN\mathcal{C}=\{c_1,\ldots,c_L\}\subset\mathbb{R}^{N} denote a quantization codebook with LL codewords. For a distortion measure ρ(x,y)\rho(x,y), a quantizer maps an input X∼DX\sim\mathcal{D} to its nearest codeword, j(X)=arg⁡min⁡nρ(X,cn)j(X)=\arg\min_n\rho(X,c_n). The mean distortion of the codebook is μ(C)=EX∼D[min⁡nρ(X,cn)]\mu(\mathcal{C})=\mathbb{E}_{X\sim\mathcal{D}}\left[\min_n\rho(X,c_n)\right]. When the codebook C\mathcal{C} is generated randomly, with each codeword drawn independently from D\mathcal{D}, the expected distortion over random codebooks is μL=EC[μ(C)]\mu_L=\mathbb{E}_{\mathcal{C}}[\mu(\mathcal{C})].

PDD-based framework

We introduce a new distribution and its corresponding notion of dimension, which generalize the correlation integral by replacing the Euclidean distance with an arbitrary distortion measure ρ(x,y)\rho(x,y).

Definition 2 (Pairwise Distortion Distribution and Pairwise Dimension). Let X∼DX\sim\mathcal{D} be a random vector on RN\mathbb{R}^{N}, and let ρ:RN×RN→R≥0\rho:\mathbb{R}^{N}\times\mathbb{R}^{N}\to\mathbb{R}_{\ge0} be a distortion measure. For r≥0r\ge0, the pairwise distortion distribution (PDD) of D\mathcal{D} with respect to ρ\rho is defined as F~D,ρ(r)=PX1,X2∼D[ρ(X1,X2)≤r]\widetilde{F}_{\mathcal{D},\rho}(r)=\mathbb{P}_{X_1,X_2\sim\mathcal{D}}[\rho(X_1,X_2)\le r]. The corresponding notion of dimension, the pairwise dimension (PD), is defined as

dP(D,ρ)=lim⁡r→0log⁡F~D,ρ(r)log⁡r.(3)d_P(\mathcal{D},\rho)=\lim_{r\to0}\frac{\log\widetilde{F}_{\mathcal{D},\rho}(r)}{\log r}. \tag*{(3)}

We now develop a tool for compression analysis, built upon two key fundamental relationships: (i) between the pairwise distortion distribution (PDD) and the Renyi information dimension (RID), and (ii) between PDD and random codebook quantization (RCQ).

Connection between PDD and RID

Proposition 4 in [17] shows an alternative representation for the RID that is closely related to PDD. For 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⁡rd_I(X)=\lim_{r\to0}\frac{\mathbb{E}_{X_1}\left[\log\mathbb{P}_{X_2}\left[\lVert X_1-X_2\rVert_p\le r\right]\right]}{\log r}

This connects the RID to probabilities of balls of size rr around random centers. We show that PDD provides a lower bound for RID.

Proposition 1. For distortion functions of the form ρ(x,y)=∥x−y∥pν\rho(x,y)=\lVert x-y\rVert_p^{\nu}, for 1≤p≤∞1\le p\le\infty and ν>0\nu>0, if both limits exist,

νdP(D,ρ)≤dI(X).\nu d_P(\mathcal{D},\rho)\le d_I(X).

Proof. For each rr,

EX1log⁡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~D,ρ(rν).\begin{aligned} \mathbb{E}_{X_1}\log\mathbb{P}_{X_2}\left[\lVert X_1-X_2\rVert_p\le r\right] &=\mathbb{E}_{X_1}\left[\log\mathbb{E}_{X_2}\left[1\left\{\lVert X_1-X_2\rVert_p\le r\right\}\right]\right]\\ &\le\log\mathbb{E}_{X_1}\left[\mathbb{E}_{X_2}\left[1\left\{\lVert X_1-X_2\rVert_p\le r\right\}\right]\right]\\ &=\log\mathbb{P}_{X_1,X_2}\left[\rho(X_1,X_2)\le r^{\nu}\right]=\log\widetilde{F}_{\mathcal{D},\rho}(r^{\nu}). \end{aligned}

Taking r<1r<1 so that log⁡r<0\log r<0, dividing through by νlog⁡r=log⁡rν\nu\log r=\log r^{\nu} on both sides, and taking the limit as r→0r\to0 gives the result. ⊠\boxtimes

The rate-distortion dimension of a distribution is defined in [8] for distortions of the form ρ(x,y)=∥x−y∥ν\rho(x,y)=\lVert x-y\rVert^{\nu}, as

dR(D)=lim⁡ϵ→0RD(ϵν)−log⁡(ϵ).d_R(\mathcal{D})=\lim_{\epsilon\to0}\frac{R_{\mathcal{D}}(\epsilon^{\nu})}{-\log(\epsilon)}.

where RD(D)R_{\mathcal{D}}(\mathcal{D}) is the Shannon rate-distortion function for distribution D\mathcal{D}. The authors show that dR(D)=dI(D)d_R(\mathcal{D})=d_I(\mathcal{D}) for any ν>0\nu>0 and any norm equivalent to ∥⋅∥∞\lVert\cdot\rVert_{\infty} (including ∥⋅∥p\lVert\cdot\rVert_p for any $1\le p\le\infty). Combining this result with Proposition 1, we see that the asymptotic increase of RD,ρ(D)R_{\mathcal{D},\rho}(\mathcal{D}) for small distortion D\mathcal{D} can be lower bounded based on dP(D,ρ)d_P(\mathcal{D},\rho). Thus, the PDD curve near r=0r=0 yields useful information about the effective dimension of a distribution from a rate-distortion point of view.

Connection between PDD and RCQ

We next show a connection between the PDD and the performance of random codebook quantization.

Proposition 2. Let X∼DX\sim\mathcal{D} on RN\mathbb{R}^{N} be a random vector. Generate a quantization codebook by drawing LL codewords {C1,…,CL}\{C_1,\ldots,C_L\} independently from D\mathcal{D}. For a given distortion function ρ(x,y)\rho(x,y), the expected distortion over random codebooks, μL=EC∼DL[EX∼D[min⁡nρ(X,Cn)]]\mu_L=\mathbb{E}_{\mathcal{C}\sim\mathcal{D}^{L}}\left[\mathbb{E}_{X\sim\mathcal{D}}\left[\min_n\rho(X,C_n)\right]\right], satisfies

μL≥∫0∞(1−F~D,ρ(r))L dr.(4)\mu_L\ge\int_{0}^{\infty}\left(1-\widetilde{F}_{\mathcal{D},\rho}(r)\right)^L\,dr. \tag*{(4)}

Remark. F~D,ρ(r)\widetilde{F}_{\mathcal{D},\rho}(r) can be computed or bounded analytically for simple distributions (See e.g. Corollary 1 and 2) or estimated empirically from sufficiently many samples from a dataset.

Proof. For given x∈RNx\in\mathbb{R}^{N}, define non-negative random variables Yn(x)=ρ(x,Cn)Y_n(x)=\rho(x,C_n) with CnC_n drawn independently from D\mathcal{D}. Denoting the CDF of Yn(x)Y_n(x) as FY(r;x)F_Y(r;x), the CDF of min⁡nYn(X)\min_nY_n(X) is 1−(1−FY(r;x))L1-\left(1-F_Y(r;x)\right)^L. We have

EC[min⁡nYn(r;x)]=∫0∞(1−FY(r;x))L dr=∫0∞(EC∼D[1{ρ(x,C1)≥r}])L dr,\begin{aligned} \mathbb{E}_{\mathcal{C}}\left[\min_nY_n(r;x)\right]=\int_{0}^{\infty}\left(1-F_Y(r;x)\right)^L\,dr \\ &=\int_{0}^{\infty}\left(\mathbb{E}_{C\sim\mathcal{D}}\left[1\{\rho(x,C_1)\ge r\}\right]\right)^L\,dr, \end{aligned}

thus,

μL=EX∼D[∫0∞(EC1∼D[1{ρ(X,C1)≥r}])L dr]≥∫0∞(1−P[ρ(X,C1)≤r])L dr,\begin{aligned} \mu_L = E_{X\sim D}\left[\int_0^\infty\left(E_{C_1\sim D}\left[1\{\rho(X,C_1)\ge r\}\right]\right)^L\,dr\right] \\ &\ge\int_0^\infty\left(1-P[\rho(X,C_1)\le r]\right)^L\,dr, \end{aligned}

where the second line uses Jensen’s inequality. ⊠

Additional analysis

The pairwise dimension of dP(D,ρ)d_P(\mathcal{D},\rho) equals dd when F~D,ρ(r)≈βrd\widetilde{F}_{D,\rho}(r)\approx\beta r^d for small rr. More generally, bounds on the behavior of the PDD near r=0r=0 bound the behavior of the distortion μL\mu_L of the random codebook as L→∞L\to\infty.

Lemma 1. Let X∼DX\sim D on RN\mathbb{R}^N and suppose that F~D,ρ(r)≤βrα\widetilde{F}_{D,\rho}(r)\le\beta r^\alpha for some α>0\alpha>0, β>0\beta>0. Then

μL≥α−1β−1/αB(L+1,α−1).\mu_L\ge\alpha^{-1}\beta^{-1/\alpha}B(L+1,\alpha^{-1}).

In particular, μL\mu_L scales as (L+1)−1/α(L+1)^{-1/\alpha} for large LL.

Proof.

μL≥∫0∞(1−F~D,ρ(r))L dr(5)\mu_L\ge\int_0^\infty\left(1-\widetilde{F}_{D,\rho}(r)\right)^L\,dr \tag*{(5)}
>∫0β−1/α(1−βrα)L dr(6)>\int_0^{\beta^{-1/\alpha}}\left(1-\beta r^\alpha\right)^L\,dr \tag*{(6)}
=α−1β−1/α∫01(1−τ)Lτ1/α−1 dτ(7)=\alpha^{-1}\beta^{-1/\alpha}\int_0^1(1-\tau)^L\tau^{1/\alpha-1}\,d\tau \tag*{(7)}

When the distortion function is a function of the difference between its arguments, ρ(x,y)=f(x−y)\rho(x,y)=f(x-y), and when XX has an absolutely continuous and symmetric distribution on RN\mathbb{R}^N with pdf pX(x)=pX(−x)p_X(x)=p_X(-x), the bound on random codebook quantization can further be related to the volumes of balls in RN\mathbb{R}^N under the given distortion function.

Proposition 3. Let X∈RNX\in\mathbb{R}^N have absolutely continuous distribution DD with density pX(x)=pX(−x)p_X(x)=p_X(-x). Define distortion function ρ(x,y)=f(x−y)\rho(x,y)=f(x-y) for non-negative integrable ff. Then if ED[pX(X)]<∞E_D[p_X(X)]<\infty, the density pYp_Y of Y=X1−X2Y=X_1-X_2 satisfies pY(0)=ED[pX(X)]p_Y(0)=E_D[p_X(X)], and we have

F~D,ρ(r)≤pY(0)Vf(r)\widetilde{F}_{D,\rho}(r)\le p_Y(0)V_f(r)

where Vf(r)V_f(r) is the volume of the set f(x)≤rf(x)\le r.

Proof. Defining Y=X1−X2Y=X_1-X_2 for iid XX, the distribution of YY is of the form pY(y)=∫RNpX(x)pX(y−x) dx=∫RNpX(x)pX(x−y) dxp_Y(y)=\int_{\mathbb{R}^N}p_X(x)p_X(y-x)\,dx=\int_{\mathbb{R}^N}p_X(x)p_X(x-y)\,dx. Considering the integral of non-negative quantity (pX(x)−pX(x−y))2(p_X(x)-p_X(x-y))^2 over RN\mathbb{R}^N, establishes that pY(y)≤pY(0)=EX[pX(X)]p_Y(y)\le p_Y(0)=E_X[p_X(X)] if that expectation exists. Finally, F~D,ρ(r)=P[f(Y)≤r]≤pY(0)Vf(r)\widetilde{F}_{D,\rho}(r)=P[f(Y)\le r]\le p_Y(0)V_f(r). ⊠

Combining Proposition 3 and Lemma 1, the pairwise dimension and asymptotic quantization behavior can be characterized in terms of the scaling of volumes in RN\mathbb{R}^N under different distortion measures.

For example, for a distortion measure ρ(x,y)=∥x−y∥pν\rho(x,y)=\lVert x-y\rVert_p^\nu, we have Vf(r)=Vol⁡p(r1/ν)V_f(r)=\operatorname{Vol}_p(r^{1/\nu}) where Vol⁡p(r)\operatorname{Vol}_p(r) is the volume of the pp-norm ball in RN\mathbb{R}^N. For mean-squared error distortion ρ(x,y)=∥x−y∥22\rho(x,y)=\lVert x-y\rVert_2^2, in particular, we have

F~D,ρ(r)≤pY(0)Vol⁡2(r1/2)=pY(0)⋅πN/2Γ(N/2+1)rN/2.\widetilde{F}_{D,\rho}(r)\le p_Y(0)\operatorname{Vol}_2(r^{1/2})=p_Y(0)\cdot\frac{\pi^{N/2}}{\Gamma(N/2+1)}r^{N/2}.

In the following, we analytically compute the corresponding lower bound for various types of distributions for DD on RN\mathbb{R}^N.

Corollary 1 (Multi-variate Gaussian distribution). Suppose D∼N(0,Σ)D\sim\mathcal{N}(0,\Sigma). Then,

μL≥8N(Γ(N/2+1))2/Ndet⁡(Σ)1/NB(L+1,2/N).\mu_L\ge\frac{8}{N}\left(\Gamma(N/2+1)\right)^{2/N}\det(\Sigma)^{1/N}B(L+1,2/N).

Proof: The difference of two independent variables from the distribution is distributed as N(0,2Σ)\mathcal{N}(0,2\Sigma). Then, pY(0)p_Y(0) is (4π)−N/2det⁡(Σ)−1/2(4\pi)^{-N/2}\det(\Sigma)^{-1/2}, and applying Lemma 1 gives the result.

This MSE lower bound scales with det⁡(Σ)1/N\det(\Sigma)^{1/N}, i.e., the geometric mean of the eigenvalues of Σ\Sigma.

Corollary 2 (kk-sparse vectors). Suppose X∈RNX\in\mathbb{R}^N is a kk-sparse random vector with N≥2kN\ge2k, where the kk non-zero elements are chosen uniformly at random from the set S={1,…,N}\mathcal{S}=\{1,\ldots,N\}, and the non-zero coefficients are independent and identically distributed as N(0,σ2)\mathcal{N}(0,\sigma^2). Then under MSE distortion, μL≥8σ2k(Nk)−1Γ(k2+1)2/kB(L+1,2/k)\mu_L\ge\frac{8\sigma^2}{k}\binom{N}{k}^{-1}\Gamma\left(\frac{k}{2}+1\right)^{2/k}B(L+1,2/k).

Sketch proof: The supports of two variables X1X_1 can intersect on anywhere from 0 to 2k2k elements. Enumerating these possibilities, one can show that

F~D,ρ(r)≥1(Nk)⋅γ(k/2,r/4σ2)Γ(k/2)+O(r(k+1)/2)\widetilde{F}_{D,\rho}(r)\ge\frac{1}{\binom{N}{k}}\cdot\frac{\gamma(k/2,r/4\sigma^2)}{\Gamma(k/2)}+O\left(r^{(k+1)/2}\right)

Considering the behavior of γ(m,r)\gamma(m,r) for small rr and applying Lemma 1 yields the result. ⊠

Empirical estimation of the PDD

Part of the motivation for using the PDD is that it is relatively easy to estimate from data. When data is limited to a relatively small number KK of samples xix_i, it can make sense to use all K(K−1)K(K-1) pairs (as in [16], F^(r)=1K(K−1)∑i=1K∑j≠i1{ρ(xi,xj)≤r}\widehat{F}(r)=\frac{1}{K(K-1)}\sum_{i=1}^K\sum_{j\ne i}1\{\rho(x_i,x_j)\le r\}. When many data samples are cheaply available, 2K2K samples can be used to form the estimate

F^(r)=1K∑i=1K1{ρ(x2i−1,x2i)≤r}(8)\widehat{F}(r)=\frac{1}{K}\sum_{i=1}^K1\{\rho(x_{2i-1},x_{2i})\le r\} \tag*{(8)}

which converges faster for a given number of distortion evaluations and is more easily analyzed, as the sum of KK independent Bernoulli random variables. For this estimator, the coefficient of variation is 1−F~ρ(r)F~ρ(r)K\sqrt{\frac{1-\widetilde{F}_{\rho}(r)}{\widetilde{F}_{\rho}(r)K}}, from which confidence intervals may easily be computed. To estimate the PDD accurately for small values of rr, we need K≥1/F~ρ(r)K \ge1/\widetilde{F}_{\rho}(r) pairs of samples. Future work will consider using methods such as importance sampling to increase the efficiency of estimating small values of the PDD.

Numerical results

We illustrate the proposed framework on both synthetic and empirical datasets to begin to address two key questions: (1) Does PDD provide a meaningful lower bound on quantization error? and (2) Can PDD be used to estimate an appropriate latent dimension for data compression? For the synthetic case, independent gaussian vectors drawn from N(0,1)\mathcal{N}(0,1) are generated with an ambient dimension of N=2,10N = 2, 10. For the empirical dataset, we employ the MNIST database of handwritten digits [18], representing each data sample with dimension N=784N = 784.

Synthetic Data: Gaussian Vectors. We compare against two baselines: the random codebook scheme described in Section 2 and the optimal rate–distortion curve [19, 20]. For the random codebook scheme, we generate a codebook C\mathcal{C} of size L×NL \times N, where L=2bL = 2^b and bb denotes the bit rate. Each codeword is constructed as a gaussian vector drawn from N(0,1)\mathcal{N}(0,1). For each bit rate b∈[1,15]b \in[1,15] and L=2bL = 2^b, we analytically compute PDD in Corollary 1 with parameters N=2,10N = 2, 10, and Σ=I\Sigma= I. The optimal rate–distortion curve for a Gaussian distribution is the classical result from Shannon’s rate–distortion theory [20], that is D(R)=σ22−2b/ND(R) = \sigma^2 2^{-2b/N}.

Empirical Data: MNIST with ViT-Based Autoencoder. We implement a Vision Transformer–based autoencoder (ViT-AE) [21, 22] tailored for MNIST images of size 28×2828 \times28. Each image is divided into 28 patches of length 28, which are projected into a 128-dimensional embedding space. The encoder consists of 5 Transformer layers with 16 attention heads and MLP blocks of hidden size 256, producing a compact latent representation. For the latent dimension dd, we experiment with multiple settings, specifically d∈{8,16,32}d \in\{8,16,32\}.

This latent vector is quantized using a 2-bit uniform quantizer, restricting activations to four discrete levels, and then decoded through a symmetric Transformer to reconstruct the input while achieving efficient compression. Next, we compute the lower and upper bounds of the PDD framework. We sampled K=106K = 10^6 pairs of points from the MNIST dataset and estimated the PDD for various values of rr using (8). The 95% upper and lower confidence intervals of the PDD estimate were then integrated to obtain upper and lower estimates of the right side of (4).

Performance analysis. Figure 1 illustrates rate-distortion (MSE) curves for gaussian vectors and MNIST dataset. In the case of gaussian vectors, on a log D(R)D(R) vs bits scale, the optimal R(D) curves decay linearly with slope −2/N-2/N. The slope directly reflects the intrinsic dimension of the gaussian data, which is NN. Thus, when N=2N = 2, the curve shows steeper slope than N=10N = 10. The PDD curves are almost parallel to the optimal R(D) curves, consistent with Proposition 1. This confirms that PDD captures the correct asymptotic scaling behavior. In addition, PDD provides a lower bound for the random codebook scheme, in alignment with Proposition 2.

Rate-distortion performance comparison for Gaussian normal vectors and MNIST data

Figure 1. Rate-distortion performance comparison for Gaussian normal vectors and MNIST data.

Next, we introduce our method for identifying an appropriate latent dimension using PDD by leveraging its MSE performance estimate. For the MNIST dataset, the upper bound (ub) of PDD curve provides an accurate approximation of the MSE observed with a latent dimension d∈{8,16,32}d \in\{8,16,32\} in the ViT-based autoencoder, demonstrating its effectiveness as a performance predictor. One practical use of MSE estimate is predicting achievable distortion at a given bit rate. For example, with 20 bits (corresponding to a latent dimension at least 10), we expect MSE at least 0.1 for compression models. The gap between ViT-AE performance and PDD estimates suggests that the predictive MSE is more accurate at lower bits (smaller latent dimension), while at higher bits, we see room for improvements in ViT-AE. This predictive capability is powerful, as it enables us to anticipate both the latent dimension and the corresponding MSE prior to training.

Conclusions

We introduced the pairwise distortion distribution (PDD) as a novel proxy to analyze data geometry, intrinsic dimension, and compression performance. We demonstrated that (1) PD provides a lower bound for Renyi information dimension (RID) and (2) PDD yields a tractable lower bound on the random codebook quantization error, providing the direct performance estimate without model training. Our numerical results on gaussian vectors and MNIST dataset show that PDD can capture the right intrinsic scaling behavior as RID and predicts achievable distortion, providing a practical framework to estimate a good latent dimension for autoencoders.

References

  1. [1]Răzvan Andonie, “Hyperparameter optimization in learning systems,” Journal of Membrane Computing, vol. 1, no. 4, pp. 279–291, 2019.DOI
  2. [2]Lizhi Liao, Heng Li, Weiyi Shang, and Lei Ma, “An empirical study of the impact of hyperparameter tuning and model optimization on the performance properties of deep neural networks,” ACM Transactions on Software Engineering and Methodology (TOSEM), vol. 31, no. 3, pp. 1–40, 2022.
  3. [3]Paola Campadelli, Elena Casiraghi, Claudio Ceruti, and Alessandro Rozza, “Intrinsic dimension estimation: Relevant techniques and a benchmark framework,” Mathematical Problems in Engineering, vol. 2015, no. 1, pp. 759567, 2015.DOI
  4. [4]Stefan Berchtold, Christian Bohm, Hosagrahar V Jagadish, H-P Kriegel, and Jörg Sander, “Independent quantization: An index compression technique for high-dimensional data spaces,” in Proceedings of 16th International Conference on Data Engineering (Cat. No. 00CB37073). IEEE, 2000, pp. 577–588.
  5. [5]Sixue Gong, Vishnu Naresh Boddeti, and Anil K Jain, “On the intrinsic dimensionality of image representations,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2019, pp. 3987–3996.arxiv.org/abs/1803.09672
  6. [6]James Bergstra and Yoshua Bengio, “Random search for hyper-parameter optimization,” The journal of machine learning research, vol. 13, no. 1, pp. 281–305, 2012.
  7. [7]Frank Hutter, Lars Kotthoff, and Joaquin Vanschoren, Automated machine learning: methods, systems, challenges, Springer Nature, 2019.
  8. [8]T. Kawabata and A. Dembo, “The rate-distortion dimension of sets and measures,” IEEE Transactions on Information Theory, vol. 40, no. 5, pp. 1564–1572, 1994.DOI
  9. [9]Elizaveta Levina and Peter Bickel, “Maximum likelihood estimation of intrinsic dimension,” Advances in neural information processing systems, vol. 17, 2004.
  10. [10]Elena Facco, Maria d’Errico, Alex Rodriguez, and Alessandro Laio, “Estimating the intrinsic dimension of datasets by a minimal neighborhood information,” Scientific reports, vol. 7, no. 1, pp. 12140, 2017.DOI
  11. [11]Francesco Camastra and Antonino Staiano, “Intrinsic dimension estimation: Advances and open problems,” Information Sciences, vol. 328, pp. 26–41, 2016.DOI
  12. [12]Patrick Billingsley, “Hausdorff dimension in probability theory,” Illinois Journal of Mathematics, vol. 4, no. 2, pp. 187–209, 1960.DOI
  13. [13]Jian Li, Qian Du, and Caixin Sun, “An improved box-counting method for image fractal dimension estimation,” Pattern recognition, vol. 42, no. 11, pp. 2460–2469, 2009.DOI
  14. [14]Alfréd Rényi, “On measures of entropy and information,” in Proceedings of the fourth Berkeley symposium on mathematical statistics and probability, volume 1: contributions to the theory of statistics. University of California Press, 1961, vol. 4, pp. 547–562.
  15. [15]Yihong Wu and Sergio Verdú, “Rényi information dimension: Fundamental limits of almost lossless analog compression,” IEEE Transactions on Information Theory, vol. 56, no. 8, pp. 3721–3748, 2010.DOI
  16. [16]Peter Grassberger and Itamar Procaccia, “Measuring the strangeness of strange attractors,” Physica 9D, pp. 189–208, 1983.
  17. [17]Yihong Wu and Sergio Verdú, “Rényi information dimension: Fundamental limits of almost lossless analog compression,” IEEE Transactions on Information Theory, vol. 56, no. 8, pp. 3721–3748, 2010.DOI
  18. [18]Yann LeCun, Corinna Cortes, and Christopher J.C. Burges, “The MNIST database of handwritten digits,” http://yann.lecun.com/exdb/mnist/, 2010.
  19. [19]J. Max, “Quantizing for minimum distortion,” IRE Transactions on Information Theory, vol. 6, no. 1, pp. 7–12, 1960.DOI
  20. [20]Thomas M. Cover and Joy A. Thomas, Elements of Information Theory, Wiley-Interscience, 2 edition, 2006.
  21. [21]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin, “Attention is all you need,” Advances in neural information processing systems, vol. 30, 2017.arxiv.org/abs/1706.03762
  22. [22]Kai Han, An Xiao, Enhua Wu, Jianyuang Guo, Chunjing Xu, and Yunhe Wang, “Transformer in transformer,” Advances in neural information processing systems, vol. 34, pp. 15908–15919, 2021.arxiv.org/abs/2103.00112

Paper details

vlnc:W_f256bszj
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