Metagenomic contextualization of proteins with state space models
Nima Azbijari, Jacob H. WynneiD, Kristopher Irizarry, Tanush Sistla, Andrew R. ThurberiD, Maude M. DavidiD
Abstract
Genomic foundation models have emerged as powerful tools for learning representations of biological sequences, but existing approaches predominantly rely on Transformer architectures, whose quadratic attention complexity limits their ability to capture long-range genomic context. This limitation is particularly relevant for metagenomics, where sequencing data have increased more than 500-fold since 2011, generating increasingly large and diverse datasets. For example, gLM2, a Transformer-based mixed-modality genomic language model, was trained with a context window of 4,096 tokens, limiting its ability to capture extended genomic context within metagenomic contigs. Developing scalable architectures capable of processing longer sequences while integrating protein and nucleotide information is therefore essential for advancing genomic foundation models. We introduce Nammu, a 167-million-parameter, bidirectional Mamba-based genomic foundation model that integrates protein and nucleotide sequences within a 20,000-token context window. Leveraging the linear scaling of state-space models, Nammu was trained using a curriculum learning strategy on the OpenMetaGenomic (OMG) corpus, first incorporating 64 million protein sequences followed by 32 million mixed-modality metagenomic contigs. Despite using approximately 37\% fewer training tokens than gLM2, Nammu outperformed this Transformer-based model in taxonomic classification across all evaluated taxonomic ranks on a marine metagenomic dataset from the Critical Assessment of Metagenome Interpretation (CAMI). On the exact-feature-unmatched CAMI II Strain Madness test set, Nammu achieved higher all-contig genus-classification accuracy than Kraken2 (0.9182 versus 0.8142). Nammu further outperformed gLM2 (150M) in KEGG Orthology prediction using deep-sea metagenome-assembled genomes. Together, these results demonstrate the potential of state-space architectures for scalable, multimodal genomic representation learning and highlight their ability to support accurate taxonomic and functional predictions from metagenomic sequences.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility 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
- GENERator-v2: Reconciling Coarse Tokenization with Single-Nucleotide Resolution in Genomic Language Modeling
Qiuyi Li, Zhihao Zhan, … Tao Qin·bioRxiv·May 4, 2026
- GENERanno: A Genomic Foundation Model for Metagenomic Annotation
Qiuyi Li, Wei Wu, … Zheng Wang·bioRxiv·Jun 4, 2025
- LOAM: A family of genomic language models trained on long-read soil metagenomes
Quentin R. V. Ferry, Maurice Frank, … Timothy Rajakumar·bioRxiv·Oct 2, 2026
- EXTENDING PROTEIN LANGUAGE MODELS TO A VIRAL GENOMIC SCALE USING BIOLOGICALLY INDUCED SPARSE ATTENTION
Thibaut Dejean, Barbra D. Ferrell, … Mahdi Belcaid·GigaSciencePeer-reviewed·Jan 1, 2026
- OmniNA: A foundation model for nucleotide sequences
Xilin Shen, Xiangchun Li·bioRxiv·Jan 14, 2024
- GENA-LM: A Family of Open-Source Foundational DNA Language Models for Long Sequences
Veniamin Fishman, Yuri Kuratov, … Mikhail Burtsev·Nucleic Acids ResearchPeer-reviewed·Dec 26, 2024