XRefine: Attention-Guided Keypoint Match Refinement
Jan Fabian Schmid, Annika Hagemann
TL;DR
Sparse keypoint matches often suffer from sub-pixel misalignment that degrades downstream geometry. XRefine presents a detector-agnostic, cross-attention-based refinement that operates only on local image patches to predict sub-pixel keypoint displacements, and it scales to multi-view tracks for SfM. Across MegaDepth, ScanNet, and KITTI, XRefine consistently improves relative pose estimation and 3D triangulation with competitive runtime, outperforming prior refinement methods while generalizing across detectors. The approach is trained independently of detector-specific outputs and is open-sourced, enabling broad adoption in resource-constrained 3D vision pipelines.
Abstract
Sparse keypoint matching is crucial for 3D vision tasks, yet current keypoint detectors often produce spatially inaccurate matches. Existing refinement methods mitigate this issue through alignment of matched keypoint locations, but they are typically detector-specific, requiring retraining for each keypoint detector. We introduce XRefine, a novel, detector-agnostic approach for sub-pixel keypoint refinement that operates solely on image patches centered at matched keypoints. Our cross-attention-based architecture learns to predict refined keypoint coordinates without relying on internal detector representations, enabling generalization across detectors. Furthermore, XRefine can be extended to handle multi-view feature tracks. Experiments on MegaDepth, KITTI, and ScanNet demonstrate that the approach consistently improves geometric estimation accuracy, achieving superior performance compared to existing refinement methods while maintaining runtime efficiency. Our code and trained models can be found at https://github.com/boschresearch/xrefine.
