Determining the precise geographic coordinates of an image—worldwide image geolocalization—remains a formidable challenge in computer vision. Traditional methods typically rely on classification into fixed grids or retrieval from massive databases. However, these approaches often struggle with visual ambiguity, data imbalance, and limited precision. GeoToken introduces a novel framework that treats geolocalization as an autoregressive next-token prediction task, mirroring the generative process of Large Language Models (LLMs).
Hierarchical Geographic Tokenization
A core innovation of GeoToken is the use of Google's S2 geometry to represent locations. Instead of predicting continuous latitude and longitude, the model converts coordinates into a sequence of 21 hierarchical tokens. The first token identifies a broad region (a face of the Earth), while subsequent tokens recursively subdivide the area into smaller quadrants. This structure allows the model to learn spatial proximity through shared prefixes: two locations in the same city will share a long sequence of initial tokens. This approach allows the model to prioritize accuracy on coarse tokens before refining its prediction to specific neighborhoods.
The GeoToken Architecture
The model utilizes an encoder-decoder Transformer architecture enhanced by Retrieval-Augmented Generation (RAG). For a given query image, the system retrieves visually similar neighbors from a large geotagged database (such as MP16-Pro). These neighbors provide geographic "hints" in the form of S2 token sequences. The Transformer then predicts the query's S2 sequence one token at a time, conditioned on both the image features and the retrieved context.
Uncertainty-Aware Prediction and Selection
Unlike deterministic models, GeoToken leverages the probabilistic nature of token prediction. During inference, it uses temperature sampling and beam search to generate a pool of candidate locations (typically 30). This allows the model to explore multiple hypotheses when visual cues are ambiguous—for instance, if an image could plausibly be in either the US or Australia. A selection strategy—ranging from internal log-probabilities to an external Multimodal LLM (MLLM) judge like Gemini—is then employed to identify the most likely coordinate from the candidate pool.
Experimental Results
GeoToken demonstrates state-of-the-art performance across major benchmarks. In a standalone, MLLM-free configuration, it achieves 24.3% accuracy within a 1km radius on the YFCC4K dataset, more than doubling the performance of previous baselines like PIGEON (10.4%). When augmented with an MLLM judge, performance further improves to 25.4% at 1km. Notably, the model excels on the IM2GPS3K benchmark, which is known for its difficult rural and non-landmark scenes, achieving gains of up to 13.9% over prior art.
Conclusion and Future Directions
By framing geolocalization as a language modeling problem, GeoToken provides a scalable, privacy-friendly, and highly accurate solution. Because it can function powerfully without cloud-based MLLMs, it offers a path toward on-device, privacy-preserving geolocalization. While the model generates high-quality candidates, a significant gap remains between current selection strategies and an "ideal" oracle selector. Future research will focus on narrowing this gap and integrating additional data modalities—such as timestamps or satellite imagery—to improve localization in geographically sparse regions.
Summary updated