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

We tackle the efficiency problem of learning local feature matching. Recent advancements have given rise to purely CNN-based and transformer-based approaches, each augmented with deep learning techniques. While CNN-based methods often excel in matching speed, transformer-based methods tend to provide more accurate matches. We propose an efficient transformer-based network architecture for local feature matching. This technique is built on constructing multiple homography hypotheses to approximate the continuous correspondence in the real world and uni-directional cross-attention to accelerate the refinement. On the YFCC100M dataset, our matching accuracy is competitive with LoFTR, a state-of-the-art transformer-based architecture, while the inference speed is boosted to 4 times, even outperforming the CNN-based methods. Comprehensive evaluations on other open datasets such as Megadepth, ScanNet, and HPatches demonstrate our method's efficacy, highlighting its potential to significantly enhance a wide array of downstream applications.

Paper

Similar papers

Peer review

Reviewer LEiZ7/10 · confidence 4/52024-07-04

Summary

This paper proposes an efficient transformer-based local feature matching approach named ETO. ETO consists of three steps: hypothesis estimation, segmentation and refinement. The first and second steps can obtain coarse matching results whose resolution is similar to LoFTR’s coarse results. The third step can provide fine-level matching results. The hypothesis estimation performs the Transformer computation on the 1/32 resolution (rather than the 1/8 resolution in LoFTR), which is the core design that reduces the inference time. Experimental results demonstrate that ETO provides a good balance between accuracy and speed.

Strengths

1. The motivation of this paper is clear and valuable. Transformer-based approaches are prevalent in the area of feature matching. Nonetheless, it is still an open problem how to design an efficient and accurate transformer-based model. 2. The technical design of ETO is novel. The manner of predicting the local homography parameters on a very coarse resolution (and then refining them) differs from most of the existing coarse-to-fine transformer-based approaches. 3. The accuracy of ETO is acceptable, considering its superiority in inference speed.

Weaknesses

**1. This paper lacks some important technical details.** 1.1 What is the computation manner of the Transformer before the hypothesis estimation step? In line 237, the authors state that "then we perform transformer five times at M_1". Does the transformer contain some cross-attention processes? Or does it only involve the self-attention? 1.2 The computation process of the hypothesis estimation step is confusing. The authors seem to use the notations "M_1, M_2, M_3, f_i^1" to represent the features of both the source and target images. Such definitions make many statements in Sec. 3.2 hard to understand. For example, the meaning of the variable M_1 seems inconsistent in the statements "For each unit i on M_1" (line 144) and "within the neighborhood of the target units on M_1" (line 155). 1.3 The computation architecture of the segmentation step is unclear. The authors should provide the computation details on how to predict the classification confidence from the intermediate features. The statement in lines 177-180 is too brief to understand. 1.4 Why is the classification label in the segmentation step termed as the "pseudo" ground truth (line 181)? To my understanding, the classification label of every unit should be obtained from the ground truth camera pose and depth. It should be the "normal ground truth" rather than the "pseudo ground truth" if the above understanding is correct. The authors should clarify this detail. **2. Some details should be further clarified.** 2.1 The statement "while we only need to feed 300" (line 50-51) was not clarified in the subsequent text. Is it the unit number on the 1/32 resolution for a 640x480 input image? 2.2 In the segmentation step, what is the size of output segmentation results for a local input window whose size is 3x3? Is it 4x4? Or 12x12? 2.3 The statement in lines 304-305 should be further discussed. The authors just state that ETO is better on the more difficult YFCC100M without discussing the probable reason. 2.4 The title "Hypotheses Estimation" (line 137) should be "Hypothesis Estimation". **3. Some intermediate results should be visualized.** Some real intermediate results after the hypothesis estimation/segmentation steps should be visualized to show how these steps provide appropriate predictions. The virtual intermediate "results" in Figure 3 are helpful to understand, but the actual results are still necessary.

Questions

Please provide more discussions and experimental results to address the above weaknesses.

Rating

7

Confidence

4

Soundness

3

Presentation

2

Contribution

4

Limitations

The authors have discussed the limitations.

Reviewer 7KzZ5/10 · confidence 3/52024-07-10

Summary

