Microbial general model: Leveraging large language model for contextualized microbiome analysis
Haohong Zhang, Yuli Zhang, Zixin KangiD, Jiayun Xiong, Ronghua YangiD, Kang NingiD
Abstract
Microbial communities significantly impact medicine, biotechnology, and agriculture. Advanced sequencing technologies have generated extensive microbiome data, enabling the discovery of substantial evolutionary and ecological patterns. However, traditional supervised learning methods struggle to capture universal patterns in microbial community data, largely due to the large data heterogeneity and profound batch effects among samples, rendering it difficult to classify samples as well as detect biomarkers from millions of samples, not to say the intricate but important dynamic patterns from a variety of contextualized sceneries. In this study, we introduce the Microbial General Model (MGM), the first microbiome community foundation model pre-trained on a dataset of 263,302 microbiome samples using language modeling techniques. MGM demonstrated significant improvements in microbial community classification compared to traditional machine learning methods. Additionally, MGM has enabled contextualized classification, effectively overcomes cross-regional limitations, showing enhanced performance on intercontinental datasets through transfer learning. Furthermore, fine-tuning MGM on a longitudinal infant dataset revealed distinct keystone genera during development, with Bacteroides and Bifidobacterium exhibiting higher attention weights in vaginal deliveries, and Haemophilus in cesarean deliveries. Finally, through in silico modeling, the model also uncovered novel microbial dynamic patterns in a Crohns disease cohort following antibiotic treatment. In conclusion, by leveraging self-attention and autoregressive pre-training, MGM serves as a versatile model for various downstream microbiome tasks and holds significant potential for achieving contextualized aims. Key pointsO_LIThe Microbial General Model (MGM) is a foundation model with millions of parameters pre-trained on sub-million microbial community data. C_LIO_LIMGM outperforms traditional methods in various microbiome classification and prediction tasks, such as microbial community classification. C_LIO_LIMGM effectively captures the spatial and temporal dynamics of microbial communities. C_LIO_LIMGM could detect the effects of perturbation on microbial community through in silico experiments. C_LI
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 23
- FWCI
- 34.89
- Field percentile
- top 1%
- Assay
- Research Focus
- Approach
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
- Learning the Language of the Microbiome with Transformers
Neythen J. Treloar, Saif Ur-Rehman, Jenny Yang·bioRxiv·Sep 10, 2026
- Towards a Generative Paradigm for Large-scale Microbiome Analysis by Generative Language Model
Haohong Zhang, Zixin Kang, … Kang Ning·bioRxiv·Jan 15, 2025
- MGM2 as a Multimodal Foundation Model for Microbial Community States and Responses
Haohong Zhang, Yuli Zhang, … Kang Ning·bioRxiv·Sep 30, 2026
- Learning a deep language model for microbiomes: the power of large scale unlabeled microbiome data
- Modeling the temporal dynamics of the gut microbial community in adults and infants
L. Shenhav, O. Furman, … E. Halperin·bioRxiv·Apr 5, 2018
- Self-supervised learning enables robust microbiome predictions in data-limited and cross-cohort settings
Liron Zahavi, Zachary Levine, … Eran Segal·bioRxiv·Oct 19, 2025