English

Terminal Embeddings in Sublinear Time

Data Structures and Algorithms 2024-08-07 v3 Computational Geometry Machine Learning Machine Learning

Abstract

Recently (Elkin, Filtser, Neiman 2017) introduced the concept of a {\it terminal embedding} from one metric space (X,dX)(X,d_X) to another (Y,dY)(Y,d_Y) with a set of designated terminals TXT\subset X. Such an embedding ff is said to have distortion ρ1\rho\ge 1 if ρ\rho is the smallest value such that there exists a constant C>0C>0 satisfying \begin{equation*} \forall x\in T\ \forall q\in X,\ C d_X(x, q) \le d_Y(f(x), f(q)) \le C \rho d_X(x, q) . \end{equation*} When X,YX,Y are both Euclidean metrics with YY being mm-dimensional, recently (Narayanan, Nelson 2019), following work of (Mahabadi, Makarychev, Makarychev, Razenshteyn 2018), showed that distortion 1+ϵ1+\epsilon is achievable via such a terminal embedding with m=O(ϵ2logn)m = O(\epsilon^{-2}\log n) for n:=Tn := |T|. This generalizes the Johnson-Lindenstrauss lemma, which only preserves distances within TT and not to TT from the rest of space. The downside of prior work is that evaluating their embedding on some qRdq\in \mathbb{R}^d required solving a semidefinite program with Θ(n)\Theta(n) constraints in~mm variables and thus required some superlinear poly(n)\mathrm{poly}(n) runtime. Our main contribution in this work is to give a new data structure for computing terminal embeddings. We show how to pre-process TT to obtain an almost linear-space data structure that supports computing the terminal embedding image of any qRdq\in\mathbb{R}^d in sublinear time O(n1Θ(ϵ2)+d)O^* (n^{1-\Theta(\epsilon^2)} + d). To accomplish this, we leverage tools developed in the context of approximate nearest neighbor search.

Keywords

Cite

@article{arxiv.2110.08691,
  title  = {Terminal Embeddings in Sublinear Time},
  author = {Yeshwanth Cherapanamjeri and Jelani Nelson},
  journal= {arXiv preprint arXiv:2110.08691},
  year   = {2024}
}
R2 v1 2026-06-24T06:56:52.519Z