Abstract
Modern deep-learning-based keypoint detectors like SuperPoint and ALIKED excel in robustness but often fall short of the sub-pixel localization accuracy achieved by classical methods like SIFT. We introduce a lightweight, detector-agnostic "Keypoint Refinement" module that bridges this gap. By learning to predict small offset vectors through geometric supervision, our method enhances the precision of any learned detector with only ~7ms of additional overhead.
Introduction
Identifying and matching keypoints is a foundational task in computer vision, essential for 3D reconstruction, robotic navigation, and object recognition. While classical algorithms like SIFT provided extreme sub-pixel precision, modern neural networks prioritize robustness. Because these networks typically operate on discrete pixel grids or lower-resolution heatmaps, their predictions can be "jittery" or slightly off-center. This work addresses the challenge of providing robust neural networks with the "pinpoint" accuracy of classical predecessors without requiring a complete redesign of the underlying detectors.
Methodology
The proposed Keypoint Refinement module functions as a post-processing step within existing matching pipelines. It is designed to be "plug-and-play," sitting on top of existing detectors like SuperPoint or ALIKED.
The refinement process involves four primary stages:
- Patch Extraction: For every matched keypoint pair, a small image patch is extracted, centered on the initial coarse detection.
- Feature Distillation: A small Convolutional Neural Network (CNN) extracts local features. Crucially, the module incorporates local descriptors—the "fingerprints" of the keypoints—to provide necessary context for the refinement.
- Differentiable SoftArgMax: To determine the exact sub-pixel center within the patch, the network employs a SoftArgMax operation. This allows for the prediction of continuous offsets (e.g., moving a point 0.4 pixels right) while maintaining differentiability for end-to-end training.
- Geometric Supervision: Rather than relying on potentially inaccurate manual labels, the model is trained to minimize epipolar error. It learns to adjust keypoint locations to satisfy geometric constraints between two views of a scene.
Experimental Evaluation
The model was evaluated on diverse real-world datasets, including MegaDepth (outdoor landmarks), KITTI (autonomous driving), ScanNet (indoor sequences), and HPatches (localization accuracy).
Key Results
- Accuracy and Inliers: On the MegaDepth dataset, the refinement module improved the Area Under the Curve (AUC) for pose estimation by approximately 2 points over baseline SuperPoint. It also consistently increased the inlier ratio, indicating higher geometric consistency.
- Localization Precision: On the HPatches benchmark, Mean Matching Accuracy (MMA) at a strict 1-pixel threshold improved from 27% to 33%.
- Efficiency: The module is highly efficient, containing only ~123K to 197K parameters. Inference adds only approximately 7ms for 2048 matches, making it viable for real-time applications.
Discussion and Insights
The primary innovation of this work is its detector-agnostic nature. By using descriptors as guides, the network maintains the "identity" of the point during refinement. Furthermore, by optimizing directly for relative pose error, the refinement is tuned for the actual downstream task rather than an arbitrary proxy loss.
Limitations and Future Work
The refinement is limited by the size of the extraction window (e.g., 5x5 or 11x11 pixels). If the initial detection falls outside this window, the module cannot recover the true point. Future work may explore tighter integration into the matching stage (similar to LightGlue) to allow for iterative refinement and even higher precision in extreme conditions.
Summary updated