bioRxiv · 10.64898/2026.07.20.739063
MGM2 as a Unified Foundation Model for Microbiome World Exploration
Abstract
Microbiomes are information-rich biological systems, yet most computational analyses still reduce communities to cohort-specific abundance tables. Here we introduce MGM2, a multimodal foundation model pretrained on 1,821,291 MicrobeAtlas samples and 225,067 OTUs clustered at 99% sequence similarity. MGM2 couples NTv3-derived microbial sequence embeddings with abundance conditioning and community-semantic alignment to learn transferable sample- and token-level representations. Frozen MGM2 representations outperformed DeepPhylo by 0.06-0.21 macro-AUROC across five temporally held-out MGnify hierarchy levels, with the largest gains for rare and fine-grained labels. In fecal microbiota transplantation, MGM2-XLarge achieved a response ROC AUC of 0.79 and reduced post-transplant Bray-Curtis distance by 15% relative to the recipient baseline. The same representation supported ASV-level trend forecasting across 24 wastewater treatment plants. Sparse autoencoder analysis resolved MGM2-XLarge token states into a 4,096-feature dictionary spanning taxonomic identity, abundance state, ecological context and technical variation. MGM2 therefore provides a sequence-aware and interpretable representation layer for microbiome classification, paired-community prediction, forecasting and feature discovery. Highlights[bullet] MGM2 integrates sequence, abundance and community semantics through pretraining on 1.82 million microbiome samples. [bullet]Frozen MGM2 improved macro-AUROC over DeepPhylo by 0.06-0.21 across five temporally held-out MGnify levels. [bullet]MGM2-XLarge reached a response ROC AUC of 0.79 and reduced post-FMT Bray-Curtis distance by 15%. [bullet]A 4,096-feature sparse autoencoder atlas resolves taxonomic, abundance, ecological and technical signals.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Zhang, H., Zhang, Y., Qi, Y., Liu, T., Yang, R., Ning, K.. 2026-07-22. MGM2 as a Unified Foundation Model for Microbiome World Exploration. https://doi.org/10.64898/2026.07.20.739063
Cite the original work for its findings. Save a collection to share your selection of sources.