BioinformaticsGenomicsPeer-reviewed journal article
ARGformer: learning on ancestral recombination graphs with transformers
David BonetiD, Cole ShanksiD, Marçal Comajoan CaraiD, Jordi AbanteiD, Alexander G. IoannidisiD
Abstract
Recent advances in inference of the ancestral recombination graph (ARG), which describes how segments of chromosomes trace back through recombination and shared lineages, have made it possible to reconstruct genome-wide genealogies for large cohorts, but it remains difficult to summarize and use this information for population genetic analyses. We present ARGformer, an encoder-only transformer that learns context-dependent embeddings with a self-supervised masked objective finetuned with contrastive learning for downstream retrieval tasks. We train ARGformer on genealogies from coalescent simulations and on genealogies inferred from ancient and present-day Homo sapiens genomes. Using only these learned embeddings, without access to genotype matrices, ARGformer captures patterns of global population structure and supports ancestry inference through clustering and nearest-neighbor retrieval. On genealogies that include archaic hominins, ARGformer can highlight Denisovan-derived segments in Oceanian genomes and reveals Oceanian-like ancestry in South American Indigenous populations. ARGformer is available at https://github.com/AI-sandbox/ARGformer.
- Citations
- 0
- FWCI
- 0.00
- Field percentile
- 9th percentile
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
- Graph transformer for ancient ancestry inference
Cole Shanks, David Bonet, … Alexander G. Ioannidis·bioRxiv·Apr 7, 2026
- A general and efficient representation of ancestral recombination graphs
Yan Wong, Anastasia Ignatieva, … Jerome Kelleher·GeneticsPeer-reviewed·Jul 16, 2024
- A forest is more than its trees: haplotypes and inferred ARGs
Halley Fritze, Nathaniel S. Pope, … Peter L. Ralph·GeneticsPeer-reviewed·Sep 23, 2025
- Robust and Accurate Bayesian Inference of Genome-Wide Genealogies for Large Samples
Yun Kai Deng, Rasmus Nielsen, Yun S. Song·bioRxiv·Mar 16, 2024
- A scalable approach for genome-wide inference of ancestral recombination graphs
Arni F. Gunnarsson, Jiazheng Zhu, … Pier Francesco Palamara·bioRxiv·Aug 31, 2024
- A General Framework for Branch Length Estimation in Ancestral Recombination Graphs
Yun Kai Deng, William S. DeWitt, … Rasmus Nielsen·Proceedings of the National Academy of SciencesPeer-reviewed·Nov 25, 2025