bio.rodeo
ModelsOrganizationsLeaderboardAboutSign in
bio.rodeo

The authoritative source for evaluating biological foundation models. No hype, just honest analysis.

Categories
  • DNA & Gene
  • RNA
  • Protein
  • Small molecule
  • Single-cell
  • Spatial omics
  • Pathology
  • Imaging
  • Metabolomics
  • Biosignals
  • Language model
bio.rodeoModelsOrganizationsLeaderboardAboutFAQSubmit a modelContact
© 2026 Pulsatance. All rights reserved. ~
Built by Pulsatance
DNA & Gene foundation models
DNA & Gene

DNABERT-S

MAGICS Lab

DNA embedding model built on DNABERT-2, using contrastive learning to cluster sequences by species for metagenomic binning without labeled data.

Released: February 2024
Parameters: 117 Million

DNABERT-S is a DNA embedding model developed at the MAGICS Lab at Northwestern University, designed to generate sequence representations that naturally cluster by species in embedding space. It extends the DNABERT-2 genome foundation model with a specialized contrastive learning framework, enabling researchers to differentiate, classify, and bin genomic sequences without relying on labeled training data or reference genomes for every organism.

The core challenge DNABERT-S addresses is a fundamental misalignment between how general-purpose DNA language models are trained and how they are used in practice. Pre-training objectives like masked language modeling encourage models to learn sequence-level syntax and grammar, but they do not explicitly push representations of sequences from different species apart. As a result, embedding spaces produced by models such as DNABERT-2 or HyenaDNA are not well-organized by species — a critical shortcoming for tasks like metagenomics binning, where the goal is to group millions of unlabeled sequencing reads by their organism of origin. DNABERT-S is purpose-built to close this gap.

The model was first posted as a preprint in February 2024 and subsequently published in Bioinformatics as part of the ISMB 2025 proceedings. It is developed by Zhihan Zhou, Weimin Wu, Harrison Ho, Jiayi Wang, Lizhen Shi, Ramana V. Davuluri, Zhong Wang, and Han Liu, spanning Northwestern University, UC Merced, and Lawrence Berkeley National Laboratory.

#Key Features

  • Manifold Instance Mixup (MI-Mix): Rather than mixing sequences at the input level, MI-Mix interpolates hidden representations at randomly selected transformer layers, creating harder and more informative contrastive anchors. This design makes the model robust to the base-level sequencing errors common in long-read DNA data.
  • Curriculum Contrastive Learning (C2LR): A two-phase training strategy that progressively increases training difficulty. Phase one applies Weighted SimCLR with hard-negative sampling; phase two introduces MI-Mix anchors, preventing the model from collapsing on easy examples before acquiring general discriminative structure.
  • Species-segregated embedding space: Trained on 2 million sequence pairs drawn from over 24,000 reference genomes spanning bacteria, fungi, and viruses, the model learns embeddings that form distinct, visually separable clusters per species in t-SNE and UMAP projections.
  • Label-scarce generalization: In few-shot species classification benchmarks, DNABERT-S with 2-shot training outperforms the strongest baselines using 10 labeled examples, making it practical for the many genomic taxa that lack annotated reference collections.
  • Multi-task applicability: A single trained model handles species clustering, metagenomics binning, and few-shot classification without task-specific fine-tuning, using only mean-pooled embeddings from the final transformer layer.

#Technical Details

DNABERT-S is initialized from DNABERT-2, a 117-million parameter BERT-style transformer that uses Byte Pair Encoding (BPE) tokenization and Attention with Linear Biases (ALiBi) instead of fixed positional embeddings. This backbone was pre-trained on 32 billion bases from 135 species. DNABERT-S then applies contrastive fine-tuning on top of this foundation using the C2LR protocol, training for three epochs total (one phase-one epoch, two phase-two epochs) at a learning rate of 3e-6, batch size 48, and SimCLR temperature of 0.05. Training ran for approximately 48 hours on 8 NVIDIA A100 80 GB GPUs.

The training corpus consists of 2 million paired 10,000-bp sequences sampled from 24,951 reference genomes: approximately 5,000 viral genomes, 5,011 fungal genomes, and 6,402 bacterial genomes. Positive pairs are two windows drawn from the same genome; negative pairs are drawn from different species, with hard negatives mined during phase-one training. Evaluation spans 28 diverse datasets covering clustering, binning, and classification scenarios, including 14 long-read datasets from the CAMI2 benchmark (marine and plant-associated environments) and 9 synthetic datasets at varying species richness.

Across K-Means clustering benchmarks, DNABERT-S achieves a mean Adjusted Rand Index (ARI) of 53.80, compared to 26.47 for the strongest baseline — approximately a 2x improvement. In metagenomics binning on synthetic datasets, the model recovers over 80% of species with an F1 score above 0.5, versus roughly 40% of species on the more realistic CAMI2 marine datasets, consistently outperforming tetranucleotide frequency (TNF) and other embedding baselines by more than one-fold.

#Applications

