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

激活用于多场景绝对位姿回归的自注意力机制

Activating Self-Attention for Multi-Scene Absolute Pose Regression

Sungkyunkwan University(成均馆大学)

Miso Lee, Jihwan Kim, Jae-Pil Heo

AI总结:

本文针对多场景绝对位姿回归中Transformer自注意力图坍塌问题,从query-key嵌入空间扭曲的新视角出发,提出辅助损失对齐query与key,并采用固定正弦位置编码,有效提升了室内外场景的位姿回归性能。

摘要:

多场景绝对位姿回归满足了在各种真实世界环境中对快速且内存高效的相机位姿估计的需求。如今,基于Transformer的模型已被设计用于在多场景中直接回归相机位姿。尽管具有潜力,但由于自注意力图坍塌导致表示能力低下,Transformer编码器未被充分利用。这项工作突出了该问题,并从新视角对其进行了研究:query-key嵌入空间的扭曲。基于统计分析,我们揭示了query和key被映射到完全不同的空间中,且只有少数key被混合到query区域。这导致了自注意力图的坍塌,因为所有query都被认为与那少数key相似。因此,我们提出了简单但有效的解决方案来激活自注意力。具体而言,我们提出了一个对齐query和key的辅助损失,防止query-key空间的扭曲,并鼓励模型通过自注意力寻找全局关系。此外,采用固定的正弦位置编码替代训练不足的可学习编码,以向自注意力的输入中反映适当的位置线索。结果表明,我们的方法有效解决了上述问题,从而在室外和室内场景中均优于现有方法。

英文摘要:

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.

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

↑