ETO:Efficient Transformer-based Local Feature Matching by Organizing Multiple Homography Hypotheses

Junjie Ni, Guofeng Zhang, Guanglin Li, Yijin Li, Xinyang Liu, Zhaoyang Huang, Hujun Bao

TL;DR

ETO (Efficient Transformer-based local feature matching) achieves a massive 4-5x speedup over state-of-the-art models like LoFTR by using "homography hypotheses" to drastically reduce the number of image tokens processed by Transformers. By approximating matches with geometric priors and simplifying the refinement stage with uni-directional attention, ETO maintains high accuracy while operating at speeds that finally make Transformer-based matching viable for real-time applications like SLAM and tracking.

What Problem Does This Paper Address?

Local feature matching—the process of finding corresponding points between two different views of a scene—is the "bread and butter" of computer vision tasks like 3D reconstruction and autonomous navigation.

Recently, the field has shifted from traditional Convolutional Neural Networks (CNNs) to Transformers. Transformers are highly effective because their global receptive field allows them to find matches even under extreme changes in lighting or viewpoint where CNNs typically fail. However, they suffer from a computational bottleneck: to achieve high accuracy, they require processing many image patches (tokens), and the computational cost of Transformers grows quadratically with the number of tokens. This makes them painfully slow for real-time use. Current "coarse-to-fine" strategies help, but even then, the "coarse" stage often processes thousands of tokens, creating a significant latency barrier.

Methods

The authors introduce ETO, which tackles efficiency in both the coarse and fine matching stages through a streamlined, three-part architecture:

ETO Architecture Pipeline
  1. Multiple Homography Hypotheses (Coarse Stage): Instead of feeding a dense grid of patches (typically at 1/8 resolution) into a Transformer, ETO uses a much sparser 1/32 resolution. To compensate for the loss of detail, it predicts a set of "homography hypotheses" for each unit. A homography is a mathematical transformation that describes how a plane looks from different angles. By assuming local areas are roughly planar, ETO can "compress" many potential matches into a few geometric parameters (rotation, scale, perspective).
  2. Hypothesis Segmentation: Because a single geometric assumption might fail at the edges of objects or depth boundaries, ETO treats the refinement of these hypotheses as a segmentation problem. It subdivides patches and re-selects the best-fitting hypothesis from neighboring regions to minimize projection errors.
  3. Uni-directional Cross-Attention (Fine Stage): Most models use multiple rounds of complex self- and cross-attention to refine matches to sub-pixel accuracy. The authors discovered this is largely redundant. Since the coarse stage already did the heavy lifting of information propagation, ETO uses a single, lightweight uni-directional cross-attention layer. This is significantly faster and converges more quickly during training.

Key Insights and Ideas

  • Geometric Priors as Compression: The core innovation is realizing that the Transformer doesn't need to learn everything from scratch for every patch. By baking in the assumption that the world is made of locally planar surfaces (homographies), complex correspondences can be represented with far fewer tokens.
  • Redundancy in Refinement: The paper challenges the status quo of using heavy bidirectional attention in the fine-matching stage. By showing that a simpler, one-way query is sufficient, they eliminate a massive amount of unnecessary computation without sacrificing sub-pixel precision.
  • Resolution vs. Information: ETO operates on a feature map 16 times smaller than LoFTR (1/32 vs 1/8 resolution) but maintains comparable accuracy, proving that how you parameterize the search space is more important than the raw number of pixels you process.

Key Results

ETO effectively pushes beyond the established Pareto curve, offering a superior trade-off between speed and accuracy compared to existing state-of-the-art models.

Speed vs. Accuracy Comparison
  • Speed: ETO is 4-5 times faster than LoFTR and 2-3 times faster than LightGlue. On a Megadepth test, ETO took only 21ms per image pair, compared to LoFTR’s 93ms and ASpanFormer’s 158ms.
  • Accuracy: Despite the massive speedup, ETO remains highly competitive. On the YFCC100M dataset, it achieved a Pose Estimation AUC (@5°) of 44.8, which is virtually identical to LoFTR (44.7) and Quadtree (44.7).
  • Efficiency: It outperforms even some optimized CNN-based methods in speed while providing the robustness typical of heavy Transformer architectures.

Limitations and Future Work

While ETO is exceptionally fast, the authors note there is still a slight accuracy gap compared to the absolute best (but much slower) "detector-free" methods in certain complex outdoor scenarios.

Future work could involve:

  • End-to-End Training: Exploring a fully end-to-end mode that might allow for even finer-grained feature extraction.
  • Advanced Parametric Schemes: The current homography model is powerful, but exploring more complex parametric models might help in scenes with highly non-planar geometry.
  • Real-World Integration: Given its low latency, ETO is a prime candidate for integration into real-time mobile SLAM systems where power and compute are strictly limited.

Summary updated

BibTeX
@inproceedings{ni2024eto,
  author = {Junjie Ni and Guofeng Zhang and Guanglin Li and Yijin Li and Xinyang Liu and Zhaoyang Huang and Hujun Bao},
  title = {{ETO:Efficient Transformer-based Local Feature Matching by Organizing Multiple Homography Hypotheses}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=3xHCaDdYcc},
}
Figure