arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.10017cs.CV
收藏

快速MASt3R

Speedy MASt3R

Arizona State University(亚利桑那州立大学);Johns Hopkins University(约翰斯·霍普金斯大学)

Jingxing Li, Yongjae Lee, Abhay Kumar Yadav, Cheng Peng, Rama Chellappa, Deliang Fan

摘要:

图像匹配是现代三维视觉算法的关键组成部分,对于精确的场景重建和定位至关重要。MASt 3R通过利用DUSt 3R并引入快速互逆匹配方案将图像匹配重新定义为3D任务,该方案在保持理论保证的同时将匹配加速了几个数量级。这种方法获得了强大的吸引力,DUSt 3R和MASt 3R在短时间内被引用了250多次,突出了它们的影响。然而,尽管它的准确性,MASt 3R的推理速度仍然是一个瓶颈。在A40 GPU上,每个图像对的延迟为198.16 ms,主要是由于ViT编码器-解码器和快速倒数最近邻(FastNN)匹配的计算开销。为了解决这个问题,我们引入了Speedy MASt 3R,这是一个训练后优化框架,可以在保持准确性的同时提高推理效率。它集成了多种优化技术,包括FlashMatch-一种利用FlashAttention v2与平铺策略提高效率的方法,通过层和张量融合进行计算图优化,具有TensorRT(GraphFusion)的内核自动调整,以及简化的FastNN流水线,可将内存访问时间从二次减少到线性,同时通过矢量化计算加速块相关评分(FastNN-Lite)。此外,它采用FP 16/FP 32混合计算(HybridCast)的混合精度推理,在保持数值精度的同时实现加速。在亚琛昼夜、InLoc、7-Scenes、ScanNet 1500和MegaDepth 1500上进行评估后,Speedy MASt 3R在不牺牲准确性的情况下,推理时间减少了54%(每对图像从198 ms减少到91 ms)。这一进步实现了实时3D理解,有利于混合现实导航和大规模3D场景重建等应用。

英文摘要:

Image matching is a key component of modern 3D vision algorithms, essential for accurate scene reconstruction and localization. MASt3R redefines image matching as a 3D task by leveraging DUSt3R and introducing a fast reciprocal matching scheme that accelerates matching by orders of magnitude while preserving theoretical guarantees. This approach has gained strong traction, with DUSt3R and MASt3R collectively cited over 250 times in a short span, underscoring their impact. However, despite its accuracy, MASt3R's inference speed remains a bottleneck. On an A40 GPU, latency per image pair is 198.16 ms, mainly due to computational overhead from the ViT encoder-decoder and Fast Reciprocal Nearest Neighbor (FastNN) matching. To address this, we introduce Speedy MASt3R, a post-training optimization framework that enhances inference efficiency while maintaining accuracy. It integrates multiple optimization techniques, including FlashMatch-an approach leveraging FlashAttention v2 with tiling strategies for improved efficiency, computation graph optimization via layer and tensor fusion having kernel auto-tuning with TensorRT (GraphFusion), and a streamlined FastNN pipeline that reduces memory access time from quadratic to linear while accelerating block-wise correlation scoring through vectorized computation (FastNN-Lite). Additionally, it employs mixed-precision inference with FP16/FP32 hybrid computations (HybridCast), achieving speedup while preserving numerical precision. Evaluated on Aachen Day-Night, InLoc, 7-Scenes, ScanNet1500, and MegaDepth1500, Speedy MASt3R achieves a 54% reduction in inference time (198 ms to 91 ms per image pair) without sacrificing accuracy. This advancement enables real-time 3D understanding, benefiting applications like mixed reality navigation and large-scale 3D scene reconstruction.

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

↑