DNABERT-S is particularly well-suited for metagenomics workflows, where shotgun sequencing of environmental samples (soil, ocean water, gut microbiomes) produces millions of reads from hundreds of co-occurring organisms that must be separated before downstream analysis. By replacing fragile reference-alignment steps with embedding-based clustering, DNABERT-S enables binning even in the absence of characterized reference genomes for every species in the sample. Beyond metagenomics, the model supports ecological diversity surveys, pathogen surveillance from clinical or environmental sequencing, and evolutionary analysis requiring species-level separation of unlabeled genomic fragments. Its strong few-shot classification performance also makes it useful for rapid species identification in resource-constrained settings where generating large labeled training sets is impractical.

#Impact

DNABERT-S represents a conceptually important step in the maturation of genomic foundation models: the recognition that pre-training objectives and downstream evaluation objectives can be fundamentally misaligned, and that targeted contrastive fine-tuning can bridge that gap without sacrificing the rich sequence representations learned during pre-training. Its publication in Bioinformatics at ISMB 2025 reflects community recognition of this contribution. The HuggingFace model has accumulated over 288,000 downloads, indicating substantial uptake in metagenomics and environmental genomics research communities. A notable limitation is that the current training data emphasizes bacteria, fungi, and viruses, leaving coverage of eukaryotic organisms — including plants and animals — less thorough. Performance also degrades on very short reads (below ~2,000 bp) and on highly repetitive genomic regions where species-level signal is weak. Future extensions may incorporate eukaryotic training data and adapt the contrastive framework to short-read sequencing platforms such as Illumina.

Citation

DNABERT-S: Pioneering Species Differentiation with Species-Aware DNA Embeddings

Zhou, Z., et al. (2024) DNABERT-S: Pioneering Species Differentiation with Species-Aware DNA Embeddings. Bioinform..

DOI: 10.1093/bioinformatics/btaf188

Recent citations

Papers that recently cited this model.

  • Semantic fragment representations for coordinate-free analysis of genomics data

    Hamed Heydari, Jingyi Zhao, M. Arseneault, et al.

    bioRxiv · Jul 2026

    0
  • Cross-architecture ensembling of DNA foundation models improves the precision and stability of chimera detection in long-read metagenomic bins

    Minseo Kim, Jae-Ho Shin

    bioRxiv · Jul 2026

    0
  • Role of Artificial Intelligence in bioinformatics: Revolutionizing molecular docking and DNA tokenization.

    S. Chaudhary, Sobinder Singh, Rashmi Gupta, et al.

    Computational biology and chemistry · Jun 2026

    0

Top citations

The most-cited papers that cite this model.

  • Genomic Language Models: Opportunities and Challenges

    Gonzalo Benegas, Chengzhong Ye, Carlos Albors, et al.

    arXiv.org · Jul 2024

    81
  • Outlier-Efficient Hopfield Layers for Large Transformer-Based Models

    Jerry Yao-Chieh Hu, Pei-Hsuan Chang, Haozheng Luo, et al.

    International Conference on Machine Learning · Apr 2024

    48
  • A Survey on Mixup Augmentations and Beyond

    Xin Jin, Hongyu Zhu, Siyuan Li, et al.

    arXiv.org · Sep 2024

    28
  • BIOSCAN-5M: A Multimodal Dataset for Insect Biodiversity

    Zahra Gharaee, Scott C. Lowe, ZeMing Gong, et al.

    Neural Information Processing Systems · Jun 2024

    28Influential
  • Large language models for bioinformatics

    Wei Ruan, Yanjun Lyu, Jing Zhang, et al.

    Quant. Biol. · Jan 2025

    18

Related models

Models with similar goals, methods, or subject matter.

  • DNABERT-2

    MAGICS Lab

    Multi-species genomic foundation model swapping k-mer tokenization for byte pair encoding, matching Nucleotide Transformer with 21x fewer parameters.

    DNA & Gene
  • Species-Aware DNA Language Model

    Technical University of Munich

    Masked DNA language model trained on 800+ species with explicit species conditioning, separating conserved regulatory motifs from background bias.

    DNA & Gene
  • MetagenBERT

    MetagenBERT Authors

    Annotation-free metagenome embedding pipeline that encodes raw DNA reads with genomic language models and pools them via FAISS k-means clustering.

    DNA & Gene
  • Species-Aware DNA LM

    Technical University of Munich

    Masked DNA language model trained on over 800 vertebrate genomes and conditioned on species identity to learn conserved regulatory sequence features.

    DNA & Gene
  • DNABERT

    Northwestern University

    Bidirectional transformer for DNA using k-mer tokenization, fine-tunable for promoter, splice site, and transcription factor binding prediction.

    DNA & Gene

Citations

Total Citations53
Influential6
References38

GitHub

Stars130
Forks31
Open Issues5
Contributors3
Last Push6mo ago
LanguagePython

HuggingFace

Downloads24.5K
Likes8
Last Modified1y ago
Pipelinefeature-extraction

Fields of citing research

  • Computer Science96%
  • Biology80%
  • Medicine54%
  • Environmental Science26%
  • Engineering8%
  • Mathematics4%
  • Chemistry2%
  • Philosophy2%

Share of papers citing this model.

Openness

bio.rodeo opennessOpen weights · open weights, closed recipe
53Partial
Usability — can I run it?66
Reproducibility — can I retrain it?24
Model Openness Framework
Class III
Open Model

Tags

contrastive_learningdnaembeddingsfoundation_modelmetagenomicsspecies_classification

Resources

GitHub RepositoryResearch PaperResearch PaperHuggingFace Model