ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 2307.03043
45
5

A Near-Linear Time Algorithm for the Chamfer Distance

6 July 2023
Ainesh Bakshi
Piotr Indyk
Rajesh Jayaram
Sandeep Silwal
Erik Waingarten
ArXiv (abs)PDFHTML
Abstract

For any two point sets A,B⊂RdA,B \subset \mathbb{R}^dA,B⊂Rd of size up to nnn, the Chamfer distance from AAA to BBB is defined as CH(A,B)=∑a∈Amin⁡b∈BdX(a,b)\text{CH}(A,B)=\sum_{a \in A} \min_{b \in B} d_X(a,b)CH(A,B)=∑a∈A​minb∈B​dX​(a,b), where dXd_XdX​ 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(dn2)O(d n^2)O(dn2)-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 \emph{quadratic} dependence on nnn in the running time makes the naive approach intractable for large datasets. We overcome this bottleneck and present the first (1+ϵ)(1+\epsilon)(1+ϵ)-approximate algorithm for estimating the Chamfer distance with a near-linear running time. Specifically, our algorithm runs in time O(ndlog⁡(n)/ε2)O(nd \log (n)/\varepsilon^2)O(ndlog(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 high-dimensional point clouds. We also give evidence that if the goal is to \emph{report} a (1+ε)(1+\varepsilon)(1+ε)-approximate mapping from AAA to BBB (as opposed to just its value), then any sub-quadratic time algorithm is unlikely to exist.

View on arXiv
Comments on this paper