优质令牌狩猎:视觉几何变换器令牌选择指南
Good Token Hunting: A Hitchhiker's Guide to Token Selection for Visual Geometry Transformers
AI总结:
针对视觉几何变换器因全局注意力导致计算成本随序列长度平方增长的问题,提出一种两阶段令牌选择框架(帧间多样性选择+帧内层感知稀疏化),在加速85%以上同时保持或提升基线性能。
摘要:
视觉几何变换器已成为多视图三维重建的强大架构,能够以前馈方式联合预测多个三维属性。然而,由于这些模型内部的全局注意力层,其计算成本随输入序列长度呈二次增长,限制了其可扩展性和效率。在这项工作中,我们通过一个简单而通用的策略来应对这一挑战:限制每个查询在全局注意力期间交互的键/值令牌数量。为了实现有效的令牌选择,我们引入了一个两阶段框架。首先,帧间选择步骤在帧级别操作,以识别应保留的帧。其次,帧内选择步骤进一步丢弃所选帧内更冗余的令牌。我们的分析强调了基于多样性的帧间选择策略的优势,该策略确保了对场景的广泛覆盖。对于帧内选择,我们表明层感知稀疏化是必要的,选择过程由全局注意力模式的熵引导。与现有解决方案相比,我们的方法提供了优越的速度-精度权衡。大量实验表明,对于包含500张图像的场景,我们的方法将视觉几何变换器加速超过85%,同时保持甚至提升基线性能,这暗示了我们的令牌选择策略如何在视觉几何变换器的未来应用中发挥关键作用。我们的项目网站位于 https://zsh2000.github.io/good-token-hunting.github.io。
英文摘要:
Visual geometry transformers have become powerful architectures for multi-view 3D reconstruction, enabling joint prediction of multiple 3D attributes in a feed-forward manner. However, their computational cost grows quadratically with the input sequence length due to the global attention layers inside these models. This limits both their scalability and efficiency. In this work, we address this challenge with a simple yet general strategy: restricting the number of key/value tokens that each query interacts with during global attention. To achieve effective token selection, we introduce a two-stage framework. First, an inter-frame selection step operates at the frame level to identify frames that should be preserved. Second, an intra-frame selection step further discards more redundant tokens within the selected frames. Our analysis highlights the advantage of a diversity-based strategy for inter-frame selection, which ensures broad coverage of the scene. For intra-frame selection, we show that layer-aware sparsification is necessary, with the selection process guided by the entropy of the global attention pattern. Our approach offers a superior speed-accuracy trade-off compared to existing solutions. Extensive experiments show that it accelerates visual geometry transformers by over 85% for scenes with 500 images while maintaining, or even improving, baseline performance, which hints that how our token selection strategy can play a crucial role in future applications of visual geometry transformers. Our project website is available at https://zsh2000.github.io/good-token-hunting.github.io.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。