arXiv:2610.24254math.MGOct 2026

Manuscript Offprint

arXiv:2610.24254

Dimension Thresholds for Relative-Error Representations of Finite Metrics in Pseudo-Euclidean Spaces

Nikita Muravya, Aleksandr Bespalov, Anna Vozianova

Abstract

A finite metric space (V,d)(V, d) with NN points is represented in the pseudo-Euclidean space Rp,q\mathbb{R}^{p,q} with relative error ε\varepsilon if there are points xu\mathbf{x}_u with ∣Q(xu−xv)−d(u,v)2∣≤εd(u,v)2|\mathcal{Q}(\mathbf{x}_u - \mathbf{x}_v) - d(u, v)^2| \leq \varepsilon d(u, v)^2 for all pairs, where Q\mathcal{Q} is the quadratic form of signature (p,q)(p, q). Every metric has an exact representation with p+q≤N−1p+q \leq N-1, and we ask how small p+qp+q can be made. Our main result is an upper bound for arbitrary metrics in terms of local distance ratios: if every point uu has kk points, itself included, within ρ\rho times its nearest-neighbour distance, then dimension O((N/k)log⁡N+kρ4log⁡N)O((N/k)\log N + k\rho^4\log N) suffices for every fixed ε>4/5\varepsilon > 4/5. The proof combines a landmark approximation of low rank with a correction of small factorization norm. For the class of metrics with distances in [1,Φ][1, \Phi], Φ≥5\Phi \ge 5, we bound the worst-case dimension in three ranges of ε\varepsilon. It is linear in NN for ε<4/5\varepsilon < 4/5, lies between Ω(N)\Omega(\sqrt{N}) and O(Nlog⁡N)O(\sqrt{N}\log N) for 4/5<ε<12/134/5 < \varepsilon < 12/13, and is of order log⁡N\log N for ε>(Φ2−1)/(Φ2+1)\varepsilon > (\Phi^2 - 1)/(\Phi^2 + 1). The O(Nlog⁡N)O(\sqrt{N}\log N) bound follows from the main result. For Φ=5\Phi = 5 the last threshold equals 12/1312/13, so the three ranges cover all ε\varepsilon except the boundary values 4/54/5 and 12/1312/13. The lower bounds come from the known count of sign patterns over subgraphs of high-girth graphs; for every fixed ε<1\varepsilon < 1 they give a positive power of NN. Explicit metrics with a linear bound for ε<4/5\varepsilon < 4/5 are built from Hadamard matrices, as a consequence of a known bound on the approximate rank. For configurations with null squared intervals a relative error does not reduce the dimension at all: the worst-case dimension is N−1N - 1 for every ε<1\varepsilon < 1. We also study the parameter CC that governs the pseudo-Euclidean Johnson–Lindenstrauss lemma of Deng et al. We show that the exponent of CC in the resulting dimension bound cannot be lowered.

Keywords pseudo-Euclidean space · dimension reduction · approximate rank · finite metric spaces · sign patterns

1 Introduction

The problem. Let Rp,q\mathbb{R}^{p,q} be the space Rp+q\mathbb{R}^{p+q} with the quadratic form

Q(x)=∑i≤pxi2−∑p<i≤p+qxi2.\mathcal{Q}(\mathbf{x})=\sum_{i\leq p}x_{i}^{2}-\sum_{\substack{p<i\leq p+q}}x_{i}^{2}.

For a finite metric space (V,d)(V, d) and 0≤ε<10 \leq \varepsilon < 1, an ε\varepsilon-representation of dd in Rp,q\mathbb{R}^{p,q} is a family of points xu∈Rp,q\mathbf{x}_u \in \mathbb{R}^{p,q}, u∈Vu \in V, such that

(1−ε) d(u,v)2≤Q(xu−xv)≤(1+ε) d(u,v)2(u≠v).(1.1)(1-\varepsilon)\,d(u,v)^{2}\leq\mathcal{Q}(\mathbf{x}_{u}-\mathbf{x}_{v})\leq(1+\varepsilon)\,d(u,v)^{2}\qquad(u\neq v). \tag{1.1}

We write pdim⁡ε(d)\operatorname{pdim}_{\varepsilon}(d) for the least p+qp+q for which such a representation exists. The error is relative and is measured on squared distances. It corresponds to distortion (1+ε)/(1−ε)\sqrt{(1+\varepsilon)/(1-\varepsilon)} of the distances themselves.

Pseudo-Euclidean spaces are a natural target for arbitrary dissimilarity data: classical multidimensional scaling applied to a symmetric matrix with zero diagonal produces coordinates whose signs are dictated by the signs of the eigenvalues of the centred matrix [10]. In particular, every NN-point metric has an exact representation with p+q≤N−1p+q \leq N-1. The question is whether a relative error allows a much smaller dimension, as it does for Euclidean point sets by the Johnson–Lindenstrauss lemma [13].

†^{\dagger}Corresponding author.

A Preprint

Background. Deng, Gao, Lu, Luo and Xin [8] proved a Johnson–Lindenstrauss lemma for pseudo-Euclidean spaces: an exact representation (xu)(\mathbf{x}_u) can be projected to dimension O(η−2log⁡N)O(\eta^{-2} \log N) with error η∥xu−xv∥E2\eta \left\| \mathbf{x}_u - \mathbf{x}_v \right\|_E^2, where ∥⋅∥E\|\cdot\|_E is the Euclidean norm of all coordinates. Their Theorem 2.3 restates this as a relative error ηCuv\eta C_{uv} on each pair, where Cuv=∥xu−xv∥E2/d(u,v)2C_{uv} = \|\mathbf{x}_u - \mathbf{x}_v\|_E^2 / d(u, v)^2. Rescaling η\eta by C=max⁡u≠vCuvC = \max_{u \neq v} C_{uv} gives relative error ε\varepsilon in dimension O(C2ε−2log⁡N)O(C^2 \varepsilon^{-2} \log N) (Lemma 6.1). The bound is not stated in this form in [8]. The authors note that they know of no lower bound complementing their guarantee.

For general configurations in a pseudo-Euclidean space, whose squared intervals may be zero or negative, a relative error does not help. It preserves null squared intervals exactly, and for an explicit configuration of NN points every map with relative error ε<1\varepsilon < 1 needs the same dimension N−1N - 1 as an exact representation (Theorem 4.1). We therefore turn to metrics, whose squared distances are all positive. For them, linear lower bounds for ε<4/5\varepsilon < 4/5 follow from a standard counting argument, and explicit examples follow from known bounds on the approximate rank (Section 4). The main question of the paper is what happens for large ε\varepsilon. Unlike configurations with null intervals, metrics of bounded spread do admit a smaller dimension for large ε\varepsilon.

For embeddings of general metrics into normed spaces, the dependence of the dimension on the distortion is well understood. A counting argument whose basic idea goes back to Bourgain [6], and in which Matoušek [16], [17, Section 15.3] introduced the explicit use of graphs without short cycles and found the thresholds in the distortion, shows that a single fixed normed space containing all NN-point metrics with distortion less than 3 has dimension Ω(N)\Omega(N), with distortion less than 5 dimension Ω(N)\Omega(\sqrt{N}), and with distortion less than 7 dimension Ω(N1/3)\Omega(N^{1/3}). On the other hand, every NN-point metric embeds into ℓ∞d\ell_\infty^d with distortion 3 and d=O(Nlog⁡N)d = O(\sqrt{N} \log N) [17, Corollary 15.3.4 and Theorem 15.7.2]. The dimension thus drops from linear to roughly N\sqrt{N} at distortion 3. These are statements about one space for all metrics. If the normed space may be chosen separately for each metric, the counting argument does not apply, and the known lower bounds are obtained by a different method [16]. Neither statement applies directly to Rp,q\mathbb{R}^p, q: this space is not normed, the form Q\mathcal{Q} has no bounded unit ball, and the squared ℓ∞\ell_\infty distance is not given by a quadratic form.

