arXiv:2609.02155cs.LGSep 2026

Manuscript Offprint

arXiv:2609.02155

Exact Limits of Random Projections for Preserving Geometry: Distance Recovery, Nearest-Neighbor Rankings, and Covariance Shape in Gaussian Models

Piyush Sao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The Johnson–Lindenstrauss (JL) lemma guarantees that a random projection of nn points to m=O(ε−2log⁡n)m = O(\varepsilon^{-2} \log n) dimensions preserves pairwise squared distances within relative error ε\varepsilon with high probability, and this dimension order is asymptotically optimal. In high dimensions, however, distances concentrate around a baseline while key geometric information lies in much smaller fluctuations. We show that the JL bound can therefore be uninformative about retained geometry: an independent Gaussian replacement map can satisfy it even though the replacement cloud is independent of the original data.

We then ask how well any decoder can recover a feature f(D)f(D) of a squared distance DD from a linear sketch. Under squared-error loss, the optimal decoder is conditional expectation, so recovery defines a linear operator whose singular values quantify feature recovery. For isotropic Gaussian data (Σ=σ2Id\Sigma = \sigma^2 I_d), we diagonalize this operator in closed form. For fixed kk with m,d−m→∞m, d - m \to \infty, its kkth singular value satisfies ℓk≈(m/d)k/2\ell_k \approx (m/d)^{k/2}.

This yields three sharp consequences. A rank-mm sketch retains at most an m/dm/d fraction of the variance of any feature of one squared distance. If m→∞m \to \infty and m/d→0m/d \to 0, the expected Kendall correlation is 2πm/d(1+o(1))\frac{2}{\pi} \sqrt{m/d}(1 + o(1)); for fixed qq, nearest-neighbor agreement tends to 1/q1/q. Yet one projection can satisfy the JL bound while mean Kendall correlation vanishes when log⁡n≪m≪d\log n \ll m \ll d. After removing scale, Haar-averaged retained covariance-shape information is (m/d)2(m/d)^2. Thus JL distance preservation does not quantify the geometry available for comparison or inference.

Keywords: random projection; Johnson–Lindenstrauss lemma; distance recovery; nearest-neighbor ranking; maximal correlation; covariance shape

MSC Codes: 60D05; 62H12; 68W20

1. Introduction

High-dimensional data pipelines routinely replace raw data with compressed representations. Approximate-nearest-neighbor systems generate candidates in a compressed domain and rerank them with richer codes or full-precision distances [1, 2]. Single-cell methods summarize high-dimensional measurements in low-dimensional visualizations, even as benchmarks warn that the recovered orderings can be unstable or distorted [3, 4, 5]. The decisions this forces on the practitioner—when to rerank, how far to compress, how many independent sketches to draw—are currently made empirically, because available guarantees may not capture the task-relevant notion of quality, and their worst-case bounds can be too conservative to

