Location-Aware Language Models via Secondary Embeddings

Gokul Srinivasagan, Munir Georges
8/31/2026
cs.CL

No confident code implementation found for this paper.

Abstract

Pretrained transformer-based language models achieve strong performance across a wide range of NLP tasks but remain limited in encoding geo-locational semantics, leading to suboptimal representations of place names and spatial entities. In this work, we propose a lightweight, model-agnostic approach for injecting geo-spatial awareness into pretrained embeddings without modifying the tokenizer or requiring costly retraining. Our method augments input representations with structured geographic signals by combining location names with their corresponding latitude and longitude, and employs a location-focused masking to better align textual representations with real-world spatial relationships. This design allows the model to incorporate geo-spatial context while preserving existing semantic and syntactic knowledge. Experimental results demonstrate substantial improvements in geo-spatial alignment while maintaining comparable performance on standard NLP benchmarks such as GLUE. The method is computationally efficient, requiring only minutes of additional training, and generalizes across multiple model architectures and scales.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{srinivasagan2026locationaware,
  title  = {Location-Aware Language Models via Secondary Embeddings},
  author = {Gokul Srinivasagan and Munir Georges},
  year   = {2026},
  eprint = {2609.00454},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.00454v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.00454.svg)](https://codeofpaper.com/paper/2609.00454)

Discussion