Optimal Average Distortion for Non-Expansive Embeddings of Euclidean Metrics into the Line: With applications to cut-matching games and vertex expansion
Jack Spalding-Jamieson
Abstract
We show that any n-point Euclidean metric admits a non-expansive embedding into the line with average distortion at most O(loglognlogn), matching a known lower bound.
We also present two applications of this result. First, we give a cut-player strategy with an optimal spectral guarantee for the undirected cut-matching game. Second, we give an improved spectral approximation for vertex expansion in high-degree graphs.
AI Disclosure. Key technical ideas of this work are due to GPT-6 Astra, with some simplification due to Claude Opus 5.5. The presentation here is our own, and we take full responsibility for the correctness of our results.
1 Introduction
For a metric (X,d), an embedding into the line is a function f:X→R. We say that such an embedding is non-expansive1 if, for every pair x,y∈X, ∣f(x)−f(y)∣≤d(x,y). The average distortion of a non-expansive embedding into the line is defined as
avd(f):=∑x,y∈X∣f(x)−f(y)∣∑x,y∈Xd(x,y).
More generally, we define the constant avd((X,d)):=minf:X→Rnon−expansiveavd(f).
Numerous works have studied the average distortion of non-expansive embeddings for a variety of metrics. In particular, they arise in a number of constructions for approximation algorithms of graph partitioning problems [ARV09, Rab08, DRSW27, BLR10]. For general n-point metrics (X,d), it is known that avd((X,d))∈O(logn), and that this is the best-possible bound for some metrics [BLR10]. For numerous shortest-path metrics (X,d) in restricted graph classes, it is known that avd((X,d))∈O(1), where the constant depends on a class parameter [Rab08, BLR10, CF25, DRSW27]. For squared Euclidean metrics (X,∥⋅∥22) (where every triple x,y,z∈X satisfies ∥x−y∥22+∥y−z∥22≥∥x−z∥22), it is known that avd((X,∥⋅∥22))=O(logn) [ARV09], and this bound is tight [MR01].
For Euclidean metrics (X,∥⋅∥2), it has long been known that avd((X,∥⋅∥2))∈O(logn) [MR01], and that there are examples where avd((X,∥⋅∥2))∈Ω(loglognlogn) [MR01]. Our first main result closes this gap.
1This is sometimes called a 1-Lipschitz embedding.
Theorem 1.1. For an integer k≥1, let X⊂Rk be a set of size n. Then there exists a non-expansive embedding into the line f:X→R so that avd(f)∈O(loglognlogn).
1.1 Applications
We present two applications of our main embedding result.
1.1.1 Cut-Matching Games
In 2006, Khandekar, Rao, and Vazirani introduced the cut-matching game [KRV09], which has been used in various forms to efficiently approximate several graph partitioning problems [OSVV08, Lou10, LTW24].
Definition 1.2. Fix a vertex set V of (even) size n. Two players alternate for T rounds: A cut player and a matching player. In round t of the cut-matching game:
The cut player chooses a bisection (St,V∖St).
The matching player chooses a perfect matching Mt across this bisection.
After T rounds, let H:=(V,M1∪M2∪⋯∪MT) be the graph consisting of the union of all these matchings, retaining repeated edges.
In the original formulation, the cut player seeks to maximize the edge expansion of H, given by
ϕ(H):=θ=S⊆Vminmin{∣S∣,∣V∖S∣}∣EH(S,V∖S)∣,
regardless of the matching player's choices.
Khandekar, Rao, and Vazirani originally proved that a cut player could achieve ϕ(H)=Ω(1) after O(log2n) iterations (with high probability) [KRV09].
In 2008, Orecchia, Schulman, Vazirani, and Vishnoi improved this to ϕ(H)=Ω(logn) after O(log2n) iterations (with constant probability) [OSVV08]. In fact, they showed that the cut player can achieve the same guarantee on a spectral quantity: Let L(H) denote the Laplacian matrix of H, and let λ2(H) denote its second-smallest eigenvalue. Note that ϕ(H)≥21λ2(H). Their result actually guarantees the stronger bound of λ2(H)=Ω(logn).
Later, Sherman showed that this improved bound was nearly optimal [She09]. In particular, he showed that the matching player can force
λ2(H)=O(Tlognloglogn).
We tighten the cut player strategy to make this bound tight. In fact, doing so using Theorem 1.1 would be quite straightforward. However, the resulting algorithm would be quite slow. Instead, with more work, we are able to prove the existence of a cut player strategy that achieves this bound using near-linear work per round.
Theorem 1.3. For the cut-matching game, there is a (randomized) cut-player strategy using near-linear work per round that, against every matching player, forces
ϕ(H)≥21λ2(H)=Ω(logn),
in O(log2n/loglogn) rounds, with probability at least 2/3.
1.1.2 Vertex Expansion
Let G=(V,E) be a graph with n vertices. For a subset A⊂V with ∣A∣≤n/2, let ∂A denote the set of vertices in V∖A adjacent to some vertex in A. The vertex expansion of a vertex set A in G is the ratio ψ(A):=∣A∣∣∂A∣. The vertex expansion of a graph G is the minimum vertex expansion over all possible sets ∣A∣≤2n, and it is denoted as ψ(G).
A recent line of work concerns a “Cheeger-style” approximation of vertex expansion. In particular, the following result was obtained by two groups independently in 2022 [KLT22, KLT25, JPV22].
Theorem 1.4 ([KLT22, KLT25, JPV22]). For a graph G=(V,E) with maximum degree Δ, there is a polynomial time algorithm that produces a set S⊂V with
ψ(S)∈O(ψ(G)⋅logΔ).
We improve this result for graphs with large maximum degree.
Theorem 1.5. For a graph G=(V,E) with n vertices, there is a randomized polynomial time algorithm that, with probability at least 2/3, produces a set S⊂V with
ψ(S)∈O(ψ(G)⋅loglognlogn).
1.2 Proof Overview
The proof of Theorem 1.1 will follow a common two-case structure employed in various forms in several previous works [ARV09, Rab08, BLR10, DRSW27]. Such proofs first eliminate an easy case. For convenience, we use the specific form of this easy case stated by Davies, Rzażewski, Spalding-Jamieson, and Walczak [DRSW27].
Lemma 1.6 ([DRSW27, Lemma 4.1]). Let (X,d) be a metric space, and let Δ:=n21∑x,y∈Xd(x,y). Let κ>0 and c>2. If there exists some x∗∈X with ∣B(x∗,cΔ)∣≥κn, then the embedding f(x)=d(x,B(x∗,Δ/c)) is non-expansive and has avd(f)≤2k(1−c2)1.
In our application of the first lemma, we will have κ,c be universal constants. The case when the first lemma does not apply (for constant values κ,c) is called the well-spread case. In the well-spread case, we will instead compute a random projection, and use it to define a minimum-weight matching problem. Then, by a standard result from optimal transport, the dual to this matching problem will give us our embedding. The bulk of our work is then to bound the expected total weight of the resulting matching.
2 A Matching Lemma
The key lemma to our proof is as follows.
Lemma 2.1. Let X⊂Rk have size n. For each g∈Rk, let Kg be a symmetric matrix on X with nonnegative entries and row sums equal to 1. Sample x0∼Unif(X) and γ∼N(0,1)k independently, then sample x1 from Kγ(x0,⋅). Then
(E∣⟨γ,x1−x0⟩∣)2=O(E∥x1−x0∥22loglognlogn).
Corollary 2.2. Let X⊂Rk be a set of n points, and let Δ:=n21∑x,y∈X∥x−y∥2. Assume ∣B(x,Δ/4)∣<64n for every x∈X. For a nonzero vector g∈Rk, let Xg−,Xg+⊂X be the ⌈64n⌉ smallest and largest points in the ordering given by x↦⟨x,g⟩, respectively. Let Ag be a minimum-weight bipartite perfect matching between Xg− and Xg+, with weights given by the Euclidean distance between points, and let ∣Ag∣ denote its total weight. Then, Eγ∼N(0,1)k∣Aγ∣≥c⋅n⋅Δlognloglogn for a universal constant c>0.
To prove Lemma 2.1, we will make use of Markov chains. In particular, we will use the following result.
Lemma 2.3 ([Ost13, Theorem 8.12]). Let x0,x1,… be a reversible Markov chain on X⊂Rk, with x0 sampled from a stationary distribution of the chain. For every integer i≥1,
E∥xi−x0∥22≤iE∥x1−x0∥22.
At a high level, the proof of Lemma 2.1 samples a number of different Gaussian variables, and chains together the resulting matchings to construct a random walk (in the form of a reversible Markov chain). This on its own is not too dissimilar from some proofs of the O(logn) bound for squared Euclidean metrics. In order to obtain our desired bound, we want to show that the expected total matching weight is large. We can apply Lemma 2.3 to bound the expected squared distance from the starting vertex at the end of the random walk using the expected total matching weight. With the forward walk's starting vertex fixed, we also generate a second "reverse" walk that attempts to start from a uniformly random vertex, and tries to arrive at the starting point of the "forward" walk. Unlike the forward walk, the reverse walk uses shifted Gaussians. An analysis of the success probability of the reverse walk then eventually leads to our bound.
We defer both proofs to Section A.
3 Main Embedding Result
To prove our main embedding result, we use the following special case of the Kantorovich-Rubinstein dual.
Lemma 3.1 ([PC19, Proposition 2.1 and Section 6.1]). Let (X,d) be a metric space of size n, and let A,B⊂X be disjoint sets of equal size. If M is a minimum-weight perfect matching between A and B, with edge weights d(x,y), then there exists a non-expansive f:X→R such that
y∈B∑f(y)−x∈A∑f(x)=(x,y)∈M∑d(x,y).
Proof of Theorem 1.1. Let Δ:=n21∑x,y∈X∥x−y∥2. If some ball B(x,Δ/4) contains at least n/64 points, Lemma 1.6 with κ=1/64 and c=4 gives average distortion at most 256. Otherwise, Corollary 2.2 gives a direction g with
We essentially provide a new dimension-reduction algorithm that could be applied to modifications of several different algorithms. We specifically choose to modify the algorithm of Lau, Tung, and Wang [LTW24] as given in simplified form by Lau in his recent textbook [Lau27, Section 18.3]. Like Lau, we choose to initially present a slow form of the algorithm that computes exact matrix exponentials.
Algorithm 4.1 Cut player
Input: An ordered set V of even size n, a positive integer T, and access to a matching player.
Output: The union HT of the matching replies, retaining repeated edges.
1: Initialize H0 as the empty graph on V.
2: for t=1,…,T do
3: Set Wt←e−L(Ht−1)/4 and Pt←Wt/(Tr(Wt)−1).
4: Let zv∈RV be row v of Pt1/2(I−11T/n), where 1∈RV is the all-ones vector.
5: Flip a fair coin.
6: If heads, set yv←∥zv∥2 for all v.
7: If tails, sample an independent γ∼N(0,In), and set yv←⟨γ,zv⟩ for all v.
8: Query the bisection given by the n/2 smallest values of yv, breaking ties by the order on V. Receive Mt and set Ht←Ht−1+Mt.
9: end for
10: return HT.
The algorithm as presented by Lau is equivalent to always taking the “tails” branch. Hence, much of the analysis will still immediately apply, particularly regarding the fast implementation of this algorithm. We first require two lemmas.
Lemma 4.2. Let (yv)v∈V be real numbers with ∑v∈Vyv=0, where ∣V∣=n is even. For every perfect matching M between the smallest and largest halves,
uv∈M∑(yu−yv)2≥v∈V∑yv2.
Proof: Following the proof of [Lau27, Lemma 17.10], choose m between the two halves and write each edge uv∈M with yu≤m≤yv. Since m−yu and yv−m are nonnegative,
Our change to the dimension reduction gives the following guarantee, independently of how the vectors are computed.
Lemma 4.3. Let (zv)v∈V be vectors in Rk with ∑v∈Vzv=0, where ∣V∣=n is even. Flip a fair coin. If heads, let S consist of the n/2 vertices with smallest ∥zv∥2. If tails, sample γ∼N(0,Ik) and let S consist of the n/2 vertices with smallest ⟨γ,zv⟩. For each outcome, choose any perfect matching M between S and V∖S. Then
E[uv∈M∑∥zu−zv∥22]≥clognloglognv∈V∑∥zv∥22
for a universal c > 0.
Proof: Let Mr be the matching chosen when the coin is heads. For each g∈Rk, let Mg be the matching chosen when the coin is tails and γ=g. Let rν:=∥zν∥2 and rˉ:=n1∑v∈Vrν. As we will see, the norm bisection controls the variance of rν, while the Gaussian bisection controls its mean. We have
Let Kg(u,v)=1 for uv∈Mg and 0 otherwise. Independently of γ, choose a uniform vertex u∈V, let v be its partner in Mγ, and set x0=zu, x1=zv. Then
Proof of Theorem 1.3. Take T=⌈Clog2n/loglogn⌉ for a sufficiently large universal C. As in Lau's analysis, in each round the exact vectors satisfy ∑v∈Vzv=0 and ∑v∈V∥zv∥22=Tr(Pt(I−11T/n))=1. Hence
The standard fast MMWU technique via Johnson-Lindenstrauss extends this same argument to a near-linear time algorithm with slightly worse constant, with constant probability (see e.g. [Lau27, Section 18.3 and Theorem 9.14]). □
5 Vertex Expansion
In this section, we prove Theorem 1.5. Doing so will involve the following (known) parametrized optimization problem.
Several important facts about γ are already well-known, for different values of d. First and foremost, γ(n) is a semidefinite program, and can be solved (approximately) in polynomial time (see [Spa25] for some discussion of specific time complexities). Second is the following result relating γ(1) to vertex expansion.
Theorem 5.1 ([OTZ22, OTZ24, Proposition 2.2 and Theorem 2.10]). For a graph G,
ψ(G)2≤O(γ(1)(G))≤O(ψ(G)).
The sweep construction in the cited proof finds, from any feasible one-dimensional pair (f,y), a set S in polynomial time with ψ(S)2=O(∑ν∈Vy(ν)/∑ν∈Vf(ν)2). Note that γ(n)(G)≤γ(1)(G) by definition (it is a relaxation). Hence, to prove Theorem 1.5, it suffices to prove the following result.
Proposition 5.2. For a graph G with n vertices,
γ(1)(G)∈O(γ(n)(G)⋅loglognlogn).
A randomized polynomial time algorithm realizes this bound with probability at least 2/3.
To do this, we will require a slightly different kind of metric embedding result than what Theorem 1.1 gives. Specifically, Theorem 1.1 bounds the average distortion, while we require a bound on a quantity we call the average squared distortion, which (for a non-expansive metric embedding f into the line of a metric (X,d)) is defined as
avd2(f):=∑x,y∈X∣f(x)−f(y)∣2∑x,y∈Xd(x,y)2.
This quantity has seen use in prior works for different purposes [BLR08, BLR10, Spa25]. It turns out that our existing bound on the average distortion already gives a nice bound on the average squared distortion, through a known relationship.
Lemma 5.3 ([Nao14, special case from proof of equation (7.33)]). Let (X,d) be an n-point metric space, and let h:X→R be a non-expansive embedding of average distortion D. Then there exists a non-expansive f:X→R satisfying
x,y∈X∑d(x,y)2≤CD2x,y∈X∑∣f(x)−f(y)∣2
for a universal constant C. Given h and the pairwise distances, f can be computed in polynomial time.
Proof of Proposition 5.2. Let f,y be an optimal pair for γ(n)(G). Embed the points given by f into the line using Theorem 1.1 and Lemma 5.3 to get a non-expansive embedding f′:V→R into the line with average squared distortion at most O(loglognlogn). Assume without loss of generality (by shifting) that ∑v∈Vf′(v)=0. Consequently, by non-expansitivity, f′,y must be a feasible solution to γ(1)(G), and it must have objective value at most
[ARV09] Sanjeev Arora, Satish Rao, and Umesh Vazirani. Expander flows, geometric embeddings and graph partitioning. Journal of the ACM (JACM), 56(2):1–37, 2009.
[BLR08] Punyashloka Biswal, James R. Lee, and Satish Rao. Eigenvalue bounds, spectral partitioning, and metrical deformations via flows. In Proceedings of the 2008 49th Annual IEEE Symposium on Foundations of Computer Science, FOCS '08, page 751–760, USA, 2008. IEEE Computer Society.
[BLR10] Punyashloka Biswal, James R Lee, and Satish Rao. Eigenvalue bounds, spectral partitioning, and metrical deformations via flows. Journal of the ACM (JACM), 57(3):1–23, 2010.
[CF25] Jonathan Conroy and Arnold Filtser. How to protect yourself from threatening skeletons: Optimal padded decompositions for minor-free graphs. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC '25, page 2281–2292, New York, NY, USA, 2025. Association for Computing Machinery.
[DRSW27] James Davies, Paweł Rzązewski, Jack Spalding-Jamieson, and Bartosz Walczak. Revisiting separators in string graphs, region intersection graphs, and induced-minor-free graphs. In Proceedings of the 2027 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2027.
[JPV22] Vishesh Jain, Huy Tuan Pham, and Thuy-Duong Vuong. Dimension reduction for maximum matchings and the fastest mixing markov chain. arXiv preprint arXiv:2203.03858, 2022.
[KLT22] Tsz Chiu Kwok, Lap Chi Lau, and Kam Chuen Tung. Cheeger inequalities for vertex expansion and reweighted eigenvalues. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 366–377, 2022.
[KLT25] Tsz Chiu Kwok, Lap Chi Lau, and Kam Chuen Tung. Cheeger's inequalities for vertex expansion and reweighted eigenvalues. SIAM Journal on Computing, 54(6):1568–1625, 2025.
[KRV09] Rohit Khandekar, Satish Rao, and Umesh Vazirani. Graph partitioning using single commodity flows. Journal of the ACM (JACM), 56(4):1–15, 2009.
[Lau27] Lap Chi Lau. Algorithmic Spectral Graph Theory. Cambridge University Press, 2027.
[Lou10] Anand Louis. Cut-matching games on directed graphs. arXiv preprint arXiv:1010.1047, 2010.
[LTW24] Lap Chi Lau, Kam Chuen Tung, and Robert Wang. Fast algorithms for directed graph partitioning using flows and reweighted eigenvalues. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 591–624. SIAM, 2024.
[MR01] Jiří Matoušek and Yuri Rabinovich. On dominated l1 metrics. Israel Journal of Mathematics, 123(1):285–301, 2001.
[Nao14] Assaf Naor. Comparison of metric spectral gaps. Analysis and Geometry in Metric Spaces, 2(1):20141001, 2014.
[Ost13] Mikhail I Ostrovskii. Metric embeddings: Bilipschitz and coarse embeddings into Banach spaces, volume 49. Walter de Gruyter, 2013.
[OSVV08] Lorenzo Orecchia, Leonard J Schulman, Umesh V Vazirani, and Nisheeth K Vishnoi. On partitioning graphs via single commodity flows. In Proceedings of the fortieth annual ACM symposium on Theory of computing, pages 461–470, 2008.
[OTZ22] Sam Olesker-Taylor and Luca Zanetti. Geometric bounds on the fastest mixing markov chain. In 13th Innovations in Theoretical Computer Science Conference (ITCS 2022). Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2022.
[OTZ24] Sam Olesker-Taylor and Luca Zanetti. Geometric bounds on the fastest mixing markov chain: S. olesker-taylor, l. zanetti. Probability Theory and Related Fields, 188(3):1017–1062, 2024.
[PC19] Gabriel Peyré and Marco Cuturi. Computational optimal transport with applications to data sciences. Foundations and trends® in machine learning, 11(5-6):355–607, 2019.
[Rab08] Yuri Rabinovich. On average distortion of embedding metrics into the line. Discrete & Computational Geometry, 39(4):720–733, 2008.
[She09] Jonah Sherman. Breaking the multicommodity flow barrier for o(logn)-approximations to sparsest cut. In 2009 50th Annual IEEE Symposium on Foundations of Computer Science, pages 363–372. IEEE, 2009.
[Spa25] Jack Spalding-Jamieson. Reweighted spectral partitioning works: A simple algorithm for vertex separators in special graph classes. arXiv preprint arXiv:2506.01228, 2025.
A Lemma Proof
Proof of Corollary 2.2. We may assume that n>64, and that Xγ− and Xγ+ are always disjoint.
Rescale X so that Eγ∼N(0,1)k∣Aγ∣=⌈64n⌉.
Sample γ∼N(0,1)k, then sample uv∼Unif(Aγ). For each g∈Rk∖{0}, define a symmetric transition matrix Kg by
The diagonal entries are nonnegative because each vertex has at most one partner.
Independently sample x,y∼Unif(X). Xγ− and Xγ+ each contain ⌈n/64⌉ points. If neither x nor y belongs to Xγ−∪Xγ+, then ∣⟨γ,x−y⟩∣≤∣⟨γ,u−v⟩∣. With these distributions we obtain
Proof of Lemma 2.1. Rescale X so that E∥x1−x0∥22=1, and let t:=E∣⟨γ,x1−x0⟩∣. Denote r:=⌈logn⌉. Sample x0 uniformly from X and independently sample vectors γ1,…,γr∼N(0,1)k. For i=1,…,r, sample xi from Kγi(xi−1,⋅). Let π denote the resulting joint distribution of (x0,γ1,x1,…,γr,xr). Since every Kg is symmetric, the chain is reversible and the uniform distribution is stationary. For 1≤i≤r, stationarity makes xi−1 uniform on X. Since γi is sampled independently of xi−1,
Eπ∣⟨γi,xi−xi−1⟩∣=t.(16)
Also,
Eπ∥xi−x0∥22≤iEπ∥x1−x0∥22≤ibyLemma2.3.(17)
Fix a∈X. Let ρa be the joint distribution of (y0,η1,y1,…,ηr,yr) generated by the following procedure:
Sample yr uniformly from X.
For i=r,r−1,…,1, independently choose a plus or minus sign with equal probability. Draw an independent vector from N(0,1)k and add ±t(yi−a)/i to obtain ηi, using the chosen sign. Then sample
yi−1∼Kηi(yi,⋅).
The probability that the second procedure ends at a is at most 1. With z0=a, its expression in terms of the original walk is