
ESM-2 small HF architecture
Molecules, proteins and genomics114 ops60.7K params
A Transformer language model pre-trained on DNA sequences with masked 6-mer tokens.
Molecules, proteins and genomics · 114 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.
The Nucleotide Transformer is a collection of Transformer language models pre-trained on DNA sequences, which the paper presents as foundation models for genomics. In the paper the models range from 50 million to 2.5 billion parameters and draw on 3,202 human genomes and 850 genomes from diverse species.
Training uses masked language modeling, treating sequences of nucleotides as sentences and 6-mers as words. As in BERT, all positions in the sequence can attend to each other, so information flows in both directions. The tokenizer uses 6-mers when possible and otherwise tokenizes each nucleotide separately.
A second generation, NT-v2, spans 50 million to 500 million parameters in the paper and adds rotary embeddings and swiGLU activations while removing MLP biases and dropout. Its context length is extended to 12 kb. The paper reports that one of these models matches the performance of its earlier best model with one-tenth the number of parameters while doubling the perception field size.
Key idea. The paper pre-trains DNA language models of 50 million to 2.5 billion parameters on human and multispecies genomes and shows they can be fine-tuned at low cost for genomics tasks.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@article{Dalla_Torre_2024, title={Nucleotide Transformer: building and evaluating robust foundation models for human genomics}, volume={22}, ISSN={1548-7105}, url={http://dx.doi.org/10.1038/s41592-024-02523-z}, DOI={10.1038/s41592-024-02523-z}, number={2}, journal={Nature Methods}, publisher={Springer Science and Business Media LLC}, author={Dalla-Torre, Hugo and Gonzalez, Liam and Mendoza-Revilla, Javier and Lopez Carranza, Nicolas and Grzywaczewski, Adam Henryk and Oteri, Francesco and Dallago, Christian and Trop, Evan and de Almeida, Bernardo P. and Sirelkhatim, Hassan and Richard, Guillaume and Skwark, Marcin and Beguir, Karim and Lopez, Marie and Pierrot, Thomas}, year={2024}, month=Nov, pages={287–297} }