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-2

MAGICS Lab

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

Released: June 2023
Parameters: 117 Million

DNABERT-2 is a genomic foundation model developed by the MAGICS Lab at Northwestern University that substantially reimagines how transformer models process DNA sequences. Released in June 2023 and accepted at ICLR 2024, it addresses a fundamental flaw in the tokenization strategy used by its predecessor, DNABERT (2021), and other contemporary genomic language models: the use of overlapping k-mer tokenization. That approach produces information leakage between adjacent tokens during masked language modeling and makes the model brittle to small insertions or deletions, where a single-nucleotide change can produce a drastically different sequence of tokens. DNABERT-2 replaces k-mer tokenization with Byte Pair Encoding (BPE), a compression-based strategy borrowed from natural language processing that constructs variable-length tokens by iteratively merging the most frequently co-occurring genome segments in the training corpus.

The practical gains from this switch are striking. DNABERT-2 achieves comparable performance to the then-state-of-the-art Nucleotide Transformer (2,500M parameters) using only 117M parameters — a 21-fold reduction — while requiring approximately 92 times less GPU compute during pre-training. This efficiency gain makes DNABERT-2 both accessible for research groups without large compute budgets and practical for rapid iteration and fine-tuning on downstream tasks.

Alongside the model, the authors introduce the Genome Understanding Evaluation (GUE) benchmark: a standardized multi-species evaluation suite covering 28 datasets across 7 biologically meaningful task categories. GUE provides the field with a rigorous and reproducible framework for comparing genomic foundation models, addressing the lack of systematic benchmarking that had hampered progress in the area.

#Key Features

  • Byte Pair Encoding tokenization: Replaces overlapping k-mer tokenization with BPE, eliminating information leakage between adjacent tokens during pre-training and producing approximately 5-fold sequence compression, which reduces memory and compute requirements without significant loss of biological signal.
  • Multi-species pre-training: Trained on 32.49 billion nucleotide bases spanning 135 species across 7 taxonomic categories (Bacteria, Fungi, Protozoa, Invertebrate, Vertebrate, Mammalian, and Other), compared to the 2.75 billion human-only bases used in original DNABERT.
  • ALiBi positional encoding: Replaces learned absolute position embeddings with Attention with Linear Biases (ALiBi), removing the hard 512-token input length limit of DNABERT and enabling generalization to sequences up to 10,000 base pairs at inference time without retraining.
  • FlashAttention integration: Employs IO-aware attention computation that reduces GPU memory access overhead, enabling faster and more memory-efficient training and inference on long genomic sequences.
  • GUE benchmark: Introduces a comprehensive evaluation suite of 28 datasets across 7 task types and 4 species (human, mouse, and others), covering promoter detection, transcription factor binding, splice site prediction, epigenetic mark classification, and COVID variant classification.
  • HuggingFace-native deployment: The 117M parameter model is publicly available on HuggingFace and compatible with the standard transformers library, producing 768-dimensional sequence embeddings suitable for fine-tuning on any classification or regression task.

#Technical Details

DNABERT-2 is a 117-million parameter transformer encoder built on a BERT-style architecture with several targeted modifications for genomic sequence modeling. The BPE tokenizer is trained on the multi-species corpus and achieves approximately 5-fold compression of raw nucleotide sequences (e.g., a 70-bp sequence is reduced to roughly 15 tokens), dramatically lowering the effective sequence length fed into the attention layers. This compression enables efficient handling of long genomic contexts that would otherwise overflow fixed-length positional encodings. ALiBi replaces learned positional embeddings by adding a linear bias term to each attention score based on the distance between query and key positions, which generalizes naturally to longer sequences than those seen during training. GEGLU activation functions are used within feed-forward layers, and FlashAttention reduces the quadratic memory cost of self-attention by fusing attention operations into a single GPU kernel.

Pre-training used masked language modeling on the 135-species dataset totaling 32.49 billion bases — approximately 12 times the scale of the original DNABERT corpus. On the GUE benchmark, DNABERT-2 achieves an average score of 66.80 across 28 tasks, compared to 61.62 for DNABERT (86M parameters) and 66.93 for the Nucleotide Transformer-2500M. A known limitation is performance on short, dense-signal sequences: the approximately 5-fold BPE compression can discard subtle nucleotide-level signals that overlapping k-mers retain, which is most apparent on short-sequence tasks such as core promoter detection (70 bp inputs).

#Applications

DNABERT-2 is designed as a general-purpose encoder for a wide range of genomic classification and regression tasks through supervised fine-tuning. Downstream applications include transcription factor binding site prediction, promoter and splice site detection, epigenetic mark classification, variant effect scoring, and pathogen variant classification (demonstrated on SARS-CoV-2 lineage data in the GUE benchmark). Computational biologists can adapt the pretrained model to any species by fine-tuning on labeled sequence data, benefiting from multi-species pre-training even for organisms not represented in the original corpus. The HuggingFace integration means DNABERT-2 fits naturally into existing ML pipelines, and its compact size (117M parameters) makes it practical to fine-tune on single-GPU workstations.

