Activating Self-Attention for Multi-Scene Absolute Pose Regression

Miso Lee, Jihwan Kim, Jae-pil Heo
2/3/2026

No official code found. Best implementation: dlalth557/ActMST (15 stars, MIT, last commit 2025-02-24).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

dlalth557/ActMSTCommunity100%
MIT

[NeurIPS 2024] Activating Self-Attention for Multi-Scene Absolute Pose Regression

150PythonNov 6, 20241 years agoMIT

Similar Papers

Cite this paper

@article{lee2026activating,
  title  = {Activating Self-Attention for Multi-Scene Absolute Pose Regression},
  author = {Miso Lee and Jihwan Kim and Jae-pil Heo},
  year   = {2026},
  eprint = {2411.01443},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2411.01443},
  url    = {https://arxiv.org/abs/2411.01443},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.01443.svg)](https://codeofpaper.com/paper/2411.01443)

Discussion