DNABERT-S
DNABERT-2 retrained with species-aware contrastive learning so DNA embeddings cluster by species.
Molecules, proteins and genomics · 550 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 117.1M
- Operations
- 550
- Framework
- PyTorch
- Recurrent
- No
- Published
- PubMed (arXiv 2024)
- Cited by
- 32 (as of 9 October 2026)
- Authors
- Zhihan Zhou, Weimin Wu, Harrison Ho and others
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m558
- Graph hash
- 3c12b94e0b4d260ca93d520de6bcc0ed8d0d72b86cefbc88fadc2d53ba4f5a3c
- Skeleton hash
- c852de417a110324d9e0e43537100a6b4d6638cb6dd10956d2e776d6f031e65a
- Architecture hash
- 86ce15c88a97bf038f2b2e0b18c64e6d6f36b77af7b9026836aeaa18a248de92
- Diagram SHA-256
- 46cfdc9a46d113d67d1f2bd3c1bb4935c23fd74fff032143fa7e0e2ff82a4998
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
DNABERT-S is a genome model tailored to produce species-aware embeddings that cluster and segregate DNA sequences of different species in embedding space. Differentiating species from genomic sequences is vital yet challenging, since many real-world species remain uncharacterized and lack known reference genomes. Embedding-based methods are therefore used to differentiate species in an unsupervised manner.
It builds upon the pre-trained genome foundation model DNABERT-2. Its training objective, Manifold Instance Mixup, mixes the hidden representations of DNA sequences at randomly selected layers and trains the model to recognize and differentiate the mixed proportions at the output layer. A Curriculum Contrastive Learning strategy further strengthens it. The DNA embedding is the mean pooling of the last hidden states of all the tokens.
Empirical results on 23 diverse datasets show its effectiveness, especially in realistic label-scarce scenarios. It identifies twice as many species from a mixture of unlabeled genomic sequences, doubles the Adjusted Rand Index in species clustering, and beats the top baseline's 10-shot species classification with only 2-shot training. The pre-trained model is published on Hugging Face as zhihan1996/DNABERT-S.
Key idea. Manifold Instance Mixup, a contrastive objective that mixes hidden representations of DNA sequences at random layers so that the embeddings separate species without reference genomes.
- dnabert-s
- DNABERT_S
- dnabert
- dnabert-2
- species-aware dna embeddings
- genome foundation model
- dna embedding
- metagenomics binning
- species classification
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhou2024dnabertspioneeringspeciesdifferentiation,
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},
primaryClass={q-bio.GN},
url={https://arxiv.org/abs/2402.08777},
}