[Paper Review] ClusterGNN: Cluster-based Coarse-to-Fine Graph Neural Network for Efficient Feature Matching
ClusterGNN proposes a cluster-based, coarse-to-fine graph neural network that reduces computational and memory costs in visual feature matching by dynamically partitioning keypoints into local subgraphs, enabling sparse attention computation. It achieves state-of-the-art performance with 59.7% less runtime and 58.4% less memory usage than SuperGlue on dense detection, while maintaining competitive accuracy across tasks.
Graph Neural Networks (GNNs) with attention have been successfully applied for learning visual feature matching. However, current methods learn with complete graphs, resulting in a quadratic complexity in the number of features. Motivated by a prior observation that self- and cross- attention matrices converge to a sparse representation, we propose ClusterGNN, an attentional GNN architecture which operates on clusters for learning the feature matching task. Using a progressive clustering module we adaptively divide keypoints into different subgraphs to reduce redundant connectivity, and employ a coarse-to-fine paradigm for mitigating miss-classification within images. Our approach yields a 59.7% reduction in runtime and 58.4% reduction in memory consumption for dense detection, compared to current state-of-the-art GNN-based matching, while achieving a competitive performance on various computer vision tasks.
Motivation & Objective
- Address the quadratic computational and memory complexity of attention-based GNNs in visual feature matching.
- Leverage the inherent sparsity of keypoint attention matrices to reduce redundant message passing in complete graphs.
- Develop a learnable, progressive clustering strategy that forms local subgraphs to improve efficiency without sacrificing accuracy.
- Achieve high efficiency and competitive performance on dense detection benchmarks while maintaining robustness across diverse computer vision tasks.
- Introduce a coarse-to-fine clustering mechanism that avoids misgrouping by gradually refining clusters across images.
Proposed method
- Apply a Complete Graph Initialization Module to first construct and update full intra- and inter-image graphs using attention-based GNN layers.
- Use a progressive clustering module to hierarchically partition keypoints into smaller, localized subgraphs based on learned similarity, reducing global connectivity.
- Construct local graphs where each keypoint only attends to others within its cluster, enabling sparse attention computation and reducing redundancy.
- Employ a coarse-to-fine strategy: initially group keypoints into a small number of clusters, then recursively subdivide them into finer clusters to avoid misclassification.
- Apply a Matching Module using dot product and Dual Softmax to compute matching probabilities, with a learnable dustbin for non-matching keypoints.
- Replace iterative Sinkhorn with non-iterative Dual Softmax for faster inference while maintaining matching quality.
Experimental results
Research questions
- RQ1Can dynamic clustering of keypoints reduce the computational and memory overhead of attention-based GNNs in feature matching?
- RQ2Does a coarse-to-fine clustering strategy improve matching accuracy by minimizing misgrouping within images?
- RQ3To what extent can sparse attention on cluster-based subgraphs approximate the performance of full-graph attention?
- RQ4How does the proposed method compare in efficiency and accuracy to state-of-the-art GNN-based feature matching (e.g., SuperGlue) on dense detection?
- RQ5What is the trade-off between fixed vs. dynamically varying cluster counts in terms of performance and efficiency?
Key findings
- ClusterGNN reduces runtime by 59.7% and memory consumption by 58.4% compared to SuperGlue on dense detection (10k keypoints) using a Tesla P-100 GPU.
- The method achieves state-of-the-art accuracy on relative pose estimation, homography estimation, and visual localization tasks, including 89.4% / 95.5% / 98.5% on InLoc dataset under (0.25m, 2°) threshold.
- Using a varying number of clusters (progressive refinement) yields significantly better performance than fixed cluster counts, with 42.62% accuracy at 5° threshold vs. 31.26% with 16 fixed clusters.
- The Dual Softmax operator achieves competitive performance (42.62% at 5°) with 61ms inference time and 94MB memory, outperforming Sinkhorn (68ms, 94MB) in speed while matching accuracy.
- On the Aachen Day-Night benchmark, ClusterGNN achieves 88.6% / 95.5% / 98.4% localization accuracy under (0.25m, 2°) threshold, outperforming SuperGlue in some settings.
- The ablation study confirms that progressive clustering is essential—fixed cluster counts degrade performance significantly, especially at higher thresholds.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.