A Kernel Independence Test for Geographical Language Variation

Dong Nguyen, Jacob Eisenstein

TL;DR

This paper introduces the Hilbert-Schmidt Independence Criterion (HSIC) as a powerful, non-parametric tool for detecting geographical language variation. Unlike traditional dialectology statistics, HSIC handles diverse data types (from word frequencies to categorical syntax) without requiring researchers to "bin" data into arbitrary geographical regions or assume linear relationships.

What Problem Does This Paper Address?

In sociolinguistics and dialectology, a fundamental task is determining whether a linguistic variable (like saying "soda" vs. "pop") is actually tied to geography or just a result of random chance.

Existing tools have three major "pain points":

  1. Parametric Assumptions: Methods like Moran’s I or the Mantel test often assume a specific form of dependence (e.g., linear or monotonic). If a dialect pattern is non-linear or "patchy," these tests might fail to find it (a Type II error).
  2. Data Incompatibility: Some tests only work for frequencies (continuous data), while others only work for boolean indicators (presence/absence). There hasn't been a "one-size-fits-all" test for the messy variety of linguistic data.
  3. The Binning Problem: Many approaches require aggregating individual observations into predefined geographical bins (like counties or states). This can obscure patterns that don't align with political boundaries.

Methods

The authors propose using HSIC, a kernel-based independence test.

  • The Core Idea: HSIC measures the dependence between two sets of variables (language and location) by embedding their probability distributions into a high-dimensional space called a Reproducing Kernel Hilbert Space (RKHS).
  • Independence Testing: It tests the null hypothesis that language and geography are independent. If the joint distribution of the two looks significantly different from the product of their marginal distributions, a geographical pattern exists.
  • Kernels: The "magic" lies in the kernel functions. The authors use a Gaussian Radial Basis Function (RBF) kernel for geographical coordinates and continuous linguistic data (frequencies), and a Delta (Dirac) kernel for categorical data.
  • Scalability: Since computing kernel matrices for millions of observations is computationally expensive ($O(N^2)$), the authors employ low-rank approximations via incomplete Cholesky decomposition to make the test viable for large social media datasets.

Datasets

The study evaluates the test using both controlled simulations and real-world data:

  • Synthetic Data: Simulated dialect patterns (continua and centers) overlaid on the actual population density of the Netherlands to test the power and calibration of the statistics.
  • Letters to the Editor: A corpus of North American newspaper letters featuring 40 manually selected lexical variables across 206 cities.
  • Syntactic Atlas of the Dutch Dialects (SAND): A high-quality atlas containing 143 syntactic variables across 157 locations in the Netherlands.
  • Dutch Twitter: Over 4 million geotagged tweets from the Netherlands, used for both testing known variables and an exploratory data-driven search for new ones.

Key Insights and Ideas

  • The "Angle" Problem: One of the most striking findings is that the Mantel test is highly sensitive to the direction of a dialect continuum. If a linguistic change happens along an axis that doesn't play well with the distance metric, the Mantel test's power drops to nearly zero. HSIC, being non-parametric, is robust to this "angle" effect.
  • Statistical Consistency: Unlike classical tests, HSIC is "consistent." This means that as you gather more data, the test is guaranteed to eventually reach the correct decision about whether a spatial dependence exists, regardless of how complex that dependence is.
  • Avoiding "P-Value Hacking": The authors demonstrate that "sweeping" parameters (like distance cutoffs in Moran's I) to find the most significant result inflates Type I errors (false positives). They advocate for using simple heuristics, like the median distance, to keep the tests well-calibrated.

Key Results

  • Robustness: In synthetic trials, HSIC was significantly more robust to outliers than the Mantel test and more powerful than join count analysis for detecting gradual dialect continua.
  • Real-World Performance: On the Dutch SAND dataset, HSIC identified geographical significance in 65% of variables. It successfully captured non-linear patterns that the Mantel test missed.
  • Exploratory Power: Using HSIC on Twitter data, the authors were able to automatically identify highly localized terms like joh (an interjection) and dadelijk ("immediately"), distinguishing southern Dutch usage from the rest of the country without prior manual selection.

Limitations and Future Work

  • Global vs. Local: HSIC is a global test—it tells you if a word is geographically dependent, but not where the specific boundaries or "hotspots" are. The authors suggest that adapting HSIC into a local measure of dependence is a promising next step.
  • Structured Data: While this paper focused on words and simple syntax, the authors note that the kernel framework could be extended to more complex structures, such as tree kernels for full parse trees or n-gram kernels for phonological change.
  • Computational Cost: Even with low-rank approximations, very large datasets still pose a challenge. Further research into scaling kernel methods for "Big Data" sociolinguistics is needed.

Summary updated

BibTeX
@article{nguyen2017kernel,
  author = {Dong Nguyen and Jacob Eisenstein},
  title = {{A Kernel Independence Test for Geographical Language Variation}},
  journal = {Comput. Linguistics},
  year = {2017},
  doi = {10.1162/coli\_a\_00293},
}
Figure