arXiv:2609.09427cs.DSSep 2026

Manuscript Offprint

arXiv:2609.09427

Approximate Nearest Neighbor in Ultra-High Dimensional ℓ∞\ell_\infty

Nathan White, Tian Zhang

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

Abstract

We study the approximate nearest neighbor problem under ℓ∞\ell_\infty in the ultra-high dimensional setting where the dimension dd is significantly larger than the number of points nn. Thus, we desire data structures with no dependence on dd in the query time. [Herold-Nanongkai-Spoerhase-Varma-Wu, SoCG 2025] introduce this problem and give data structures in ℓp\ell_p: for p=1,2p = 1, 2, they give (1+ε)(1 + \varepsilon)-approximation data structures with space O~(nlog⁡d/poly(ε))\tilde{O}(n \log d / \text{poly}(\varepsilon)) and query time O~(n/poly(ε))\tilde{O}(n / \text{poly}(\varepsilon)). Since any data structure must have query time Ω(min⁡{n,d})\Omega(\min\{n, d\}), this query time is nearly tight. However, their results are inefficient for ℓ∞\ell_\infty, with query time Ω(nd)\Omega(nd).

In order to handle the challenges of ℓ∞\ell_\infty, we introduce a notion of subset embeddings, which embed points by simply selecting a subset of dimensions. In particular, we show one may preserve all pairwise distances of an nn point dataset up to a factor of O(c)O(c) by computing distances on only n1+1/cn^{1+1/c} coordinates. We also show a matching lower bound: for any c>1c > 1, there exists a set of nn points in Rd\mathbb{R}^d such that any subset embedding for the set with approximation cc must have at least n1+Ω(1/c)n^{1+\Omega(1/c)} coordinates.

Using our subset embeddings, we give data structures for approximate nearest neighbor in ℓ∞\ell_\infty which have query time independent of dd and space that depends only logarithmically on dd. Specifically, for any approximation factor c≥1c \geq 1, we give data structures with space O(n2log⁡d)O(n^2 \log d), query time O~(n1+1/c)\tilde{O}(n^{1+1/c}), and approximation O(clog⁡log⁡n)O(c \log \log n). This result implies a O(log⁡n)O(\log n)-approximation with query time O~(n)\tilde{O}(n), which matches the query time lower bound up to polylogn factors.

Finally, we give another data structure for the approximate nearest neighbor under ℓ∞\ell_\infty with the same space and query time as our subset embedding approach, but with approximation O(clog⁡23)≈O(c1.58)O(c^{\log_2 3}) \approx O(c^{1.58}). This allows us to achieve O(1)O(1)-approximation with query time e.g. n1.01n^{1.01}

1 Introduction

The Approximate Nearest Neighbor (ANN) problem is defined as follows: the input is a dataset X of n points in a metric space (U,dU)(\mathcal{U}, d_{\mathcal{U}}), and a desired approximation c. Our goal is to preprocess the dataset X⊂UX \subset \mathcal{U} into a data structure. Upon the arrival of a previously unseen query point q∈Uq \in \mathcal{U}, we must output a point p^\hat{p} in X whose distance to q is within a c factor of the distance between q and its nearest neighbor p∗p^* in X, i.e. dU(q,p^)≤c⋅dU(q,p∗)d_{\mathcal{U}}(q, \hat{p}) \leq c \cdot d_{\mathcal{U}}(q, p^*). Besides the approximation factor c, the performance of ANN data structures is also measured by storage space and query time.

