Abstract
Worldwide image geolocalization—the task of predicting GPS coordinates from images taken anywhere on Earth—poses a fundamental challenge due to the vast diversity in visual content across regions. While recent approaches adopt a two-stage pipeline of retrieving candidates and selecting the best match, they typically rely on simplistic similarity heuristics and point-wise supervision, failing to model spatial relationships among candidates. In this paper, we propose GeoRanker, a distance-aware ranking framework that leverages large vision-language models (LVLMs) to jointly encode query-candidate interactions and predict geographic proximity. In addition, we introduce a multi-order distance loss that ranks both absolute and relative distances, enabling the model to reason over structured spatial relationships. To support this, we curate GeoRanking, the first dataset explicitly designed for geographic ranking tasks with multimodal candidate information. GeoRanker achieves state-of-the-art results on two well-established benchmarks (IM2GPS3K and YFCC4K), significantly outperforming current best methods.
Introduction
Predicting the exact GPS coordinates of an image taken anywhere on Earth is a massive challenge due to the sheer visual diversity of our planet. Current state-of-the-art (SOTA) methods typically use a two-stage pipeline: first, they retrieve a set of potential location candidates from a massive database, and second, they select the best match from that set.
However, a critical bottleneck exists in the second stage. Most existing models rely on "point-wise" similarity—essentially asking, "How much does this image look like this specific coordinate?" independently for every candidate. This approach ignores the spatial relationships between candidates and fails to model the complex interactions between the query image and the candidate's metadata. Consequently, models often struggle to distinguish between visually similar but geographically distant locations. GeoRanker addresses this by transforming geolocalization into a structured spatial ranking task.
The GeoRanker Framework
GeoRanker treats geolocalization as a reasoning task rather than a simple search. The framework is built upon three core innovations:
1. LVLM Integration
Instead of using simple encoders, GeoRanker utilizes a Large Vision-Language Model (specifically Qwen2-VL) to jointly process the query image and candidate information, including GPS coordinates, textual descriptions, and reference images. This allows the model to capture rich cross-modal interactions and perform "spatial reasoning"—for example, recognizing that a specific architectural style mentioned in a candidate's text description matches the visual cues in the query image.
2. Multi-Order Distance Loss
This core algorithmic innovation moves beyond binary "correct/incorrect" supervision. Using a partial Plackett-Luce loss, the model optimizes for two levels of geographic understanding:
- First-order supervision: Ranking candidates based on their absolute distance to the ground truth.
- Second-order supervision: Ranking the relative differences between candidate distances.
This teaches the model not just which candidate is closer, but how much closer it is compared to others, forcing it to learn the underlying spatial structure and the "distance gap" between candidates.
3. Hybrid Candidate Pool
During inference, the model ranks a combination of candidates retrieved from a traditional database (like MP16-Pro) and candidates "hallucinated" or generated by an LVLM. This ensures a diverse and high-quality selection pool, combining the strengths of retrieval and generative modeling.
The GeoRanking Dataset
To support this ranking-centric approach, the authors curated GeoRanking, the first dataset specifically designed for geographic ranking. It contains 100,000 samples and 2 million query-candidate pairs, featuring multimodal annotations including GPS, text, and images. This dataset provides the necessary scale and diversity to train models on complex spatial relationships.
Experimental Results
GeoRanker achieved SOTA results across all geographic scales on the industry-standard IM2GPS3K and YFCC4K benchmarks. The most dramatic gains were observed at high resolutions:
- IM2GPS3K: Improved street-level (1km) accuracy by 12.9% over the previous best method (G3).
- YFCC4K: Achieved a 37.3% relative improvement at the 1km threshold.
- Coarse-grained accuracy: The model also showed consistent improvements at the city (25km), region (200km), and country (750km) levels.
Beyond accuracy, GeoRanker demonstrated remarkable data efficiency. It outperformed the previous SOTA even when trained on only 10% of the available training data, suggesting that the ranking objective provides a much stronger supervisory signal than point-wise similarity. Furthermore, by using a lightweight "value head" to score candidates, GeoRanker allows for parallel computation, making it more than twice as fast as standard LVLM prompting methods.
Conclusion and Future Work
GeoRanker demonstrates that geolocalization is fundamentally a ranking problem. By explicitly modeling spatial relationships and leveraging the reasoning capabilities of LVLMs, the framework sets a new standard for precision in worldwide image geolocalization.
Future work may address the computational overhead of the ranking stage through "selective ranking"—implementing a short-circuit mechanism when initial retrieval results are already geographically concentrated. Additionally, bridging the "modality gap" for generated candidates (which currently lack the rich metadata of database-retrieved candidates) could further enhance performance.
Summary updated