TL;DR
NARA (Neural Anchor-conditioned Relation-Aware representation learning) is a self-supervised framework designed for vector geospatial data that unifies points, polylines, and polygons into a single representation space. By jointly modeling semantic attributes, geometric shapes, and complex topological relationships (such as containment and adjacency), NARA provides a versatile foundation model that consistently outperforms task-specific architectures across diverse urban computing applications.
What Problem Does This Paper Address?
While geospatial foundation models have made massive strides recently, they have predominantly focused on raster data, such as satellite imagery, where grid-based self-supervised learning is straightforward. However, much of our digital world is mapped using vector data (e.g., OpenStreetMap or Overture Maps), which abstracts the environment into discrete, irregular "geoentities" like point-based amenities, polyline road networks, and polygon building footprints.
Existing representation learning methods for vector data are highly fragmented. Models are typically siloed by geometry type—tailored exclusively for Point-of-Interest (POI) recommendations, road network routing, or regional land-use classification. Furthermore, they often rely strictly on spatial proximity (how close things are) while ignoring crucial topological structures (how things connect or contain one another). For instance, two stores inside the same shopping mall share a functional context that simple distance metrics cannot capture. NARA bridges this gap by providing a unified framework capable of contextualizing heterogeneous geoentities regardless of their geometric type.
Methods
NARA treats a map similarly to a document in natural language processing: entities are tokens, and their meanings are derived from their spatial context.
The architecture consists of several key components:
- Multimodal Embeddings: Semantic attributes (names, categories) are encoded using a language model (BERT), while geometric shapes are captured via a geometry encoder (Poly2Vec). These are combined using an adaptive gating mechanism.
- Masked Geoentity Semantic Modeling (MGSM): Mirroring BERT’s masked language modeling, NARA partitions maps into overlapping spatial windows, masks the semantic features of certain entities, and tasks a Transformer encoder with reconstructing them based on surrounding geometry and context.
- Spatial-Aware Attention Supervision: The model is explicitly trained to predict pairwise distances and topological relations (Disjoint, Intersects, Adjacent, Contains/Within) between entities, forcing the attention mechanism to preserve spatial structure.
- Relation-Conditioned Modeling: To enforce geographic principles, NARA introduces Anchor-Conditioned Contrastive Learning (pulling together "sibling" entities that share a relationship to a common anchor, like buildings along the same highway) and Relational Semivariogram Regularization. The latter adapts classical geostatistical concepts to ensure that spatial autocorrelation trends are preserved in the latent embedding space.
Datasets
The authors pretrained NARA on crowdsourced vector data from OpenStreetMap (OSM) for two major metropolitan areas: New York City (NYC) and Singapore (SG).
To evaluate downstream performance, they utilized three distinct datasets:
- Uber Movement (NYC): Taxi speed measurements mapped to OSM road segments for traffic speed estimation.
- Singapore Government Land-Use Taxonomy: An 8-class official dataset used for building function classification.
- Foursquare Check-in Data (NYC & SG): User mobility trajectories used to evaluate next-POI recommendations.
Key Insights and Ideas
- The Map-as-Language Analogy: Just as the word "bank" changes meaning based on whether it appears next to "river" or "America," a Starbucks exhibits different functional patterns depending on whether it is located inside an airport, a suburban mall, or along Fifth Avenue. Spatial context defines functional meaning.
- Topology Overrides Proximity: Proximity-based models fail when hard boundaries exist. NARA successfully learns that topological containment (being inside a polygon) or adjacency creates a stronger functional bond than mere geographic closeness.
- Unified Geometry Processing: By projecting points, lines, and polygons into a shared coordinate-free embedding space, NARA eliminates the need for ad-hoc, geometry-specific feature engineering (like manually counting vertices or calculating area ratios).
Key Results
NARA was frozen after pretraining and evaluated against strong baselines using lightweight downstream classification/regression heads.
- Traffic Speed Estimation: NARA achieved the lowest error rates (MAE of 3.05, MAPE of 18.36%), notably outperforming CityFM and graph-based models on high-speed corridors like motorways and trunk roads.
- Building Function Classification: NARA achieved a Macro-F1 score of 72.82, a +3.88% improvement over CityFM, showing exceptional generalization on underrepresented, less frequent land-use categories like civic institutions and transport hubs.
- Next-POI Prediction: When integrated into sequential trajectory models (TALE, CTLE), NARA embeddings outperformed LLM-augmented approaches (POI-Enhancer), particularly on commute- and work-related venues.
Limitations and Future Work
- Regional Transferability: NARA is pretrained on specific cities. Because urban layouts vary drastically worldwide (e.g., European historic centers vs. American grid cities), zero-shot transferability across different regions remains a challenge.
- Uniform Anchor Importance: The framework currently treats all polygons and polylines as potential spatial anchors with equal weight. Future iterations could benefit from automatically learning anchor salience based on spatial extent or entity density.
- Data Bias: Because it relies on OpenStreetMap, NARA inherently absorbs human annotation biases, where mapping density often reflects contributor interest rather than actual geographic completeness.
Summary updated