
GROVER molecular
Molecules, proteins and genomics1,397 ops61.3M params
A BERT for the human genome whose DNA vocabulary was learned by byte-pair encoding.
Molecules, proteins and genomics · 305 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.
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.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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} }