
hyenadna-tiny-16k-seqlen-d128-hf (LongSafari)
Molecules, proteins and genomics125 ops438.1K params
A tiny HyenaDNA model: a stack of Hyena operators that predicts the next nucleotide in a DNA sequence.
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.
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 starts from the observation that earlier Transformer-based genomic models used 512 to 4k tokens of context because attention scales quadratically with sequence length. Those models also relied on tokenizers or fixed k-mers, which lose single nucleotide resolution.
In place of attention, HyenaDNA uses a simple stack of Hyena operators, a subquadratic drop-in replacement for attention in Transformers. The Hyena operator is built from modified input projections, implicit convolutions and gating. The tokenizer works on single characters, with a primary vocabulary of 4 nucleotides plus special tokens. Pretraining is next token (nucleotide) prediction on the human reference genome (HG38).
On fine-tuned benchmarks from the Nucleotide Transformer, the paper reports the top result at the time on 12 of 18 datasets, using a model with orders of magnitude fewer parameters and less pretraining data. The authors also explore what longer context enables, including what they describe as the first use of in-context learning in genomics. The pretrained checkpoints come in different sizes and sequence lengths, and for tiny-1k, the configuration of this model, the authors suggest a T4 GPU for pretraining, fine-tuning and inference.
Key idea. HyenaDNA applies Hyena operators in place of attention to pretrain a genomic foundation model on contexts of up to 1 million tokens at single nucleotide resolution.
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},
}