Supervised Text-based Geolocation Using Language Models on an Adaptive Grid

Stephen Roller, Michael Speriosu, Sarat Rallapalli, Benjamin Wing, Jason BaldridgeEMNLP 2012

Abstract: Stephen Roller, Michael Speriosu, Sarat Rallapalli, Benjamin Wing, Jason Baldridge. Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning.

2012.

Introduction

Text-based geolocation—the task of predicting a document's latitude and longitude based solely on its content—is a complex challenge. Traditional Information Retrieval (IR) approaches typically divide the world into a uniform grid, much like a checkerboard. However, the Earth's data distribution is far from uniform; a 1-degree cell in rural Montana might contain zero documents, while the same size cell in Manhattan contains thousands. Uniform grids are either too coarse to distinguish between dense neighborhoods or so fine that they create thousands of computationally expensive, empty cells.

Methodology: Adaptive Grids and Centroids

To address these inefficiencies, the authors propose three key improvements to the standard geolocation pipeline:

  1. Adaptive Grids (k-d trees): Instead of a fixed grid, the model uses a k-d tree to recursively split the world into rectangles. Regions are split only when the document count exceeds a specific "bucket size," ensuring that every "pseudo-document" (the concatenation of all texts in a cell) has a similar amount of training data. This creates high resolution in cities and low resolution over oceans.
A global view of the k-d tree adaptive grid, showing how resolution automatically concentrates in data-dense regions while remaining coarse over oceans.
  1. Centroid vs. Midpoint: Previous models used the geometric center of a grid cell as the predicted location. This paper argues for using the centroid—the average latitude and longitude of all training documents within that cell. This accounts for "clumpy" data where users might be clustered in one corner of a large rural cell.
  2. Language Modeling & KL-Divergence: Each cell is represented as a unigram probability distribution. To geolocate a new document, the model calculates the Kullback-Leibler (KL) divergence between the test document’s word distribution and each cell’s distribution, choosing the one with the minimum divergence.

Datasets

The study evaluates its methods across three major benchmarks:

  • GEOWIKI: ~1 million geotagged English Wikipedia articles.
  • GEOTEXT: A small dataset of ~377k tweets from the US.
  • UTGEO2011: A massive new dataset introduced in this paper, containing 38 million tweets from 450k users globally, designed to test the scalability of geolocation models.

Key Insights and Results

The k-d tree approach proves that resolution should follow data density. In New York City, for instance, the model can distinguish between individual boroughs, while in the Atlantic Ocean, one giant cell suffices.

Zoomed-in view of the adaptive grid over New York City, demonstrating the model's ability to achieve borough-level resolution in dense areas.
  • Accuracy Gains: On GEOWIKI, the adaptive grid achieved a mean error of 176 km and a median error of just 13.4 km. On the large UTGEO2011 dataset, the k-d tree model significantly outperformed uniform grids, reducing mean error by nearly 100 km (860 km vs. 956 km).
  • Efficiency: Because the adaptive grid creates fewer "active" cells than a fine-grained uniform grid, it is significantly faster. The Wikipedia model finished in 80 minutes, while the uniform grid model took 19 hours.
  • The Centroid "Free Lunch": Simply switching from the cell's midpoint to the data's centroid consistently improved results across all datasets and grid types with negligible computational cost.
  • Predictive Words: The model successfully identified highly locatable terms, such as specific town names, area codes, and local slang like "ctfuuu" (associated with the D.C. area).

Conclusion and Future Work

While the adaptive grid significantly improves performance, the model still faces challenges like the "Wormhole" problem, where shared place names (e.g., "Theatre Royal" in both London and Hobart) cause large errors. Future work may explore k-Nearest Neighbors (kNN) to smooth predictions or incorporate non-textual cues such as social network links and temporal metadata.

Summary updated

BibTeX
@inproceedings{roller2012supervised,
  author = {Stephen Roller and Michael Speriosu and Sarat Rallapalli and Benjamin Wing and Jason Baldridge},
  title = {{Supervised Text-based Geolocation Using Language Models on an Adaptive Grid}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2012},
  url = {https://openreview.net/forum?id=B1-rbfMd-S},
}
Figure