Geographic Adaptation of Pretrained Language Models
Valentin Hofmann, Goran Glavaš, Nikola Ljubešić, Janet B. Pierrehumbert, Hinrich Schütze
TL;DR
This work addresses the lack of extralinguistic, geographic grounding in pretrained language models by introducing geoadaptation, an intermediate multi-task training step that jointly optimizes masked language modeling with token-level geolocation regression. The authors apply this approach to four PLMs across three geographic regions (AGS, BCMS, DNS) and a combined EUR setting, achieving strong improvements across five downstream tasks, particularly in zero-shot scenarios, and attaining new state-of-the-art results for geolocation and language identification. They demonstrate that geoadaptation reshapes the PLM latent space into a geographically retrofit topology, enabling robust generalization without supervision from toponym names during task fine-tuning. The results highlight the potential for grounding NLP systems in geography to enhance performance on geolinguistic tasks and suggest avenues for extending the method to autoregressive models and broader extralinguistic knowledge integration.
Abstract
While pretrained language models (PLMs) have been shown to possess a plethora of linguistic knowledge, the existing body of research has largely neglected extralinguistic knowledge, which is generally difficult to obtain by pretraining on text alone. Here, we contribute to closing this gap by examining geolinguistic knowledge, i.e., knowledge about geographic variation in language. We introduce geoadaptation, an intermediate training step that couples language modeling with geolocation prediction in a multi-task learning setup. We geoadapt four PLMs, covering language groups from three geographic areas, and evaluate them on five different tasks: fine-tuned (i.e., supervised) geolocation prediction, zero-shot (i.e., unsupervised) geolocation prediction, fine-tuned language identification, zero-shot language identification, and zero-shot prediction of dialect features. Geoadaptation is very successful at injecting geolinguistic knowledge into the PLMs: the geoadapted PLMs consistently outperform PLMs adapted using only language modeling (by especially wide margins on zero-shot prediction tasks), and we obtain new state-of-the-art results on two benchmarks for geolocation prediction and language identification. Furthermore, we show that the effectiveness of geoadaptation stems from its ability to geographically retrofit the representation space of the PLMs.
