Fox: Predicting rates of host-symbiont co-evolution events with association-aware attention
- 1Unviersità Campus Biomedico di Roma
Abstract
Motivation: Hosts and their symbionts share a history of associations in which lineages cospeciate, switch hosts, duplicate, or are lost. Quantifying the relative frequencies of these four events is a central goal of cophylogenetics, but existing tools typically require a fully resolved, correctly rooted host tree, often alongside a symbiont tree, propagating tree-inference errors into the reconciliation and scaling poorly to large systems. Results: We introduce Fox, a transformer neural network architecture that infers the relative frequencies of the four cophylogenetic events directly from a pair of host and symbiont multiple sequence alignments (MSAs) and their sequence mapping, with no tree-reconstruction or reconciliation step. Fox is trained under a simulation-based inference scheme: it learns event frequencies from alignments generated by a coevolutionary process, paying its computational cost once at training time and processing any new system in a single forward pass. On held-out data from its training simulator, Fox recovers event frequencies accurately and with near-zero bias. On additional synthetic data from an independent cophylogeny simulator, its error roughly doubled, but is still very low allowing to track the true frequencies. Most importantly, when compared to the Approximate Bayesian Computation (ABC)-based method AmoCoala on these data, it reduces mean absolute error by 45-76% for cospeciations, host switches and duplications and shows similar error for losses, while running more than three orders of magnitude faster. Applied to the empirical cockroach-Blattabacterium system, Fox recovers the expected cospeciation-dominated profile, showing that behaviour learned on simulated data transfers to real sequences. These results confirm that the coevolutionary signal usually extracted from trees can be read directly, accurately, and fast in the alignments themselves
Related
- Within-host evolution and transmission of a human gut symbiont across ecological scales
- Laboratory evolution drives continued genome degradation in the facultative tsetse symbiont Sodalis glossinidius
- Physics-guided explainable machine learning for predicting temporal scour evolution around hybrid spur dikes under unsteady flood hydrographs
- Marine arsenate evolution during Proterozoic oxygenation events and implications for biological phosphate metabolism
- Evolution of Fast and Slow Life Histories in Resource-Constrained Populations with Mass-Mortality Events
BibTeX
@misc{palma2026predicting,
title = {{Fox: Predicting rates of host-symbiont co-evolution events with association-aware attention}},
author = {G. Di Palma and L. Jacob and C. Matias and B. Sinaimeri},
howpublished = {bioRxiv},
year = {2026},
month = oct,
doi = {10.64898/2026.10.29.762770},
url = {https://www.biorxiv.org/content/10.64898/2026.10.29.762770v1},
note = {CC BY},
}
RIS
TY - UNPB
TI - Fox: Predicting rates of host-symbiont co-evolution events with association-aware attention
AU - G. Di Palma
AU - L. Jacob
AU - C. Matias
AU - B. Sinaimeri
PY - 2026
DA - 2026/10/29
PB - bioRxiv
DO - 10.64898/2026.10.29.762770
UR - https://www.biorxiv.org/content/10.64898/2026.10.29.762770v1
AB - Motivation: Hosts and their symbionts share a history of associations in which lineages cospeciate, switch hosts, duplicate, or are lost. Quantifying the relative frequencies of these four events is a central goal of cophylogenetics, but existing tools typically require a fully resolved, correctly rooted host tree, often alongside a symbiont tree, propagating tree-inference errors into the reconciliation and scaling poorly to large systems. Results: We introduce Fox, a transformer neural network architecture that infers the relative frequencies of the four cophylogenetic events directly from a pair of host and symbiont multiple sequence alignments (MSAs) and their sequence mapping, with no tree-reconstruction or reconciliation step. Fox is trained under a simulation-based inference scheme: it learns event frequencies from alignments generated by a coevolutionary process, paying its computational cost once at training time and processing any new system in a single forward pass. On held-out data from its training simulator, Fox recovers event frequencies accurately and with near-zero bias. On additional synthetic data from an independent cophylogeny simulator, its error roughly doubled, but is still very low allowing to track the true frequencies. Most importantly, when compared to the Approximate Bayesian Computation (ABC)-based method AmoCoala on these data, it reduces mean absolute error by 45-76% for cospeciations, host switches and duplications and shows similar error for losses, while running more than three orders of magnitude faster. Applied to the empirical cockroach-Blattabacterium system, Fox recovers the expected cospeciation-dominated profile, showing that behaviour learned on simulated data transfers to real sequences. These results confirm that the coevolutionary signal usually extracted from trees can be read directly, accurately, and fast in the alignments themselves
ER -