ARGformer: learning on ancestral recombination graphs with transformers.
David Bonet, Cole Shanks, Marçal Comajoan Cara, Jordi Abante, Alexander G Ioannidis
Department of Biomedical Data Science, Stanford University, Stanford, CA, United States. · Genomics Institute, University of California, Santa Cruz, Santa Cruz, CA, United States.
Key points
From the paper's conclusion- 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.
Abstract
MOTIVATION: 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. RESULTS: 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. AVAILABILITY AND IMPLEMENTATION: ARGformer is available at https://github.com/AI-sandbox/ARGformer.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Joint ancestry inference reveals the landscape of archaic introgression in admixed populations.bioRxiv : the preprint server for biology · 2026
- Coalescence and translation: A language model for population geneticsProceedings of the National Academy of Sciences · 2026
- A Unified Deep Learning-Based Framework for Reference-Based and Reference-Free Local Ancestry InferencebioRxiv · 2026
- KORUS: probabilistic ancestry inference beyond variant callsbioRxiv · 2026
- Robustness of Ancestral Recombination Graph Inference Tools to Phasing Errors.bioRxiv : the preprint server for biology · 2026
- An archaic reference-free method to jointly infer Neanderthal and Denisovan introgressed segments in modern human genomes.Molecular biology and evolution · 2026