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

Zhihan Zhou, Weimin Wu, Harrison Ho, Jiayi Wang, Lizhen Shi +3 more
2/13/2024
q-bio.GNcs.AIcs.CE

Official code: MAGICS-LAB/DNABERT_S (130 stars, last commit 2026-01-01).

Abstract

We introduce DNABERT-S, a tailored genome model that develops species-aware embeddings to naturally cluster and segregate DNA sequences of different species in the embedding space. Differentiating species from genomic sequences (i.e., DNA and RNA) is vital yet challenging, since many real-world species remain uncharacterized, lacking known genomes for reference. Embedding-based methods are therefore used to differentiate species in an unsupervised manner. DNABERT-S builds upon a pre-trained genome foundation model named DNABERT-2. To encourage effective embeddings to error-prone long-read DNA sequences, we introduce Manifold Instance Mixup (MI-Mix), a contrastive objective that mixes the hidden representations of DNA sequences at randomly selected layers and trains the model to recognize and differentiate these mixed proportions at the output layer. We further enhance it with the proposed Curriculum Contrastive Learning (C$^2$LR) strategy. Empirical results on 23 diverse datasets show DNABERT-S's effectiveness, especially in realistic label-scarce scenarios. For example, it identifies twice more species from a mixture of unlabeled genomic sequences, doubles the Adjusted Rand Index (ARI) in species clustering, and outperforms the top baseline's performance in 10-shot species classification with just a 2-shot training. Model, codes, and data are publicly available at \url{https://github.com/MAGICS-LAB/DNABERT_S}.

View on arXivView PDF

Code Implementations(1)

[ISMB 2025] DNABERT_S: Learning Species-Aware DNA Embedding with Genome Foundation Models

13031Shell, PythonFeb 15, 20249 months ago
dnadna-embeddingembedding

Similar Papers

Cite this paper

@article{zhou2024dnaberts,
  title  = {DNABERT-S: Pioneering Species Differentiation with Species-Aware DNA Embeddings},
  author = {Zhihan Zhou and Weimin Wu and Harrison Ho and Jiayi Wang and Lizhen Shi and Ramana V Davuluri and Zhong Wang and Han Liu},
  year   = {2024},
  eprint = {2402.08777},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.08777v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.08777.svg)](https://codeofpaper.com/paper/2402.08777)

Discussion