Post · 5 min read· pp. 122–124

Embeddings of finite metric spaces in Hilbert space

In this post we discuss the following notion: Let (X,dX)(X,d_X) and (Y,dY)(Y,d_Y) be two metric spaces, one says that XX embeds into YY with distortion D>0D>0 if there exists λ>0\lambda >0 and f:X→Yf : X \rightarrow Y such that for any x,y∈Xx,y \in X,

1≤dY(f(x),f(y))λ dX(x,y)≤D.1 \leq \frac{d_Y(f(x), f(y))}{\lambda \ d_X(x,y)} \leq D .

We write this as X↪DYX \overset{D}\hookrightarrow Y.

Note that if YY is a normed vector space (over the reals) then the scaling parameter λ\lambda in the above definition is unnecessary since one can always perform this scaling with the embedding ff (indeed in this case dY(λf(x),λf(y))=λdY(f(x),f(y))d_Y(\lambda f(x), \lambda f(y)) = \lambda d_Y(f(x), f(y))).

Informally if XX embeds into YY with distortion DD then up to an ‘error’ of order DD one can view XX (once mapped with the embedding ff) as a subset of YY. This is particularly useful when YY has a specific known structure that we may want to exploit, such as Y=ℓpY = \ell_p.

The case p=2p=2 is of particular interest since then one embeds into a Hilbert space which comes with a lot of ‘structure’. Thus we mainly focus on embeddings in ℓ2\ell_2, and we also focus on (X,d)(X,d) being a finite metric space with n=∣X∣n = |X|.

First observe that the case p=∞p=\infty (embeddings in ℓ∞\ell_{\infty}) is trivial:

Proposition X↪1ℓ∞nX \overset{1}\hookrightarrow \ell_{\infty}^n

*Proof:*Consider the embedding f(x)=(d(x,z))z∈X∈Rnf(x) = (d(x,z))_{z \in X} \in \mathbb{R}^n. It is obvious that

∥(d(x,z)−d(y,z))z∈X∥∞≥d(x,y),\|(d(x,z) - d(y,z))_{z \in X}\|_{\infty} \geq d(x,y) ,

and the other side of the inequality follows from the triangle inequality for dd. Thus one has ∥f(x)−f(y)∥∞=d(x,y)\|f(x) - f(y)\|_{\infty} = d(x,y) which concludes the proof.

□\Box

Could it be that the situation is that simple for p=2p=2? It seems very unlikely because ℓ2\ell_2 is a much more structured space than an arbitrary metric space. Consider for example X={r,x,y,z}X=\{r,x,y,z\} with d(r,x)=d(r,y)=d(r,z)=1d(r,x) = d(r,y) = d(r,z) = 1 and d(x,y)=d(x,z)=d(z,y)=2d(x,y) = d(x,z) = d(z,y) = 2 (that is XX is a tree with root rr and three leaves x,y,zx,y,z). It is easy to see that it is impossible to embed XX into ℓ2\ell_2 with distortion 11. Indeed f(x),f(y)f(x), f(y) and f(z)f(z) would be on a Euclidean ball of radius 11 and they would be at distance 2 from each other, which is impossible for 3 points.

So what can we say in general about embeddings into ℓ2\ell_2? The following beautiful result gives the answer:

Theorem (Bourgain 1985) X↪O(log⁡n)ℓ2X \overset{O(\log n)}\hookrightarrow \ell_{2}

It can be shown that this result is unimprovable in general. However for specific classes of finite metric spaces one can hope for some improvement and we refer to the survey by Linial for more details on this.

Embeddings in ℓ2\ell_2 with small distortion

While Bourgain’s theorem is a very strong statement in the sense that it applies to any finite metric space, it is also quite weak in the sense that the distortion is large, of order log⁡n\log n. For some applications it is desirable to have a bounded distortion that does not grow with the size of XX, or even a distortion of order 1+ϵ1+\epsilon with small ϵ\epsilon. As we said previously the only way to obtain such a statement is to make further assumptions on XX. We will not take this route in this post but let me just mention the Johnson-Lindenstrauss lemma which should be well-known to Machine Learners and alike:

Lemma (Johnson-Lindenstrauss 1984) Let X⊂ℓ2X \subset \ell_2 then X↪1+ϵℓ2O(log⁡(n)/ϵ2)X\overset{1+\epsilon}\hookrightarrow \ell_{2}^{O(\log(n) / \epsilon^2)}.

Now what can we say in general about embeddings with small distortion into ℓ2\ell_2? There is a well-known result in convex geometry with the same flavor than this question, this is Dvoretzky’s theorem: any symmetric convex body in Rn\mathbb{R}^n has a section of dimension O(c(ϵ)log⁡n)O(c(\epsilon) \log n) which is Euclidean up to an error of order ϵ\epsilon. The analogue for the theory of metric embeddings is called the non-linear Dvoretzky’s theorem and it goes as follows:

Theorem (Bourgain–Figiel–Milman 1986) Let ϵ>0\epsilon > 0. There exists Y⊂XY \subset X with ∣Y∣≥c(ϵ)log⁡n|Y| \geq c(\epsilon) \log n and Y↪1+ϵℓ2Y\overset{1+\epsilon}\hookrightarrow \ell_{2}.

Again this theorem has a weakness: while the distortion is small it also only applies to a small subset of the original metric space (of size O(log⁡n)O(\log n)). In some sense we have now two extreme results, Bourgain’s theorem which applies to the entire metric space but with a large distortion, and Bourgain–Figiel–Milman which applies to a small small subset but with a small distortion. A natural question at this point is to try to ‘interpolate’ between these two results. Such a statement was first obtained by Bartal, Linial, Mendel and Naor (2002) and later improved in Mendel and Naor (2006):

Theorem (Mendel and Naor 2006) Let ϵ>0\epsilon > 0. There exists Y⊂XY \subset X with ∣Y∣≥n1−ϵ|Y| \geq n^{1-\epsilon} and Y↪O(1/ϵ)ℓ2Y\overset{O(1/\epsilon)}\hookrightarrow \ell_{2}.

In future posts I will try to prove some of these theorems. This might take a while as in the coming weeks I will be traveling to various conferences (including COLT 2013 and ICML 2013) and I will try to blog about some of the stuff that I learn there.