Paper commentary
Fast Approximate $\ell_p$ Chamfer Distance via Lopsided Embeddings and Structured JL
Fast algorithms approximate the ℓp Chamfer distance using lopsided embeddings
- Problem Exact Chamfer distance takes quadratic time, which is a bottleneck for large point sets. Fast ℓ2 methods trailed the ℓ1 runtime, and the general case 1 < p ≤ 2 was open.
- Method The paper maps ℓp points into ℓ1 with a dense random matrix T, then runs the ℓ1 Chamfer algorithm on them. For Euclidean data, a Toeplitz Fast Johnson-Lindenstrauss Transform shrinks dimension first.
- Results The ℓ2 runtime is O(nd(log log n + log(1/ε))/ε²), matching the recent ℓ1 result and dropping the earlier log n factor.
Why the exact Chamfer sum is slow
The Chamfer distance from A to B sums, over every point a in A, the distance from a to its nearest point in B. Computed exactly, the naive method needs O(n²d) time, so the quadratic cost quickly becomes the bottleneck. The problem bites hardest for large-scale 3D models and high-dimensional feature embeddings from deep neural networks. A fast approximation algorithm is therefore needed rather than the exact sum.
The first improvement over the naive O(dn²) algorithm came from [SMFW04], which runs nearest neighbor queries against a data structure storing B. Pairing this framework with low-dimensional approximate nearest neighbor methods gives a (1 + ϵ)-approximation with O(n(1/ε)^O(d) log n) running time.
[FI25] then cut the ℓ1 cost to O(nd(log log n + log(1/ε))/ε²). Extending that efficiency to the ℓ2 norm and the range 1 < p ≤ 2 remained an open challenge. ℓ2 is the default metric in many embedding spaces, such as ℓ2-normalized embeddings in contrastive learning, so that gap matters in practice.
The paper's own response is to give a fast algorithm for the general case 1 < p ≤ 2 and then to handle the Euclidean case separately. For the Euclidean case, it uses a Fast Johnson-Lindenstrauss Transform based on Toeplitz matrices and re-analyzes the ℓ1 algorithm in ℓ2.
Does an intermediate p track EMD better
The authors build a small synthetic test to see whether the choice of p changes how Chamfer ranks point-cloud pairs. Each pair starts from a 40-point reference cloud drawn i.i.d. from a standard Gaussian in R^64, and the partner cloud is then corrupted. The corruption uses one of three families: a dense shift, a many-to-one collapse, or sparse spikes, each controlled by a parameter t in [0, 1].
Dense-shift moves every point by a common random offset plus Gaussian noise, so the change is diffuse across the cloud. Sparse-spikes changes only a small fraction of points, so the corruption stays concentrated on outlier-like points. Because the three families respond to t differently, the authors fit a calibration curve from t to expected EMD for each family.
They pick 10 target EMD levels equally spaced in [0.8, 2.6] and invert each curve to find the matching t. With 3 families and 15 samples per target, each seed yields 450 point-cloud pairs.
For each pair, the authors compute exact EMD and the symmetric Chamfer value CHp(A, B) + CHp(B, A) for p = 1, 1.5, and 2. Each measure ranks the 450 pairs, and the Spearman rank correlation with the EMD ranking scores how well it orders pairs. Table 1 reports the results for five seeds, and for seed 0 the averages are 0.8783 for p = 1.0, 0.8817 for p = 1.5, and 0.8802 for p = 2.0.
Seed 1 gives 0.8895, 0.8916 and 0.8870, and seed 2 gives 0.8898, 0.8917 and 0.8889 for p = 1.0, 1.5 and 2.0. Across all five seeds, p = 1.5 has the highest average Spearman correlation, so the ordering holds in every run. The margins are narrow, though: in seed 3 the p = 2.0 value of 0.8896 sits just under p = 1.5 at 0.8903.

