TL;DR
VidTAG is a novel dual-encoder framework that tackles global video geolocalization by framing it as a frame-to-GPS retrieval task. By introducing temporal alignment and a sequence-denoising transformer, it eliminates the need for massive image reference galleries while producing smooth, temporally consistent trajectories. The model achieves state-of-the-art performance, outperforming existing image-based baselines by up to 25% at a 1 km accuracy threshold.
What Problem Does This Paper Address?
If you show an AI a video taken from a moving car, can it tell you exactly where in the world that car is driving? This task—video geolocalization—has massive implications for forensics, social media, and autonomous exploration.
Currently, AI geolocalization falls into two flawed camps:
- Classification-based methods: These divide the Earth into discrete zones. They work globally but are coarse, usually only guessing the correct city or region.
- Retrieval-based methods: These match query images against a massive gallery of geo-tagged images. While highly accurate, scaling an image-to-image gallery to a worldwide scale is computationally impossible and practically unfeasible.
Furthermore, when you apply image-based models to video frame-by-frame, they suffer from severe temporal inconsistency. Because each frame is evaluated independently, the predicted coordinates jump around erratically, creating jittery, physically impossible trajectories that can skip across continents from one second to the next.
VidTAG bridges this gap by performing frame-to-GPS retrieval. Instead of storing billions of reference images, it maps video frames directly into a shared embedding space with raw GPS coordinates, making global-scale fine-grained localization computationally practical.
Methods
VidTAG's architecture operates in two distinct training phases to master both visual localization and trajectory smoothness.
Phase I: Dual Encoding and Temporal Alignment
- Dual Frame Encoder: For every video frame, VidTAG extracts features using two complementary backbones: CLIP (which captures language-aligned semantic data like landmarks and text signs) and DINOv2 (which provides robust structural and visual features resilient to domain shifts). Their outputs are concatenated.
- TempGeo Module: To stop the "jitter" effect, the concatenated frame embeddings are passed through a lightweight Transformer encoder. Using full self-attention across the video sequence, frames can "borrow" context from both adjacent and distant frames, pulling erratic outliers back toward a temporal consensus.
- Location Encoder: Raw GPS coordinates are projected using an Equal Earth Projection and encoded hierarchically via Random Fourier Features (RFF). The frame and GPS embeddings are then trained contrastively.
Phase II: Trajectory Denoising
Even with temporal alignment, initial frame-to-GPS associations can be noisy. The authors introduce GeoRefiner, an encoder-decoder Transformer designed to act as a sequence denoiser.
To train it, the authors intentionally corrupt ground-truth GPS trajectories to simulate common Phase I errors: sequence-wide shifts, total trajectory collapses, and random scatter.
The GeoRefiner encoder processes the aligned frame embeddings, while the decoder takes the noisy GPS embeddings as queries. Through cross-attention, the model learns to undo these realistic noise patterns by leveraging the underlying visual context of the video.
Datasets
The model was trained and evaluated on three major datasets:
- Mapillary Street-Level Sequences (MSLS): The largest image sequence dataset featuring frame-wise GPS annotations and diverse geographic coverage.
- GAMa (derived from BDD100k): A densely sampled video dataset used to evaluate fine-grained trajectory mapping.
- CityGuessr68k: A global video dataset covering 166 cities, used to benchmark coarse, city-level video geolocalization.
Key Insights and Ideas
- GPS Galleries > Image Galleries: Storing and searching a database of coordinates is incredibly cheap and compact compared to storing a database of worldwide images. Shifting the paradigm to image-to-GPS retrieval makes global fine-grained localization scalable.
- The Power of Dual Encoders: CLIP and DINOv2 are better together. CLIP acts as the "reader" (identifying signs, specific architecture, and language cues), while DINOv2 acts as the "see-er" (understanding the layout, lighting, and geometry of the scene).
- End-to-End Denoising over Post-Processing: Instead of applying a simple smoothing filter (like a Kalman filter) after making predictions, VidTAG trains a transformer specifically to understand how geolocalization models fail, allowing it to use visual context to fix broken trajectories natively.
Key Results
VidTAG achieves massive quantitative leaps over previous state-of-the-art (SOTA) models:
- MSLS Dataset: VidTAG achieved a 41.0% accuracy at the 1 km threshold, outperforming the fine-tuned GeoCLIP baseline (22.5%) by nearly double. It also drastically reduced the median distance error from 2.97 km down to 1.35 km.
- GAMa Dataset: VidTAG hit 53.1% accuracy at the 1 km threshold, a 25% absolute improvement over fine-tuned image baselines.
- CityGuessr68k: On city-level prediction, VidTAG blew past the previous SOTA classification models, jumping from 69.6% to 94.9% accuracy.
- Efficiency: Despite the addition of the TempGeo and GeoRefiner modules, VidTAG maintains a high inference throughput, introducing only a minimal frame-per-second (FPS) penalty compared to standard single-image models.
Limitations and Future Work
The primary limitation of VidTAG is its dependency on the resolution of the uniform grid gallery. A coarser grid speeds up retrieval times but caps the maximum possible accuracy. Conversely, a finer grid provides pinpoint accuracy but causes the coordinate database to scale quadratically, increasing computational latency during the final retrieval step.
The authors note that while achieving strong results at the 1 km mark, pushing boundaries down to sub-500-meter "sub-street" accuracy consistently on a global scale remains an open challenge for future research.
Summary updated