
hyenadna
Molecules, proteins and genomics125 ops438.1K params
HyenaDNA is an attention-free DNA language model that reads genomes one nucleotide at a time over long contexts.
Molecules, proteins and genomics · 125 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.
For this tiny-1k checkpoint, the model card suggests that a T4 GPU is enough for pretraining, fine-tuning and inference.
About this model's family
HyenaDNA is a genomic foundation model: a network pretrained on the human reference genome that reads DNA one nucleotide at a time, with context lengths of up to 1 million tokens. The paper's starting point is that earlier Transformer-based genomic models were limited by the quadratic scaling of attention to contexts of 512 to 4k tokens, and that their tokenizers or fixed k-mers gave up single nucleotide resolution.
The model is a decoder-only stack of blocks, each a Hyena operator followed by a feed-forward network. Hyena operators are a subquadratic replacement for attention, built from implicit convolutions and gating. The tokenizer works on single characters with a vocabulary of 4 nucleotides plus special tokens, and pretraining is next nucleotide prediction. For ultralong sequences the authors add a sequence length warm-up schedule that starts at 64 and doubles the window at each stage.
On fine-tuned benchmarks from the Nucleotide Transformer, the paper reports the best results at the time on 12 of 18 datasets, using a model with orders of magnitude fewer parameters and less pretraining data. The released checkpoints come in different model sizes and maximum training sequence lengths, all pretrained on a single human reference genome (hg38).
Key idea. HyenaDNA applies the attention-free Hyena architecture to DNA, pretraining on the human reference genome at single nucleotide resolution with context lengths of up to 1 million tokens.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{nguyen2023hyenadnalongrangegenomicsequence,
title={HyenaDNA: Long-Range Genomic Sequence Modeling at Single Nucleotide Resolution},
author={Eric Nguyen and Michael Poli and Marjan Faizi and Armin Thomas and Callum Birch-Sykes and Michael Wornow and Aman Patel and Clayton Rabideau and Stefano Massaroli and Yoshua Bengio and Stefano Ermon and Stephen A. Baccus and Chris Ré},
year={2023},
eprint={2306.15794},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2306.15794},
}