Manuscript Offprint

arXiv:2609.05262

Self-Supervised Lexical Representation Learning for Fast, Large-Scale Phylogenetic Inference

Tim Wientzek

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Computational phylogenetics has become an essential tool in historical linguistics, yet its application at a global scale remains constrained by two factors: the labor-intensive manual annotation of cognacy judgments required for character-based methods and the substantial computational cost of inference on large datasets. This paper introduces a fully self-supervised contrastive learning framework that learns lexical representations directly from raw IPA-transcribed wordlists, without requiring cognacy annotations, alignments, or additional expert input. The model employs a dual contrastive objective: a word-level loss that organizes phonetically similar forms into a coherent space, and an auxiliary language-level loss that encourages the lexical space to reflect broader phonological properties of languages. From the resulting word representations, pairwise language distances are derived and used to infer a global phylogenetic tree of 3,399 language varieties. The inferred tree achieves a generalized quartet distance (GQD) to the Glottolog reference tree competitive with multiple baselines, while requiring only minutes of computation on a standard notebook GPU. Furthermore, the same representations capture diachronic concept stability: variance in pairwise distances across languages yields stability rankings that correlate significantly with established rankings. Ablation studies confirm that both the language-level objective and the use of phonetic feature vectors improved the inferred trees topology with regards to GQD. The framework thus provides a computationally efficient and fully automatic alternative for large-scale phylogenetic inference and offers a unified representation supporting downstream analyses at both the language and concept level.

1 Introduction

Computational phylogenetics has become an established tool in historical linguistics and is increasingly used to investigate questions such as language subgrouping and the timing of language divergence (Greenhill, 2023). State-of-the-art methods are predominantly character-based and commonly rely on Bayesian estimation or maximum likelihood. These methods typically require manually established cognacy judgements or sound correspondences to be converted into binary character matrices. Creating these datasets is a time-consuming and labor-intensive process that requires deep expertise in the respective language families. This introduces potential biases, since experts may already hold prior assumptions about language relationships, and different experts may disagree on how the same evidence should be encoded. It also makes exact replication more difficult (Rama and List, 2019; Wu and List, 2023; Snee et al., 2026).

The same problem limits large-scale inference in two ways. First, expert cognacy judgements or equivalent character encodings are not available for many languages. Second, the computational cost of phylogenetic inference becomes substantial once thousands of languages are considered. The first problem can be addressed through automated cognacy annotation or sound correspondence detection, and several such approaches have been shown to produce phylogenetic trees of reasonable quality (Rama et al., 2018; Häuser et al., 2024). However, these methods still require large amounts of computational resources when applied to large datasets. For example, the automated character-based inference of Jäger (2026) on more than 3000 languages required several days of computation even on a high-performance cluster. This limits not only the initial inference of large trees, but also their repeated reconstruction when the underlying data change or new languages are added.

Distance-based methods provide an alternative approach to phylogenetic inference. Here, pairwise distances between lexical forms from two languages are calculated and averaged across shared concepts, resulting in a language-by-language distance matrix. Distances can for example be based on Levenshtein distance (Levenshtein, 1965; Müller et al., 2009; LD) or pointwise mutual information (Jäger, 2018; PMI). A tree is then constructed from the resulting matrix, grouping languages according to their overall lexical similarity. In contrast to character-based methods, distance-based approaches do not explicitly model an evolutionary history, meaning that they cannot directly represent, for example, when a particular innovation occurred. They are, however, less computationally expensive and can provide useful approximations for exploratory analyses and hypothesis testing (e.g., Jäger, 2015). With curated collections such as ASJP and Lexibank, which cover thousands of languages, large-scale phylogenetic inference is therefore considerably more accessible than with manually constructed character matrices (Wichmann et al., 2025; List et al., 2022). Improving the quality of automatically derived language distances is consequently of interest in its own right.

The emergence of large language models (LLMs) and related neural architectures has led to an increasing use of learned language representations for representing linguistic information in a continuous vector space. As such, there is a growing body of curated collections of language distances (Littell et al., 2017; Khan et al., 2025; Goot et al., 2025), which have been used, for example, for predicting typological features (Amirzadeh et al., 2025), dependency parsing (Üstün et al., 2022), and predicting the suitability of languages for transfer learning (Lin et al., 2019; Adilazuarda et al., 2024; Rice et al., 2025; Blaschke et al., 2025). Other work has investigated learned language representations themselves for related tasks (Malaviya et al., 2017; Oncevay et al., 2020; Vastl et al., 2020; Östling and Kurfah, 2023). More relevant to historical linguistics, several studies have shown that neural language representations contain genealogical and areal signals even when the underlying models were not trained specifically for historical-linguistic tasks (Rabinovich et al., 2017; Rama et al., 2020). The question of whether lexical representations can instead be learned directly from multilingual lexical data in a self-supervised framework and subsequently used across multiple historical-linguistic tasks remains less explored. Once trained, the same representations could also serve as a basis for further analyses, since pairwise language distances and concept-level statistics can be calculated directly from the lexical representations. This is also a clear advantage over traditional distance-based methods, where pairwise language distances are derived directly from surface form similarity and individual form information is not retained. This limits these approaches to tree inference alone.

The work at hand investigates to which degree lexical representation learning on datasets designed specifically for applications in computational historical linguistics can recover historically meaningful structure sufficiently well to support both language-level and concept-level downstream tasks. The first task is phylogenetic inference, where the learned lexical representations are used to derive a pairwise language distance matrix and reconstruct a large-scale phylogenetic tree. The second task is concept stability, where variation in the learned lexical distances is used to derive a ranking of concepts according to their diachronic stability. These tasks test different aspects of the learned representation. Successful phylogenetic inference requires the representation to retain information about genealogical relationships between languages, while concept stability provides an independent test of whether the representation captures historically meaningful differences between lexical concepts.

References (56)