The OMG dataset: An Open MetaGenomic corpus for mixed-modality genomic language modeling

Andre Cornman, Jacob West-Roberts, Antonio Pedro Camargo, Simon Roux, Martin Beracochea, Milot Mirdita, Sergey Ovchinnikov, Yunha Hwang

TL;DR

The Open MetaGenomic (OMG) corpus is a massive new dataset comprising 3.1 trillion base pairs and 3.3 billion protein sequences, designed to train the next generation of biological language models. Alongside this dataset, the authors introduce gLM2, a "mixed-modality" model that learns from both protein sequences (amino acids) and the DNA "instruction manuals" between them (intergenic regions). This dual approach allows gLM2 to predict protein-protein interactions and regulatory syntax that single-modality models often miss.

The "Data Wall" in Biological Language Models

Biological language models, such as ESM2, have revolutionized our ability to predict protein structure and function. However, they are rapidly approaching a "data wall." Most models are trained on curated databases like UniProt, which represent only a tiny fraction of the genetic diversity found in nature.

Metagenomics—the practice of sequencing DNA directly from environmental samples like soil, oceans, or the human gut—offers a vast, untapped reservoir of biological diversity. Yet, utilizing this data is notoriously difficult. It is scattered across different repositories, riddled with assembly errors, and heavily biased toward heavily sampled environments. This paper introduces a standardized, high-quality pipeline to transform raw metagenomic "noise" into a structured, balanced corpus ready for machine learning.

Methods: A Mixed-Modality Approach

To capture the full context of genomic data, the researchers developed a "mixed-modality" approach. Instead of treating a genome as just a computationally expensive long string of DNA, or merely a list of isolated proteins (which ignores vital regulatory information), they represent genomic contigs as a sequence of "beads on a string":

  • Protein-coding sequences (CDS): Translated into amino acids (AA) to provide a better functional representation.
  • Intergenic sequences (IGS): Kept as nucleic acids (NA) to capture regulatory signals like promoters and terminators.
Mixed-modality sequence processing pipeline

To handle the massive scale and inherent bias of metagenomic data, the team employed Semantic Deduplication (SemDeDup). By using a smaller version of their model to "embed" the data into a mathematical space, they pruned away 49% of the sequences that were semantically too similar to others. This effectively balanced the dataset across different branches of the tree of life without requiring explicit taxonomic labels.

The OMG Datasets

The paper introduces three major resources, all publicly hosted on Hugging Face:

  1. OMG Corpus: The full 1.25 TB mixed-modality dataset (3.1 trillion base pairs).
  2. OG (Open Genome): A 10x smaller subset focused on prokaryotic and viral genomes, featuring rich taxonomic metadata for benchmarking.
  3. OMG_prot50: A protein-only dataset of 207 million sequences clustered at 50% identity—three times larger than the standard UniRef50 database.

For evaluation, the researchers utilized the Diverse Genomic Embedding Benchmark (DGEB) and ProteinGym.

Key Insights and Results

By training on multi-gene "chunks" rather than isolated proteins, gLM2 learns powerful co-evolutionary signals. It recognizes that certain proteins often appear together and evolve in tandem, allowing it to perform zero-shot interaction mapping. For example, gLM2 successfully identified protein-protein interfaces in complexes like ModBC—a task where ESM2 (which sees proteins in isolation) and Evo (which sees only raw DNA) failed to detect specific co-evolutionary signals.

Furthermore, the model learns "regulatory syntax" (the grammar of DNA) entirely unsupervised. It can identify Shine-Dalgarno sequences and transcription start sites simply by learning to predict masked tokens in the intergenic regions.

gLM2 scaling and performance vs ESM2

Crucially, the semantic deduplication process proved that data quality and balance matter more than raw volume. Removing nearly half the data actually improved performance on underrepresented taxa. As a result, gLM2 (at 650M parameters) outperformed ESM2 on the majority of protein tasks in the DGEB benchmark at a similar parameter scale, showing superior scaling laws particularly on tasks involving genomic context, such as operon pair classification.

Limitations and Future Work

The authors note that their current pipeline is optimized for microbial (prokaryotic and viral) data. The gene-calling tools used to build the OMG corpus often struggle with eukaryotic DNA (like human or plant genomes), which contains complex structures such as introns. Consequently, gLM2 performed slightly worse than ESM2 on the ProteinGym benchmark, which is heavily weighted toward eukaryotic sequences.

Future work will likely focus on improving gene-calling for eukaryotes and exploring how these mixed-modality representations can be leveraged for "generative" biology—such as designing entirely new metabolic pathways or complex regulatory circuits.

Data and Models: Available at huggingface.co/tattabio
Code: github.com/TattaBio/OMG

Summary updated

BibTeX
@inproceedings{cornman2025omg,
  author = {Andre Cornman and Jacob West-Roberts and Antonio Pedro Camargo and Simon Roux and Martin Beracochea and Milot Mirdita and Sergey Ovchinnikov and Yunha Hwang},
  title = {{The OMG dataset: An Open MetaGenomic corpus for mixed-modality genomic language modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=jlzNb1iWs3},
}
Figure