Pretrained Multilingual Transformers Reveal Quantitative Distance Between Human Languages

Yue Zhao, Jiatao Gu, Paloma Jeretič, Weijie Su
3/18/2026
cs.CLstat.ML

No confident code implementation found for this paper.

Abstract

Understanding the distance between human languages is central to linguistics, anthropology, and tracing human evolutionary history. Yet, while linguistics has long provided rich qualitative accounts of cross-linguistic variation, a unified and scalable quantitative approach to measuring language distance remains lacking. In this paper, we introduce a method that leverages pretrained multilingual language models as systematic instruments for linguistic measurement. Specifically, we show that the spontaneously emerged attention mechanisms of these models provide a robust, tokenization-agnostic measure of cross-linguistic distance, termed Attention Transport Distance (ATD). By treating attention matrices as probability distributions and measuring their geometric divergence via optimal transport, we quantify the representational distance between languages during translation. Applying ATD to a large and diverse set of languages, we demonstrate that the resulting distances recover established linguistic groupings with high fidelity and reveal patterns aligned with geographic and contact-induced relationships. Furthermore, incorporating ATD as a regularizer improves transfer performance in low-resource machine translation. Our results establish a principled foundation for testing linguistic hypotheses using artificial neural networks. This framework transforms multilingual models into powerful tools for quantitative linguistic discovery, facilitating more equitable multilingual AI.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{zhao2026pretrained,
  title  = {Pretrained Multilingual Transformers Reveal Quantitative Distance Between Human Languages},
  author = {Yue Zhao and Jiatao Gu and Paloma Jeretič and Weijie Su},
  year   = {2026},
  eprint = {2603.17912},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.17912v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.17912.svg)](https://codeofpaper.com/paper/2603.17912)

Discussion