#Impact

DNABERT-2 was accepted at ICLR 2024 and has attracted significant community adoption, with the HuggingFace model checkpoint accumulating over 60,000 monthly downloads and spawning more than 28 fine-tuned derivative models. Its introduction of BPE tokenization for genomic sequences has influenced subsequent DNA foundation models and shifted community attention toward tokenization design as a primary axis of model quality. The GUE benchmark has become a standard reference point for evaluating new genomic language models, enabling more rigorous comparisons across the field. The model's parameter efficiency — achieving near-state-of-the-art performance at a fraction of the compute cost of contemporaries — has lowered the barrier for academic groups to train and adapt genomic foundation models. Limitations include the BPE compression trade-off on short-sequence tasks and the absence of explicit structural or epigenomic context during pre-training, which means tasks requiring three-dimensional genome organization or chromatin state information require supplementary data sources.

Citation

DNABERT-2: Efficient Foundation Model and Benchmark For Multi-Species Genome

Preprint

Zhou, Z., et al. (2023) DNABERT-2: Efficient Foundation Model and Benchmark For Multi-Species Genome. arXiv.org.

DOI: 10.48550/arXiv.2306.15006

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
  • EpiBinder: a multimodal framework for cell-type-specific prediction and interpretation of transcription factor binding

    R. Solozabal, Albert Baichorov, Irina Miodownik, et al.

    bioRxiv · Jul 2026

    0
  • Evo 2′s Perception of Single Nucleotide Substitutions in the Genes of Two Plant Model Organisms

    O. Mantegazza, Lorenzo Bertolini, Gabriele Leoni, et al.

    bioRxiv · Jul 2026

    0

Top citations

The most-cited papers that cite this model.

  • The Nucleotide Transformer: Building and Evaluating Robust Foundation Models for Human Genomics

    Hugo Dalla-torre, Liam Gonzalez, Javier Mendoza Revilla, et al.

    bioRxiv · Oct 2024

    508Influential
  • Multimodal Large Language Models in Health Care: Applications, Challenges, and Future Outlook

    Rawan AlSaad, Alaa A. Abd-alrazaq, Sabri Boughorbel, et al.

    Journal of Medical Internet Research · Apr 2024

    263
  • Sequence modeling and design from molecular to genome scale with Evo

    Eric Nguyen, Michael Poli, Matthew G. Durrant, et al.

    Science · Nov 2024

    219
  • Caduceus: Bi-Directional Equivariant Long-Range DNA Sequence Modeling

    Yair Schiff, Chia-Hsiang Kao, Aaron Gokaslan, et al.

    International Conference on Machine Learning · Mar 2024

    210
  • Nucleotide Transformer: building and evaluating robust foundation models for human genomics

    Hugo Dalla-torre, Liam Gonzalez, Javier Mendoza-Revilla, et al.

    Nature Methods · Nov 2024

    194

Related models

Models with similar goals, methods, or subject matter.

  • DNABERT

    Northwestern University

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

    DNA & Gene
  • DNAGPT2

    CEITEC Masaryk University

    Family of ten compact GPT-2 decoder-only DNA language models spanning BPE vocabularies from 16 to 8192 tokens, built for lossless genome compression.

    DNA & Gene
  • GENA-LM

    AIRI Institute

    Family of transformer-based DNA language models using BPE tokenization and BigBird sparse attention to reach context lengths up to 36,000 base pairs.

    DNA & Gene
  • AIDO.DNA

    genbio.ai

    DNA foundation model scaling an encoder-only transformer to 7 billion parameters for variant effect prediction, gene expression, and sequence design.

    DNA & Gene
  • Nucleotide Transformer

    InstaDeep

    DNA foundation models from 500M to 2.5B parameters, trained on 3,200+ human genomes and 850 species for variant effect prediction.

    DNA & Gene
  • Big Bird

    Google Research

    Sparse attention transformer that extends BERT to 8x longer sequences via random, local, and global attention, with genomic sequence applications.

    DNA & Gene

Citations

Total Citations455
Influential95
References38

GitHub

Stars507
Forks101
Open Issues52
Contributors8
Last Push6mo ago
LanguageShell
LicenseApache-2.0

HuggingFace

Downloads174.5K
Likes106
Last Modified1y ago

Fields of citing research

  • Computer Science87%
  • Biology77%
  • Medicine45%
  • Environmental Science8%
  • Engineering3%
  • Mathematics3%
  • Chemistry1%
  • Agricultural and Food Sciences1%

Share of papers citing this model.

Openness

bio.rodeo opennessOpen weights · open weights, closed recipe
64Partial
Usability — can I run it?78
Reproducibility — can I retrain it?47
Model Openness Framework
Unclassified
Restrictive license on core components

Tags

cross_speciesdnafoundation_modelgenomicslanguage_model

Resources

GitHub RepositoryResearch PaperResearch PaperHuggingFace ModelDataset