OT on the Map: Quantifying Domain Shifts in Geographic Space

Haoran Zhang, Livia Betti, Konstantin Klemmer, Esther Rolf, David Alvarez-Melis · 2026

Read OT on the Map: Quantifying Domain Shifts in Geographic Space by Haoran Zhang, Livia Betti, Konstantin Klemmer, Esther Rolf, David Alvarez-Melis (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-16220.txt.

Introduction

Zhang, Betti, Klemmer, Rolf, and Alvarez-Melis propose GeoSpOT, a way to measure how far apart geographic domains sit, using optimal transport. Models often train in one region and deploy in another, yet no principled test says when that move will work. Their distances predict how hard cross-region transfer will be. They also show location-encoder embeddings rival image and text embeddings, despite using location alone.

Catalog record

CREATORHaoran Zhang, Livia Betti, Konstantin Klemmer, Esther Rolf, David Alvarez-Melis
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE45354
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2604.16220

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

OT on the Map: Quantifying Domain Shifts in Geographic Space Haoran Zhang, Livia Betti, Konstantin Klemmer, Esther Rolf, David Alvarez-Melis Abstract In computer vision and machine learning for geographic data, out-of-domain generalization is a pervasive challenge, arising from uneven global data coverage and distribution shifts across geographic regions. Though models are frequently trained in one region and deployed in another, there is no principled method for determining when this cross-region adaptation will be successful. A well-defined notion of distance between distributions can effectively quantify how different a new target domain is compared to the domains used for model training, which in turn could support model training and deployment decisions. In this paper, we propose a strategy for computing distances between geosp atial domains that leverages geographic information with O ptimal T ransport methods ( GeoSpOT ). In our experiments, GeoSpOT distances emerge as effective predictors of cross-domain transfer difficulty. We further demonstrate that embeddings from pretrained location encoders provide information comparable to image/text embeddings, despite relying solely on longitude-latitude pairs as input. This allows users to get an approximation of out-of-domain performance for geospatial models, even when the exact downstream task is unknown, or no task-specific data is available. Building on these findings, we show that GeoSpOT distances can preemptively guide data selection and enable predictive tools to analyze regions where a model is likely to underperform. Our code is available at https://github.com/haoranzhang7/GeoSpOT . 1 Introduction Machine learning (ML) with geospatial data has been used for a range of impactful applications, such as crop yield prediction ( 3 ) , disaster forecasting ( 27 ) , and pollution monitoring ( 20 ) . Due to the limited availability and quality of labeled datasets, domain scientists commonly train models on data-rich regions (often in Western countries) and then transfer the model’s predictive capabilities to target data-poor regions (often in the Global South) via domain adaptation. This approach is not straightforward. Distinct climates, cultures, and environmental conditions cause distribution shifts between regions ( 30 ; 15 ) , and, as a result, ML models may struggle to generalize effectively to unseen geographic domains ( 36 ) . Quantifying when and where a model can generalize has been a focus of recent work in geospatial domain adaptation ( 31 ) , which compares geospatial datasets through measures of similarity or distance. When comparing geospatial datasets, two complementary notions of distance naturally arise. The first is based on geographic proximity; standard measures such as geodesic distance quantify how close two regions are in space. This approach is intuitive: geographically closer domains often share climatic, social, and environmental characteristics, which should enable more effective domain adaptation and knowledge transfer. 40 formalized this intuition in the “first law of geography”, which states that “all things are related, but near things are more related.” However, purely spatial distances capture only the physical separation between locations and ignore the data collected at those locations—the features that predictive models actually operate on. A second notion of distance instead compares datasets in feature space , for example by using Optimal Transport (OT) on feature embeddings of the data ( 2 ) . Such feature-based distances directly reflect similarity in the observable data (e.g., images, text, or other measurements), but they require that the data already exist for both domains—a costly and often impractical assumption in real-world geospatial settings. Moreover, these distances are not inherently aware of geographic structure, leaving important information unused. In this work, we combine these two perspectives by introducing GeoSpOT , a geographically-aware OT framework for comparing geospatial datasets. GeoSpOT integrates spatial and feature-based information by defining an OT ground cost that incorporates both feature similarity and geographic proximity. To incorporate location information in a semantically meaningful way, we leverage pretrained location encoders—models that take geographic coordinates (latitude, longitude) as input and produce embeddings that capture environmental and contextual characteristics of those locations. These encoders are pretrained in a self-supervised manner, often using CLIP-style image-location matching objectives ( 23 ; 41 ) . As a result, GeoSpOT can be applied independent of any specific dataset or task, enabling distance computation even when only geographic coordinates for the regions of interest are available. Our experiments show that GeoSpOT distances reliably estimate cross-domain transfer performance across diverse downstream tasks. These findings advance our understanding of geospatial domain transfer by showing that purely spatial distances are insufficient to explain transfer success. Beyond estimation, we illustrate the practical utility of GeoSpOT through data selection experiments, where training sets chosen using distance-aware criteria yield models with significantly improved generalization to new domains. 2 Related Work Geographic distribution shifts. Machine Learning models trained on geospatial data often face substantial performance degradation when deployed in new regions due to geographic distribution shifts . Such shifts arise from regional variations in terrain, seasonality, and acquisition conditions ( 13 ; 36 ) , as well as differences in sensing instruments and collection protocols ( 28 ) . For instance, while satellite images of houses in the United States and Egypt depict the same conceptual object, differences in architectural style, urban planning, and environmental factors produce distinct visual signatures. These shifts are exacerbated by the common practice of training on data-rich regions and deploying in under-sampled areas. Previous work provides empirical evidence for these distribution shifts, e.g., highlighting performance gaps when training data lack geographic diversity ( 32 ; 37 ) . Efforts to address such shifts in geospatial ML have focused primarily on post hoc adaptation and robustness. This includes work on out-of-distribution detection ( 18 ; 10 ; 25 ; 13 ) and improved domain adaptation methods for remote sensing imagery ( 26 ; 14 ; 29 ; 21 ) . Recent studies have shown that incorporating relevant metadata—particularly geographic coordinates—into adaptation frameworks can enhance cross-region transfer ( 42 ; 7 ) . In contrast, our work focuses on predicting domain transfer success a priori , even for the challenging case where no data beyond coordinates is available for the domain of interest. Previous work such as 31 estimate model applicability by quantifying feature-space distances for individual samples. We instead propose to compare entire geospatial data distributions, introducing a principled way to anticipate geospatial adaptation challenges before model training. Dataset distances for domain adaptation. Rigorous, well-defined methods for quantitatively comparing datasets can guide domain adaptation decisions. Several distinct notions of dataset distances have been explored to predict cross-domain transfer success. Discrepancy distances measure the similarity over a set of functions from a hypothesis class ( 22 ; 4 ) yet are often computationally intractable or infeasible to compute. Other measures of distance employ information-theoretic measures of similarity ( 1 ) or learned domain relations ( 42 ) , but depend on the model used to determine distances. More recent work leverages Optimal Transport (OT) as a flexible way to define dataset distances, encoding aspects of the data that are most relevant for learning, with extensions incorporating label information ( 6 ; 2 ; 38 ) , group structure ( 35 ) , or hierarchical relationships ( 43 ) . Among these, 38 combine the OT distance between domains with a label-dependent task distance, but in our work with label-agnostic setting, this reduces to the standard

Read the complete text