Genomic sequence classification answered through natural-language prompts by one GPT-2 pretrained on mixed DNA and English under one BPE vocabulary.
No providers recorded yet. Browse all providers
A DNA classifier fine-tuned for promoter detection answers with 0 or 1 — a label
index, not language. Ask the same checkpoint whether a sequence contains a splice site
and it has no way to represent the question, let alone the answer; that needs a second
fine-tune with a second head. Everything that made text language models practically
useful — prompt engineering, retrieval augmentation, chained reasoning — assumes a model
that reads instructions, which a nucleotide-only encoder cannot.
DNAHLM (written DNAHL in its code repository) closes that gap by not keeping the two languages apart in the first place. Wang Liang at Huazhong University of Science and Technology trained a GPT-2 from scratch on a corpus that is half human genome and half English Wikipedia, encoded by a single byte-pair vocabulary built over the mixture rather than by separate encoders switched in per modality. Downstream genomic tasks are then rewritten as Alpaca-format instruction data — an English question, a sequence, a text answer — and one instruction fine-tune produces a checkpoint that handles all of them through the same causal language-modelling head it was pretrained with.
That is a different bet from the encoder-plus-head convention of
DNABERT-2 and HyenaDNA, and a deliberately small
one: the paper is explicit that the approach ignores the biological structure of DNA and
tests whether ordinary text-LLM machinery suffices. It opens a line the same author
continued in LLaMA-Gene and
GPT2-gene-eng. The checkpoints sit under a Hugging Face account
named dnagpt, an unrelated coincidence of naming — this work shares no authors,
architecture, or lineage with DNAGPT.
{instruction, input, output} triples and then Alpaca prompt format.
The template is not fixed — a sequence can sit inside the instruction with an empty
input field, which is what lets arbitrary mixes of prose and sequence be posed.The backbone is stock GPT-2 small geometry — 12 transformer layers, 768 hidden units, 12 attention heads, 1,024-token context — over the 50,000-token joint vocabulary, giving 124,242,432 parameters in the released weights. Pretraining used 150 MB of human genome split into 300–1,000 bp fragments plus 150 MB of English Wikipedia; two base checkpoints were released, at 128- and 1,024-token contexts. Downstream data comes from the GUE benchmark assembled for the DNABERT-2 paper and the GENA-LM promoter sets.
The paper compares two fine-tuning routes on the same base. Conventional classification tuning, with a softmax head and full-parameter updates taking about an hour per task, reaches accuracies of 0.83, 0.76, 0.75, 0.88 and 0.82 across the five tasks. The single instruction-tuned model averages 0.83 on the multi-task set, against roughly 0.85 for DNABERT-2; on promoter detection it reaches 0.74 where the classification fine-tune reaches 0.83. The fine-tuning datasets were split into training and validation only, so all reported numbers are validation-set numbers.
The draw is operational rather than accuracy-driven: a group running several sequence-classification tasks maintains one checkpoint and one prompt format instead of a fine-tuned model per task, and adds a task by writing a template rather than attaching a head. The released tokenizer and base checkpoints are small enough to fine-tune or continue pretraining on a single consumer GPU, a workable starting point for prototyping instruction-shaped genomic tasks.
This is a small, single-author research program, and it earns its place on the method rather than on leaderboard standing — DNABERT-2 is ahead on three of the four tasks it reports, and the paper concedes its slightly higher average outright. Two limits frame what was shown: the instruction data is derived from the same task families the model is then scored on, so the demonstrated capability is multi-task prompting from one checkpoint rather than transfer to unseen tasks, and no dedicated test set was held out. Its own conclusion names the next moves — a larger backbone, more organisms, protein sequence alongside DNA — and the same author went on to make exactly those in LLaMA-Gene, leaving DNAHLM as the compact, fully-released reference implementation of an idea that later scaled.
Much of this page is generated or calculated automatically. Flag anything that looks off and we will re-run it.