Back

Learning the Language of the Microbiome with Transformers

Treloar, N. J.; Ur-Rehman, S.; Yang, J.

2026-05-06 bioinformatics
10.64898/2026.05.02.722381 bioRxiv
Show abstract

Self-supervised pretraining has become central to biological machine learning, yet microbiome data remains comparatively underexplored in terms of both modeling approaches and evaluation frameworks. To address this gap, we present Atlas, a pretraining dataset of over 539,000 microbiome datapoints from the MGnify database. Using Atlas, we train the Waypoint family of microbiome foundation models: a series of GPT-2 style causal language models ranging from 6M to 170M parameters. We also introduce Compass, a curated benchmark of eight predictive tasks spanning biome classification, drug-microbiome interactions, drug degradation, and infant gut development. Using this benchmark, we compare the performance of Waypoint models against classical baselines and the existing MGM foundation model. Our results show that pretraining leads to consistent and significant improvements in downstream task performance, that both dataset scale and tokenization strategy impact model quality, and that pretraining is essential for achieving favorable scaling behavior. Furthermore, pretrained transformer models begin to reliably outperform classical methods once training data exceeds roughly 10,000 examples - a threshold that is attainable for modern microbiome studies. Finally, we demonstrate that the Waypoint models achieve state-of-the-art performance among microbiome foundation models. Overall, our work highlights the importance of large-scale self-supervised pretraining in this domain and establishes Atlas, Compass, and the Waypoint models as valuable resources for the research community in this emerging field.

Matching journals

The top 5 journals account for 50% of the predicted probability mass.

1
Nature Machine Intelligence
61 papers in training set
Top 0.1%
18.2%
2
Cell Systems
167 papers in training set
Top 0.5%
17.1%
3
Nature Communications
4913 papers in training set
Top 24%
8.2%
4
Nucleic Acids Research
1128 papers in training set
Top 4%
4.7%
5
Bioinformatics
1061 papers in training set
Top 5%
3.9%
50% of probability mass above
6
PLOS Computational Biology
1633 papers in training set
Top 9%
3.8%
7
Genome Biology
555 papers in training set
Top 3%
3.5%
8
Nature Biotechnology
147 papers in training set
Top 3%
3.0%
9
NAR Genomics and Bioinformatics
214 papers in training set
Top 1%
2.7%
10
Briefings in Bioinformatics
326 papers in training set
Top 3%
2.5%
11
Proceedings of the National Academy of Sciences
2130 papers in training set
Top 26%
2.5%
12
Genome Medicine
154 papers in training set
Top 4%
1.8%
13
Nature Methods
336 papers in training set
Top 5%
1.7%
14
Cell Genomics
162 papers in training set
Top 4%
1.7%
15
Genome Research
409 papers in training set
Top 3%
1.5%
16
Nature
575 papers in training set
Top 12%
1.5%
17
Bioinformatics Advances
184 papers in training set
Top 3%
1.3%
18
Advanced Science
249 papers in training set
Top 14%
1.3%
19
Frontiers in Genetics
197 papers in training set
Top 7%
1.1%
20
BMC Bioinformatics
383 papers in training set
Top 6%
1.1%
21
PLOS ONE
4510 papers in training set
Top 66%
0.8%
22
npj Systems Biology and Applications
99 papers in training set
Top 3%
0.7%
23
Patterns
70 papers in training set
Top 3%
0.7%
24
Scientific Reports
3102 papers in training set
Top 75%
0.7%
25
mSystems
361 papers in training set
Top 8%
0.7%
26
Molecular Systems Biology
142 papers in training set
Top 2%
0.6%
27
Communications Biology
886 papers in training set
Top 30%
0.6%