arXiv:2411.01443cs.CV2024-11NeurIPS被引 4

解决多场景相机位姿回归中自注意力失效问题

Activating Self-Attention for Multi-Scene Absolute Pose Regression

  • 通过优化查询与键的嵌入空间对齐,激活自注意力机制
  • 在室内外场景下均超越现有方法,显著提升位姿估计精度
  • 适合需要高效高精度位姿估计的机器人与AR应用

多场景绝对位姿回归满足了在多种真实环境快速、低内存消耗地估计相机位姿的需求。当前基于Transformer的模型虽能直接回归位姿,但因自注意力图塌陷导致表征能力弱。本文从查询-键嵌入空间畸变的新视角揭示:查询与键被映射到完全不同的空间,仅少数键进入查询区域,导致所有查询被视为与这些键相似,从而引发注意力塌陷。为此,提出简单有效的解决方案:引入辅助损失以对齐查询与键,防止空间畸变,促使模型通过自注意力发现全局关系;同时采用固定正弦位置编码替代易过拟合的可学习编码,提供更合理的定位信息。实验表明,该方法有效解决了上述问题,在室外与室内场景中均优于现有方法。

原文摘要 · Abstract (English)

Multi-scene absolute pose regression addresses the demand for fast and memory-efficient camera pose estimation across various real-world environments. Nowadays, transformer-based model has been devised to regress the camera pose directly in multi-scenes. Despite its potential, transformer encoders are underutilized due to the collapsed self-attention map, having low representation capacity. This work highlights the problem and investigates it from a new perspective: distortion of query-key embedding space. Based on the statistical analysis, we reveal that queries and keys are mapped in completely different spaces while only a few keys are blended into the query region. This leads to the collapse of the self-attention map as all queries are considered similar to those few keys. Therefore, we propose simple but effective solutions to activate self-attention. Concretely, we present an auxiliary loss that aligns queries and keys, preventing the distortion of query-key space and encouraging the model to find global relations by self-attention. In addition, the fixed sinusoidal positional encoding is adopted instead of undertrained learnable one to reflect appropriate positional clues into the inputs of self-attention. As a result, our approach resolves the aforementioned problem effectively, thus outperforming existing methods in both outdoor and indoor scenes.

位姿估计Transformer自注意力视觉定位

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。