In this work, the universe U\mathcal{U} is always Rd\mathbb{R}^d. The dimension dd plays an important role in how one can approach the ANN problem. In low dimensions where d=o(log⁡n)d = o(\log n), space and query time that are exponential in dd are affordable. Efficient data structures, with query time that depends logarithmically on nn, are known for all metric spaces in this regime [Cla97, KL04, KR02, BKL06]. In the high-dimensional regime where ω(log⁡n)≤d≤o(n)\omega(\log n) \leq d \leq o(n), algorithms for the low-dimensional setting suffer from the “curse of dimensionality”, where 2d2^d is prohibitively large. For the high-dimensional regime, researchers have designed efficient data structures for various metric spaces [IM98, Ind01, AIK08, ANN +^{+}17]. These data structures typically have space or query time that is polynomial in the dimension dd, and their query time is also sublinear in nn.

Ultra-High Dimensional ANN We consider the ultra-high dimensional regime, first studied in [HNS+25][HNS^{+}25], where the dimension dd far exceeds the number of points, i.e. d≫nd \gg n. This setting is motivated by the recent explosion in the complexity of data, for example genetic data that lie in spaces with tens of millions of dimensions [SHR+19][SHR^{+}19]. The goal of ultra-high dimensional ANN is to design data structures with very little dependence on dd in the storage space and query time, given that a cost polynomial or even linear in dd is prohibitively large. In particular, we desire data structures with no dependence on dd in the query time and only logarithmic dependence on dd in space.

These restrictions pose some unique challenges: we can only read a small fraction of the query point and cannot even store any full point in our data structure! 1^{1} For example, in ultra-high dimensional Euclidean space, applying the well-known Johnson-Lindenstrauss (JL) Lemma to reduce dimensions is infeasible: even if JL were able to reduce the dimension in preprocessing, it would need to read the entire query vector, resulting in query time linear in dd [JL +^{+}84]. Therefore, as with going from the low-dimensional regime to the high-dimensional regime, new techniques are required for ANN data structures in ultra-high dimensions.

For ℓ1\ell_1 and ℓ2\ell_2, [HNS+25^{+}25] gives (1+ε)(1+\varepsilon)-approximate data structures with space O~(nlog⁡d/poly(ε))\tilde{O}(n\log d/\text{poly}(\varepsilon)) and query time O~(n/poly(ε))\tilde{O}(n/\text{poly}(\varepsilon)), which is nearly optimal since any data structure must have query time Ω(min⁡{n,d})2\Omega(\min\{n,d\})^2. For general ℓp\ell_p, they achieve a (1+ε)(1+\varepsilon)-approximation with space O~(n2log⁡d⋅(log⁡log⁡n/ε)p)\tilde{O}(n^2\log d\cdot(\log\log n/\varepsilon)^p) and query time O~(n⋅(log⁡log⁡n/ε)p)\tilde{O}(n\cdot(\log\log n/\varepsilon)^p), for ε=O(1/p)\varepsilon = O(1/p). Their techniques rely on importance sampling over the coordinates based on pairwise distances, which works well when pp is small. However, for large pp, the space and query time grow exponentially in pp, making these data structures inefficient for large pp. In particular, their query time for ℓ∞\ell_\infty is Ω(nd)\Omega(nd).

ℓ∞\ell_{\infty} Metrics ℓ∞\ell_{\infty} is an important and well-studied metric, in part because every metric space of n points can be isometrically embedded into ℓ∞\ell_{\infty} of dimension n. Perhaps unsurprisingly, then, compressing vectors in ℓ∞\ell_{\infty} is notoriously hard to achieve while maintaining distances (i.e. via

1^{1}We still allow preprocessing time to be linear in d, as this is necessary to be able to read the whole dataset.

2^{2}This lower bound is shown in [HNS +^{+}25]; we also include a proof in Lemma 30 for completeness.

sketching): to achieve approximation kk, any ℓ∞\ell_{\infty} sketch must have size Ω(n/k2)\Omega(n/k^{2}). This, at first glance, presents a challenge for ultra-high dimensional ANN in ℓ∞\ell_{\infty}: since no dataset point can be stored in its entirety, the data structure must store a “compressed” representation of the points. Fortunately, our notion of subset embeddings (see Section 1.2 and Section 3) will help us overcome this difficulty.