Manuscript Offprint
arXiv:2610.21371Geometric Hashing in MPC with Applications to Clustering and Stochastic Embeddings
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
In this paper we study consistent hashing (a.k.a. sparse partitions) for doubling metrics in the Massively Parallel Computation (MPC) model. A ( , )-hash with diameter bound partitions a metric space into clusters of diameter at most such that every ball of radius intersects at most clusters in expectation. Consistent hashing has emerged as a central tool in geometric MPC algorithms. However, so far it has been solely used in Euclidean spaces, where it can be pre-computed. On the other hand, in cases where the metric space is received as input and unknown in advance, no previous parallel construction was known.
We present the first fully scalable MPC algorithm over machines with local space , that given an -point metric space with doubling dimension , samples a randomized -hash in rounds. There is a dichotomy: if the doubling dimension is , a polynomial number of rounds is required to compute such a hash.
We conclude by showing that this MPC primitive yields -round fully scalable MPC algorithms for a broad class of fundamental geometric problems in doubling metrics, including stochastic tree embeddings with expected distortion, constant factor approximation for facility location, bicriteria -approximation for k-median and k-means.
*Department of Computer Science & Engineering, Indian Institute of Technology Bombay, Mumbai, India. Email: sujoy@cse.iitb.ac.in. This work is supported in part by ANRF ARG-MATRICS, Grant 002465
Bar Ilan University, Ramat Gan, Israel. Email: arnold.filtser@biu.ac.il. This research was supported by the Israel Science Foundation (grant Nos. 1042/22 and 2021/26) and the European Research Council (ERC), grant No. 101301875 (NonMetEmbed). Funded by the European Union. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.
POSTECH, Korea. Email: eunjin.oh@postech.ac.kr. This work is supported by Institute of Information & Communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) (No. RS-2024-00440239, Sublinear Scalable Algorithms for Large-Scale Data Analysis) and the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (No. RS-2024-00358505).
POSTECH, Korea. Email: hyeonjun.shin@postech.ac.kr
Department of Computer Science & Engineering, Indian Institute of Technology Bombay, Mumbai, India. Email: himanshi@cse.iitb.ac.in
Contents
1 Introduction 3
1.1 Our contributions 5
1.2 Related work 7
2 Preliminaries 8
3 Consistent hashing for doubling metrics 10
3.1 Sparse partition for doubling metrics 10
3.2 MPC construction of sparse partition 12
3.3 Neighborhood oracles for consistent hashing 16
4 Applications 20
4.1 Stochastic tree embeddings 20
4.2 Facility location 21
4.3 k-median and k-means 22
4.4 Minimum-size clustering 23
5 Lower bounds 25
5.1 Stochastic tree embeddings 25
5.2 Consistent hashing 28
A Comparison with Filtser (2024) 34
B MPC implementation details for EMD 35
An MPC system consists of machines, each with local memory , for a total memory of . Computation proceeds in synchronous rounds: in each round, every machine performs arbitrary local computation, followed by a communication phase in which it sends and receives at most words, with each message addressed to a single destination (i.e., no broadcast). After a bounded number of rounds, the machines collectively output the solution. The complexity of an MPC algorithm is measured primarily by the number of rounds and the local memory , while the total space is also an important parameter and typically constrained depending on the regime under consideration. As is standard in the MPC model, local computation within each machine is assumed to be unrestricted. A central parameter in the MPC model is the local memory size , and the behavior of algorithms depends on how scales with the input size . In this work, we focus on the fully scalable sublinear regime, where the local memory size is for , which may be arbitrarily small, and may even depend on (though is usually thought of as an absolute constant). This strongly sublinear setting is particularly challenging and captures the constraints of modern large-scale systems. This regime imposes stringent per-machine memory constraints while still allowing the total memory to be sufficient to store the input. In particular, we require that the total memory satisfies , and is ideally close to linear in . The central goal in MPC is to solve fundamental computational problems in as few rounds as possible, ideally . In the rest of the introduction, we will refer to fully scalable constant-round MPC algorithms as FSCR-alg.
Geometric MPC. In recent years, significant progress in MPC has been driven by the geometric setting, broadly constructed as metric problems where the input admits a structured, implicit representation of distances. Most of the previous work dealt with the case where the input consists of points in , often in high dimension, where distances can be computed locally from coordinate representations. This additional structure enables algorithmic approaches to bypass the fundamental barriers present when the input is a graph (e.g., the 2-vs-1 cycle conjecture ). Indeed, in recent years, there has been a large body of work that exploited this structural advantage in various memory regimes; see [ANOY14, BCMT22, GSZ11a, CGJ 24, CZ24, CGGJ25, OS26].
In the sublinear regime, Andoni, Nikolov, Onak, and Yaroslavtsev [ANOY14] initiated the study of geometric graph problems. They obtained an FSCR-alg -approximation for MST for metrics with constant doubling dimension (and a -approximation for Earth Mover Distance in ). A lot of attention was devoted to fundamental clustering problems (k-median/means/center, facility
There are many works where the memory is sublinear for some fixed . By fully scalable we mean that the algorithm works for every fixed , while the number of rounds may depend on .
Suppose that the input is a graph where the edge set is distributed among the machines. In the “2-vs-1 cycle” problem we are asked to distinguish between a graph that is a single large cycle and graphs that comprise two cycles. It is conjectured to require rounds. There are several conditional hardness results for sublinear MPC based on the 2-vs-1 cycle conjecture. See, e.g., [NS22].
location). Most of the previous work [BW18, CSWZ16, CALNF 21, CCM23, DPP23, CPPU17a, CPP24] was based on classical techniques (e.g., core-sets) and typically requires local memory , thus not yielding fully scalable MPC algorithms.
Recently, the situation drastically changed via the introduction of consistent hashing. Czumaj, Gao, Jiang, Krauthgamer, and Veselý [CGJ 24] initiated the use of consistent hashing in MPC and used it to design an FSCR-alg constant-approximation for facility location for points in high-dimensional . This was the first FSCR-alg for facility location. Further, [CGJ 24] used consistent hashing to design an FSCR-alg bicriteria -approximation for k-median and k-means for points in high-dimensional (previous FSCR-algs had polylogarithmic bicriteria approximation [BW18]). In a subsequent work, Czumaj et al. [CGGJ25] utilized consistent hashing to construct an FSCR-alg -approximation for k-center for points in high-dimensional —the first k-center FSCR-alg for points in high dimension. Lastly, Goranci et al. [GJK 26] constructed FSCR-alg stochastic tree embeddings for points in high-dimensional with optimal expected distortion . Previous FSCR-algs for stochastic tree embeddings for points in had expected distortion [AAH 23].
Consistent Hashing (a.k.a Sparse Partitions). Given a metric , a -sparse partition is a partition of into clusters of diameter such that every ball of radius intersects at most clusters. In the example on the right, the ball intersects 5 different clusters: . Sparse partitions are useful, especially in sublinear regimes, as they allow us to efficiently approximate balls and manipulate them in various ways. Indeed, let be the collection of clusters intersecting . It holds that . Maintaining and manipulating such clusters is often much easier than similar operations on balls.

Sparse partitions were introduced by Jia et al. [JLN 05] (see also [AP90a]), who used them to construct universal TSP and universal Steiner tree (see [BDR 12, BCF 23] for follow-ups). Later, similar notions of scattering and shortcut partitions [Fil24, CCL 23, CCL 24] were used to resolve the Steiner point removal problem and to construct sparse tree covers. Existential optimal constructions are now known in a variety of settings, including general metrics [JLN 05], doubling (and Euclidean) metrics [Fil24], and minor-free graphs [CF25] (see Section 1.2 for further details). Czumaj et al. [CFJ 22] coined the term (geometric) consistent hashing to emphasize the computational aspects of these constructions. Beyond FSCR-algs for MPC (mentioned above), consistent hashing for high-dimensional had been used for -approximation in dynamic streaming algorithms (single pass, polylog space) for facility location, for fully dynamic stochastic tree embedding with distortion and update time [GJK 26], for fully dynamic poly( )-approximation algorithms for k-means with update time and polylogarithmic recourse, and for almost-linear-time constant-approximation for k-center [FJL 25].
Interestingly, while sequential constructions of sparse partitions are known for various graph families and metric spaces, all this recent success story of consistent hashing for MPC FSCR-algs, streaming, fully dynamic, and almost-linear-time algorithms is exclusive to Euclidean space. This
[CGGJ25] also provided improved -approximation for points in low-dimensional .
is somewhat natural: indeed, Euclidean space is fixed. One can leisurely compute a consistent hash offline and then hard-code it into the local algorithm of each machine. On the other hand, in most other scenarios, the metric space arrives as input, and it is impossible to precompute the consistent hash in advance. But is the situation indeed so dire for other metric spaces? Is it the case that only Euclidean space (or other predetermined spaces) is destined to enjoy the fruits of consistent hashing?
This leads to the following fundamental question, which is the driving core behind our paper:
Can one design consistent hashing schemes in the fully scalable MPC model, in constant rounds, for broader metric spaces, such as doubling or general metrics?
Distance-Label Model. Prior works [ANOY14, CGJ 24, CGGJ25, AAH 23, OS26] on metric problems typically assume, often implicitly, access to a ground set S endowed with a distance function . We make this assumption explicit via the Distance-Label MPC model. In this model, we are given a set of points , where each point is associated with a label of size bits. The distance between any two points and is not given explicitly; instead, it can be computed in time from their labels and .
1.1 Our contributions
Main theorem. In this work, our primary goal is to obtain a fully scalable MPC (FSCR-alg) algorithm for consistent hashing schemes for a broader class of metric spaces. To this end, we develop our approach in doubling metrics and establish the following upper bound.
Theorem 1 (Informal; see Theorem 3). For any metric space of doubling dimension ddim, there is a fully scalable MPC algorithm that, given n points distributed among machines with local memory (where ), constructs a -consistent hashing (sparse partition) for arbitrary and . The algorithm runs in rounds if the input point set has a polynomially bounded aspect ratio.
The padding-sparsity tradeoff of our consistent hashing is optimal [Fil24]. Note that this tradeoff is also optimal for -dimensional Euclidean space. Furthermore, in cases where the intrinsic doubling dimension of a given point set is considerably smaller than the actual Euclidean dimension , it will be much preferable to use Theorem 1 over the existing consistent hashes of high-dimensional Euclidean spaces. Algorithms for Euclidean point sets with small intrinsic doubling dimension are extensively studied [BGN14, CK14, IN07, AKS14, AEP18, DY19, DY20].
At a high level, we revisit the classical MPX-based sparse partition framework. However, in order to implement it in MPC, we need to take the intersection of poly( ) partitions in different scales. The classic construction [Fil24], while providing worst case guarantees, bounded the number of intersections only by , regardless of how large the padding parameter is. Implementing this in our multi-scale approach would have blown up the number of intersections to exponential (even for huge ). We provide a more careful analysis that bounds the expected number of intersections by , which goes to 1 as grows larger. Thus eventually we don’t lose anything by our multi-scale approach. See Remark 1 and Appendix A for a detailed comparison with [Fil24].
Lower bound. As general -point metrics admit a -sparse partition scheme [JLN05], one might hope to remove the bounded doubling dimension assumption from Theorem 1, and construct consistent hashing for general metrics in MPC. Unfortunately, this is impossible. In Theorem 1 we require that . In other words, the local space has to be at least . General metrics might have doubling dimension as large as . We show that if this assumption does not hold, then a polynomial number of rounds is required to compute a consistent hash. Thus there is a sharp dichotomy: for there is an efficient -round algorithm, while for , one needs either a polynomial number of rounds, or total space ( for general metrics).
Theorem 2 (Informal; see Theorem 9). Any fully scalable MPC algorithm that constructs consistent hashing schemes in doubling metrics using total space and local memory must take at least rounds.
Applications. We now turn to applications of consistent hashing. Our consistent hash bears fruit for several fundamental problems (mostly in a black-box fashion), such as clustering, stochastic tree embeddings, and EMD. These problems have been extensively studied in the MPC model. However, existing approaches [CPP19, IM15, LWXF25, CPPU17a, MZZ24, CPPU17b, MPP19, DPP23] require large local memory (typically per machine), incur additional dependence on parameters such as (number of clusters), and thus fall short of achieving the “holy grail” fully scalable regime. Consequently, fully scalable -round MPC algorithms for a broad class of fundamental problems remain out of reach beyond Euclidean settings.
In the following description of our applications we assume that the doubling dimension ddim and are absolute constants. Nevertheless, our results hold even for moderately large doubling dimension, as long as . Then the number of rounds is .
Stochastic Embeddings: Our framework yields a fully scalable MPC algorithm for stochastic tree embeddings for doubling metrics, achieving optimal expected distortion in constant rounds and near-linear total space; see Corollary 1. Stochastic tree embeddings are a very powerful tool, as they allow us to treat various metrics as if they were a tree. Indeed, we use our stochastic tree embedding to obtain the first FSCR-alg for approximating EMD for doubling metrics (see more details below).
We also show that stochastic tree embeddings are impossible for general metrics in MPC. Indeed, rounds are required (for local space , and total space ); see Theorem 8.
Facility Location: We obtain a fully scalable, constant-round MPC constant-factor approximation algorithm for facility location in doubling metrics, with near-linear total space; see Corollary 3. No fully-scalable approximation for doubling metrics was previously known.
k-Median and k-Means: We obtain fully scalable MPC algorithms for k-median and k-means in doubling metrics (in fact for a more general -objective), achieving a -bicriteria approximation in constant rounds, while using near-linear total space; see Corollary 4. No fully-scalable approximation for doubling metrics was previously known.
Earth Mover’s Distance (EMD): We obtain a fully scalable, constant-round MPC, -approximation algorithm for EMD in doubling metrics; see Corollary 2. No fully-scalable approximation for doubling metrics was previously known.
r-Gather (a.k.a. minimum size clustering): We obtain a fully scalable, -round MPC, -approximation algorithm for the r-gather problem in doubling metrics; see Corollary 5 and Corollary 6. No fully-scalable approximation for doubling metrics was previously known.
1.2 Related work
Given a metric space , a -sparse cover is a collection of clusters with diameter at most such that every ball of radius is fully contained in some cluster, and every vertex belongs to at most clusters. If admits a -sparse cover for every , we can simply say that it admits a -sparse cover. It is known that sparse partitions (a.k.a. consistent hashing) and sparse covers are essentially equivalent (see [Fil24]). Sparse covers were introduced by Awerbuch and Peleg [AP90b] for general graphs, who showed that they admit -sparse covers for every integer . Metric spaces with doubling dimension ddim admit (ddim, )-sparse covers, or -sparse covers for every . Sparse covers were extensively studied for -minor free graphs [KPR93, FT03, KLMN05, AGMW10, BLT14, Fil19a, FFI, Fil25], where recently Conroy and Filtser [CF25] showed that -minor free graphs admit -sparse covers.
Given a weighted graph , the strong diameter of a cluster is its maximum induced distance, i.e., . In this paper we only use weak diameter, which is defined as , the maximum distance w.r.t. the original graph distances. It is considerably harder to construct partitions with strong diameter guarantees. In particular, it is impossible to construct strong -sparse partitions even for trees [Fil24]. -sparse partitions are known only for graphs with either constant doubling dimension, or constant pathwidth [Fil24].
Scattering partitions are similar to sparse partitions, where the guarantee is that every shortest path intersects a small number of clusters (instead of a ball), and the diameter guarantee is strong. Other than bounded-doubling and pathwidth graphs, chordal [Fil24] and series-parallel graphs [FL22] are also known to admit -scattering partitions. It is still open whether planar graphs admit -scattering partitions. Shortcut partitions are similar to scattering partitions, where the difference is (roughly) that instead of the guarantee that every shortest path intersects a small number of clusters, the guarantee is that between every pair of vertices there is some approximate shortest path that intersects clusters. It is known that planar graphs, or more generally -minor free graphs, admit -shortcut partitions [CCL 23, CCL 24]. Scattering and shortcut partitions have been used to obtain -distortion solutions for the Steiner point removal problem [Fil19b, Fil24, CCL 24].
Consistent hashing in Euclidean was extensively studied. For every , it is known how to construct a -consistent hashing [Fil24], which is tight up to second-order terms [Fil24]. Note that our Theorem 3 removes the factor from the sparsity (due to the fact that our guarantees are only in expectation). [BCF 25] constructed a different consistent hash function with the same parameters that can be stored and computed using space. Unfortunately, evaluating both near-optimal hash functions [Fil24, BCF 25] takes time. On the other hand, it is known how to construct a -consistent hash [FJL 25, BCF 25] that can be both stored and evaluated in -time. Constructing efficient consistent hashing for with optimal parameters is a fascinating open question.
2 Preliminaries
In this section, we introduce basic notions used in our main results. We consider a metric space of doubling dimension ddim. Throughout this paper, we assume that the aspect ratio of is polynomially bounded. The doubling dimension ddim of a metric space is the smallest constant such that any ball of radius , , can be covered by at most balls of radius [GKL03]. It is well-known that a -dimensional Euclidean space has doubling dimension . Doubling metrics admit several useful structural properties, including nets and the packing property. The packing property can be stated as follows: If has minimum interpoint distance and is contained in a ball of radius , then . For , , a set is called a -net if for any point of there is a point such that , and for any pair of net points , it holds that . We call a -net if . The packing property implies that any -net contained in a ball of radius has size at most .
For a point set , we use to denote the diameter of , that is, . For a point and a value , we let denote the ball centered at with radius .
Consistent hashing. We define (geometric) consistent hashing as follows. A hash induces a partition of into clusters of diameter at most such that for any two points , they are contained in the same cluster if and only if . A partition induced by a -hash with diameter bound is called a -sparse partition.
Definition 1 (Consistent Hashing). Let be a metric space, an index set, and a scale. A distribution over mappings is called a randomized -hash with diameter bound if:
-
(Diameter) For every in the support of and every , .
-
(Expected consistency) For every with , we have .
Moreover, if H is supported on a single mapping , we call it a deterministic -hash.
In Euclidean spaces, consistent hashing is input-independent and can be defined implicitly, rather than constructed algorithmically. In particular, a shared random seed suffices for all machines to obtain the same hash, and the random seed can be generated by a single machine. However, in doubling metrics, the situation is inherently different: consistent hashing must be computed from the input and thus requires communication between machines. Moreover, even if a machine stores the hash values of the points stored in the machine, it is not straightforward to determine the set of hash values for a given point . Due to this difference, we need to introduce the notion of neighborhood hash pairs for doubling metrics explicitly, defined as follows. Note that if we sample a -hash then the expected size of the set of neighborhood hash pairs is .
Definition 2 (Neighborhood hash pairs). Given a -hash with diameter bound for a metric space , the set of neighborhood hash pairs is
the collection of point-hash index pairs such that there is some point at distance at most from that is mapped to .
A subset is called a set of approximate neighborhood hash pairs if , and in addition, for every , it holds that .
MPX clustering and exponential distribution. We use the clustering algorithm of Miller, Peng, and Xu [MPX13], as generalized in [Fil24]. Given a set of centers with shifts , each vertex is assigned to the cluster of the center that maximizes . The following property is standard [MPX13, Fil24].
Proposition 1 (Ball Intersection). Let be a center that maximizes among all centers. If , then does not intersect the cluster of .
In the original paper [MPX13], the shifts are drawn from an exponential distribution. Let denote the exponential distribution with rate and density for . A key property is memorylessness: if , then for all , . In this case, since a value drawn from can be arbitrarily large, the diameter of clusters obtained by the MPX algorithm can be unbounded in the worst case. To avoid this, we use truncated exponential distribution denoted by , that is, an exponential distribution with rate parameter conditioned on the event that the outcome is at most . The density function is then . While has bounded support (at most ), it is no longer memoryless.
MPC primitives. We use the following standard MPC primitives in our algorithms.
Lemma 1 (Sorting in MPC; [GSZ11b]). Given comparable items distributed across machines with space per machine, the items can be sorted and redistributed so that each machine holds a contiguous block of items in the sorted order. The algorithm runs in MPC rounds with high probability, using total space.
Lemma 2 (Broadcast in MPC; [DN19]). Given two machine IDs , a machine can send, i.e., broadcast, a message of size at most to all machines in rounds, where denotes the machine with ID .
Lemma 3 (Net Construction in MPC; adapted from Lemma 6.3 of [ANOY14]). Let be an n-point metric space with doubling dimension ddim, which can be covered by a ball of radius R. Suppose that the points of X are distributed among machines with local memory , for a sufficiently large constant C. Let and . Then there is an MPC algorithm that with probability computes a -net of size at most . The following properties hold:
-
The required number of machines is . Thus the total space is .
-
The number of rounds is .
-
The computation time per machine per round is .
The net scale is determined by the space-per-machine ratio . Given a cluster of diameter , it is contained in a ball of radius around any point in the cluster, and thus the finest -net that fits in memory has , where . Note that Lemma 3 actually produces a -net, which is in particular a -net (every point is within distance of a net point) whose minimum interpoint distance is at least .
3 Consistent hashing for doubling metrics
In this section we show how to construct a -consistent hash with diameter bound (see Definition 1) for a metric space with doubling dimension ddim, working in the fully scalable MPC model with space per machine. Our construction achieves in expectation and terminates in MPC rounds using total space with high probability.
Filtser [Fil24] constructed sparse partitions for doubling metrics based on the classical clustering algorithm of Miller, Peng, and Xu [MPX13] (MPX) with “betailed exponential shifts” . In this section, we revisit this construction. However, in contrast to the worst-case analysis of [Fil24], we provide an alternative analysis based on the expected number of intersections. This improves the bound on the number of intersections. Building on this analysis, we develop a parallel algorithm that implements this construction in the MPC model.
The section is organised as follows. We first describe the MPX-based partition of [Fil24] for a single point set (Section 3.1) and establish an expected bound on the number of cluster intersections per ball. We then present a parallel construction (Section 3.2) that applies this partition across all clusters simultaneously in each MPC round, iterating until cluster diameters reach the target . Then we prove that using the sparse partition constructed by Algorithm 1, we can construct consistent hash functions for metric spaces with bounded doubling dimension in MPC in rounds and total space. We also provide a construction for approximate neighborhood hash pairs (see Definition 2). For many applications including facility location, k-median and k-means clustering and minimum-size clustering, it suffices to use approximate neighborhood hash pairs. However, for stochastic tree embedding, we need a representation of a hash stronger than approximate neighborhood hash pairs. We define this stronger representation and show how to obtain the representation in Section 3.3.
3.1 Sparse partition for doubling metrics
First, we describe the sparse partition construction of [Fil24], which uses the MPX clustering framework of Miller, Peng, and Xu [MPX13] for metrics of bounded doubling dimension ddim. Given a finite metric space of doubling dimension ddim and diameter , together with a -net of (for ), we partition into clusters of diameter at most . We assign to each net point a random shift drawn from a truncated exponential distribution with rate (for a constant to be determined later), truncated at . Each point is then assigned to the center that maximizes , i.e., the center whose “spreading wave” reaches first. The truncation enforces a diameter bound, while the exponential shifts ensure that nearby centers are unlikely to compete for the same region of space.
Lemma 4 (Sparse Partition for Doubling Metrics). Let be a finite metric space with doubling dimension ddim and diameter , and let be a -net of with . We can construct a partition such that
(i) All clusters of have a diameter at most .
A detailed exponential distribution with parameters , is an exponential distribution with parameter , where a value above collapses to
We can think of each center q waking up at time and spreading its wave, i.e., other points begin joining its cluster. See [Fil24] for further explanation and intuition.
(ii) For any ball (for ), the expected number of intersections between clusters and is at most . In particular, for , there are at most expected intersections.
Proof. Let be a -net. A point joins the cluster of the center that maximizes . All shifts satisfy (by truncation). For any point , there is a net point such that . Hence for and , . Since joins center , . This gives us . By the triangle inequality, the cluster centered at has diameter at most . This proves guarantee (i). Furthermore, any center whose partition intersects at a point must satisfy . Define . Note that only centers from have a nonzero chance to intersect . By the packing property, since is a -net with minimum interpoint distance , contained in a ball of radius :
Now we analyze the number of intersections. Denote by the number of clusters intersecting minus 1. That is, if the entire ball is contained in a single cluster, then ; in general the number of intersections is . In the rest of the analysis we consider only the centers in , as the clusters centered in all the other centers will not intersect . First, suppose that the shifts of the centers in were sampled using a classical (memoryless) exponential distribution . We will analyze based on this assumption. Later, we will incorporate truncation.
Order the centers in w.r.t. their values. That is where . Note that is a random variable. Recall that by Proposition 1 a center can intersect only if . It follows that for at least intersections to occur, it must be the case that . We think of the process of sampling the shifts as a gradual process, where we grow the shifts continuously, and occasionally some centers “die out”. Consider the point in time where there are exactly active centers remaining. At this point the identity of is already determined, while are yet undetermined. Denote by this set of yet active centers. For the event , it must happen that every active center will grow additionally by at most . Fix . By memorylessness, conditioned on still being active at this point, the additional amount by which it grows is distributed as an independent exponential random variable. The probability that it will grow by at most is
As the samples of the shifts are completely independent, we conclude
(2)
It follows that,
Next, we incorporate the truncation. Let denote the event that some center sampled a shift . Equivalently, the truncated shifts used by the algorithm are obtained by conditioning the auxiliary exponential shifts on .
By a union bound: for , and so
Since the number of clusters intersecting is , we conclude
Here holds as for , .
Remark 1 (Comparison with [Fil24]). Lemma 4 is closely related to the MPX-based construction of [Fil24, Theorem 10]. The crucial difference is that [Fil24] proves a worst-case bound of on the number of intersections, while Lemma 4 proves an expected bound with the vanishing-overlap property (VOP): as the radius of the ball goes to 0, the expected number of intersected clusters goes to 1. [Fil24] lacks VOP. Note that VOP cannot be guaranteed with respect to a worst-case bound: some infinitesimally small ball must intersect several clusters. VOP is crucial for our application, as we apply Lemma 4 repeatedly over multiple recursion levels. Accordingly, without VOP, the expected number of intersections would be exponential in the recursion depth. Moreover, Lemma 4 and its analysis are arguably superior, as they can be used to prove [Fil24] in a simpler and more straightforward way, and with better (hidden) constants. See Appendix A for additional details.
3.2 MPC construction of sparse partition
In this section we construct the algorithm (Algorithm 1) creating consistent hashing in MPC (see Theorem 3). Algorithm 1 lifts the sequential subroutine (Lemma 4) to the MPC model via a recursive strategy. At a high level, we start with a single cluster . At each recursion step, we are given a consistent hash and a set of approximate neighborhood hash pairs. The role of is to represent all the clusters intersecting the ball around each point . That is, induces a cover , which is a collection of possibly overlapping clusters. Morally, we iteratively execute the MPX algorithm with ever-decreasing diameter parameters. In each iteration, each point , rather than joining only the cluster corresponding to the winner of the MPX experiment, joins all clusters whose centers almost won the competition. Specifically, these are centers whose -gap from the winner is less than . Note that this includes all the clusters intersecting . This new overlapping collection of clusters is represented by the new set of approximate neighborhood hash pairs , on which we continue recursively.
Algorithm 1: MPC-Sparse-Partition((X, d_X), , , D, ddim, , , s)
input : Metric space (X, d_X) with doubling dimension ddim distributed among machines with local space s. Consistent hash , and the corresponding approximate neighborhood hash pairs , where every cluster induced by has diameter . Target scale , and padding parameter .
output: Consistent hash , Approximate neighborhood hash pairs .
1 if then
2 return // base case
3 , ;
4 // the collection of clusters induced by
5 foreach cluster (defined w.r.t. center ) do // in parallel
6 construct a -net of C via Lemma 3
7 sample a shift for every
8 broadcast to all machines holding neighborhood pairs corresponding to C
9 for do
10 let
11 let // the winner of x w.r.t. C
12 if // definition of the new consistent hash
13 for do
14 If then add to
15 return MPC-Sparse-Partition((X, d_X), , , , ddim, , , s)
Detailed description of Algorithm 1. The MPC-Sparse-Partition algorithm (Algorithm 1) constructs the hash and the approximate neighborhood hash pairs via a recursive coarse-to-fine clustering of . The procedure takes as input a consistent hash and approximate neighborhood hash pairs . Given , we associate with it the set of clusters . That is, the cluster consists of all the points such that is an approximate neighborhood hash pair in . Notice that the clusters might overlap with each other. In addition, we receive as input a parameter , where it is guaranteed that every cluster in has diameter at most . The algorithm is initialized with for all and , meaning that all the points are mapped into an arbitrary point . Accordingly, . We also provide a diameter which is a 2-approximation of diam() and can be computed in rounds by a standard algorithm (compute the maximum distance from an arbitrary point and multiply it by 2). The base case of the algorithm is when (line 1). Here we terminate and simply return the input , which already satisfies the diameter guarantee.
For the recursive case, we process all clusters in parallel. For this purpose, we rearrange the pairs in such that for each cluster , all pairs are stored in a block of consecutive machines, where is the center of . We can ensure this layout by sorting them in rounds using total space via Lemma 1.
Set and (line 3). For every cluster , we construct a ( )-net of via Lemma 3 (line 6). The choice of makes the net small enough to fit on one machine, while the lower bound ensures that the recursion stops with diameter at most . Indeed, we show below that every cluster created in this step has diameter at most . By the packing property and the choice of , , and hence fits on a single machine. Next, we implement Lemma 4 in a white-box fashion. Specifically, we sample for each in that machine (line 7), and broadcast to all machines storing pairs from (line 8). Then, we apply the MPX rule locally: each point finds the center maximizing (line 11). Also, let with . As might belong to more than one cluster of , we set only when . In this way, every point of has its new hash value .
However, we still need to compute a set of approximate neighborhood hash pairs. We say that is an almost-winner for if
For every and such that is an almost-winner of , we add to , the newly created approximate neighborhood hash pairs (line 14). Note that the definition of almost-winner is w.r.t. the target scale , and not to the current scale . This implies that in all but the last level, in the most likely scenario will join a single pair . Finally, after processing (in parallel) all the clusters , we make a recursive call with all the collected pairs and the new hash .
Diameter bound. We prove by induction that every cluster induced by has diameter at most at every recursive call MPC-Sparse-Partition((X, ), , , , ddim, , , ). The initial call satisfies this by the choice of .
Consider one recursive call, and fix a pair . Let be the cluster in which this pair was added. Since is a -net of , there is a net point with . Thus , as all shifts lie in . Moreover, is added to only if is an almost-winner for . Hence
where the last inequality uses and .
Now fix a cluster induced by . The above inequality shows that every point of lies within distance from . Therefore . Since the next recursive call uses diameter parameter , the induction continues.
Round and space complexities. We first analyze the recursion depth of the algorithm. Ignoring the final capped scale, the next diameter parameter is , where . Thus the diameter parameter decreases by a factor in each recursive step. With local space and assuming , we have . At the beginning of the algorithm, the diameter parameter is at most . Since the aspect ratio of is , . Hence the recursion depth is
Now we analyze the number of rounds used in each recursion step. The number of rounds depends on the size of and . Let . We first rearrange the pairs of to process the clusters of in parallel. This takes by Lemma 1. The next step is to construct a net for each cluster. Since we process all clusters in parallel, we can construct a net for every cluster in rounds in total by Lemma 3. For the broadcasting step, observe that the size of is at most . Thus we can broadcast the shifts for all points of in rounds in total for all clusters by Lemma 2. All remaining steps are local. Therefore, each recursion step uses rounds, and the total round complexity is . The total space complexity is clearly .
Theorem 3 (Consistent Hashing in MPC). Let , and be fixed, and let be a metric space with polynomially bounded aspect ratio and doubling dimension ddim where . There is an MPC algorithm that, given an n-point set distributed across machines with local memory of size , and access to a distance oracle for , constructs with high probability both:
(i) -hash with diameter bound .
(ii) a set of approximate neighborhood hash pairs .
The algorithm uses MPC rounds and total space.
Proof. Algorithm 1 is a recursive algorithm. Let be the parameters used for the th recursive call (the other parameters, , ddim, , , , are fixed). That is, is the current consistent hash, and is the corresponding approximate neighborhood hash pairs. Denote also by the collection of clusters induced by . is an upper bound on the diameter of every cluster in . Additionally, at initialization , and is an upper bound on diam(). Finally, after recursive calls is the output of the algorithm (and the result of Theorem 3), where .
Recall that we care here about the intersections of balls with radius (regardless of the diameter in each scale). We begin by arguing by induction on that is indeed a set of approximate neighborhood hash pairs for , w.r.t. the parameter . That is, for every point , it holds that . The fact that the diameter of every cluster in is bounded by was already argued for. The base of the induction, , holds trivially as there is only a single cluster. Suppose that the induction holds for , and we will prove it for . To correspond with the notation of Algorithm 1, we denote and . Suppose that a cluster centered at in intersects the ball at point . That is . Let be the previous center to which was mapped, and let be the cluster centered at . Denote also by the set of net points chosen for . In particular . Denote by the sampled shifts of the net points in . By our inductive hypothesis, as intersects at , it holds that . Let . As chooses , by Proposition 1 it follows that . In particular, was added to , as required.
We conclude that the output of our algorithm is valid. It remains to bound the expected number of approximate neighborhood hash pairs (per vertex). Fix a point and the ball with radius . Denote by the number of pairs containing in .
The coarsest level has (the entire space as a single cluster), and we want to bound , which corresponds to the final output of the algorithm.
Denote by the scale used for the MPX algorithms in recursion depth (i.e., to create , ). That is, . At the last level of recursion, when , we used . For any scale other than the last scale, we got a significant progress. Specifically, the algorithm sets . Thus for every , we have . We can assume that (as implies ; by bounding the hidden constant , we strictly guarantee the required geometric reduction ). We bound based on using conditional expectation. Fix . belongs to different clusters in . Fix cluster . The algorithm chooses a net and runs the MPX algorithm using scale . Following the proof of Lemma 4, the expected number of centers satisfying is bounded by . Indeed, the proof of Lemma 4 bounds precisely the number of centers whose -value is within of the maximum, before translating this into a bound on the number of intersected clusters. This is exactly the criterion used by Algorithm 1 to add pairs to from the cluster . We conclude:
Accordingly, by the law of total expectation,
Finally, by induction,
where in the last inequality we use the fact that is a geometric progression with jumps .
It remains to obtain the high-probability bound on the total space claimed in the theorem. By linearity of expectation, the expected number of stored pairs is at most . To amplify this expectation bound, run independent trials in parallel, aborting any trial as soon as it stores more than 2M pairs. By Markov's inequality, each trial is aborted with probability at most 1/2. Thus, by independence, the probability that all trials are aborted is polynomially small. Consequently, at least one trial succeeds with high probability. Since every trial uses space, the total space is .
3.3 Neighborhood oracles for consistent hashing
Throughout this subsection, denotes the finite input metric, with . The construction in Section 3.2 produces a -hash with diameter bound and approximate neighborhood hash pairs . We now strengthen this representation to support neighborhood queries for every radius . Here, the underlying metric for neighborhood queries is an extension of .
A metric space is called an extension of if and for all . For a hash , a partition map is an extension of if and
for every . Then we use to denote the restriction of on . By definition, . To define this representation, let be an extension of , and let be an extension of . Fix a radius scale .
Definition 3 (Neighborhood oracle). A neighborhood oracle for on at scale is a table with at most one record per pair , such that for every and ,
We call an oracle because it answers the following query: given and , report the IDs of all clusters that contain a point of and intersect . The answer is obtained by reporting for each record with .
Theorem 4. Under the assumptions of Theorem 3 for a finite input metric , there is an MPC algorithm that computes and simultaneously for all dyadic scales in the distance range of satisfying the following. There is a common metric extension of and randomized maps such that:
(i) Each is a -hash of with diameter bound .
(ii) Each is a neighborhood oracle for on X at scale .
The algorithm uses MPC rounds and total space, as in Theorem 3.
MPC Construction. For each dyadic scale , put and run Algorithm 1, executing the runs for different scales in parallel. Initially, all points belong to a single cluster with center , and we set .
At the beginning of each iteration, we are given a table along with and , and we initialize . Recall that is a set of clusters obtained by . For each cluster with center and each point , let denote the radius threshold with . Then for each in the net , let the threshold be
Here is the shift for in , and . Recall that we add to if and only if . In this case, we add to . Note that the clusters in may overlap. Thus, a pair might have more than one threshold in the same iteration. In this case, we retain only the record with the smallest threshold.
If this is the last iteration, we set , remove from all records for empty clusters (those with ), and return the remaining table . Otherwise, we pass to the next iteration together with and . In the base case, return the current table.
Analysis. The following lemma establishes properties (i) and (ii). Each approximate neighborhood hash pair contributes one table record. Its threshold candidates can be computed locally, and then the minimum is taken in MPC rounds using Lemma 1. Thus, the asymptotic round and total-space complexities remain unchanged.
Lemma 5. For the hashes and tables computed by the algorithm, there exists a common metric extension and extensions of satisfying (i) and (ii) of Theorem 4.
Proof. Let be the dyadic scales considered by the algorithm, and write , , and . Recall that each approximate pair contributes at most one record to for each .
For analysis, we define thresholds anew at each iteration, including for point–hash pairs absent from the stored tables. Fix a scale and use the parent clusters, nets, and shifts from the actual execution of Algorithm 1. Initially, assign threshold 0 to for every . At each iteration, start with an empty set of candidate thresholds. Consider every nonempty parent cluster with center and every point , including points outside . Let be the threshold of from the previous iteration. For each , evaluate by the same formula as above and generate the candidate threshold for . For each pair generated in this iteration, define its new threshold as the minimum of its candidates from this iteration only, retaining values greater than as well. Thus each iteration defines a unique threshold for every and every cluster center generated in that iteration. The threshold at termination is denoted by .
At every iteration, the pairs with threshold at most are exactly those computed by Algorithm 1. This holds initially. Inductively, a new threshold is at most if and only if some parent cluster with contributes a candidate with and . By the inductive hypothesis, is equivalent to , or , so these are precisely the conditions under which the algorithm adds to . The stored records use the same threshold updates, so the output table is
We now define a common metric extension . Start with the complete graph on , with edge lengths given by . For every scale , points , and , attach a distinct new vertex to by a single edge of length ; we call its anchor. Let be the set of all vertices, equipped with the shortest-path metric. This space may be infinite, but it is used only for analysis. All added edges have positive length and end at leaves, so distances within remain unchanged.
We now extend the hashes to the metric space constructed above. For each scale , define by for and, for , by
The following claims establish the required properties of this construction.
Claim 1. For every scale i, each cluster of has diameter at most .
Proof. For any two points with , we have by Section 3.2. Now consider a vertex . If it forms a singleton, its diameter is zero. Thus we focus on the first two cases: and . For the second case, . For the first case, is an approximate neighborhood pair, and thus by Section 3.2. Since , we have . Therefore, the diameter of each cluster induced by is at most .
We say a function is 1-Lipschitz on if for any two points . The following is a technical claim which will be used to prove property (i).
Claim 2. For every scale i and cluster center , the function is 1-Lipschitz on .
Proof. For each , the function is 1-Lipschitz. Taking the pointwise maximum of these functions over preserves this property, so is also 1-Lipschitz. Since is half the difference of these two 1-Lipschitz functions, it is 1-Lipschitz as well. Starting from the constant zero function, each threshold update takes pointwise minima and maxima of 1-Lipschitz functions, preserving this property.
Claim 3. For each scale i, is a neighborhood oracle for on X at scale .
Proof. Fix , and . Recall that is the threshold we defined above. Now it is sufficient to prove that if and only if .
Let . If , we have . This is because the initial threshold is zero, and at each iteration, the actual winner has , so the update preserves a zero threshold. By the Lipschitz property,
If , let be the anchor of and . Since , the third case in the definition of cannot apply to . In the first case, we have immediately, and in the second case, we have and hence . Therefore, by the Lipschitz property,
Thus, in any case.
Conversely, suppose and put . Since , we have and . In this case, for by the definition of . Moreover, . Therefore, the converse also holds.
Claim 4. For each scale i, is a -hash of .
Proof. By Claim 1, the diameter of each cluster is at most . Since , it suffices to show that the expected number of clusters intersected by a nonempty set of diameter at most is at most . If contains a leaf of edge length greater than , then is a singleton, and the bound is immediate. Otherwise, fix a point of . If , we replace it with its anchor. Every point of lies in , and . For each , choose with . The inequality in the proof of Claim 3 gives . In the beginning of the proof of Lemma 5, we observed that belongs to , the set of approximate neighborhood hash pairs computed by Algorithm 1 at scale . By the analysis in Section 3.2, the expected number of pairs in is at most . This bounds as required.
These claims establish properties (i) and (ii) of Theorem 4.
4 Applications
In this section, we provide several applications of Theorem 3. We observed that recent advances in the MPC model for Euclidean spaces are based solely on consistent hashing (actually on neighborhood hash pairs), and not on other Euclidean properties. Thus they can be extended to other metric spaces, provided that a consistent hashing scheme is available. Using Theorem 3, we observe that for doubling metrics we indeed can provide the required neighborhood hash pairs.
Observation 1. Let be fixed. Then for , there is an -round MPC algorithm that, given (the labels of) an -point metric space with doubling dimension , distributed among machines with local space , computes approximate neighborhood hash pairs for -hashes simultaneously for all distance scales. The total space is , and the success probability is at least .
4.1 Stochastic tree embeddings
In this subsection we obtain a stochastic embedding into trees (in fact HSTs) with optimal expected distortion. A metric embedding is a function between the points of two metric spaces and . A metric embedding is said to be dominating if for every pair of points , it holds that . The distortion of a dominating embedding is . A stochastic embedding from metric space into a metric family is a distribution over dominating embeddings from to . We say that the stochastic embedding has expected distortion if for every , .
An ultrametric is a metric space satisfying a strong form of the triangle inequality, that is, for all , . An equivalent definition [BLMN05] is that of an HST (hierarchically separated tree). HST is a metric space whose elements are the leaves of a rooted labeled tree . Each is associated with a label such that if is a descendant of then and iff is a leaf. The distance between leaves is defined as where is the least common ancestor of and in . Every HST embeds into a tree metric isometrically (i.e. with distortion 1). As it turns out, HSTs are in fact much more structured than general trees. Indeed, every HST embeds isometrically into (folklore), while general trees require distortion [Bou86].
Every n-point metric space stochastically embeds into a distribution over HSTs with expected distortion [FRT04, Bar04], which is also tight [Bar96]. In fact, there is an lower bound already for the grid graph [AKPW95], which is both planar and has constant doubling dimension. Stochastic embeddings into trees/HSTs have numerous applications, as they transform an arbitrary metric into a tree (at the cost of expected logarithmic distortion).
Recently, Goranci et al. [GJK 26] showed that the algorithm of [FRT04] can be executed on top of a consistent hash (instead of exact distances). In particular, they (implicitly) showed that given approximate neighborhood hash pairs for all distance scales, one can sample a stochastic embedding into HSTs.
Theorem 5 (Implicit in [GJK 26]). Fix , and . Let be a set of points in a metric space with distances between distinct points in , where . Suppose machines with local memory polylogn store along with the hash values on and a neighborhood oracle on at scale for a -hash of with diameter bound for each . Then an MPC algorithm can sample a stochastic embedding of into HSTs with expected distortion in rounds, using total space near-linear in the input size.
By plugging Theorem 4 into Theorem 5 above, we conclude that given a metric space with constant doubling dimension distributed among machines with local space for a constant , in rounds we can sample an embedding into an HST with optimal distortion , while using near-linear total space. More generally, our algorithm works for any metric space with doubling dimension as stated below.
Corollary 1. Let be fixed. Then for every , there is an MPC algorithm that, given (the labels of) an -point metric space with doubling dimension distributed among machines with local space , samples an embedding into an HST with expected distortion in rounds. The total space used is , and the success probability is at least .
Applications via stochastic tree embeddings. A stochastic tree embedding yields -approximation MPC algorithms for many optimization problems, including Earth Mover's Distance (EMD). Here, the standard approach is to embed the metric into an HST, and solve the problem on the HST. In particular, computing EMD on the HST yields an -approximation in the original metric, and can be performed in rounds in the fully scalable MPC model . For completeness, we include details in Appendix B.
Corollary 2. Let be fixed. For every , there is an MPC algorithm such that, given two -point sets in a point metric space with doubling dimension distributed across machines with local space , computes in rounds an -approximation to the Earth Mover's Distance between and . The total space used is , and the success probability is at least .
Although this approach follows a standard reduction, it already yields the first MPC algorithm for EMD in doubling metrics. In contrast, there are several previous works on EMD in Euclidean spaces. In a constant-dimensional Euclidean space, a -approximation to the EMD cost can be computed in rounds in the fully-scalable MPC model [ANOY14]. In high-dimensional Euclidean spaces, the best-known result for estimating the EMD cost in rounds relies on tree embeddings and incurs an -approximation factor .
4.2 Facility location
In this subsection we obtain a constant-factor approximation for the facility location problem (with uniform facility cost) in a constant number of rounds in the sublinear MPC model.
Given a metric space , a uniform opening cost and some constant , the objective function of Power-z (Uniform) Facility Location for a set of facilities is defined as
where . We denote the minimum value of a solution for the power-z (uniform) facility location by . Czumaj et al. [CGJ 24] implicitly proved the following meta theorem.
Theorem 6 (Implicit in [CGJ 24]). Consider an n-point metric space where all the distances are between 1 and , and suppose that there are machines with local memory that for every store approximate neighborhood hash pairs for -hash with diameter bound . Then there is an MPC algorithm in rounds that with probability at least computes a -approximate solution to the power-z (uniform) facility location problem. The total space used is .
By plugging Observation 1 into Theorem 6 above, we conclude that given a metric space with constant doubling dimension distributed among machines with local space for a constant , in rounds we can compute an -approximation to facility location, while using near-linear total space.
Corollary 3. Let be fixed. Then for every , there is an MPC algorithm that, given (the labels of) an -point metric space with doubling dimension distributed among machines with local space , computes a -approximate solution to the power- (uniform) facility location problem in rounds. The total space used is , and the success probability is at least .
4.3 k-median and k-means
In this subsection we obtain a bicriteria approximation for k-median and k-means in a constant number of rounds in the sublinear MPC model. In fact, the approximation is for a more general -objective. In the context of the sublinear MPC model, the case where k is smaller than local memory s can be solved using core-set techniques (construct core-sets locally in every machine, and gradually compose them into a single machine). The case of large k is much more challenging. Thus here, we consider the case where k is larger than the local memory space.
Given a metric space , an integer and some , the objective function of -Clustering for a center set with is defined as
Notice that the special cases and are called -Median and -Means, respectively. We denote the minimum value of a solution for -clustering by . Czumaj et al. [CGJ24] implicitly proved the following meta theorem.
Theorem 7 (Implicit in [CGJ 24]). Consider a metric space where all the distances are between 1 and , and suppose that there are machines with local memory that for every store approximate neighborhood hash pairs for -hash with diameter bound . Then for every , there is an MPC algorithm in rounds that with probability at least computes a set of centers whose connection cost is , where is the optimal -clustering cost.
By plugging Observation 1 into Theorem 7 above, we conclude that given a metric space with constant doubling dimension distributed among machines with local space for a constant , in rounds we can compute a -bicriteria approximation to the k-median and k-means, while using near-linear total space.
Corollary 4. Let be fixed. Then for every , there is an MPC algorithm that, given (the labels of) an -point metric space with doubling dimension distributed among machines with local space , computes a set of centers whose connection cost is in rounds, where is the optimal -clustering cost. The total space used is , and the success probability is at least .
4.4 Minimum-size clustering
In this subsection, we introduce a fully scalable -approximate algorithm for the r-gather problem, also known as minimum-size clustering, in rounds, as well as more general trade-offs between the approximation ratio and the round complexity. The r-gather problem can be viewed as the k-center problem with a minimum cluster-size constraint. More formally, this problem is defined as follows. Given a metric space and an integer , the r-gather problem asks for a partition of X into clusters, each of size at least r, minimizing the maximum cluster radius. More precisely, for a partition of X with centers , the cost is . We denote the optimal r-gather cost by . A minimum cluster-size constraint naturally arises in clustering applications for privacy and anonymization, where extremely small clusters may reveal sensitive information about individuals [APF 10, BKBL07]. From this motivation, this problem is introduced independently by [KM00] and [GMM00]. This problem is NP-hard in general metric spaces. Armon [Arm11] gave a tight 3-approximation in a general metric space. Recently, this problem has also been studied in several settings including the MPC and dynamic setting [EMMZ22]. More specifically, [EMMZ22] gave a fully scalable MPC algorithm computing an -approximate r-gather solution for points in in rounds and total space. Their construction is confined to Euclidean space, as it builds the near-neighbor graph via Euclidean locality sensitive hashing.
Our strategy here is to lift this algorithm to general doubling metrics using the neighborhood hash pairs of Observation 1. The MPC algorithm of [EMMZ22] consists of two steps: constructing an C-approximate -near neighbor graph G and computing a -ruling set on the square graph of . For an integer , we let denote the k-th power graph of G that has the same set of vertices as G, but in which two vertices are connected when their hop-distance in G is at most k. In particular, is called the square graph of G.
Definition 4 (Near-neighbor graph [EMMZ22, Definition 3.2]). Let be a metric space and , . A graph is a C-approximate -near neighbor graph if:
-
For every edge , .
-
For every vertex , either , or ,
where is the closed set of neighbors of .
More specifically, this algorithm first computes a C-approximate -near-neighbor graph G with different scales R. Here, r is given as an input, while C controls the approximation factor of the final r-gather solution. As once these near neighbor graphs G are constructed from
For a graph and an integer parameter be an integer, a subset is a -ruling set of if: (1) for every with , , and (2) for every , .
the metric space, the subsequent step of computing a ruling set on does not require further access to the metric space. Therefore, the original problem reduces to computing an approximate near-neighbor graph G.
In our setting, however, the size of the approximate near-neighbor graph we compute for each scale has quadratic size. Thus we cannot store it explicitly. Instead, we construct a compact representation of : we have a sparse graph and its square graph is a near-neighbor graph . This introduces one additional issue: since the original algorithm computes a ruling set on , we need to compute a ruling set for the 4th power graph of . Fortunately, the algorithm of [EMMZ22] for computing a ruling set is sufficiently general for our purpose: It can be used for computing a ruling set of the -th power graph of an input graph for any fixed . The round complexity depends on the maximum degree of , but even the trivial bound gives a space complexity sufficient for our purpose. This reduction is summarized in the following lemma.
Lemma 6 (Implicit in [EMMZ22]). Let be a fixed constant. Then for every , every , and arbitrarily small parameters . Consider an -point metric space of doubling dimension and all distances are between 1 and . For each scale parameter , a graph such that is an -approximate -near neighbor graph of is initially distributed across different machines. Then there is an MPC algorithm that computes an -approximate -gather solution in rounds, using local space and total space. The success probability is at least .
Now in the following lemma, we show how to compute a sparse representation of an -approximate -near neighbor graph using the neighborhood hash pairs obtained from Observation 1.
Lemma 7. Let , , , and . Let be an -point metric space of doubling dimension . There is an MPC algorithm that computes a graph of size such that is an -approximate -near neighbor graph of in rounds, using local space and total space. The success probability is at least .
Proof. Let be a -hash, and be the set of approximate neighborhood hash pairs obtained from Observation 1 with diameter bound . Recall that satisfies: (i) , where with ; and (ii) for every , . For each hash value in the image of , fix an arbitrary representative . Define the graph by
The size of is . This is because each pair contributes at most one edge to , and .
In the following, it suffices to show that is an -approximate -near neighbor graph of . First, we show that for every edge , . For every , we have , so . Thus . For an edge in , there exists a vertex with , so by the triangle inequality, .
Now we show that for every vertex , . Notice that in Definition 4, it is sufficient to satisfy one of the two conditions for every vertex . But we show that for every , the second condition always holds in our case. Let and . Since , we have , and therefore . Hence, . Similarly, , so , giving . Both and are adjacent to in , so , that is, . Therefore, is an -approximate -near neighbor graph of .
Now we analyze the round and space complexities of the algorithm. Using Observation 1, we compute in rounds with local space and total space. Selecting representatives requires one sorting step on the hash values, taking rounds. Forming the edges of requires, for each pair , looking up , which is another sorting step in rounds.
By combining Lemma 6 with Lemma 7, we have the following corollary.
Corollary 5. Let be a fixed constant. Then for every , every , and arbitrarily small parameters , given an -point metric space of doubling dimension , there is an MPC algorithm that computes an -approximate -gather solution in rounds, using local space and total space. The success probability is at least .
By setting and , we have the following corollary.
Corollary 6. Let be a fixed constant. Then for every , and for every small constant , given an -point metric space of a constant doubling dimension, there is an MPC algorithm that computes an -approximate -gather solution in rounds, using local space and total space. The success probability is at least .
5 Lower bounds
In this section, we provide lower bounds on the number of rounds for stochastic tree embeddings and consistent hashing. Recall that we work in the distance-labeled MPC model, where the input is an n-point subset distributed across machines, and the algorithm can access the metric only via distance queries of the form . In particular, we assume that no additional structural information (e.g., labels, embeddings, or sketches of the points) is available, and hence all information about the metric must be obtained through such queries.
5.1 Stochastic tree embeddings
As discussed above, stochastic tree embeddings are a central primitive in geometric MPC algorithms as they enable reducing many optimization problems on general metrics to tree metrics. Consequently, a fully scalable MPC algorithm for stochastic embeddings with small distortion yields efficient MPC algorithms for a wide range of optimization problems. While such embeddings are efficiently computable in Euclidean spaces, it is natural to ask whether similar algorithms can be achieved for general metrics.
In this subsection, we show that no such algorithm exists for general metrics in the fully scalable MPC model. In particular, we show that any fully scalable MPC algorithm for sampling an embedding of a general metric into a tree with polynomially bounded distortion using total space and local space requires a polynomial number of rounds. More generally, we show that this lower bound can be extended to any metric space with doubling dimension .
Our lower bounds for stochastic tree embedding and consistent hashing come from the query complexity for the closest pair problem: Given a metric space , the goal is to find two points that minimize . Indyk [Ind99] showed that any -approximation algorithm for the closest pair problem requires queries for a metric space with doubling dimension , where is a polynomial function of . We extend this lower bound to any metric space with doubling dimension ddim.
Lemma 8. Let be a polynomial function of with . Any randomized algorithm with access to a distance oracle of an -point metric space of doubling dimension ddim, where all distances are polynomial, that computes a -approximate closest pair with probability at least 2/3 requires queries in the worst case.
Proof. We use Yao’s minimax principle. For this purpose, we first define a distribution over distance functions on a set of points. We simply let . We partition into subsets of size with . A sample from is obtained by choosing an index uniformly at random and then by choosing an unordered pair of points of uniformly at random. Then the distance function is defined as follows.
Note that is a metric. Clearly, a c-approximate closest pair is , and it is a unique solution. Moreover, the doubling dimension of is at least and at most . To see this, observe that any ball of radius contains exactly points. These points are contained in the same subset . Thus to cover this ball, we need at least balls of half radius. Therefore, the doubling dimension is at least . For an upper bound, observe that a ball of radius less than contains at most two points, thus it can be covered by two balls of half radius. A ball of radius with can be covered by balls of half radius. A ball of radius at least can be covered by at most three balls of half radius. More specifically, we choose three sets among : the set contained in with smallest index, the set containing the center of , and the set contained in with largest index. Then we pick an arbitrary point from each of the three sets. The balls centered at these points with half radius contain . Therefore, in any case, a ball can be covered by balls of half radius, and thus the doubling dimension is at most .
Consider a deterministic algorithm that detects with probability at least 2/3. We prove a stronger claim: this holds even if knows the partition in advance. Assume to the contrary that uses oracle queries in the worst case. Since knows the partition in advance, we may assume that for a query of made by , are contained in the same subset . We also slightly modify so that if it queries , then it returns immediately and terminates. Let be the longest sequence of queries made by . Since is deterministic, and it terminates immediately after it reveals , the sequence of queries made by is a prefix of for any choice of . Note that the number of pairs contained in the same subset is . Since , there always exist pairs of points with such that the two points in each of the pairs are contained in the same subset. Then returns the same output for inputs for all . Thus the failure probability of is larger than . Therefore, this implies that any deterministic algorithm that detects with probability at least uses queries.
Therefore, by Yao’s minimax principle, any randomized algorithm that computes a c-approximate closest pair with probability at least 2/3 requires queries in the worst case. Notice that this lower bound holds even in the case that an input always comes from the support of .
Now we are ready to prove a lower bound for stochastic embeddings. In a general metric space, a fully scalable MPC algorithm for this problem requires a polynomial number of rounds.
Theorem 8. Let be any polynomial function of , and be fixed. Assume that there is an MPC algorithm with access to a distance oracle of an -point metric space of doubling dimension ddim that samples a stochastic embedding into a HST with expected distortion using total space and local space. Then the number of rounds used by is . In particular, for a general metric space where ddim = log n, the number of rounds used by is .
Proof. Let be an -point metric space with doubling dimension ddim. Let be a HST returned by on . Let denote the number of rounds used by to compute . Then the closest pair in can be found without making any distance queries for as follows. Let be the closest pair in , and let be the closest pair in . We have with probability at least . This is because, with probability at least , we have . Conditioned on this event, we have
and thus is an -approximate closest pair of .
Here, uses distance queries. To see this, observe that, in each round, each machine makes at most distance queries as it stores at most points. Since the number of machines is and the algorithm performs rounds, the distance queries made by are . In other words, we can compute an -approximate closest pair by issuing queries. By Lemma 8, this quantity should be . This implies that
Comparison with upper bounds in Corollary 1. If we set as a constant and , then the algorithm in Corollary 1 achieves distortion , the total space , local space , and the round complexity . We show that this holds for all metrics with doubling dimension . Theorem 8 implies that this restriction on is tight. More specifically, Theorem 8 implies that to achieve total space and round complexity simultaneously, we require for some constant .
5.2 Consistent hashing
We prove a lower bound on the number of rounds for sampling a consistent hash and computing its approximate neighborhood hash pairs. For a general metric, it requires a polynomial number of rounds in the fully scalable MPC model.
Theorem 9. Let and be fixed constants. Assume that there is an MPC algorithm with access to a distance oracle of an -point metric space of doubling dimension ddim that samples a -hash and computes the set of approximate neighborhood hash pairs with total space and local space. Then the number of rounds used by is . In particular, for a general metric space where ddim = log n, the number of rounds used by is .
Proof. We first show that sampling a -hash and computing approximate hash pairs requires queries. We use the diameter bound . Let for any . Consider the distribution over distance functions on a set of points defined in the proof of Lemma 8. By Lemma 8, any randomized algorithm that, given a distance function in the support of , computes a -approximate closest pair with probability at least requires queries.
Assume to the contrary that there is a randomized algorithm that samples a -hash and computes its approximate neighborhood hash pairs using queries in the worst case. Let be the closest pair in . We show that, regardless of the random choice made by , we can always detect . If , we immediately find by scanning for all points . More specifically, since the diameter bound is and , we have for any two distinct points with . Therefore, if there is a pair with , we can immediately conclude that . Note that scanning does not make a distance query. Then consider the case that . In this case, the set of approximate neighborhood hash pairs is since we set ; any other distinct point is at distance at least , so the locality condition excludes any additional pairs. Therefore, one can find by scanning without making any distance query. Therefore, there is a randomized algorithm that always finds using queries, which contradicts the proof of Lemma 8.
Now we prove the theorem. Since each machine has at most points and a machine can query only distances between pairs of points currently stored on it, the machine can make at most distance queries in each round. Thus in each round, the number of distance queries made by all the machines is at most . Since the total number of queries must be at least , the number of rounds is .
Comparison with upper bounds in Theorem 3. If we set as a constant, then the algorithm in Theorem 3 achieves the total space , the local space , and the round complexity . We showed in Theorem 3 that this holds for all metrics with doubling dimension for a constant . Theorem 9 implies that this restriction on is tight. More specifically, Theorem 9 implies that to achieve total space and round complexity simultaneously, we require for some constant .
Disclosure of AI assistance
The authors used ChatGPT Astra for discussions that helped inspire the ideas presented in Section 3.3. All other research ideas and contributions were independently developed by the authors. The authors take full responsibility for the content of this paper.
References
[AAH 23] AmirMohsen Ahanchi, Alexandr Andoni, MohammadTaghi Hajiaghayi, Marina Knittel, and Peilin Zhong. Massively parallel tree embeddings for high dimensional spaces. In Proceedings of the 35th ACM Symposium on Parallelism in Algorithms and Architectures, pages 77–88, 2023. 4, 5
[ABRR25] Amir Azarmehr, Soheil Behnezhad, Mohammad Roghani, and Aviad Rubinstein. Tight pair query lower bounds for matching and earth mover's distance. arXiv preprint arXiv:2510.16351, 2025. 36
[ACK19] Sepehr Assadi, Yu Chen, and Sanjeev Khanna. Sublinear algorithms for vertex coloring. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 767–786. SIAM, 2019. 3
[AEP18] Evangelos Anagnostopoulos, Ioannis Z Emiris, and Ioannis Psarros. Randomized embeddings with slack and high-dimensional approximate nearest neighbor. ACM Transactions on Algorithms (TALG), 14(2):1–21, 2018. 5
[AGMW10] I. Abraham, C. Gavoille, D. Malkhi, and U. Wieder. Strong-diameter decompositions of minor free graphs. Theory of Computing Systems, 47(4):837–855, 2010. 7
[AKPW95] Noga Alon, Richard M. Karp, David Peleg, and Douglas B. West. A graph-theoretic game and its application to the k-server problem. SIAM J. Comput., 24(1):78–100, 1995. preliminary version published in On-Line Algorithms 1991. 20
[AKS14] Dror Aiger, Haim Kaplan, and Micha Sharir. Reporting neighbors in high-dimensional euclidean space. SIAM Journal on Computing, 43(4):1363–1395, 2014. 5
[ANOY14] Alexandr Andoni, Aleksandar Nikolov, Krzysztof Onak, and Grigory Yaroslavtsev. Parallel algorithms for geometric graph problems. In Proceedings of the Forty-Sixth Annual ACM Symposium on Theory of Computing, STOC '14, page 574–583, New York, NY, USA, 2014. Association for Computing Machinery. 3, 5, 9, 21
[AP90a] Baruch Awerbuch and David Peleg. Sparse partitions. In Proceedings [1990] 31st Annual Symposium on Foundations of Computer Science, pages 503–513. IEEE, 1990. 4
[AP90b] Baruch Awerbuch and David Peleg. Sparse partitions. In Proceedings of the 31st IEEE Symposium on Foundations of Computer Science (FOCS), pages 503–513, 1990. 7
[APF 10] Gagan Aggarwal, Rina Panigrahy, Tomás Feder, Dilys Thomas, Krishnaram Kenthapadi, Samir Khuller, and An Zhu. Achieving anonymity via clustering. ACM Transactions on Algorithms (TALG), 6(3):1–19, 2010. 23
[Arm11] Amitai Armon. On min-max r-gatherings. Theoretical Computer Science, 412(7):573–582, 2011. 23
[ASW19] Sepehr Assadi, Xiaorui Sun, and Omri Weinstein. Massively parallel algorithms for finding well-connected components in sparse graphs. In Proceedings of the 2019 ACM Symposium on principles of distributed computing, pages 461–470, 2019. 3
[Bar96] Yair Bartal. Probabilistic approximations of metric spaces and its algorithmic applications. In 37th Annual Symposium on Foundations of Computer Science, FOCS '96, Burlington, Vermont, USA, 14-16 October, 1996, pages 184–193, 1996. 20
[Bar04] Yair Bartal. Graph decomposition lemmas and their role in metric embedding methods. In Algorithms - ESA 2004, 12th Annual European Symposium, Bergen, Norway, September 14-17, 2004, Proceedings, pages 89–97, 2004. 20
[BCF 23] Ostas Busch, Da Qi Chen, Arnold Filtser, Daniel Hathcock, D Ellis Hershkowitz, and Rajmohan Rajaraman. One tree to rule them all: Poly-logarithmic universal steiner tree. In 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), pages 60–76, 2023. 4
[BCF 25] Sayan Bhattacharya, Martin Costa, Ermiya Farokhnejad, Shaofeng H.-C. Jiang, Yaonan Jin, and Jianing Lou. Fully dynamic euclidean k-means. CoRR, abs/2507.11256, 2025. To appear in FOCS 2026. 7
[BCMT22] Soheil Behnezhad, Moses Charikar, Weiyun Ma, and Li-Yang Tan. Almost 3-approximate correlation clustering in constant rounds. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 720–731. IEEE, 2022. 3
[BDR 12] Costas Busch, Chinmoy Dutta, Jaikumar Radhakrishnan, Rajmohan Rajaraman, and Srinivasagopalan Srivathsan. Split and join: Strong partitions and universal steiner trees for graphs. In 53rd Annual IEEE Symposium on Foundations of Computer Science, FOCS 2012, New Brunswick, NJ, USA, October 20-23, 2012, pages 81–90. IEEE Computer Society, 2012. 4
[BGN14] Yair Bartal, Lee-Ad Gottlieb, and Ofer Neiman. On the impossibility of dimension reduction for doubling subsets of p. In Proceedings of the thirtieth annual symposium on Computational geometry, pages 60–66, 2014. 5
[BKBL07] Ji-Won Byun, Ashish Kamra, Elisa Bertino, and Ninghui Li. Efficient k-anonymization using clustering techniques. In International conference on database systems for advanced applications, pages 188–200. Springer, 2007. 23
[BKS17] Paul Beame, Paraschos Koutris, and Dan Suciu. Communication steps for parallel query processing. Journal of the ACM (JACM), 64(6):1–58, 2017. 3
[BLMN05] Yair Bartal, Nathan Linial, Manor Mendel, and Assaf Naor. Some low distortion metric ramsey problems. Discret. Comput. Geom., 33(1):27–41, 2005. 20
[BLT14] Costas Busch, Ryan LaFortune, and Srikanta Tirthapura. Sparse covers for planar graphs and graphs that exclude a fixed minor. Algorithmica, 69(3):658–684, 2014. 7
[Bou86] J. Bourgain. The metrical interpretation of superreflexivity in Banach spaces. Israel J. Math., 56(2):222–230, 1986. 20
[BW18] Aditya Bhaskara and Maheshakya Wijewardena. Distributed clustering via lsh based data partitioning. In International Conference on Machine Learning, pages 570–579. PMLR, 2018. 4
[CALNF 21] Vincent Cohen-Addad, Silvio Lattanzi, Ashkan Norouzi-Fard, Christian Sohler, and Ola Svensson. Parallel and efficient hierarchical k-median clustering. Advances in Neural Information Processing Systems, 34:20333–20345, 2021. 4
[CC22] Sam Coy and Artur Czumaj. Deterministic massively parallel connectivity. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, pages 162–175, 2022. 3
[CCL 23] Hsien-Chih Chang, Jonathan Conroy, Hung Le, Lazar Milenkovic, Shay Solomon, and Cuong Than. Covering planar metrics (and beyond): O(1) trees suffice. In 64th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2023, Santa Cruz, CA, USA, November 6-9, 2023, pages 2231–2261. IEEE, 2023. 4, 7
[CCL 24] Hsien-Chih Chang, Jonathan Conroy, Hung Le, Lazar Milenković, Shay Solomon, and Cuong Than. Shortcut partitions in minor-free graphs: Steiner point removal, distance oracles, tree covers, and more. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 5300–5331, 2024. 4, 7
[CCM23] Sam Coy, Artur Czumaj, and Gopinath Mishra. On parallel k-center clustering. In Proceedings of the 35th ACM symposium on parallelism in algorithms and architectures, pages 65–75, 2023. 4
[CF25] Jonathan Conroy and Arnold Filtser. How to protect yourself from threatening skeletons: Optimal padded decompositions for minor-free graphs. In Michal Koucký and Nikhil Bansal, editors, Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC 2025, Prague, Czechia, June 23-27, 2025, pages 2281–2292. ACM, 2025. 4, 7
[CFJ 22] Artur Czumaj, Arnold Filtser, Shaofeng H.-C. Jiang, Robert Krauthgamer, Pavel Veselý, and Mingwei Yang. Streaming facility location in high dimension via new geometric hashing. CoRR, abs/2204.02095, 2022. full version, preliminary version published in FOCS 2022. 4
[CGGJ25] Artur Czumaj, Guichen Gao, Mohsen Ghaffari, and Shaofeng H.-C. Jiang. Fully scalable MPC algorithms for euclidean k-center. In Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele Puppis, editors, 52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025, Aarhus, Denmark, July 8-11, 2025, volume 334 of LIPIcs, pages 64:1–64:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025. 3, 4, 5
[CGJ 24] Artur Czumaj, Guichen Gao, Shaofeng H.-C. Jiang, Robert Krauthgamer, and Pavel Veselý. Fully-scalable MPC algorithms for clustering in high dimension. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024, Tallinn, Estonia, July 8-12, 2024, volume 297 of LIPIcs, pages 50:1–50:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2024. 3, 4, 5, 21, 22
[CK14] Aruni Choudhary and Michael Kerber. Local doubling dimension of point sets. arXiv preprint arXiv:1406.4822, 2014. 5
[CPP19] Matteo Ceccarello, Andrea Pietracaprina, and Geppino Pucci. Solving k-center clustering (with outliers) in mapreduce and streaming, almost as accurately as sequentially. Proc. VLDB Endow., 12(7):766–778, March 2019. 6
[CPP24] Matteo Ceccarello, Andrea Pietracaprina, and Geppino Pucci. Fast and accurate fair k-center clustering in doubling metrics. In Proceedings of the ACM Web Conference 2024, pages 756–767, 2024. 4
[CPPU17a] Matteo Ceccarello, Andrea Pietracaprina, Geppino Pucci, and Eli Upfal. Mapreduce and streaming algorithms for diversity maximization in metric spaces of bounded doubling dimension. Proceedings of the VLDB Endowment, 10(5):469–480, 2017. 4, 6
[CPPU17b] Matteo Ceccarello, Andrea Pietracaprina, Geppino Pucci, and Eli Upfal. Mapreduce and streaming algorithms for diversity maximization in metric spaces of bounded doubling dimension, 2017. 6
[CSWZ16] Jiecao Chen, He Sun, David Woodruff, and Qin Zhang. Communication-optimal distributed clustering. Advances in Neural Information Processing Systems, 29, 2016. 4
[CZ24] Yi-Jun Chang and Da Wei Zheng. Fully scalable massively parallel algorithms for embedded planar graphs. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2024), pages 4410–4450. SIAM, 2024. 3
[DG 04] Jeffrey Dean, Sanjay Ghemawat, et al. Mapreduce: simplified data processing on large clusters. In osdi, volume 4, pages 137–150. USA, 2004. 3
[DG08] Jeffrey Dean and Sanjay Ghemawat. Mapreduce: simplified data processing on large clusters. Communications of the ACM, 51(1):107–113, 2008. 3
[DN19] Michael Dinitz and Yasamin Nazari. Massively parallel approximate distance sketches. In Proceedings of the 23rd International Conference on Principles of Distributed Systems (OPODIS 2019), pages 35:1–35:17, 2019. 9
[DPP23] Enrico Dandolo, Andrea Pietracaprina, and Geppino Pucci. Distributed k-means with outliers in general metrics. page 474–488, Berlin, Heidelberg, 2023. Springer-Verlag. 4, 6
[DY19] Hu Ding and Mingquan Ye. On geometric alignment in low doubling dimension. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 1460–1467, 2019. 5
[DY20] Hu Ding and Fan Yang. On metric dbscan with low doubling dimension. arXiv preprint arXiv:2002.11933, 2020. 5
[EMMZ22] Alessandro Epasto, Mohammad Mahdian, Vahab Mirrokni, and Peilin Zhong. Massively parallel and dynamic algorithms for minimum size clustering. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1613–1660. SIAM, 2022. 23, 24
[FFI 24] Arnold Filtser, Tobias Friedrich, Davis Issac, Nikhil Kumar, Hung Le, Nadym Mallek, and Ziena Zeif. Optimal padded decomposition for bounded treewidth graphs. CoRR, abs/2407.12230, 2024. 7
[Fil19a] Arnold Filtser. On strong diameter padded decompositions. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2019, September 20-22, 2019, Massachusetts Institute of Technology, Cambridge, MA, USA, pages 6:1–6:21, 2019. 7
[Fil19b] Arnold Filtser. Steiner point removal with distortion using the relaxed-voronoi algorithm. SIAM J. Comput., 48(2):249–278, 2019. 7
[Fil24] Arnold Filtser. Scattering and sparse partitions, and their applications. ACM Trans. Algorithms, 20(4):30:1–30:42, 2024. Preliminary version published in ICALP 2022. 4, 5, 7, 9, 10, 12, 34, 35
[Fil25] Arnold Filtser. On sparse covers of minor free graphs, low dimensional metric embeddings, and other applications. In Oswin Aichholzer and Haitao Wang, editors, 41st International Symposium on Computational Geometry, SoCG 2025, Kanazawa, Japan, June 23-27, 2025, volume 332 of LIPIcs, pages 49:1–49:16. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2025. 7
[FJL 25] Arnold Filtser, Shaofeng H.-C. Jiang, Yi Li, Anurag Murty Naredla, Ioannis Psarros, Qiaoyuan Yang, and Qin Zhang. Faster approximation algorithms for k-center via data reduction. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025. 4, 7
[FL22] Arnold Filtser and Hung Le. Locality-sensitive orderings and applications to reliable spanners. In Stefano Leonardi and Anupam Gupta, editors, STOC '22: 54th Annual ACM SIGACT Symposium on Theory of Computing, Rome, Italy, June 20 - 24, 2022, pages 1066–1079. ACM, 2022. 7
[FRT04] Jittat Fakcharoenphol, Satish Rao, and Kunal Talwar. A tight bound on approximating arbitrary metrics by tree metrics. J. Comput. Syst. Sci., 69(3):485–497, November 2004. preliminary version published in STOC 2003. 20
[FT03] Jittat Fakcharoenphol and Kunal Talwar. An improved decomposition theorem for graphs excluding a fixed minor. In RANDOM-APPROX, pages 36–46, 2003. 7
[Gha19] Mohsen Ghaffari. Massively parallel algorithms. URL: http://people.csail.mit.edu/ghaffari/MPA19/Notes/MPA.pdf, 2019. 3
[GJK 26] Gramoz Goranci, Shaofeng H-C Jiang, Peter Kiss, Qihao Kong, Yi Qian, and Eva Szilagyi. Tree embedding in high dimensions: Dynamic and massively parallel. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1181–1213. SIAM, 2026. 4, 20, 21
[GKL03] Anupam Gupta, Robert Krauthgamer, and James R. Lee. Bounded geometries, fractals, and low-distortion embeddings. In 44th Symposium on Foundations of Computer Science (FOCS 2003), 11-14 October 2003, Cambridge, MA, USA, Proceedings, pages 534–543, 2003. 8
[GMM00] Sudipto Guha, Adam Meyerson, and Kamesh Munagala. Hierarchical placement and network design problems. In Proceedings 41st Annual Symposium on Foundations of Computer Science, pages 603–612. IEEE, 2000. 23
[GSZ11a] Michael T Goodrich, Nodari Sitchinava, and Qin Zhang. Sorting, searching, and simulation in the mapreduce framework. In International Symposium on Algorithms and Computation, pages 374–383. Springer, 2011. 3
[GSZ11b] Michael T. Goodrich, Nodari Sitchinava, and Qin Zhang. Sorting, searching, and simulation in the mapreduce framework. In Proceedings of the 22nd International Conference on Algorithms and Computation, ISAAC'11, page 374–383, Berlin, Heidelberg, 2011. Springer-Verlag. 9
[GU19] Mohsen Ghaffari and Jara Uitto. Sparsifying distributed algorithms with ramifications in massively parallel computation and centralized local computation. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1636–1653. SIAM, 2019. 3
[IBY 07] Michael Isard, Mihai Budiu, Yuan Yu, Andrew Birrell, and Dennis Fetterly. Dryad: distributed data-parallel programs from sequential building blocks. In Proceedings of the 2nd ACM SIGOPS/EuroSys European conference on computer systems 2007, pages 59–72, 2007. 3
[IM15] Sungjin Im and Benjamin Moseley. Fast and better distributed mapreduce algorithms for k-center clustering. In Proceedings of the 27th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA '15, page 65–67, New York, NY, USA, 2015. Association for Computing Machinery. 6
[IN07] Piotr Indyk and Assaf Naor. Nearest-neighbor-preserving embeddings. ACM Transactions on Algorithms (TALG), 3(3):31–es, 2007. 5
[Ind99] Piotr Indyk. Sublinear time algorithms for metric space problems. In Proceedings of the thirty-first annual ACM symposium on Theory of computing (STOC 1999), pages 428–434, 1999. 26
[JLN 05] Lujun Jia, Guolong Lin, Guevara Noubir, Rajmohan Rajaraman, and Ravi Sundaram. Universal approximations for tsp, steiner tree, and set cover. In Harold N. Gabow and Ronald Fagin, editors, Proceedings of the 37th Annual ACM Symposium on Theory of Computing, Baltimore, MD, USA, May 22-24, 2005, pages 386–395. ACM, 2005. 4, 6
[KLMN05] Robert Krauthgamer, James R. Lee, Manor Mendel, and Assaf Naor. Measured descent: a new embedding method for finite metrics. Geometric and Functional Analysis, 15(4):839–858, 2005. preliminary version published in FOCS 2004. 7
[KM00] DR Karget and Maria Minkoff. Building steiner trees with incomplete global knowledge. In Proceedings 41st Annual Symposium on Foundations of Computer Science, pages 613–623. IEEE, 2000. 23
[KPR93] Philip Klein, Serge A. Plotkin, and Satish Rao. Excluded minors, network decomposition, and multicommodity flow. In Proceedings of the twenty-fifth annual ACM symposium on Theory of computing, STOC '93, pages 682–690, New York, NY, USA, 1993. ACM. 7
[KSV10] Howard Karloff, Siddharth Suri, and Sergei Vassilvitskii. A model of computation for mapreduce. In Proceedings of the twenty-first annual ACM-SIAM symposium on Discrete Algorithms, pages 938–948. SIAM, 2010. 3
[LWXF25] Ting Liang, Xiaoliang Wu, Jinhui Xu, and Qilong Feng. The distributed algorithms for the lower-bounded k-center clustering in metric space. Theoretical Computer Science, 1027:114975, 2025. 6
[MPP19] Alessio Mazzetto, Andrea Pietracaprina, and Geppino Pucci. Accurate mapreduce algorithms for k-median and k-means in general metric spaces, 2019. 6
[MPX13] Gary L. Miller, Richard Peng, and Shen Chen Xu. Parallel graph decompositions using random shifts. In Guy E. Blelloch and Berthold Vöcking, editors, 25th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA '13, Montreal, QC, Canada - July 23 - 25, 2013, pages 196–203. ACM, 2013. 9, 10
[MZZ24] Kian Mirjalali and Hamid Zarrabi-Zadeh. Massively parallel and streaming algorithms for balanced clustering. Theoretical Computer Science, 983:114296, 2024. 6
[NS22] Danupon Nanongkai and Michele Scquizzato. Equivalence classes and conditional hardness in massively parallel computations. Distributed Comput., 35(2):165–183, 2022. 3
[OS26] Eunjin Oh and Hyeonjun Shin. Fully Scalable MPC Algorithms for WSPD in Doubling and Euclidean Spaces. In 34th Annual European Symposium on Algorithms (ESA 2026), pages 88:1–88:16, 2026. 3, 5
[Whi12] Tom White. Hadoop: The definitive guide. "O'Reilly Media, Inc.", 2012. 3
A Comparison with [Fil24]
In this appendix we expand on Remark 1. We will use the notation from this paper to describe [Fil24] as well (the notation changes are cosmetic). Lemma 4 follows the same MPX-based framework as [Fil24, Theorem 10]: choose a net of centers, assign a random shift to every center , and assign each point to the center maximizing . The difference is in the distribution used to sample the shifts , and, more importantly, in the analysis.
Lemma 4 samples the shifts using (the more common) truncated exponential distribution, where each sample is conditioned to be in (recall ). In contrast, [Fil24] used a betailed exponential distribution, where one samples from a classical exponential distribution with parameter , and every value above collapses to . That is, . Note that the betailed exponential distribution has a point mass (an atom) at the threshold , while the truncated exponential distribution is smooth throughout.
The analysis of [Fil24] proceeds in two steps. Fix a point , and indices , . First, ignoring the betailing, one orders the centers according to their values . It is shown that, with probability at least , it holds that . Second, [Fil24] incorporates the “betailing”. The probability that different shifts (among the nearby centers) are betailed (i.e. sampled the value ) is at most . Accordingly, at least one of will not be betailed, and hence some center among preserves a gap of more than from (w.r.t. the actually used betailed shifts). As a corollary, there will be at most intersections. Finally, the Lovász Local Lemma is used to turn these per-vertex high-probability events into a worst-case guarantee.
The analysis of [Fil24] is a global argument, based on the fact that it is highly unlikely that many of the shifts of the nearby centers are simultaneously betailed. In contrast, Lemma 4 uses a smooth, straightforward argument to bound the expected number of intersections, and then incorporates truncation using simple conditional expectation. In fact, Lemma 4 and its analysis are arguably superior, as they can be used to prove [Fil24] in a simpler and more straightforward way (without relying on the more complicated global argument), and with better hidden constants. Indeed, following the proof of Lemma 4, recall that stands for the number of additional clusters intersecting . By eq. (2) it holds that
Then, similarly to eq. (4), we incorporate the truncation and obtain
Thus the simplified analysis yields the desired high-probability bound directly, after which the same Lovász Local Lemma argument as in [Fil24] gives the worst-case sparse-partition guarantee. This is the sense in which Lemma 4 and its analysis are arguably superior: they provide the expected VOP guarantee needed here, while also giving a simpler proof route (with better hidden constants) to the earlier worst-case guarantee.
B MPC implementation details for EMD
In this section, we show how to obtain an -factor approximation for the Earth Mover's Distance in MPC rounds in a metric space of doubling dimension at most , for every , where is the local space complexity. Let be a metric space of doubling dimension ddim. For any two finite point sets with , the Earth Mover's Distance between and is defined as where the minimum is taken over all one-to-one matchings between and .
Greedy algorithm for EMD. Let T be the random HST returned by the MPC algorithm in Corollary 1 applied to the metric induced by . We can view T as a rooted labeled tree. Then, for every pair of points of , the expected distortion of under T is at most , which is for constant . The following greedy algorithm computes an optimal matching in the tree metric T: Process the nodes of T in a bottom-up fashion. For each node v, after all its children have been processed, match as many currently unmatched points of A and B inside the subtree rooted at v as possible, and pass the remaining unmatched excess to the parent. The cost of this algorithm can be computed in the fully-scalable MPC model as follows.
MPC implementation. Let be the local memory bound, for a fixed constant . For each node , let denote its descendant leaves and let . If is the distance label of , with zero labels at the leaves, realize as a weighted tree with edge weights . Then, writing for the root,
Indeed, every matching crosses the edge from to its parent at least times, and the bottom-up greedy algorithm attains equality for every edge. After applying Corollary 1 to construct a HST, each point has an ordered list of labels, one for each level. Then using these labels, we can compute in MPC rounds.
To relate this cost to the original metric, fix an optimal matching between and under . Since dominates , every matching has at least its original cost in , and hence . On the other hand, is also a feasible matching in , so
where denotes distance in . We repeat this times in parallel, and return the smallest value. This proves Corollary 2.
Lower bound for general metrics. In a general metric, the situation is significantly more challenging. More specifically, [ABRR25] showed that, for every , there exists a constant such that estimating the unnormalized EMD cost of two disjoint -point sets in a -metric within an -additive error requires distance queries. Here the unnormalized cost is times the EMD of the uniform probability distributions on these sets, and lies in . For any MPC algorithm with local memory and total memory , for a constant with , it makes at most distance queries between points stored on the same machine in each round. Therefore, for , estimating the EMD cost within a multiplicative error of requires rounds, since the EMD cost is at most in this case. This shows a sharp contrast between a constant-dimensional Euclidean space and a general metric space.