The authors propose a local feature matching method that leverages homography to accelerate the transformer-based feature matching pipeline. Additionally, they employ unidirectional cross-attention in the refinement stage to further reduce computational overhead. Experimental results demonstrate the efficiency and effectiveness of this approach.

Strengths

1. The paper is well-written and easy to understand. 2. Integrating homography as theoretical guidance into the transformer pipeline is a commendable approach, enhancing the transformer-based pipeline with theoretical support. 3. Experimental results demonstrate that the proposed method achieves much smaller time usage, validating its efficiency in practice.

Weaknesses

1. Though the time usage is decrease, the accuracy is also decrease from Tab.1&2&3. 2. The paper lacks significant citations in feature matching methods, such as Efficient LoFTR[1], RoMa[2]. Some of these works also focus on improving efficiency in feature matching and should be referenced to provide a comprehensive background. Including these methods in the experiments would offer a more thorough comparison of the proposed approach's performance. 3. Though the authors acknowledge that some other methods (e.g., [14, 38]) are better in certain aspects (line356-357), it would be beneficial to include a comparative analysis with these methods. This would provide a clearer understanding of the strengths and weaknesses of the proposed approach. [1]. Wang, Yifan, et al. "Efficient LoFTR: Semi-dense local feature matching with sparse-like speed." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2024. [2] Edstedt, Johan, et al. "RoMa: Robust dense feature matching." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2024.

Questions

No question to the authors.

Rating

5

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

The authors have addressed the limitations in their paper.

Authorsrebuttal2024-08-14

Comparing ETO with Roma and Tiny-RoMa on Megadepth.

| Method | auc@5 | auc@10 | auc@20 | runtime on RTX 2080ti(ms) | | :---------: | :-------------: | :-------------: | :-------------: |:-------------: | |RoMa | 64.8 | 77.4 | 86.1 | 688.8| |Tiny-RoMa| 36.2 | 53.6 | 67.5 | 29.0 | | ETO | 51.7 | 66.6 | 77.4 | 21.0 | The experiments show that when efficiency and accuracy are all taken into account, ETO has advantages over the state-of-the-art methods. Note that tiny-roma's demo on github uses a very strong set of ransac parameters (ransacReprojThreshold=0.2, method=cv2.USAC_MAGSAC, confidence=0.999999, maxIters=10000) , so it's not surprising that the results decrease when using settings consistent with ours.

Reviewer 7KzZ2024-08-14

Thank you for the additional comparisons with RoMa and the discussion provided. This effectively addresses my concerns. Your work is both interesting and effective, and I will maintain my initial rating.

Reviewer aEzL6/10 · confidence 4/52024-07-10

Summary

This paper proposes a novel framework for efficient transformer-based local feature matching. Transformer-based local feature matching usually contains two stages: a coarse matching stage which applies self-attention and cross-attention on coarse-level features (usually H/8 x W/8) to obtain coarse matches, and a refinement stage that refines the coarse matches in a local window based on fine-grained features. This paper proposed two methods to improve the efficiency of this pipeline. First, the coarse matching is performed on a even coarser level (H/32 x W/32) to reduce the computational cost of the costly attention operations. Additionally, homography hypothesis for each patch is estimated at this level. Leveraging the piece-wise smooth prior, the matching at H/8 x W/8 resolution is directly approximated by selecting the most probable homography hypothesis in local windows using a proposed segmentation technique. Second, in the refinement stage, the bi-directional cross attention is reduced to uni-direction one. Experiments show that the proposed framework achieves comparable performance with less inference time compared with state-of-the-art transformer-based and local feature matching algorithms.

Strengths

1. The idea of using piece-wise smooth prior to accelerate transformer-based feature matching is novel and promising, and the supervision and the homography hypothesis re-selection algorithms are carefully designed. 2. Comprehensive ablation studies show that the key design features, including homography hypothesis proposal, homography hypothesis re-selection and uni-directional cross attention have positive effects on the performance and are necessary.

Weaknesses

1. The symbols used in the method part are too complicated, making it hard to read. 2. The symbol $\mathscr{H}$ used in figure 4 is undefined in the text. 3. The framework adopts two-stage training, possibly making it hard to train and limiting the accuracy.

Questions

1. Do you have any plan to reorganize the symbols? 2. If the framework is trained end-to-end, will it yield acceptable performance?

Rating

6

Confidence

4

Soundness

3

Presentation

2

Contribution

3

Limitations

The authors have adequately addressed the limitation of this work in the conclusion and limitations section of the paper. Enabling the network to be trained end-to-end, allowing for dense matching and further improving accuracy are my suggestions for directions of improvement.

Reviewer uPv26/10 · confidence 4/52024-07-12

Summary

This paper presents a local feature matching method based on the multiple homography hypotheses. The paper explicitly introduces the homography hypotheses for coarse matching, combined with homography segmentation, cross-attention, and sub-pixel refinement to obtain fine matching results. The introduction of the homography hypotheses significantly reduces the number of input tokens for the attention mechanism, and with further model modification, the algorithm proposed in this paper has achieved a substantial increase in inference speed while maintaining performance as much as possible. Experiments on multiple datasets have proven the effectiveness and efficiency of the proposed method.

Strengths

Clear motivation, reasonable structural design, convincing experiments

Weaknesses

-The pre-compiled transformer model may have some impact on inference speed, can additional tests be conducted on the efficiency of a normal transformer module? -Lack of the latest state-of-the-art comparison: Some of the latest methods, such as RoMA[1] and EfficientLoFTR[2], have been made public at an early stage, and thus it is necessary to compare and analyze with these methods. [1] Edstedt, Johan, et al. "RoMa: Robust dense feature matching." CVPR 2024. [2] Wang, Yifan, et al. "Efficient LoFTR: Semi-dense local feature matching with sparse-like speed." CVPR 2024.

Questions

-In Section 3, it is 2-stage training adopted, but in Implementation Details, the training phase contains 3 stages. Why there is a joint training stage at first? Moreover, the joint training is usually conducted for the final finetuning, why it is the first stage in your strategy? -For Basic Refinement w/ Segmentation in Section 4.4, why it is the same training hours instead of the same training samples? Early stopping may lead to performance drop. -In the introduction, the authors claim that the multiple self- and cross-attention in the fine-level stage are redundant, is there any numerical results? What if you stack several uni-directional cross-attention in your method?

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

see Weaknesses

Reviewer uPv22024-08-13

Thanks for the response. Although most of my quetions are solved. There are some questions ignored by the authors. 1. In Q3, I wonder if stacking some more the proposed uni-directional cross-attention would be helpful and makes the method more powerful. 2. The authors compared with PATS instead of RoMa as I mentioned in W2. Additionally, there are also some other reviewers mentioned RoMa, I don know why the author try to avoid comparing with RoMa. In my experience, RoMa runs about ~180ms/Frame on MegaDepth with RTX3090, and there is a tiny version for RoMa. Acoording to the paper and official repo, the accuracy for RoMa (62.6/76.7/86.3) and Tiny-RoMa (56.4/69.5/79.5) are much better than the proposed method (although it is faster). The author's evasiveness heightens my concern. I do not know if stacking the proposed uni-directional cross-attention is useless. And I do not know why ignoring RoMa, which has been open-sourced for a long time. However, it is still an interesting work, I will maintain the original rating (Weak Accept).

Authorsrebuttal2024-08-14

Experiment on two uni-directional cross attention and comparing ETO with Roma and Tiny-RoMa on Megadepth.

| Method | auc@5 | auc@10 | auc@20 | runtime on RTX 2080ti(ms) | | :---------: | :-------------: | :-------------: | :-------------: |:-------------: | |RoMa | 64.8 | 77.4 | 86.1 | 688.8| |Tiny-RoMa| 36.2 | 53.6 | 67.5 | 29.0 | | ETO with 2 uni-directional attention | 52.0 | 66.6 | 76.8 | 22.7 | | ETO | 51.7 | 66.6 | 77.4 | 21.0 | The experiments show that when efficiency and accuracy are all taken into account, ETO has advantages over the state-of-the-art methods. Note that tiny-roma's demo on github uses a very strong set of ransac parameters (ransacReprojThreshold=0.2, method=cv2.USAC_MAGSAC, confidence=0.999999, maxIters=10000) , so it's not surprising that the results decrease when using settings consistent with ours. And ETO with 2 uni-directional attention only make a littile difference on performance which is not important,.We consider that it is because the uni-directional attention only manages to improve the efficiency without compromising the accuracy if it is only iterated once. This drawback stems from the fact that it only needs to optimize the feature that is used to estimate the refined bias, which is only one out of every 16 features on the source image on the $M_3$ feature map according to our method, and the features on the target image are not optimized in this uni-directional attention operation. Therefore, more uni-directional attention can not make great improvements for our method.

Reviewer uPv22024-08-14

Thanks for the response, which partly addressed my question. According to the response, stacking the uni-directional attention achieves improvement on auc@5 but get degreation on auc@20 (both are small), and it seems that you did not re-train a new model (due to the rebuttal schedule) but simply reuse the attention parameters. When it comes to the comparison with RoMa and Tiny-RoMa, thanks for your insight of the experiment settings. As the metric is the accuracy of camera pose ,which only need several matches (eg. 8 matches) to regress, it is acceptable to filter out less-reliable matches when computing camera poses. Maybe you can also test your method with a strict setting (just a suggestion, not required). Nevertheless, this work is interesting and provides a effective and efficient mothod for 2-view matching.

Authorsrebuttal2024-08-14

We only re-train the part of refinement with two uni-attention blocks, which only takes us 12 hours, and we do not simply reuse the attention parameters. However, here we just stack two uni-attention blocks and supervise them once, perhaps supervising the residuals for each of them can make meaningful improvement. Finally, thank you again for your high opinion and useful suggestions for our work.

Reviewer yFZw5/10 · confidence 4/52024-07-14

Summary

This paper propose an efficient framework to reduce the computational load of transformer-based matching approaches. It is a coarse-to-fine two-stage solution. During the coarse matching phase, multiple homography hypotheses are estimated to approximate continuous matches. Each hypothesis encompasses few features to be matched, reducing the number of features that require enhancement via transformers. In the refinement stage, the unidirectional cross-attention is proposed to replace the classical bidirectional self-attention and cross-attention mechanism, which further decreases the cost of computation. Comprehensive evaluations on other open datasets such as Megadepth, YFCC100M, ScanNet, and HPatches are presented to demonstrate its efficacy.

Strengths

The whole idea makes sense to me. The experimental studies are quite comprehensive.

Weaknesses

Some parts of the description are quite vague to me, which may hinder its reproducibility. Some of the experimental results may need further clarification.

Questions

1. I think some descriptions in Sec 3.4 need further clarification, e.g., Line 192-193 $\hat{f^3_j}$ is computed by querying the $f3_k$ with …, is the query done by nearest neighboring searching? 2. How is $\triangle P_j^t$ in Line 188 obtained or is it predicted? 3. In Figure 3, is there an MLP after cross-attention block? If yes, what is the input/output. Also, the presence of “Module 3” is confusing, should it contain the cross attention? 4. In Table 4, it seems the usage of bidirectional cross-attention performs worse than that of uni-directional cross-attention at 5. Is that reasonable, please give some analysis. 5. From Table 2, the performance of lightGlue is much worse than ASpanFormer, LoFTR. Interestingly, ASpanFormer is better than LoFTR with a small margin in the Megadepth dataset, similar to the results reported in LightGlue. The performance gap between LightGlue and LoFTR is much larger than that in LightGlue, could you please explain? Moreover, why LightGlue is not reported in the dataset of Scannet?

Rating

5

Confidence

4

Soundness

3

Presentation

2

Contribution

3

Limitations

1. Some of the network architectures are not depicted in figures, making it difficult to know the overall diagram of the method. 2. The two-stage training process may not be easily trained. 3. It would be better to present some failure case studies.

Reviewer LEiZ2024-08-12

Thank the authors for the additional experimental results and discussions. I think the proposed approach is valuable, considering the new technical designs and the good balance of accuracy and efficiency. Therefore, I keep my original rating (Accept).

Reviewer aEzL2024-08-12

Thank you for providing the additional experimental results and discussions. The proposed method demonstrates strong accuracy and efficiency, with novel and well-reasoned technical designs. The authors have addressed my questions and have outlined a plan to clarify the symbols. Therefore, I will maintain my original rating of "Weak Accept."

Reviewer yFZw2024-08-13

Thank you for your response. While I appreciate the addition of valuable experiments and the inclusion of a failure case study, I still believe that the current version of the manuscript lacks sufficient descriptions of some technical details. As a result, I will be maintaining my initial rating.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC