cs.CLAug 27, 2026
SaveInformational Antilocality and the Locality Bias in LLMs
Organizations: University of Michigan · Eastern Michigan University
Abstract
We consider the ability of transformer-based language models (LLMs) to learn what we call k-antilocal languages, i.e., languages that have no mutual information across any span of contiguous symbols. We construct such languages with increasing , finding that LLMs trained on them achieve comparable cross-entropy loss regardless of antilocality, but converge more slowly on more antilocal languages. Our findings support the idea that non-local dependencies are more difficult to learn, but the evidence for this bias comes from learning speed rather than learning success.
Figures & tables
Figure 1: Difference in GPT-2 validation cross-entropy loss while training on antilocal vs. control (i.e., simple trigram) languages (antilocal control). Languages with higher values of are more antilocal (see Section 3 ), hence exhibit less information locality than the corresponding control languages. GPT-2 eventually achieves optimal performance on all languages.
Figure 2: Rotation classes from trigrams on vocabulary . Top: all trigrams partitioned into rotation classes by color. Note that there are rotation classes in total. Bottom: an illustration of symbol-transition distance within classes.
Figure 3: Sampling a 2-antilocal interleaved language. Top: three rotation classes (see Fig. 2 ) act as generators, each yielding a sequence of randomly sampled trigrams from within its class. Middle: a control sentence formed by concatenating components. Bottom: a 2-back sentence formed by interleaving components.
Figure 4: Cross-entropy loss on validation data from GPT-2 models trained on -antilocal and matched control languages. We plot the first 10K training steps, after which values become too small for meaningful visualization. The dotted line marks (which is the loss we expect from random guessing among vocabulary items).
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| k | m | sentence length | total tokens |
|---|---|---|---|
| 1 | 166 | 998 | |
| 2 | 110 | 992 | |
| 3 | 83 | 998 | |
| 4 | 66 | 992 | |
| 5 | 55 | 992 | |
| 6 | 47 | 989 |
Table 1: Features of our constructed -back languages. All languages used trigrams ( ) on the vocabulary .
Figure 5: Cross-entropy loss on validation data from DeBERTa-v3 models trained on -antilocal and matched control languages. Results are averaged across three seeds, with error ribbons showing standard deviation across seeds.
Figure 6: Difference in DeBERTa-v3 validation cross-entropy loss while training on antilocal vs. control (i.e., simple trigram) languages (antilocal control). All models eventually achieve optimal performance on all languages. The dotted line marks maximum expected difference, in which the control models perform optimally while the antilocal models perform at chance.
Information locality, the tendency for syntactically related words to appear close together, shapes both human language processing and language model learning. While prior work has examined whether language models can acquire impossible languages, it remains unclear whether they can recover natural language from such input and what this reveals about their inductive biases. We address this by complementing learnability-based approaches with a reconstruction framework: fine-tuning GPT-2 models pre-trained on impossible languages to reconstruct natural English from three perturbation types. Our findings show that the recovered structures exhibit shorter dependency lengths than the original text, mirroring the locality preference observed in unconstrained language model generation and providing a quantitative signature of an architectural bias that learnability experiments alone do not reveal. Recovery difficulty increases with the degree of locality disruption. Structural recovery (dependency Triple F1) dissociates from surface recovery (Exact Match), while fluency dissociates from faithful reconstruction under global shuffling. Sentence length further modulates performance: longer sentences facilitate recovery when local structure is preserved but lead to complete collapse under global shuffling. Finally, recovery difficulty tracks learnability difficulty across perturbation types, suggesting that information locality is the shared constraint governing both.
Location Not Found: Exposing Implicit Local and Global Biases in Multilingual LLMs
Multilingual large language models (LLMs) have minimized the fluency gap between languages. This advancement, however, exposes models to the risk of biased behavior, as knowledge and norms may propagate across languages. In this work, we aim to quantify models' inter- and intra-lingual biases, via their ability to answer locale-ambiguous questions. To this end, we present LocQA, a test set containing 2,156 questions in 12 languages, referring to various locale-dependent facts such as laws, dates, and measurements. The questions do not contain indications of the locales they relate to, other than the querying language itself. LLMs' responses to LocQA locale-ambiguous questions thus reveal models' implicit priors. We used LocQA to evaluate 32 models, and detected two types of structural biases. Inter-lingually, we show a global bias towards answers relevant to the US-locale, even when models are asked in languages other than English. Moreover, we discovered that this global bias is exacerbated in models that underwent instruction tuning, compared to their base counterparts. Intra-lingually, we show that when multiple locales are relevant for the same language, models act as demographic probability engines, prioritizing locales with larger populations. Taken together, insights from LocQA may help in shaping LLMs' desired local behavior, and in quantifying the impact of various training phases on different kinds of biases.
Knowledge Localization in Mixture-of-Experts LLMs Using Cross-Lingual Inconsistency
Modern LLMs continue to exhibit significant variance in behavior across languages, such as being able to recall factual information in some languages but not others. While typically studied as a problem to be mitigated, in this work, we propose leveraging this cross-lingual inconsistency as a tool for interpretability in mixture-of-experts (MoE) LLMs. Our knowledge localization framework contrasts routing for sets of languages where the model correctly recalls information from languages where it fails. This allows us to isolate model components that play a functional role in answering about a piece of knowledge. Our method proceeds in two stages: (1) querying the model with difficult factual questions across a diverse set of languages to generate "success" and "failure" activation buckets and then (2) applying a statistical contrastive analysis to the MoE router logits to identify experts important for knowledge. To validate the necessity of this small number of experts for answering a knowledge question, we deactivate them and re-ask the question. We find that despite only deactivating about 20 out of 6000 experts, the model no longer answers correctly in over 40% of cases. Generally, this method provides a realistic and scalable knowledge localization approach to address increasingly complex LLMs.