Table 1 : Spearman correlation between symmetric ℓp-Chamfer distance and exact Euclidean EMD across 5 random seeds. Each seed uses n = 40, d = 64, and 450 generated point-cloud pairs. In every seed, the intermediate choice p = 1.5 attains the highest correlation.
Original paper · CC BY 4.0The authors explain the pattern with a tradeoff between the two extremes of p. The ℓ1 Chamfer distance is more influenced by diffuse high-dimensional shifts, which matches what dense-shift produces. The ℓ2 Chamfer distance is more affected by sparse large perturbations and by mismatch from collapse. The intermediate choice p = 1.5 sits between these two behaviors, so it tracks EMD slightly better in these synthetic runs.
The authors also note that Chamfer can be preferable to EMD for other reasons, citing a mean-shape example from [FSG17a].
Lopsided embeddings for 1 < p < 2
The key idea is a dense random matrix T that maps ℓp points into ℓ1, so an ℓ1 Chamfer algorithm can run on the embedded points. The embedding is weaker than a Johnson-Lindenstrauss map: it doesn't dilate distances, but it does keep their norms from shrinking. The authors argue this is enough, because Chamfer distance is a sum of nearest-neighbor distances and only those need to be preserved.
For a fixed vector v, the expected gap between the ℓ1 norm of Tv and the ℓp norm of v is bounded as follows. \[ \mathbb{E}\big[\,\big|\|Tv\|_1-\|v\|_p\big|\,\big]\le \varepsilon\,\|v\|_p \] With probability 1 − δ, the contraction ‖Tv‖₁ ≥ (1 − ε)‖v‖_p holds for every v in the point set V, and m = poly(log n, ε⁻¹, δ⁻¹) rows suffice.
The algorithm has two steps: apply T with Fast Matrix Multiplication, then run the ℓ1 Chamfer algorithm on the embedded points. Because non-contraction must hold for all n² pairwise differences, m is polylogarithmic in n. Applying T through FMM costs O(nd · poly log m), by Lemma 2.1, which as stated needs d ≥ m^(2K) with K ≈ 11.76. Theorem 3.2 writes the condition as d ≥ m, so the paper's own statements of the dimension condition differ, and both are kept here as written.
The lower bound holds because, for the minimizer b*, the embedded norm is at least (1 − ε) times the ℓp distance, which gives the next inequality. \[ \mathrm{CH}_1(TA,TB)\ \ge\ (1-\varepsilon)\,\mathrm{CH}_p(A,B) \] For the upper bound, the authors take expectations and apply Markov's inequality, so with probability .99 the error is O(ε)·CH_p(A, B).
Together these give CH₁(TA,TB) = (1 ± O(ε))CH_p(A,B), which is why the ℓ1 answer is a valid ℓp answer.
Combining this with the ℓ1 algorithm gives Theorem 3.4, with runtime O(nd · poly(log log n + log(1/ε))/ε²) at probability .9. A median trick raises the success probability to 1 − δ at a cost of log(1/δ) repetitions. The original lemma covers only target spaces ℓq with q in (1, 2), so the authors re-check the proof for q = 1.
The ℓ2 case: a structured JL step and a QuadTree bound
The [FI25] framework uses QuadTrees to give crude estimates Da of each point's nearest-neighbor distance, and its runtime depends on the approximation factor F of that step. For ℓ1 the authors prove F = O(min(d, log n)), so the ℓ2 case needs its own analysis of F. Theorem 2.3 gives total time O(nd log log n + n(d + F/ε²) log(F/ε²)), so a smaller F directly lowers the cost.
The Euclidean route first shrinks the dimension with a Toeplitz FJLT to m = O(log²n/ε²) and then works in that dimension. Since the QuadTree needs only a crude expected estimate, the authors apply Lemma 2.2 with failure probability .01 and approximation factor 1. This gives m = O(log²n), and the authors argue that the constant JL distortion is absorbed into the already crude factor.
The FJLT is therefore used only inside the QuadTree stage, not as a black-box reduction of the whole Chamfer instance. The FJLT runs in O(d log m) time because it is built from Toeplitz matrices rather than full-dimensional FFTs.
A QuadTree hashes each point into shifted grid cells, and points that share a cell at level k lie within 2^k √m in ℓ2. The expected estimate satisfies E D_a ≤ F · opt(a) with F = O(min(m, √m log n)). With m of order log²n, this bound gives F of order log²n, which is the factor the authors need.
Theorem 4.4 then gives an ℓ2 runtime of O(nd(log log n + log(1/ε))/ε²) with probability .9. When d is at most O(log²n), the FJLT is skipped and m is set to d. For larger d, the FJLT adds O(nd log log n) time before the low-dimensional algorithm runs. The authors note that an earlier tree-embedding analysis for ℓ2 took quadratic time, which is the gap this framework closes.
MaxSim and streaming updates
MaxSim sums, over tokens a in A, the largest inner product with a token in B, for vectors on the unit sphere. For unit vectors, the identity ‖a − b‖² = 2 − 2⟨a, b⟩ turns maximizing an inner product into minimizing a squared distance. The authors use this identity to reuse the ℓ2 Chamfer algorithm of Theorem 4.4 for MaxSim. Theorem 5.2 gives an additive O(εn) approximation to MaxSim(A, B) for normalized sets A, B.
The runtime is O(nd(log log n + log(1/ε))/ε²) when d ≥ poly log n.
The streaming setting covers point sets that arrive with coordinate updates under the dynamic turnstile model. Both projections, the Toeplitz FJLT and the lopsided embeddings, are linear maps that don't depend on the data. So T(v + Δ) = Tv + TΔ, and the algorithm can keep the low-dimensional sketches up to date as updates arrive. Once the stream ends, the solver of [FI25] runs as a black box on the sketches.
This cuts the memory from O(nd) raw coordinates to O(n poly(log n)).
Table 2 places these results beside the earlier algorithms, listing time, space and streaming support for each. The authors mark only their own rows and the [BIJ+23] and [FI25] rows as streaming-relevant in the comparison. The authors prove an Ω(n)-bit space lower bound for any randomized constant-pass streaming algorithm with a constant-factor approximation to the ℓp Chamfer distance, for p ≥ 1.
The proof reduces from two-party set disjointness, where Alice and Bob encode their vectors in the stream. So the upper bound's linear-in-n space is near the best possible for these streams.

