Near-Linear Time Algorithm for the Chamfer Distance
Ainesh Bakshi, Piotr Indyk, Rajesh Jayaram, Sandeep Silwal, Erik Waingarten
Abstract
For any two point sets A, B ⊂ R d of size up to n, the Chamfer distance from A to B is defined as CH(A, B) = a∈A min b∈B d X (a, b), where d X is the underlying distance measure (e.g., the Euclidean or Manhattan distance). The Chamfer distance is a popular measure of dissimilarity between point clouds, used in many machine learning, computer vision, and graphics applications, and admits a straightforward O dn 2 -time brute force algorithm. Further, the Chamfer distance is often used as a proxy for the more computationally demanding Earth-Mover (Optimal Transport) Distance. However, the quadratic dependence on n in the running time makes the naive approach intractable for large datasets. We overcome this bottleneck and present the first (1+ε)-approximate algorithm for estimating the Chamfer distance with a near-linear running time. Specifically, our algorithm runs in time O nd log(n)/ε 2 and is implementable. Our experiments demonstrate that it is both accurate and fast on large high-dimensional datasets. We believe that our algorithm will open new avenues for analyzing large highdimensional point clouds. We also give evidence that if the goal is to report a (1 + ε)-approximate mapping from A to B (as opposed to just its value), then any sub-quadratic time algorithm is unlikely to exist. 1 This is the definition adopted, e.g., in [AS03] . Some other papers, e.g., [FSG17], replace each distance term dX (a, b) with its square, e.g., instead of ∥a -b∥2 they use ∥a -b∥ 2 2 . In this paper we focus on the first definition, as it emphasizes the connection to Earth Mover Distance and its relaxed weighted version in [KSKW15, AM19]. Preprint. Under review.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 3398fa81-d5b6-4200-9b95-2278e17f6a58Cited by top-tier papers5
- MUVERA: Multi-Vector Retrieval via Fixed Dimensional EncodingLaxman Dhulipala, Majid Hadian, Rajesh Jayaram, Jason Lee et al.NeurIPS 2024 · 56 citations
- ZigzagPointMamba: Spatial-Semantic Mamba for Point Cloud UnderstandingLinshuang Diao, Sensen Song, Yurong Qian, Dayong RenNeurIPS 2025 · 9 citations
- GaussianNexus: Room-Scale Real-Time AR/VR Telepresence with Gaussian SplattingXincheng Huang, Dieter Frehlich, Ziyi Xia, Peyman Gholami et al.UIST 2025 · 5 citations
- GEM: A Native Graph-based Index for Multi-Vector RetrievalYao Tian, Zhoujin Tian, Xi Zhao, Ruiyuan Zhang et al.SIGMOD 2026 · 2 citations
- Differentiable Approximations for Distance QueriesAhmed Abdelkader, David M. MountSODA 2025
Related papers
- Fully Dynamic Algorithms for Chamfer DistanceGramoz Goranci, Shaofeng H.-C. Jiang, Peter Kiss, Eva Szilagyi et al.NeurIPS 2025 · 3 citations
- Approximating High-Dimensional Earth Mover's Distance as Fast as Closest PairLorenzo Beretta, Vincent Cohen-Addad, Rajesh Jayaram, Erik WaingartenFOCS 2025 · 2 citations
- Balanced Chamfer Distance as a Comprehensive Metric for Point Cloud CompletionTong Wu, Liang Pan, Junzhe Zhang, Tai Wang et al.NeurIPS 2021 · 104 citations
- A Subquadratic nε-approximation for the Continuous Fréchet DistanceThijs van der Horst, Marc J. van Kreveld, Tim Ophelders, Bettina SpeckmannSODA 2023 · 1 citation
- Hyperbolic Chamfer Distance for Point Cloud CompletionFangzhou Lin, Yun Yue, Songlin Hou, Xuechu Yu et al.ICCV 2023 · 53 citations
