Temporal Attention for Cross-View Sequential Image Localization

Dong Yuan, Frederic Maire, Feras DayoubarXiv 2024

TL;DR

This paper introduces a novel approach to cross-view geo-localization by shifting the focus from single-image retrieval to sequential ground-view image localization within a satellite patch. By introducing a Temporal Attention Module (TAM) that maintains a hidden state across frames, the model leverages historical context to achieve a massive reduction in localization errors—outperforming state-of-the-art single-image methods by up to 75%.

What Problem Does This Paper Address?

Cross-view geo-localization helps robots and autonomous vehicles navigate by matching ground-level street-view images with overhead satellite imagery, which is especially useful when GPS is unreliable. Traditional methods treat this as an image retrieval problem, assuming a strict one-to-one match where the ground image sits exactly at the center of a satellite patch. Recent "fine-grained" localization methods dropped this assumption, instead predicting precise pixel offsets within the satellite image.

However, these fine-grained methods still look at ground images in isolation. In the real world, robots capture continuous streams of video. Because consecutive street-view frames look highly similar, single-image models often get confused, leading to discontinuous and clustered location predictions along a route. This paper addresses the challenge of exploiting temporal consistency in ground-view image sequences to achieve smoother, more accurate fine-grained localization.

Comparison between single-image fine-grained localization and the proposed sequential localization task.

Methods

The authors build upon a state-of-the-art fine-grained localization baseline and augment it to handle sequential data using a recurrent mechanism inspired by Recurrent Neural Networks (RNNs).

  1. Feature Extraction & Cross-View Fusion: For each time step, features are extracted from both the satellite image and the current ground-view image using modified ResNet50 backbones. These features are fused using Self-Attention Blocks (SAB) and Cross-Attention Blocks (CAB) to establish spatial correspondences between the two views.
  2. Hidden State: To carry information across time steps, the network maintains an internal hidden state ($h^t$). Unlike standard RNNs that initialize with a zero vector, this model initializes $h^0$ directly with the first frame's fused feature map.
  3. Temporal Attention Module (TAM): This is the core novelty. Instead of using standard recurrent units like GRUs or LSTMs, the TAM uses a multi-head attention mechanism to fuse past and present data. The current frame's fusion feature acts as the Query ($Q$), while the previous hidden state ($h^{t-1}$) provides the Key ($K$) and Value ($V$). This allows the model to dynamically extract relevant historical context based on the current scene.
  4. Prediction Headers: The temporally enhanced features are passed to multi-layer perceptrons that perform joint classification (to find the right grid cell on the satellite map) and regression (to determine the exact pixel offset).
Overview of the proposed sequential localization architecture featuring the Temporal Attention Module.

Datasets

The model was evaluated on two primary datasets:

  • CVIS (Cross-View Image Sequence): A large-scale dataset containing 38,863 street-view sequences (averaging 7 images per sequence) captured in Vermont, USA, paired with corresponding Google Maps satellite patches.
  • KITTI-CVL: The authors adapted the standard KITTI dataset into a sequential cross-view benchmark. They segmented long driving videos into 1,077 shorter, realistic sequences where frames are sampled every 8 meters, ensuring each sequence can fit within a single satellite patch. This dataset was primarily used to test the model's generalization across different times and unseen environments.

Key Insights and Ideas

  • Overlapping Semantics as a Feature, Not a Bug: Consecutive street-view images contain highly redundant semantic information. While this redundancy causes single-image models to output clustered, repetitive coordinates, the TAM turns it into an advantage by using past frames to constrain and smooth current predictions.
  • Attention Over Recurrence: Using an attention mechanism (TAM) to bridge time steps allows the model to explicitly compute correlations between the current view and historical hidden states, making it more robust to visual changes along the trajectory than standard recurrent updates.

Key Results

The proposed sequential model significantly outperformed single-image baselines across both datasets:

  • CVIS Dataset: On the test set, the proposed method reduced the mean localization error from 12.57 meters to 3.29 meters (a 73.8% improvement) and the median error from 12.15 meters to 1.74 meters (an 85.7% improvement) compared to the single-image baseline.
  • KITTI-CVL Dataset (Generalization): When evaluating on entirely unseen areas and different collection times, directly transferring the model yielded solid improvements. However, after fine-tuning with a small amount of target data, the model achieved a mean error of 3.00 meters compared to the baseline's 13.56 meters—representing a 75.3% reduction in mean distance error.
Qualitative results showing how the proposed method (red) closely tracks the ground truth (blue), while the baseline (purple) clusters predictions erroneously.

Limitations and Future Work

A notable limitation is that directly training the sequential model on small datasets (like the segmented KITTI-CVL) can lead to overfitting due to the limited number of unique sequences. Consequently, the model relies on pre-training on a larger dataset (like CVIS) followed by fine-tuning.

For future work, the authors plan to incorporate motion prior information (such as vehicle odometry or kinematics) directly into the network. This would provide explicit geometric constraints on how far the vehicle could have realistically traveled between frames, further improving tracking accuracy over large-scale areas.

Summary updated

BibTeX
@misc{yuan2024temporal,
  author = {Dong Yuan and Frederic Maire and Feras Dayoub},
  title = {{Temporal Attention for Cross-View Sequential Image Localization}},
  year = {2024},
  eprint = {2408.15569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.15569},
}
Figure