A Latent Variable Model for Geographic Lexical Variation

Jacob Eisenstein, Brendan O'Connor, Noah A. Smith, Eric P. Xing

Abstract

This paper introduces the Geographic Topic Model, a generative approach designed to automatically discover regional dialects and slang from raw social media text. By disentangling topical content from geographic variation, the model treats regional dialects as "corruptions" of base topics. Experimental results on geotagged Twitter data demonstrate that this joint modeling significantly improves location prediction accuracy over standard baselines and successfully identifies geographically-salient linguistic markers without requiring pre-defined linguistic variables.

Introduction

Traditional sociolinguistics often relies on the manual identification of linguistic variables—such as regional preferences for "soda," "pop," or "coke"—to map dialects. However, this approach is difficult to scale to the massive, unstructured data found on the web. A primary challenge in automating this process is that word choice is driven by two overlapping factors: the topic of conversation and the geographic location of the speaker. For instance, while "sports" talk involves universal terms like "game," regional variations introduce specific entities like "Celtics" in Boston or "Lakers" in Los Angeles. Existing models like Latent Dirichlet Allocation (LDA) capture topics but ignore geography, while simple geographic models may conflate temporary local events with permanent dialects. This work seeks to separate these signals through a unified generative framework.

Methodology

The authors propose the Geographic Topic Model, which treats geography as a transformation of a base topic. The generative process involves several key components:

  1. Base Topics: The model defines "pure" topics as distributions over words representing general discourse (e.g., food, music).
  2. Regional Corruption: For each geographic region, these base topics are modified. A regional variant is drawn from a Normal distribution centered on the base topic, allowing the model to learn that a "food" topic in California might favor "sprouts" more than its New York counterpart.
  3. Spatial Latent Variables: Rather than using fixed political boundaries, the model learns latent "regions" modeled as bivariate Gaussians over latitude and longitude. This allows the discovery of linguistic communities based on both text and GPS coordinates.
  4. Inference: Due to the use of a logistic normal distribution for the cascading effect, the authors employ mean-field variational inference to estimate model parameters.
Graphical model and parameter definitions for the Geographic Topic Model.

Dataset

The model was trained and evaluated on a dataset of geotagged microblogs from the Twitter "Gardenhose" stream (March 2010). The data was filtered to include users in the contiguous U.S. with at least 20 messages and fewer than 1,000 followers/following to minimize noise from bots. The final dataset comprised approximately 9,500 users, 380,000 messages, and 4.7 million tokens, with a curated vocabulary of 5,216 words including non-standard slang.

Results

The Geographic Topic Model was evaluated on its ability to predict a user's location based solely on tweet text. It achieved a median error of 494 km, significantly outperforming L1-regularized text regression (712 km) and Supervised LDA (728 km). In a classification task to place users into one of four U.S. Census regions, the model reached 58% accuracy against a 37% baseline.

Qualitatively, the model successfully identified localized lexical preferences across different topics. For example, it discovered a "Lake Erie" region characterized by specific references to the rapper Wiz Khalifa and local sports teams, demonstrating that linguistic boundaries often transcend state lines.

Regional variants of base topics discovered by the model, showing localized lexical preferences.

Discussion and Limitations

The study highlights that social media provides a rich "vernacular" source for dialect study, closer to daily speech than formal news text. However, several limitations remain. The 2010 Twitter demographic was skewed toward younger users, meaning the learned dialects are age-specific. Additionally, the computational complexity of the logistic normal cascade limited the vocabulary size. Future work could incorporate other confounding factors such as race, gender, and socioeconomic status, as well as model the dynamic, temporal nature of linguistic variation.

Summary updated

BibTeX
@inproceedings{eisenstein2010latent,
  author = {Jacob Eisenstein and Brendan O'Connor and Noah A. Smith and Eric P. Xing},
  title = {{A Latent Variable Model for Geographic Lexical Variation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2010},
}
Figure