cs.CLMar 18, 2026

Pretrained Multilingual Transformers Reveal Quantitative Distance Between Human Languages

Authors: Yue Zhao, Jiatao Gu, Paloma Jeretič, Weijie Su

Organizations: Institute for Functional Intelligent Materials, National University of Singapore. · Department of Computer and Information Science, University of Pennsylvania. · Department of Linguistics, University of Pennsylvania. · Department of Statistics and Data Science, Wharton School, University of Pennsylvania.

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.

Figures & tables

Appendix figures & tables15 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. QuanLing: Cross-Branch Validation of Language Distance Quantification on Western Romance

    Oct 3, 2026Yiping Bai

  2. Language Distances are Practical for Equitable Cross-Lingual Transfer

    Sep 26, 2026York Hay Ng, Razan Ahsan Rifandi, Aditya Khan +1Cross-Lingual TransferLow-Resource Language Processing