The problem can also be stated in matrix terms. The least dimension of an ε\varepsilon-representation differs by at most 2 from the least rank of a symmetric matrix with zero diagonal that approximates (d(u,v)2)(d(u, v)^2) entrywise with relative error ε\varepsilon (Proposition 2.1). This relates the question to the approximate rank of sign matrices [3, 14], where the factorization norm γ2\gamma_2 plays the role that the parameter CC plays here.

Results. Let MN(Φ)\mathcal{M}_N(\Phi) be the class of metrics on NN points with all distances in [1,Φ][1, \Phi], and let FΦ,ε(N)F_{\Phi, \varepsilon}(N) be the largest value of pdimε(d)\text{pdim}_\varepsilon(d) over d∈MN(Φ)d \in \mathcal{M}_N(\Phi).

Theorem 1.1. Let Φ≥5\Phi \geq 5, N≥5N \geq 5, and εΦ=(Φ2−1)/(Φ2+1)\varepsilon_{\Phi} = (\Phi^2 - 1)/(\Phi^2 + 1).

  1. If 0<ε<4/50 < \varepsilon < 4/5, then (N−1)/32<FΦ,ε(N)≤N−1(N - 1)/32 < F_{\Phi, \varepsilon}(N) \leq N - 1.

  2. If 4/5<ε<12/134/5 < \varepsilon < 12/13, then

164N8<FΦ,ε(N)=O(Φ2Nln⁡Nε−4/5),\frac{1}{64}\sqrt{\frac{N}{8}}<F_{\Phi,\varepsilon}(N)=O\Big(\frac{\Phi^{2}\sqrt{N}\ln N}{\varepsilon-4/5}\Big),

where the constant in O(⋅)O(\cdot) is absolute.

  1. If εΦ<ε<1\varepsilon_{\Phi} < \varepsilon < 1, then
c(ε)ln⁡N−2<FΦ,ε(N)≤⌈64ln⁡N(Φ2+1)2(ε−εΦ)2⌉,c(\varepsilon)\ln N-2<F_{\Phi,\varepsilon}(N)\leq\left\lceil\frac{64\ln N}{(\Phi^{2}+1)^{2}(\varepsilon-\varepsilon_{\Phi})^{2}}\right\rceil,

where c(ε)=1/(4ln⁡(2e/ln⁡(1/ε)))>0c(\varepsilon) = 1 / \left(4 \ln(2e / \ln(1/\varepsilon))\right) > 0.

For Φ=5\Phi = 5 we have εΦ=12/13\varepsilon_{\Phi} = 12/13, and the three items cover all ε∈(0,1)\varepsilon \in (0,1) except the values 4/5 and 12/13. The worst-case dimension is of order NN, then of order N\sqrt{N} up to a logarithmic factor, then of order log⁡N\log N (Figure 1). The value ε=4/5\varepsilon = 4/5 corresponds to distortion 3 and ε=12/13\varepsilon = 12/13 to distortion 5, the spread of the class. For Φ>5\Phi > 5 the range 12/13≤ε≤εΦ12/13 \leq \varepsilon \leq \varepsilon_{\Phi} is covered only by the upper bound of item (2), which holds for all 4/5<ε<14/5 < \varepsilon < 1, and by weaker lower bounds. The upper bound of item (2) is an asymptotic statement: the absolute constant given by the proof is large, and the bound is below the trivial bound N−1N - 1 only for very large NN.

The upper bound of item (2) is a consequence of our main technical result, Theorem 3.1, which applies to arbitrary metrics. The lower bounds of items (1) and (2) are attained on metrics with values in {1,…,5}\{1,\ldots,5\} and therefore also bound the worst case over all metrics. Theorem 1.1 follows from the more general statements below.

