Feature matching—identifying correspondences between two sets of points—is a foundational problem in computer vision, essential for tasks like 3D reconstruction and object recognition. While simple point-to-point matching is straightforward, incorporating pairwise relationships (e.g., preserving distances or angles between points) transforms the problem into a quadratic assignment problem, which is NP-hard. Historically, researchers have balanced accuracy and computational cost by using either loose relaxations that sacrifice precision or tight relaxations that are too slow for practical use. This paper introduces Hungarian-BP, a method that bridges this gap by being both mathematically rigorous and computationally efficient.
The Hungarian-BP Algorithm
The core innovation of Hungarian-BP lies in the formulation of a tighter linear programming (LP) relaxation of the matching problem. The authors employ dual decomposition to break the complex optimization problem into two simpler, manageable sub-problems:
- Max-Weight Bipartite Matching: A classic problem solvable optimally and efficiently using the Hungarian algorithm.
- Closed-Form Sub-problem: A component that can be calculated instantly using a simple analytical formula.
By using a message-passing scheme (Belief Propagation) to coordinate these sub-problems, the algorithm ensures that the final output always respects the one-to-one matching constraint. This approach significantly reduces computational complexity. While previous state-of-the-art dual decomposition methods had a complexity of roughly $O(n^6)$ per iteration, Hungarian-BP brings it down to $O(n^3 + |E|n^2)$, where $n$ is the number of points and $|E|$ is the number of edges. In practical terms, this is the difference between minutes and milliseconds.
Experimental Evaluation
The authors evaluated Hungarian-BP against nine other major algorithms, including Factorized Graph Matching (FGM) and Reweighted Random Walks Matching (RRWM), across three distinct datasets.
Chinese Character Matching
Using the Casia database, the algorithm matched points on handwritten characters (23–28 points each). Hungarian-BP achieved a top accuracy of 91.88%, outperforming all competitors. Crucially, it was 20 to 50 times faster than previous dual decomposition (DD) methods, demonstrating its practical utility for complex structural matching.
Wide Baseline and Outlier Robustness
The method was further tested on the CMU House sequence (wide baseline) and the Pascal 2007 dataset (real-world images with outliers).
As shown in Figure 2, Hungarian-BP maintains near-perfect accuracy even as the camera baseline increases or the number of outliers grows. In the CMU House sequence, it was one of only four methods to maintain 100% accuracy across extreme camera angles. On the Pascal dataset, it remained the most accurate method even when 20 "noise" points were added, while maintaining a significantly lower computational footprint than other high-accuracy methods like FGM.
Conclusion
Hungarian-BP represents a significant advancement in graph-based feature matching. By cleverly decomposing the LP relaxation into sub-problems solvable by the Hungarian algorithm, the authors provide a solution that is both "tight" in its mathematical approximation and "fast" in its execution. This work effectively bridges the gap between theoretical optimality and real-world performance requirements in computer vision.
Summary updated