Learning Sequence Descriptor based on Spatio-Temporal Attention for Visual Place Recognition
Junqiao Zhao, Fenglin Zhang, Yingfeng Cai, Gengxuan Tian, Wenjie Mu, Chen Ye, Tiantian Feng
TL;DR
This paper tackles Visual Place Recognition (VPR) under perceptual aliasing by introducing a spatio-temporal sequence descriptor that fuses intra-frame spatial patterns with inter-frame temporal dynamics. A dual-branch Transformer architecture learns spatial and temporal representations from image patches, using a sliding window and relative positional encoding to capture robust spatio-temporal patterns, with NetVLAD aggregating the final descriptor. The method, trained with a max-margin triplet loss, outperforms state-of-the-art sequence-descriptor baselines across MSLS, NordLand, and Oxford RobotCar, while analyses reveal benefits of temporal interactions and relative positioning. Practically, the approach offers improved robustness to appearance and illumination changes and dynamic objects, albeit with higher online computation and memory demands, suggesting a trade-off for real-time VPR systems. The work provides a solid foundation for integrating temporal dynamics into sequence-based VPR and points to avenues for efficiency and further performance gains.
Abstract
Visual Place Recognition (VPR) aims to retrieve frames from a geotagged database that are located at the same place as the query frame. To improve the robustness of VPR in perceptually aliasing scenarios, sequence-based VPR methods are proposed. These methods are either based on matching between frame sequences or extracting sequence descriptors for direct retrieval. However, the former is usually based on the assumption of constant velocity, which is difficult to hold in practice, and is computationally expensive and subject to sequence length. Although the latter overcomes these problems, existing sequence descriptors are constructed by aggregating features of multiple frames only, without interaction on temporal information, and thus cannot obtain descriptors with spatio-temporal discrimination.In this paper, we propose a sequence descriptor that effectively incorporates spatio-temporal information. Specifically, spatial attention within the same frame is utilized to learn spatial feature patterns, while attention in corresponding local regions of different frames is utilized to learn the persistence or change of features over time. We use a sliding window to control the temporal range of attention and use relative positional encoding to construct sequential relationships between different features. This allows our descriptors to capture the intrinsic dynamics in a sequence of frames.Comprehensive experiments on challenging benchmark datasets show that the proposed approach outperforms recent state-of-the-art methods.The code is available at https://github.com/tiev-tongji/Spatio-Temporal-SeqVPR.
