HierLoc: Hyperbolic Entity Embeddings for Hierarchical Visual Geolocation
Hari Krishna Gadi, Daniel Matos, Hongyi Luo, Lu Liu, Yongliang Wang, Yanfeng Zhang, Liqiu Meng
TL;DR
This work tackles the challenge of global visual geolocation by reframing it as image-to-entity alignment within a hyperbolic geographic hierarchy. It introduces HierLoc, which embeds country, region, subregion, and city entities in a Lorentz-hyperbolic space, fusing multimodal signals and refining predictions via cross-modal attention and a Geo-Weighted Hyperbolic InfoNCE loss. Key contributions include constructing a compact 240k-entity hierarchy from large-scale datasets, achieving state-of-the-art results on OSV5M with substantial improvements in fine-grained localization, and demonstrating significant inference efficiency due to sublinear search over entities. The work also shows robust performance across multiple benchmarks and backbone choices, highlighting the practical impact of geometry-aware hierarchical embeddings for scalable, interpretable global geolocation and suggesting broader applicability to other hierarchical multimodal tasks.
Abstract
Visual geolocalization, the task of predicting where an image was taken, remains challenging due to global scale, visual ambiguity, and the inherently hierarchical structure of geography. Existing paradigms rely on either large-scale retrieval, which requires storing a large number of image embeddings, grid-based classifiers that ignore geographic continuity, or generative models that diffuse over space but struggle with fine detail. We introduce an entity-centric formulation of geolocation that replaces image-to-image retrieval with a compact hierarchy of geographic entities embedded in Hyperbolic space. Images are aligned directly to country, region, subregion, and city entities through Geo-Weighted Hyperbolic contrastive learning by directly incorporating haversine distance into the contrastive objective. This hierarchical design enables interpretable predictions and efficient inference with 240k entity embeddings instead of over 5 million image embeddings on the OSV5M benchmark, on which our method establishes a new state-of-the-art performance. Compared to the current methods in the literature, it reduces mean geodesic error by 19.5\%, while improving the fine-grained subregion accuracy by 43%. These results demonstrate that geometry-aware hierarchical embeddings provide a scalable and conceptually new alternative for global image geolocation.
