Proceedings of the National Academy of SciencesEvolutionary BiologyPeer-reviewed journal article
Coalescence and Translation: A Language Model for Population Genetics
Kevin KorfmanniD, Nathaniel S. PopeiD, Melinda Meleghy, Aurélien TellieriD, Andrew D. KerniD
Abstract
Probabilistic models such as the sequentially Markovian coalescent (SMC) have long provided a powerful framework for population genetic inference, enabling reconstruction of demographic history and ancestral relationships from genomic data. However, these methods are inherently specialized, relying on predefined assumptions and/or limited scalability. Recent advances in simulation and deep learning provide an alternative approach: learning directly to generalize from synthetic genetic data to infer specific hidden evolutionary processes. Here we reframe the inference of coalescence times as a problem of translation between two biological languages: the sparse, observable patterns of mutation along the genome and the unobservable ancestral recombination graph (ARG) that gave rise to them. Inspired by large language models, we develop cxt, a decoder-only transformer that autoregressively predicts coalescent events conditioned on local mutational context. We show that cxt performs on par with state-of-the-art MCMC-based likelihood models across a broad range of demographic scenarios, including both in-distribution and out-of-distribution settings. Trained on simulations spanning the stdpopsim catalog, the model generalizes robustly and enables efficient inference at scale, producing over a million coalescence predictions in minutes. In addition cxt produces a well calibrated approximate posterior distribution of its predictions, enabling principled uncertainty quantification. We apply cxt to population genomic data from both humans and mosquitoes, highlighting the models ability to deal with the complexities of empirical data. Significance statementcxt is a language model for population genetics which introduces next-coalescence prediction as translation from observed mutations to coalescence times by modeling the coalescent with recombination as a conditional stochastic process. It learns implicit priors from stdpopsim and generalizes across both known and novel demographies. cxt generates millions of TMRCA estimates in minutes and samples well-calibrated posteriors for uncertainty quantification. A simple post-hoc correction aligns predicted diversity with the species mutation rate, ensuring robustness to novel evolutionary scenarios.
- organism: human
- organism: multiple species
- assay: whole-genome sequencing
- research focus: gene regulatory network inference
- research focus: variant calling
- approach: deep learning
- approach: transformer / foundation model
- Citations
- 2
- FWCI
- 8.01
- Field percentile
- top 5%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Variational Inference Using Approximate Likelihood Under the Coalescent With Recombination
X. Liu, H. A. Ogilvie, L. Nakhleh·bioRxiv·Aug 19, 2020
- Computing coalescence rates for complex demographies and sampling configurations
Jiatong Liang, Jonathan Terhorst·bioRxiv·Aug 26, 2026
- Quantifying uncertainty in the inference of generalized coalescents
Timothy C. Wallstrom, Tanmoy Bhattacharya A, Jon F. Wilkins·bioRxiv·Jun 16, 2017
- Exact decoding of the sequentially Markov coalescent
Caleb Ki, Jonathan Terhorst·bioRxiv·Sep 21, 2020
- Likelihood analysis of population genetic data under coalescent models: computational and inferential aspects
François Rousset, Champak Reddy Beeravolu, Raphaël Leblois·bioRxiv·Oct 31, 2017
- Robust Inference of Population Size Histories from Genomic Sequencing Data
Gautam Upadhya, Matthias Steinrücken·PLoS Computational BiologyPeer-reviewed·Sep 16, 2022