bioRxivBioinformaticsPreprint
Unsupervised Whole-Genome Representation Learning Captures Bacterial Phenotypes
Abstract
Shifting from hand-crafted to learned representations of data has revolutionized fields like natural language processing and computer vision. Despite this, current approaches to bacterial phenotype prediction from the genome rely on training machine learning models on hand-crafted features, often binary indicators or counts of the presence of different conserved genomic elements and protein domains. Defining these shared elements and domains as our "genomic element vocabulary", we tokenize entire bacterial genomes as sequences of these conserved elements and take advantage of advances in long-context language modeling to perform self-supervised whole-genome representation learning (WGRL). Through multi-task pretraining on a phylogenetically diverse dataset of hundreds of thousands of bacterial genomes, we present a genomic language model which produces representations of input genomes with features predictive of a broad range of phenotypes. We assess the quality of the learned representations through k-nearest neighbours prediction of 25 bacterial phenotypes, finding our WGRL representations more predictive than standard protein domain presence/absence representations for 23/25 different phenotypes. We additionally find the WGRL representations are robust to both poor genome assembly quality and incompleteness. Through learning the relationships between evolutionarily conserved genomic elements with self-supervised long-context language modeling, we demonstrate the first approach for extracting general-purpose whole-genome representations while preserving gene order.
- organism: bacteria (other)
- assay: whole-genome sequencing
- research focus: gene regulatory network inference
- research focus: variant effect prediction
- approach: statistical model
- approach: contrastive learning
- Citations
- 0
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
- Gene-language models are whole genome representation learners
Bryan Naidenov, Charles Chen·bioRxiv·Mar 18, 2024
- Learning gene interactions and functional landscapes from entire bacterial proteomes
Palash Sethi, Marc G. Chevrette, Juannan Zhou·bioRxiv·Mar 19, 2025
- Resolving Genome-to-Phenotype Links in Bacteria: Machine-Learned Inference from Downsampled k-mer Representations
Torbjoern Goebel Bak Regueira, Carolina Barra, Ole Lund·bioRxiv·Feb 18, 2026
- Decoding Prokaryotic Whole Genomes with a Product-Contextualized Large Language Model
Shiwen Ni, Shuaimin Li, … Teng Wang·bioRxiv·Aug 9, 2026
- A contextualised protein language model reveals the functional syntax of bacterial evolution
Maciej Wiatrak, David C. Abelson, … R. Andres Floto·bioRxiv·Jul 20, 2025
- LAMBDA: A Prophage Detection Benchmark for Genomic Language Models
LeAnn M. Lindsey, Nicole L. Pershing, … Xiaofang Jiang·NAR Genomics and BioinformaticsPeer-reviewed·Jun 27, 2026