AVGGT:重新思考全局注意以加速VGGT
AVGGT: Rethinking Global Attention for Accelerating VGGT
AI总结:
AVGGT通过将早期全局注意力转换为帧注意力并子采样全局注意力,实现多视图3D任务的加速,同时保持模型精度。
摘要:
基于VGGT和π³的模型在多视图3D性能方面表现出色,但其对全局自注意力的依赖导致计算成本高。现有的稀疏注意力变体提供了部分加速,但缺乏对全局注意力如何促进多视图推理的系统分析。在本文中,我们首先深入研究了VGGT和π³中的全局注意力模块,以更好地理解其作用。我们的分析揭示了交替全局框架架构中的角色分明:早期的全局层不形成有意义的对应关系,中间层执行跨视图对齐,而最后的层仅提供微小的细化。受这些发现的启发,我们提出了一种无需训练的两步加速方案:(1)将早期的全局层转换为帧注意力;(2)通过在补丁标记上进行子采样K/V,同时保持对角线并添加均值填充组件来子采样全局注意力。我们将此策略应用于VGGT和π³,并在标准姿态和点图基准上进行评估。我们的方法在不同上下文长度下实现了显著的推理加速,100帧时约2倍加速,300帧时4-5倍加速,800帧时8-10倍加速,同时在原始模型的准确率匹配或略优,并在极密集的多视图设置中保持稳健,而先前的稀疏注意力基线在此情况下失效。
英文摘要:
Models such as VGGT and $π^3$ have shown strong multi-view 3D performance, but their heavy reliance on global self-attention results in high computational cost. Existing sparse-attention variants offer partial speedups, yet lack a systematic analysis of how global attention contributes to multi-view reasoning. In this paper, we first conduct an in-depth investigation of the global attention modules in VGGT and $π^3$ to better understand their roles. Our analysis reveals a clear division of roles in the alternating global-frame architecture: early global layers do not form meaningful correspondences, middle layers perform cross-view alignment, and last layers provide only minor refinements. Guided by these findings, we propose a training-free two-step acceleration scheme: (1) converting early global layers into frame attention, and (2) subsampling global attention by subsampling K/V over patch tokens with diagonal preservation and a mean-fill component. We instantiate this strategy on VGGT and $π^3$ and evaluate across standard pose and point-map benchmarks. Our method achieves substantial inference acceleration across different context lengths, yielding about $2\times$ speedup at 100 frames, $4$--$5\times$ at 300 frames, and $8$--$10\times$ at 800 frames, while matching or slightly improving the accuracy of the original models and remaining robust in extremely dense multi-view settings where prior sparse-attention baselines fail.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。