atlas

Research map / Architectures and efficiency / Attention and transformers

Efficient LoFTR: Semi-Dense Local Feature Matching with Sparse-Like Speed

CVPR 2024 · Architectures and efficiency › Attention and transformers · approach: Efficient image transformers · 177 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Revisits LoFTR to build Efficient LoFTR, a semi-dense matcher using aggregated attention with token selection and a two-stage correlation refinement, achieving ~2.5x LoFTR speed with competitive or better accuracy.

Problem

Detector-free semi-dense local feature matching (LoFTR) is accurate but slow because transformers run over the full coarse feature map; its expectation-based subpixel refinement also suffers spatial variance.

Approach

Aggregate neighboring query tokens with depthwise strided convolution and select salient key tokens by max pooling before vanilla attention (aggregated attention), plus a two-stage fine correlation that first uses MNN matching at pixel level and then expectation within a 3x3 window for subpixel refinement; also drops dual-softmax at inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use Efficient LoFTR instead of AspanFormersemi-dense matching · MegaDepthAUC@5°: 55.3 -> 56.4Helped
use Efficient LoFTR instead of AspanFormersemi-dense matching · ScanNetAUC@5°: 19.6 -> 19.2Hurt
use Efficient LoFTR instead of LoFTRsemi-dense matching · HPatchesHomography estimation AUC@3px: 65.9 -> 66.5Helped
remove dual-softmax at inference (ablation)Efficient LoFTR · MegaDepthPose estimation AUC@5°: 56.4 -> 55.4Hurt
remove dual-softmax at inference (ablation)Efficient LoFTR · MegaDepthTime (ms): 139.2 -> 102.0Helped
add aggregated attention instead of LoFTR's transformer (ablation)Efficient LoFTR · MegaDepthPose estimation AUC@5°: 54.7 -> 56.4Helped
add two-stage refinement instead of LoFTR's refinement (ablation)Efficient LoFTR · MegaDepthPose estimation AUC@5°: 54.7 -> 56.4Helped
add second-stage refinement (ablation)Efficient LoFTR · MegaDepthPose estimation AUC@5°: 55.8 -> 56.4Helped
replace ResNet with RepVGG (ablation)Efficient LoFTR · MegaDepthPose estimation AUC@5°: 55.4 -> 56.4Helped
replace ResNet with RepVGG (ablation)Efficient LoFTR · MegaDepthTime (ms): 156.2 -> 139.2Helped

Surprising findings

Limitations

Experimental setup

Datasets: MegaDepth

Benchmarks: MegaDepth ScanNet HPatches InLoc Aachen v1.1

Metrics: AUC of pose error @5/10/20 degrees AUC of reprojection error @3/5/10px localization accuracy at 0.25m/0.5m/1.0m thresholds running time (ms)

Baselines: SuperPoint + NN SuperPoint + SuperGlue SuperPoint + LightGlue DRC-Net LoFTR QuadTree Attention MatchFormer TopicFM AspanFormer DKM ROMA Sparse-NCNet

Builds on: LoFTR RepVGG RoPE SuperGlue LightGlue

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy