arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.09645cs.CVcs.ROeess.IV
收藏

MatchFormer:在Transformers中交错注意力以实现特征匹配

MatchFormer: Interleaving Attention in Transformers for Feature Matching

Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院)

Qing Wang, Jiaming Zhang, Kailun Yang, Kunyu Peng, Rainer Stiefelhagen

摘要:

局部特征匹配是亚像素级的计算密集型任务。虽然基于检测器的方法结合特征描述符在低纹理场景中挣扎,但具有顺序提取到匹配流水线的基于CNN的方法无法利用编码器的匹配能力,并且往往会使解码器负担过重。相比之下,我们提出了一种新的分层提取和匹配Transformer,称为MatchFormer。在分层编码器的每个阶段,我们交错的特征提取和交叉关注的特征匹配的自我关注,产生一个人类直观的提取和匹配方案。这种匹配感知的编码器释放了过载的解码器,使模型高效。此外,在分层架构中组合多尺度特征上的自关注和交叉关注提高了匹配鲁棒性,特别是在低纹理室内场景或具有较少室外训练数据的情况下。由于这种策略,MatchFormer在效率,鲁棒性和精度方面是一个多赢的解决方案。与之前室内姿势估计的最佳方法相比,我们的精简版MatchFormer只有45%的GFLOP,但实现了+1.3%的精度增益和41%的运行速度提升。大型MatchFormer在四个不同的基准上达到了最先进的水平,包括室内姿态估计(ScanNet)、室外姿态估计(MegaDepth)、单应性估计和图像匹配(HPatch)以及视觉定位(InLoc)。

英文摘要:

Local feature matching is a computationally intensive task at the subpixel level. While detector-based methods coupled with feature descriptors struggle in low-texture scenes, CNN-based methods with a sequential extract-to-match pipeline, fail to make use of the matching capacity of the encoder and tend to overburden the decoder for matching. In contrast, we propose a novel hierarchical extract-and-match transformer, termed as MatchFormer. Inside each stage of the hierarchical encoder, we interleave self-attention for feature extraction and cross-attention for feature matching, yielding a human-intuitive extract-and-match scheme. Such a match-aware encoder releases the overloaded decoder and makes the model highly efficient. Further, combining self- and cross-attention on multi-scale features in a hierarchical architecture improves matching robustness, particularly in low-texture indoor scenes or with less outdoor training data. Thanks to such a strategy, MatchFormer is a multi-win solution in efficiency, robustness, and precision. Compared to the previous best method in indoor pose estimation, our lite MatchFormer has only 45% GFLOPs, yet achieves a +1.3% precision gain and a 41% running speed boost. The large MatchFormer reaches state-of-the-art on four different benchmarks, including indoor pose estimation (ScanNet), outdoor pose estimation (MegaDepth), homography estimation and image matching (HPatch), and visual localization (InLoc).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