Skip to main content
QUICK REVIEW

[Paper Review] XFeat: Accelerated Features for Lightweight Image Matching

Guilherme Potje, Felipe Cadar|arXiv (Cornell University)|Apr 29, 2024
Advanced Image and Video Retrieval TechniquesComputer Science3 citations
TL;DR

XFeat is a lightweight, hardware-agnostic CNN architecture that accelerates local feature extraction for image matching, enabling real-time performance on CPU-only devices. It achieves state-of-the-art speed-accuracy trade-offs by combining a minimalist keypoint detection branch with a novel match refinement module for semi-dense matching, outperforming prior methods by up to 5× in speed while maintaining or exceeding accuracy on pose estimation and visual localization benchmarks.

ABSTRACT

We introduce a lightweight and accurate architecture for resource-efficient visual correspondence. Our method, dubbed XFeat (Accelerated Features), revisits fundamental design choices in convolutional neural networks for detecting, extracting, and matching local features. Our new model satisfies a critical need for fast and robust algorithms suitable to resource-limited devices. In particular, accurate image matching requires sufficiently large image resolutions - for this reason, we keep the resolution as large as possible while limiting the number of channels in the network. Besides, our model is designed to offer the choice of matching at the sparse or semi-dense levels, each of which may be more suitable for different downstream applications, such as visual navigation and augmented reality. Our model is the first to offer semi-dense matching efficiently, leveraging a novel match refinement module that relies on coarse local descriptors. XFeat is versatile and hardware-independent, surpassing current deep learning-based local features in speed (up to 5x faster) with comparable or better accuracy, proven in pose estimation and visual localization. We showcase it running in real-time on an inexpensive laptop CPU without specialized hardware optimizations. Code and weights are available at www.verlab.dcc.ufmg.br/descriptors/xfeat_cvpr24.

Motivation & Objective

  • To develop a lightweight, efficient CNN architecture for local feature extraction that operates effectively on resource-constrained devices.
  • To enable both sparse and semi-dense image matching within a single unified architecture for broader applicability.
  • To eliminate the need for hardware-specific optimizations while maintaining high accuracy and speed.
  • To improve the speed-accuracy trade-off in deep learning-based local feature matching, especially for mobile robotics and augmented reality.
  • To introduce a novel match refinement module that leverages coarse descriptors to achieve high-density, accurate matches without requiring high-resolution features.

Proposed method

  • XFeat employs a lightweight CNN backbone that maximizes input resolution while minimizing channel count to balance accuracy and efficiency.
  • It introduces a parallel, minimalist keypoint detection branch that is computationally efficient and effective for small backbone models.
  • The model supports dual inference modes: sparse matching via detected keypoints and semi-dense matching via feature map extraction.
  • A novel match refinement module uses coarse local descriptors to predict pixel-level offsets, significantly improving matching density and accuracy with only 11% additional inference cost.
  • The architecture is designed to be hardware-agnostic, enabling deployment on CPUs and edge devices without specialized optimizations.
  • Training includes synthetic image warps to improve robustness to challenging image pairs, especially in semi-dense matching scenarios.

Experimental results

Research questions

  • RQ1Can a lightweight CNN architecture achieve state-of-the-art accuracy in image matching while operating 5× faster than existing methods on CPU-only hardware?
  • RQ2How can a single model efficiently support both sparse and semi-dense matching without sacrificing performance or efficiency?
  • RQ3What is the impact of a dedicated, minimal keypoint detection branch on accuracy and speed in small-backbone models?
  • RQ4Can a match refinement module based on coarse descriptors achieve high-accuracy, dense correspondences without requiring high-resolution feature maps?
  • RQ5To what extent does architectural simplicity outperform larger, more complex models in downstream tasks like visual localization and pose estimation?

Key findings

  • XFeat achieves up to 5× faster inference than SuperPoint and DISK while matching or exceeding their accuracy on relative pose estimation and visual localization tasks.
  • On the Megadepth-1500 dataset, XFeat achieves 50.2% AUC@5° for semi-dense matching (XFeat*) and 42.6% for sparse matching (XFeat), outperforming baseline models.
  • In visual localization on Aachen day-night, XFeat matches the performance of SOTA methods like SuperPoint and DISK, achieving 91.5% accuracy at 0.5m threshold and 89.8% at 5°, while being at least 9× faster.
  • The match refinement module adds only 11% inference cost but significantly improves matching density and accuracy, especially in non-repeatable regions.
  • Ablation studies confirm that the parallel keypoint head is critical for semi-dense performance, as removing it degrades accuracy by 10–15% in dense settings.
  • Training with synthetic warps improves robustness, particularly for semi-dense matching, while reducing channels to 32 degrades performance significantly, indicating optimal channel balance is crucial.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.