Table 2 : Comparison of (1 + ε)-approximate Chamfer Distance Algorithms for n points in d dimensions. Our work is the first to achieve near-linear time for the intermediate range 1 < p ≤ 2, extend the ℓ1 state-of-the-art runtime to ℓ2 and ColBERT MaxSim, and support space-efficient streaming. The time complexity of intermediate norms and MaxSim assumes d ≥ poly log(n).
Original paper · CC BY 4.0 · Ying Feng, David P. Woodruff · Fast Approximate $\ell_p$ Chamfer Distance via Lopsided Embeddings and Structured JL · Original paper figure · Extracted the figure area from page 3 of the original PDF.Runtime and memory against the unsketched baseline
The authors ran their sketched method on synthetic sets in R^2048, with n growing from 1,000 to 20,000 on a single NVIDIA T4 GPU. Their sketch projects the points down to a target dimension of m = 64. The baseline is the unsketched algorithm of [BIJ+23], which runs QuadTrees and importance sampling directly in the original high-dimensional space.
That baseline has a theoretical time cost of O(nd log n), while the authors' method keeps the d-dependence near-linear.
The exact method computes the full O(n^2 d) distance matrix and runs out of memory beyond n = 10,000. At n = 20,000 the sketched method runs in 5 ms, while the unsketched baseline takes 51 ms. The authors attribute the baseline's higher constant overhead to operating directly in R^2048. Figure 1 (Left) shows the sketched method's execution time staying flat near the GPU noise floor across the tested point counts.
Memory is where the gap is largest, because the baseline must keep the high-dimensional inputs to build its quadtrees. The unsketched baseline consumes 649 MB at n = 20,000. Its peak memory at n = 20,000 is 41 MB, which the authors describe as roughly a 15× reduction over the linear unsketched baseline.
For the timing and memory runs, the authors used [BIJ+23] as the downstream solver instead of [FI25]. They chose this because efficient bit-level implementation of [FI25] was beyond the focus of their experiments. The authors read this as showing that the embedding and dimension reduction speed up any downstream ℓ1 solver.
Accuracy cost of the projections
The sketched method's error is measured against the unsketched baseline [BIJ+23], not against an exact value. As expected, the unsketched baseline gives smaller error, because it runs directly in the ambient space R2048 while the sketch adds distortion through dimensionality reduction. The distortion still stays small in practice, with the relative error of the sketched method below 1% in these experiments.
The largest mean error peaks at just 0.622%, which Table 3 reports across the values of N. Table 3 lists the mean relative error for [BIJ+23] and for the sketched method at N values of 1000, 2000, 5000 and 10000.
![Table 3: Mean relative error (%) for [BIJ+23] and our method across different values of N. Results
are reported as mean±standard deviation](/papers/af65be94-df4a-495e-b528-92e1039c3712/figures/figure-2378a8d9f05f2fc07345c60d28f3945a.png?thumb=512)
Table 3 : Mean relative error (%) for [BIJ+23] and our method across different values of N. Results are reported as mean±standard deviation.
Original paper · CC BY 4.0To check the lopsided embedding together with the Chamfer algorithm, the authors compute the ℓ1.5 Chamfer distance on GloVe word embeddings. Theorem 3.2 is the result this check targets, and Figure 1 (Right) plots the relative error against the importance sampling budget s. The error decays quickly as the budget grows, which the authors tie to their theoretical guarantees.
With a sample budget of just s = 10, the error is 1.44%.
The authors read this curve as support that the weak guarantees of the lopsided embedding are enough to preserve the ℓp Chamfer distance in ℓ1. The weak guarantees in question are non-contraction and a bounded first moment, as stated in Lemma 3.1. The experiment uses one dataset, GloVe, so it doesn't show how the error behaves on other embedding sets.
Limitations: where the results stop
The results stop short of a fully tight bound in the plain model, where the upper bound keeps a log log n factor gap to the naive Ω(nd) lower bound. The authors say that removing this overhead, or proving a matching lower bound, would be interesting. The gap matters because the headline runtime is O(nd(log log n + log(1/ε))/ε²), so the log log n term is the part that remains open.
The general case for 1 < p < 2 depends on the dimension condition d ≥ poly(log n), since that is where the FMM step gives a near-linear runtime in d. The MaxSim result also assumes d ≥ poly log n, so the ColBERT runtime claim has the same restriction. The streaming upper bound applies to dynamic turnstile updates, and the matching Ω(n) lower bound holds for randomized constant-pass algorithms only.
The empirical evaluation uses synthetic data and GloVe on a single GPU setup, which the authors list as a limitation. The timing runs use [BIJ+23] as the downstream solver, so they don't measure the [FI25] implementation. The accuracy numbers are relative to the unsketched [BIJ+23] baseline rather than to an exact value.
Paper info
- Authors
- Ying Feng, David P. Woodruff
- Venue
- arXiv · Preprint
- First published
- 2026-11-8
- Added
- 2026-11-10
- Updated
- 2026-11-8
- Version
- v1
- arXiv
- 2611.11151
- Category
- cs.DS · cs.LG
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
For two $d$-dimensional point sets $A, B$ of size $n$, the Chamfer distance from $A$ to $B$ is defined as $\text{CH}(A,B)=\sum_{a \in A} \min_{b \in B} \mathsf{dist}(a, b)$, where $\mathsf{dist}$ is some underlying distance measure. We present efficient algorithms for approximating the Chamfer distance under the $\ell_p$ norm for $1 < p \le 2$. For the general case $1 < p < 2$, we utilize lopsided $\ell_p$ to $\ell_1$ embeddings with weak guarantees. We show that they are sufficient for preserving the Chamfer distance. In the high-dimensional regime, we use Fast Matrix Multiplication techniques to speed up the lopsided embeddings. These lead to $O(nd\cdot \mathrm{poly}(\log \log n, \log(1/\varepsilon))/\varepsilon^2)$ total time. For the specific Euclidean case ($p=2$), we leverage the Fast Johnson-Lindenstrauss Transform based on Toeplitz matrices and re-analyze the previous $\ell_1$-specific Chamfer algorithm in $\ell_2$. These achieve a runtime matching the recent state-of-the-art $\ell_1$ result of $O(nd(\log \log n + \log (1/\varepsilon))/\varepsilon^2)$, improving upon the previous $O(nd \log n/\varepsilon^2)$ bound for $\ell_2$. We also give additional results for the angular distance and upper and lower bounds in the streaming setting.
Quote from the paper
Ying Feng, David P. Woodruff (2026). Fast Approximate $\ell_p$ Chamfer Distance via Lopsided Embeddings and Structured JL. arXiv:2611.11151v1. https://arxiv.org/abs/2611.11151v1
BibTeX
@misc{feng2026fast,
title = {{Fast Approximate $\ell_p$ Chamfer Distance via Lopsided Embeddings and Structured JL}},
author = {Ying Feng and David P. Woodruff},
year = {2026},
eprint = {2611.11151},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.11151v1}
}