bioRxivEvolutionary BiologyPreprint
Attentive-SPIDNA: Attention-based neural networks for population genetics
Théophile SancheziD, Pierre JobiciD, Cyril Regan, Paul VerduiD, Guillaume CharpiatiD, Flora JayiD
Abstract
Artificial neural networks (ANNs) have recently offered new perspectives to solve inference problems from high dimensional data in numerous scientific fields, but it is yet unclear which architectures are the most suited to genomic data. Here, we present a new ANN architecture integrating attention mechanisms to infer effective population size history from genomic data. Built upon our previous exchangeable architecture SPIDNA, Attentive-SPIDNA adds attention layers that allow computing more expressive and complex features from combinations of haplotypes. The contribution of each haplotype to the features is learned automatically and depends on its content and affinity with the other haplotypes. Likewise, we use this mechanism to automatically perform a voting scheme that aggregates predictions from different genomic regions. This new architecture outperforms approximate Bayesian computation and previously published neural networks while relying directly on raw genetic data and being invariant to haplotype permutation in the input. As a proof-of-concept, we use this architecture to infer the effective population size history of 54 populations from the HGDP dataset (Bergstrom et al, 2020). This application highlights the ability of the network to handle data with a varying number of haplotypes and to quickly perform predictions for datasets including numerous populations. Therefore, the proposed mechanism could be integrated to various neural networks solving population genetics tasks.
- organism: human
- assay: whole-genome sequencing
- research focus: GWAS / association mapping
- research focus: variant calling
- research focus: gene regulatory network inference
- approach: deep learning
- approach: transformer / foundation model
- Citations
- 0
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
- Deep learning for population size history inference: design, comparison and combination with approximate Bayesian computation
T. Sanchez, J. Cury, … F. Jay·bioRxiv·Jan 20, 2020
- Haplotype and Population Structure Inference using Neural Networks in Whole-Genome Sequencing Data
Jonas Meisner, Anders Albrechtsen·bioRxiv·Dec 28, 2020
- Haplotype-based inference of recent effective population size in modern and ancient DNA samples
Romain Fournier, Zoi Tsangalidou, … Pier Francesco Palamara·Nature CommunicationsPeer-reviewed·Dec 1, 2023
- HapNet: a new Python package for automated population-aware haplotype network analysis and visualization
Andrew A. Davinack·Mitochondrial DNA Part APeer-reviewed·Jul 20, 2026
- Computationally efficient demographic history inference from allele frequencies with supervised machine learning
Linh Tran, Connie K. Sun, … Ryan N. Gutenkunst·Molecular Biology and EvolutionPeer-reviewed·Apr 16, 2024
- SelNeTime: a python package inferring effective population size and selection intensity from genomic time series data
Mathieu Uhl, Paul Bunel, … Bertrand Servin·Peer Community JournalPeer-reviewed·May 21, 2026