This manuscript has been authored by UT-Battelle, LLC under Contract No. DE-AC05-00OR22725 with the U.S. Department of Energy. The publisher, by accepting the article for publication, acknowledges that the United States Government retains a non-exclusive, paid-up, irrevocable, world-wide license to publish or reproduce the published form of this manuscript, or allow others to do so, for United States Government purposes. The Department of Energy will provide public access to these results of federally sponsored research in accordance with the DOE Public Access Plan (https://www.energy.gov/doe-public-access-plan).

Piyush Sao

guide parameter selection [6]. The goal of this paper is to quantify that retained geometry for the random projection, the compressed representation with the strongest formal guarantees [7, 8].

The guarantee behind random projection is the Johnson–Lindenstrauss (JL) lemma [9]: for finite sets, a suitable map into dimension m=O(ε−2log⁡n)m = O(\varepsilon^{-2} \log n) preserves every pairwise squared distance among nn points to relative error ε\varepsilon. For an indexed sample x1,…,xnx_1, \ldots, x_n, we say that a map TT satisfies the ε\varepsilon-JL bound when

(1−ε)∥xi−xj∥2≤∥T(xi)−T(xj)∥2≤(1+ε)∥xi−xj∥2for every i<j.\left(1-\varepsilon\right)\left\|x_{i}-x_{j}\right\|^{2}\leq\left\|T(x_{i})-T(x_{j})\right\|^{2}\leq\left(1+\varepsilon\right)\left\|x_{i}-x_{j}\right\|^{2}\qquad\mathrm{f o r~e v e r y~}i<j.

If the sample or map is random, we call the occurrence of this bound the JL event.

For concentrated high-dimensional data, concentration of measure causes the pairwise squared distances controlled by the JL bound to be dominated by a common population mean, which we call the baseline. Consequently, these bounds become less informative about specific pairwise distances, which instead appear as smaller centered fluctuations around this baseline. Downstream tasks depend on this fine scale: which distance is smaller, and how far a point distribution departs from sphericity. Two questions follow, and the JL bound answers neither. Does the JL event itself certify that the geometry carrying this fine scale survived the sketch? And how much of the fluctuations can any decoder recover from a rank-m sketch?

The structure of prior work indicates why both questions are open. Lower bounds show that the dimension order in the JL lemma is essentially unimprovable: Alon [10] showed that near-equidistant point sets already force nearly the same dimension order for every map, linear or not, and Larsen and Nelson [11] sharpened this lower bound to match the JL dimension order for worst-case constructions. Because the lemma attains the optimal dimension order for the guarantee it states, the gap cannot be closed by sharpening the lemma itself; informativeness about concentrated data requires a different criterion. The literature on concentration addresses the original space rather than the sketch: Beyer et al. [12] gave a sufficient condition for distance concentration, and the Durrant-Kabán converse [13] established the corresponding necessary condition and identified when nearest neighbors remain meaningful. A third line characterizes projection outputs: Dasgupta [14, 15] established what we call Dasgupta's sphericalization phenomenon, the rounding of eccentric Gaussian components toward sphericity; Dasgupta, Hsu, and Verma [16] and Diaconis and Freedman [17] obtained related structural results for broader distributions, including approximation by scale mixtures of spherical Gaussians; and Li and Malik [18] gave order preservation guarantees for fixed vector pairs at prescribed length ratios. None of these results tests whether JL satisfaction certifies retained geometry, and none quantifies how much distance variation a decoder can recover from a sketch.

Our approach introduces the missing object: an explicit decoder. We model recovery as estimation of a feature of a squared distance from the sketch under squared-error loss. The optimal estimate is the conditional expectation, so recovery acts as a linear operator, and its singular values measure how much of each feature survives compression. This formulation yields information limits that the pairwise error criterion of the JL lemma cannot express. We make three main contributions. First, we prove that the error allowed by the JL bound can exceed the fluctuation scale of a concentrated Gaussian cloud (section 2). We then show that an independent Gaussian replacement map can satisfy the same bound at the dimension prescribed by the JL lemma even though its replacement cloud is independent of the data (section 3); satisfying the JL bound therefore need not certify retained geometry. Second, we identify three recovery targets that the JL bound does not separately control—distance values, neighbor rankings, and covariance shape—and derive their exact Gaussian recovery limits (sections 4 to 8). For isotropic distance features, the recoverable variance ceiling is m/dm/d; neighbor rankings vary on the associated correlation scale m/d\sqrt{m/d}; and diffuse covariance shape contracts at order (m/d)2(m/d)^2. Third, for a general known map, we separate what depends on rank, singular spectrum, and numerical precision, then quantify what ensembles of independent sketches can recover (sections 9 and 10).

These laws give the practitioner's empirical decisions a quantitative scale. Within the Gaussian benchmark, the fraction of distance variance retained, the correlation scale of neighbor rankings, and the contraction of covariance shape are each determined by the ratio m/dm/d, so the cost of compressing farther and the benefit of adding independent sketches can be read off before any experiment. The replacement-map result adds a caution that no empirical protocol supplies: a map can satisfy the JL bound while its output is independent of the data. Beyond the specific Gaussian model, we expect these techniques to extend to other distributions and to more complex features; section 13 develops the resulting research directions. Except where a complete argument appears directly after a statement, proofs are collected in the supplement (section B); the discussion following a statement in the text records the mechanism of the proof.

References (51)