A Preprint

metrics with distances in [1, 5]: order of the worst-case dimension

Figure

The order is not determined at the boundary values 4/5 and 12/13.

lower bounds without a fixed bound on the spread

For every fixed ε<1\varepsilon < 1 there is a metric with pdimε(d)=Ω(Nc′(ε))\text{pdim}_{\varepsilon}(d) = \Omega(N^{c'(\varepsilon)}), where c′(ε)>0c'(\varepsilon) > 0. As ε→1\varepsilon \to 1, the spread of the metrics used may grow.

Figure 1. Bounds on the worst-case dimension as a function of ε\varepsilon (the axis is not to scale). Top: the class of metrics with distances in [1, 5]. The lower and upper bounds have the same order in the first and third ranges and differ by a factor O(log⁡N)O(\log N) in the second. Open circles mark the boundary values 4/5 and 12/13, for which the order is not known. Bottom: lower bounds valid for all metrics. The spread of the metrics attaining them grows as ε→1\varepsilon \to 1.

• An upper bound in terms of local distance ratios (Theorem 3.1). Let dd be an arbitrary metric on N≥4N \geq 4 points. For a point uu let ν(u)\nu(u) be the distance to its nearest neighbour and Rk(u)R_k(u) the distance to its kk-th nearest point, with uu itself counted first, and let ρk=max⁡uRk(u)/ν(u)\rho_k = \max_u R_k(u)/\nu(u). Then for all 2≤k≤N2 \leq k \leq N and 4/5<ε<14/5 < \varepsilon < 1

pdimε(d)=O(Nkln⁡N+kρk4ln⁡N(ε−4/5)2)\mathrm{pdim}_{\varepsilon}(d)=O\Big(\frac{N}{k}\ln N+\frac{k\rho_{k}^{4}\ln N}{(\varepsilon-4/5)^{2}}\Big)

with an absolute constant; Theorem 3.1 gives the bound in explicit form. The bound is invariant under scaling. It involves the spread only through the local ratios Rk(u)/ν(u)R_k(u)/\nu(u), although these can be as large as the spread. The parameter kk balances the number of landmarks against the size of the correction (Figure 3).

• Lower bounds (Theorem 4.4, Corollary 4.5). If GG is a graph with NN vertices, mm edges and girth greater than ℓ\ell, and ε<(ℓ2−1)/(ℓ2+1)\varepsilon < (\ell^2 - 1)/(\ell^2 + 1), then some subgraph H⊆GH \subseteq G has a truncated graph metric with pdimε≥⌊m/(8N)⌋+1\text{pdim}_\varepsilon \geq \lfloor m/(8N) \rfloor + 1. Consequently, for every fixed ε<1\varepsilon < 1 there are NN-point metrics with pdimε=Ω(Nc′(ε))\text{pdim}_\varepsilon = \Omega(N^{c'(\varepsilon)}), c′(ε)>0c'(\varepsilon) > 0.

• Null intervals (Theorem 4.1). There is an explicit configuration of NN points in R⌊N/2⌋,⌊N/2⌋\mathbb{R}^{\lfloor N/2\rfloor,\lfloor N/2\rfloor}, all of whose squared intervals vanish except on ⌊N/2⌋\lfloor N/2\rfloor disjoint pairs, such that every representation with relative error ε<1\varepsilon < 1 needs dimension N−1N - 1; this dimension suffices for every configuration of NN points.

• Explicit metrics (Section 4.3). Bipartite metrics built from Hadamard matrices need dimension Ω(N)\Omega(N) for every fixed ε<4/5\varepsilon < 4/5, and the metric of the Paley graph for every fixed ε<3/5\varepsilon < 3/5. These are consequences of known bounds on the approximate rank [3, 19], once the dimension is reduced to a rank.

• The high-error range (Section 5). Above εΦ\varepsilon_{\Phi} a random sign configuration in dimension O(log⁡N)O(\log N) represents every metric of MN(Φ)\mathcal{M}_N(\Phi). Conversely, the uniform metric requires dimension at least c(ε)ln⁡N−2c(\varepsilon)\ln N - 2 for every ε<1\varepsilon < 1 and every signature.

• The parameter CC (Section 6). We define C∗(d)C_*(d) as the least value of CC over all exact representations, express it as a semidefinite program, and bound it from below by a ratio of the trace norm to the trace of the centred Gram matrix. For all sufficiently large NN there is a metric with values 1 and 2 such that C∗=Θ(N)C_* = \Theta(\sqrt{N}) and pdimε=Ω(N)\text{pdim}_\varepsilon = \Omega(N), hence pdimε=Ω(C∗)\text{pdim}_\varepsilon = \Omega(C_*), for all ε<3/5\varepsilon < 3/5 (Theorem 6.5; the proof needs only N≥1000N \geq 1000). Hence the exponent 2 of CC in the bound of Lemma 6.1 cannot be lowered; the precise statement is given after Theorem 6.5. A factor ε−2log⁡N\varepsilon^{-2} \log N remains between the lower and upper bounds.

Methods. The proofs rely on known tools. The lower bounds (Theorem 4.4) follow Matoušek's scheme [17, Proposition 15.3.3] and use the same family of truncated graph metrics of subgraphs of a high-girth graph. What changes is the step that counts essentially different placements of the points. In a normed space the images can be translated and rescaled into a ball of bounded radius and rounded to the points of a finite net, and the rounding changes the distances only slightly. This step does not carry over to Rp,q\mathbb{R}^{p,q}: the form Q is not a norm, bounded squared intervals do not bound the coordinates of the points, and a small change of the coordinates can change a squared interval by a large amount. We therefore bound the number of possible patterns by the number of sign patterns of quadratic polynomials, using

A Preprint

Warren’s theorem [21], as in [2, 3]. A metric may have representations in different spaces Rp,q\mathbb{R}^p, q, but for p+q≤sp + q \leq s all of them lie, after zero coordinates are appended, in one of the s+1s + 1 spaces Rp,s−p\mathbb{R}^p, s - p, so the count remains finite. The explicit lower bounds of Section 4.3 follow from known bounds on the approximate rank [3, Theorem 1.2], [19, Prop. 2.2, 2.3], once the dimension is reduced to the rank of the matrix of squared intervals shifted by a multiple of J. The upper bound uses nearest landmarks and bunches, as in the distance oracles of Thorup and Zwick [20]. The remaining entries are controlled by a factorization of small norm followed by a random projection, as in the bounds on approximate rank via γ2\gamma_2 [14, 3]. The logarithmic lower bound follows the method of Alon [1], which uses Hadamard powers of a perturbed identity matrix. Our contribution is the application of these tools to relative entrywise approximation of squared-distance matrices. The main result is Theorem 3.1: for every metric on N≥4N \geq 4 points and all 2≤k≤N2 \leq k \leq N, 4/5<ε<14/5 < \varepsilon < 1, it gives the bound pdimε(d)=O((N/k)ln⁡N+kρk4ln⁡N/(ε−4/5)2)\text{pdim}_\varepsilon(d) = O\big((N/k) \ln N + k \rho_k^4 \ln N / (\varepsilon - 4/5)^2\big), together with an explicit form of it. Together with the lower bounds and the results of Section 5, it leads to the thresholds in ε\varepsilon of Theorem 1.1 (Figure 1). We complement this with the statements on the parameter C∗C_*.

Organization. Section 2 contains the reduction to ranks and two standard lemmas. The upper bound is proved in Section 3, and the lower bounds, including the case of null intervals and the explicit metrics, in Section 4. The high-error range is treated in Section 5, which also completes the proof of Theorem 1.1. Section 6 treats the parameter C∗C_{*}, and Section 7 lists open questions.