All models

GROVER-DNA

A BERT for the human genome whose DNA vocabulary was learned by byte-pair encoding.

Molecules, proteins and genomics · 305 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (28 KB)

Open in a new tab

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

Family
GROVER
Parameters
86.5M
Operations
305
Framework
PyTorch
Recurrent
No
Published
2023, Nature Machine Intelligence
Cited by
99 (as of 17 October 2026)
Authors
Melissa Sanabria, Jonas Hirsch, Pierre M. Joubert, Anna R. Poetsch
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1162
Graph hash
c007ddce226b0111c5c38790dc14603ca2231ddd79f198b20be15082eb38f3e9
Skeleton hash
dbf6439a62e8e789d27df0425e2b6b82c39be0ea7f2f65de857074dbf9e44185
Architecture hash
e1cb5f0eb417bc9ac29c98ba47c695f61fa14ea90c307bc0fcfaf54379ec8146
Diagram SHA-256
8287f9dc5e2dc957873c4d2dd82936d181ad55336f2f971a595979676f6baebf
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

GROVER is a BERT-style language model trained on the human genome, with one unusual choice at its heart: the vocabulary of DNA 'words' is learned rather than fixed. DNA has no natural word boundaries, which is the problem the paper sets out to solve before training anything.

The authors ran byte-pair encoding on the genome for up to 5,000 merge cycles and picked the cut-off with a proxy task, next-k-mer prediction. That task shows the model the first 50 nucleotides of a sequence and asks for the k that follow. Six hundred cycles came out best. Single A, C and T are absorbed into larger tokens, leaving a dictionary of 601 entries. Most tokens are 4-mers, with lengths running from a single G up to two 16-mers. The CG dinucleotide never becomes a token of its own.

The model itself is a BERT encoder that takes up to 510 tokens and is trained by masked token prediction. On that task it reaches 21% accuracy, rising to 75% when the top 60 guesses are allowed.

Fine-tuned on genome element identification and protein–DNA binding, GROVER beats the other models the authors compare against. The Hub card warns that re-tokenizing short sequences changes the tokens, and recommends padding 100 nucleotides on each end so a sequence is tokenized as it was in the genome.

Key idea. A DNA language model whose byte-pair vocabulary is selected by next-k-mer prediction rather than fixed k-mers, trained on the human genome alone.

  • GROVER
  • GROVER-DNA
  • Genome Rules Obtained Via Extracted Representations
  • DNA language model
  • genome foundation model
  • byte-pair encoding
  • BPE
  • human genome
  • PoetschLab
  • next-k-mer prediction

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{Sanabria_2024, title={DNA language model GROVER learns sequence context in the human genome}, volume={6}, ISSN={2522-5839}, url={http://dx.doi.org/10.1038/s42256-024-00872-0}, DOI={10.1038/s42256-024-00872-0}, number={8}, journal={Nature Machine Intelligence}, publisher={Springer Science and Business Media LLC}, author={Sanabria, Melissa and Hirsch, Jonas and Joubert, Pierre M. and Poetsch, Anna R.}, year={2024}, month=July, pages={911–923} }