Cheat sheet

gLM cheat sheet: DNABERT-2

One reference card for DNABERT-2: architecture, tokenization, size, context, training data, what it was shown to do and what it does not do. One card in a set that covers one genomic language model at a time.

GenomicsLLMMachine Learning

Genomic language model · Cheat sheet

DNABERT-2

The efficient successor: tokens are frequent chunks, not fixed k-mers, plus a shared benchmark

First public
arXiv, June 2023
Published
ICLR, May 2024
Lab
Northwestern University, Stony Brook University
Architecture
BERT encoder with faster attention. Position comes from a distance penalty (ALiBi), not a learned table, so nothing caps the input length.
Tokenization
BPE, byte-pair encoding
Parameters
117M
Context
No fixed limit. Chunked tokens cut length about 5x.
Training data
32.5 billion bases from 135 species, roughly 12 times the human genome alone.
Used for
Prediction and classification after fine-tuning

Headline result

Average 66.80 on GUE, the paper's own benchmark of DNA classification tasks across four species, against 66.93 for the 2.5B Nucleotide Transformer, at 21x fewer parameters and about 92x less GPU time to pretrain. Beats the original DNABERT on 23 of 28 datasets, about 6 points higher on average.

What it does not do

Not a generator. It fills in hidden spans rather than writing sequence, and every reported result comes from full fine-tuning.

Commonly confused

The 21x comparison is against Nucleotide Transformer v1 (2.5B), the state of the art at the time, not the later 250M v2. And it is a near-match rather than a win: 66.80 against 66.93.

Download this card PNG, 1080 x 1350, sized for a post or a slide